| Interface | osid.voting.rules.RaceProcessor | ||
|---|---|---|---|
| Implements | osid.OsidProcessor | ||
| Description |
A | ||
| Method | hasMaximumWinners | ||
| Description |
Tests if there is a limit on the number of winners in a race. | ||
| Return | boolean | true if a limit on the number of winners, false
if no limit exists | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getMaximumWinners | ||
| Description |
Gets the number of maximum winners in a race. | ||
| Return | cardinal | the maximum number of winners permitted | |
| Errors | ILLEGAL_STATE | hasMaximumWinners() is false | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getMinimumPercentageToWin | ||
| Description |
Gets the minimum percentage (0-100) of total votes to be declared a winner in a race. | ||
| Return | cardinal | the minimum percentage | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getMinimumVotesToWin | ||
| Description |
Gets the minimum votesl votes to be declared a winner in a race. | ||
| Return | cardinal | the minimum votes | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getRaceProcessorRecord | ||
| Description |
Gets the race processor record corresponding to the
given | ||
| Parameters | osid.type.Type | raceProcessorRecordType | the type of race processor record to retrieve |
| Return | osid.voting.rules.records.RaceProcessorRecord | the race processor record | |
| Errors | NULL_ARGUMENT | raceProcessorRecordType is null | |
| OPERATION_FAILED | unable to complete request | ||
| UNSUPPORTED | hasRecordType(raceProcessorRecordType) is false
| ||
| Compliance | mandatory | This method must be implemented. | |