org.jscience.politics.vote
Class SingleChoiceRandomVoter

java.lang.Object
  extended by org.jscience.sociology.Role
      extended by org.jscience.politics.vote.Voter
          extended by org.jscience.politics.vote.SingleChoiceRandomVoter
All Implemented Interfaces:
Named

public class SingleChoiceRandomVoter
extends Voter

This class represent a person in a voting situation. The voter is selecting exactly ONE random option from EVERY choice in the ballot for BinaryBallots and ranks ONE at random for EVERY choice in the ballot for RankedBallots.


Field Summary
 
Fields inherited from class org.jscience.sociology.Role
CLIENT, OBSERVER, SERVER, SUPERVISOR
 
Constructor Summary
SingleChoiceRandomVoter(Individual individual, VoteSituation situation)
          Creates a new SingleChoiceRandomVoter object.
 
Method Summary
 void select()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.politics.vote.Voter
getBallotForRoundI, getBallots, getCurrentBallot, getCurrentRoundForVoter, getNumBallots, hasVotedAtRoundI, setBallotForCurrentRound, vote
 
Methods inherited from class org.jscience.sociology.Role
getIndividual, getKind, getName, getSituation, setSituation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleChoiceRandomVoter

public SingleChoiceRandomVoter(Individual individual,
                               VoteSituation situation)
Creates a new SingleChoiceRandomVoter object.

Parameters:
individual - DOCUMENT ME!
situation - DOCUMENT ME!
Method Detail

select

public void select()
DOCUMENT ME!

Specified by:
select in class Voter