Uses of Record Class
com.tnsai.coordination.voting.Vote
Packages that use Vote
-
Uses of Vote in com.tnsai.coordination.decision
Methods in com.tnsai.coordination.decision that return types with arguments of type VoteModifier and TypeMethodDescriptionDefaultGroupDecisionFramework.vote(com.tnsai.agents.groups.AgentGroup group, DecisionProposal proposal) GroupDecisionFramework.vote(com.tnsai.agents.groups.AgentGroup group, DecisionProposal proposal) Collects votes from all group members on a proposal.Method parameters in com.tnsai.coordination.decision with type arguments of type VoteModifier and TypeMethodDescriptionDefaultGroupDecisionFramework.converge(com.tnsai.agents.groups.AgentGroup group, List<Vote> votes, DecisionProposal proposal) GroupDecisionFramework.converge(com.tnsai.agents.groups.AgentGroup group, List<Vote> votes, DecisionProposal proposal) Tallies votes, determines outcome, saves trace, and broadcasts result. -
Uses of Vote in com.tnsai.coordination.voting
Methods in com.tnsai.coordination.voting that return VoteModifier and TypeMethodDescriptionstatic VoteCreates a simple vote with default weight.static VoteCreates a ranked-choice vote.static VoteVote.ofWeighted(String voterId, String choice, double weight) Creates a weighted vote.Methods in com.tnsai.coordination.voting with parameters of type VoteModifier and TypeMethodDescriptiondefault voidVotingListener.onVoteReceived(Vote vote) Called when a vote is received.Method parameters in com.tnsai.coordination.voting with type arguments of type VoteModifier and TypeMethodDescriptionstatic VotingResultMajorityVoting.tally(List<Vote> votes, VotingConfig config) Tallies the given votes according to the voting config.static VotingResultRankedChoiceVoting.tally(List<Vote> votes, VotingConfig config) Tallies ranked-choice votes using instant-runoff.