OSID Logo
OSID Specifications
voting rules package
Version 3.1.0
Interfaceosid.voting.rules.RaceProcessorQuery
Implementsosid.OsidProcessorQuery
Used Byosid.voting.rules.RaceProcessorEnablerQuery
osid.voting.rules.RaceProcessorQuerySession
osid.voting.rules.RaceProcessorSearchSession
osid.voting.rules.RaceProcessorSmartPollsSession
Description

This is the query for searching race processors. Each method match specifies a AND term while multiple invocations of the same method produce a nested OR.

MethodmatchMaximumWinners
Description

Matches rules with a maximum winners value between the given range inclusive.

Parameterscardinallow start of range
cardinalhigh end of range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT low is greater than high
Compliancemandatory This method must be implemented.
MethodmatchAnyMaximumWinners
Description

Matches rules with any maximum winner value.

Parametersbooleanmatch true to match rules with a maximum winner value, false to match rules with no maximum winner value
Compliancemandatory This method must be implemented.
MethodclearMaximumWinnersTerms
Description

Clears the maximum winners terms.

Compliancemandatory This method must be implemented.
MethodmatchMinimumPercentageToWin
Description

Matches rules with a minimum percentage to win value between the given range inclusive.

Parameterscardinallow start of range
cardinalhigh end of range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT low is greater than high
Compliancemandatory This method must be implemented.
MethodmatchAnyMinimumPercentageToWin
Description

Matches rules with any minimum percentage to win value.

Parametersbooleanmatch true to match rules with a minimum value, false to match rules with no minimum value
Compliancemandatory This method must be implemented.
MethodclearMinimumPercentageToWinTerms
Description

Clears the minimum percentage to win terms.

Compliancemandatory This method must be implemented.
MethodmatchMinimumVotesToWin
Description

Matches rules with a minimum votes to win value between the given range inclusive.

Parameterscardinallow start of range
cardinalhigh end of range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT low is greater than high
Compliancemandatory This method must be implemented.
MethodmatchAnyMinimumVotesToWin
Description

Matches rules with any minimum votes to win value.

Parametersbooleanmatch true to match rules with a minimum value, false to match rules with no minimum value
Compliancemandatory This method must be implemented.
MethodclearMinimumVotesToWinTerms
Description

Clears the minimum votes to win terms.

Compliancemandatory This method must be implemented.
MethodmatchRuledRaceId
Description

Matches rules mapped to the race.

Parametersosid.id.IdraceId the race Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT raceId is null
Compliancemandatory This method must be implemented.
MethodclearRuledRaceIdTerms
Description

Clears the race Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsRuledRaceQuery
Description

Tests if a RaceQuery is available.

Returnboolean true if a race query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetRuledRaceQuery
Description

Gets the query for a race. Multiple retrievals produce a nested OR term.

Returnosid.voting.RaceQuery the race query
ErrorsUNIMPLEMENTED supportsRuledRaceQuery() is false
Complianceoptional This method must be implemented if supportsRuledRaceQuery() is true.
MethodmatchAnyRuledRace
Description

Matches any rule mapped to any race.

Parametersbooleanmatch true for rules mapped to any race, false to match rules mapped to no race
Compliancemandatory This method must be implemented.
MethodclearRuledRaceTerms
Description

Clears the race query terms.

Compliancemandatory This method must be implemented.
MethodmatchPollsId
Description

Matches rules mapped to the polls.

Parametersosid.id.IdpollsId the polls Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT pollsId is null
Compliancemandatory This method must be implemented.
MethodclearPollsIdTerms
Description

Clears the polls Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsPollsQuery
Description

Tests if a PollsQuery is available.

Returnboolean true if a polls query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetPollsQuery
Description

Gets the query for a polls. Multiple retrievals produce a nested OR term.

Returnosid.voting.PollsQuery the polls query
ErrorsUNIMPLEMENTED supportsPollsQuery() is false
Complianceoptional This method must be implemented if supportsPollsQuery() is true.
MethodclearPollsTerms
Description

Clears the polls query terms.

Compliancemandatory This method must be implemented.
MethodgetRaceProcessorQueryRecord
Description

Gets the race processor query record corresponding to the given RaceProcessor record Type.Multiple record retrievals produce a nested OR term.

Parametersosid.type.TyperaceProcessorRecordType a race processor record type
Returnosid.voting.rules.records.RaceProcessorQueryRecord the race processor query record
ErrorsNULL_ARGUMENT raceProcessorRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(raceProcessorRecordType) is false
Compliancemandatory This method must be implemented.