public class InstantRunoffVoteCountingStrategy extends AbstractVoteCountingStrategy
voteValueComparator, ZERO_D| Constructor and Description |
|---|
InstantRunoffVoteCountingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected List<ChoiceScore> |
applyScores(Map<Voter,List<Set<String>>> topRankChoices,
Set<String> idsToExclude,
Set<String> idsToInclude,
Map<String,ChoiceScore> resultByChoice) |
protected void |
guessChoiceIdsToRemove(Set<String> idsToExclude,
List<ChoiceScore> results) |
protected void |
round(Map<Voter,List<Set<String>>> topRankChoices,
Set<String> idsToExclude,
Set<String> idsToInclude,
Map<String,ChoiceScore> resultByChoice,
double totalWeight) |
VoteCountingResult |
votecount(Set<Voter> voters) |
buildVoterSortedChoices, getAllChoiceIds, newEmptyChoiceScoreMap, orderByValues, sortVoteForChoices, votecount, voteCountpublic VoteCountingResult votecount(Set<Voter> voters)
protected void round(Map<Voter,List<Set<String>>> topRankChoices, Set<String> idsToExclude, Set<String> idsToInclude, Map<String,ChoiceScore> resultByChoice, double totalWeight)
protected List<ChoiceScore> applyScores(Map<Voter,List<Set<String>>> topRankChoices, Set<String> idsToExclude, Set<String> idsToInclude, Map<String,ChoiceScore> resultByChoice)
protected void guessChoiceIdsToRemove(Set<String> idsToExclude, List<ChoiceScore> results)
Copyright © 2009–2013 CodeLutin. All rights reserved.