Interface | osid.voting.RaceResult | ||
---|---|---|---|
Implements | osid.OsidCompendium | ||
Description |
The results for a candidate in a race. | ||
Method | getRaceId | ||
Description |
Geta the race | ||
Return | osid.id.Id | the ballot Id | |
Compliance | mandatory | This method must be implemented. | |
Method | getRace | ||
Description |
Gets the race of the vote. | ||
Return | osid.voting.Race | the race | |
Errors | OPERATION_FAILED | unable to complete request | |
Compliance | mandatory | This method must be implemented. | |
Method | getCandidateId | ||
Description |
Gets the candidate | ||
Return | osid.id.Id | a candidate Id | |
Compliance | mandatory | This method must be implemented. | |
Method | getCandidate | ||
Description |
Gets the | ||
Return | osid.voting.Candidate | the candidate | |
Errors | OPERATION_FAILED | unable to complete request | |
Compliance | mandatory | This method must be implemented. | |
Method | getResourceId | ||
Description |
Gets the resource | ||
Return | osid.id.Id | a resource Id | |
Compliance | mandatory | This method must be implemented. | |
Method | getResource | ||
Description |
Gets the | ||
Return | osid.resource.Resource | the resource | |
Errors | OPERATION_FAILED | unable to complete request | |
Compliance | mandatory | This method must be implemented. | |
Method | isFinal | ||
Description |
Tests if these results are final. | ||
Return | boolean | true if these results are final, false
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getTotalVotes | ||
Description |
Gets the total number of votes cast for this candidate. | ||
Return | integer | the total number of votes cast | |
Compliance | mandatory | This method must be implemented. | |
Method | getMeanVotes | ||
Description |
Gets the mean number of votes cast for this candidate. | ||
Return | decimal | the mean number of votes cast | |
Compliance | mandatory | This method must be implemented. | |
Method | getMedianVotes | ||
Description |
Gets the median number of votes cast for this candidate. | ||
Return | integer | the median number of votes cast | |
Compliance | mandatory | This method must be implemented. | |
Method | getVoteStandardDeviation | ||
Description |
Gets the standard deviation of the votes. | ||
Return | decimal | the standard deviation | |
Compliance | mandatory | This method must be implemented. | |
Method | getRaceResultRecord | ||
Description |
Gets the race result record corresponding to the given
| ||
Parameters | osid.type.Type | raceResultsRecordType | the type of the record to retrieve |
Return | osid.voting.records.RaceResultRecord | the race results record | |
Errors | NULL_ARGUMENT | raceResultsRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
UNSUPPORTED | hasRecordType(raceResultsRecordType) is false | ||
Compliance | mandatory | This method must be implemented. |