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.


Field Summary
 int[] ideology
           
 java.lang.String name
           
 District parent
           
 int[] partyTag
           
 double[] strengths
           
 int[] votingRecord
           
 
Constructor Summary
Individual()
           
 
Method Summary
 void CrunchTag()
           
 double findSeparation(int[] otherIdeo)
           
 double findSimilarity(int[] otherTag)
           
 void fliptag()
           
 long levelIndex(int level, int n)
           
 void showIdeology()
           
 void showRecord()
           
 void showTag()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Individual

public Individual()
Method Detail

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()