Class Rep

java.lang.Object
  |
  +--Individual
        |
        +--Rep

public class Rep
extends Individual

Reps come from the Candidate that wins an election. All the internal parts are initialized to be the same as the candidates. If this is a new Rep, the name is changed. Reps have the methods, tagAdapt and BillVote. Since Reps are self-interested, and wish for everyone to join their party, they alter the tags of the other representatives. Reps consider the proposed bill versus the statusquo, and vote for the closest position. They also keep track of their most recent tag.


Field Summary
 int age
           
 double majority
           
 int[] newTag
           
 int VoterID
           
 int votesReceived
           
 
Fields inherited from class Individual
ideology, name, parent, partyTag, strengths, votingRecord
 
Constructor Summary
Rep(Candidate tempCand)
           
 
Method Summary
 int BillVote(int bill, int issue, int statusQuo, int[] billTag, int voteNumber)
           
 double isMajority()
           
 void resetTag()
           
 void tagAdapt(Rep otherRep)
           
 
Methods inherited from class Individual
CrunchTag, findSeparation, findSimilarity, fliptag, levelIndex, showIdeology, showRecord, showTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

age

public int age

newTag

public int[] newTag

VoterID

public int VoterID

votesReceived

public int votesReceived

majority

public double majority
Constructor Detail

Rep

public Rep(Candidate tempCand)
Method Detail

BillVote

public int BillVote(int bill,
                    int issue,
                    int statusQuo,
                    int[] billTag,
                    int voteNumber)

tagAdapt

public void tagAdapt(Rep otherRep)

isMajority

public double isMajority()

resetTag

public void resetTag()