Uses of Class
org.episteme.social.politics.Ballot
Packages that use Ballot
-
Uses of Ballot in org.episteme.social.politics
Methods in org.episteme.social.politics that return BallotModifier and TypeMethodDescriptionVoter.getBallotForRoundI(int i) Retrieves the ballot cast at a specific round.Voter.getCurrentBallot()Retrieves the most recent ballot.static BallotBallot.rankedChoice(String voterId, String electionId, List<String> rankings) Creates a ranked-choice ballot for a specific election.static BallotCreates a cardinal/rating ballot for a specific election from double values.static BallotBallot.singleChoice(String voterId, String electionId, String choice) Creates a simple single-choice ballot for a specific election.Methods in org.episteme.social.politics that return types with arguments of type BallotModifier and TypeMethodDescriptionElection.getBallots()Returns the list of all individual cast ballots.Voter.getBallots()Returns the list of all ballots cast by this voter.Methods in org.episteme.social.politics with parameters of type BallotModifier and TypeMethodDescriptionvoidRegisters a cast ballot in this election.voidVoter.castBallot(Ballot ballot) Casts a ballot for the current round.Method parameters in org.episteme.social.politics with type arguments of type BallotModifier and TypeMethodDescriptionVotingEngine.calculatePluralityWinner(List<Ballot> ballots, String electionId) Calculates the winner using Plurality (First-Past-The-Post).VotingEngine.resolve(List<Ballot> ballots, String electionId, VotingMethod method, int seats) Resolves an election using the specified method and list of cast ballots.