You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
717 B
19 lines
717 B
package fr.mieuxvoter.mj;
|
|
|
|
/**
|
|
* A Deliberator takes in a poll's Tally, which holds the amount of judgments of each grade received
|
|
* by each Proposal, and outputs that poll's Result, that is the final rank of each Proposal.
|
|
*
|
|
* <p>Ranks start at 1 ("best"), and increment towards "worst". Two proposal may share the same
|
|
* rank, in extreme equality cases.
|
|
*
|
|
* <p>This is the main API of this library.
|
|
*
|
|
* <p>See MajorityJudgmentDeliberator for an implementation. One could implement other deliberators,
|
|
* such as: - CentralJudgmentDeliberator - UsualJudgmentDeliberator
|
|
*/
|
|
public interface DeliberatorInterface {
|
|
|
|
public ResultInterface deliberate(TallyInterface tally) throws InvalidTallyException;
|
|
}
|