Uses of Enum Class
com.tnsai.coordination.voting.VotingMethod
Packages that use VotingMethod
-
Uses of VotingMethod in com.tnsai.coordination.decision
Methods in com.tnsai.coordination.decision that return VotingMethodModifier and TypeMethodDescriptionDecisionProposal.method()Returns the value of themethodrecord component.DecisionResult.method()Returns the value of themethodrecord component.Methods in com.tnsai.coordination.decision with parameters of type VotingMethodModifier and TypeMethodDescriptionstatic DecisionProposalDecisionProposal.of(String topic, List<String> options, VotingMethod method) Creates a proposal with a specific voting method.static DecisionProposalDecisionProposal.of(String topic, List<String> options, VotingMethod method, Duration timeout, int quorum) Creates a proposal with full configuration.DefaultGroupDecisionFramework.propose(String topic, List<String> options, VotingMethod method) GroupDecisionFramework.propose(String topic, List<String> options, VotingMethod method) Creates a decision proposal.Constructors in com.tnsai.coordination.decision with parameters of type VotingMethodModifierConstructorDescriptionDecisionProposal(String id, String topic, List<String> options, VotingMethod method, Duration timeout, int quorum, Instant created) Creates an instance of aDecisionProposalrecord class.DecisionResult(String decisionId, String topic, String winner, Map<String, Integer> voteCounts, boolean consensusReached, boolean leaderOverride, VotingMethod method, int totalVotes, Instant timestamp) Creates an instance of aDecisionResultrecord class. -
Uses of VotingMethod in com.tnsai.coordination.voting
Methods in com.tnsai.coordination.voting that return VotingMethodModifier and TypeMethodDescriptionVotingResult.method()Returns the value of themethodrecord component.static VotingMethodReturns the enum constant of this class with the specified name.static VotingMethod[]VotingMethod.values()Returns an array containing the constants of this enum class, in the order they are declared.VotingConfig.votingMethod()Returns the value of thevotingMethodrecord component.Methods in com.tnsai.coordination.voting with parameters of type VotingMethodModifier and TypeMethodDescriptionConsensusBuilder.method(VotingMethod method) VotingConfig.Builder.votingMethod(VotingMethod votingMethod) Constructors in com.tnsai.coordination.voting with parameters of type VotingMethodModifierConstructorDescriptionVotingConfig(String topic, List<String> options, Duration timeout, VotingMethod votingMethod, int quorum, double supermajorityThreshold) Creates an instance of aVotingConfigrecord class.VotingResult(String winner, Map<String, Integer> voteCounts, boolean quorumMet, boolean unanimous, VotingMethod method, int totalVotes) Creates an instance of aVotingResultrecord class.