OSID Logo
OSID Specifications
voting rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.voting.rules.RaceProcessorSearchOrder
Implementsosid.OsidProcessorSearchOrder
Description

An interface for specifying the ordering of search results.

MethodorderByMaximumWinners
Description

Specified a preference for ordering the maximum winners value.

Parametersosid.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodorderByMinimumPercentageToWin
Description

Specified a preference for ordering the minimum percentage to win value.

Parametersosid.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodorderByMinimumVotesToWin
Description

Specified a preference for ordering the minimum votes to win value.

Parametersosid.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodgetRaceProcessorSearchOrderRecord
Description

Gets the race processor search order record corresponding to the given race processor record Type. Multiple retrievals return the same underlying object.

Parametersosid.type.TyperaceProcessorRecordTypea race processor record type
Returnosid.voting.rules.records.RaceProcessorSearchOrderRecordthe race processor search order record
ErrorsNULL_ARGUMENT raceProcessorRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(raceProcessorRecordType) is false
CompliancemandatoryThis method must be implemented.