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.
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
age
public int age
newTag
public int[] newTag
VoterID
public int VoterID
votesReceived
public int votesReceived
majority
public double majority
Rep
public Rep(Candidate tempCand)
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()