Class Individual
java.lang.Object
|
+--Individual
- Direct Known Subclasses:
- Candidate, Rep, Voter
- public class Individual
- extends java.lang.Object
This is the basic class for people in our simulation. Voters,
Candidates, and Representatives are all subclasses of this Individual
class. These are the basic attributes that each person will have.
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ideology
public int[] ideology
strengths
public double[] strengths
votingRecord
public int[] votingRecord
partyTag
public int[] partyTag
name
public java.lang.String name
parent
public District parent
Individual
public Individual()
findSimilarity
public double findSimilarity(int[] otherTag)
findSeparation
public double findSeparation(int[] otherIdeo)
showTag
public void showTag()
showRecord
public void showRecord()
showIdeology
public void showIdeology()
CrunchTag
public void CrunchTag()
levelIndex
public long levelIndex(int level,
int n)
fliptag
public void fliptag()