public interface Voter
| Modifier and Type | Method and Description |
|---|---|
void |
addVoteForChoice(VoteForChoice voteForChoice)
Register a new vote value for this voter.
|
Set<VoteForChoice> |
getVoteForChoices()
Gets all the vote for choices registred for this voter.
|
String |
getVoterId()
Gets the voter unique id.
|
double |
getWeight()
Gets the weight of the voter.
|
void |
setVoterId(String voterId)
Sets the voter id.
|
void |
setWeight(double weight)
Sets the voter weight.
|
String getVoterId()
double getWeight()
Set<VoteForChoice> getVoteForChoices()
void addVoteForChoice(VoteForChoice voteForChoice)
voteForChoice - new vote value to register for this votervoid setVoterId(String voterId)
voterId - the new voter id to setvoid setWeight(double weight)
weight - the new weight to setCopyright © 2009-2012 CodeLutin. All Rights Reserved.