ProposalTally class

Tally of a single proposal, that is the amount of judgments they received for each grade. This class is basically a wrapper around a list of ints.

Constructors

ProposalTally(List<int> gradesTallies)

Properties

gradesTallies List<int>
For each grade from "worst" to "best", the amount of judgments received.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clone() ProposalTally
countAvailableGrades() int
Count the available grades in the grading scale. Usually around 7.
countJudgments() int
Count all the judgments received by the proposal, across all grades.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
regradeJudgments(int fromGrade, int intoGrade) ProposalTally
This mutates the tally. Used in score calculus.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited