OSID Logo
OSID Specifications
voting rules package
Version 3.1.0
Interfaceosid.voting.rules.RaceProcessorForm
Implementsosid.OsidProcessorForm
Used Byosid.voting.rules.RaceProcessorAdminSession
Description

This is the form for creating and updating RaceProcessors.Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the RaceProcessorAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetMaximumWinnersMetadata
Description

Gets the metadata for the maximum winners value.

Returnosid.Metadata metadata for the maximum winners
Compliancemandatory This method must be implemented.
MethodsetMaximumWinners
Description

Sets the maximum winners.

Parameterscardinalwinners the maximum winners
ErrorsINVALID_ARGUMENT winners is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearMaximumWinners
Description

Clears the maximum winners value.

Compliancemandatory This method must be implemented.
MethodgetMinimumPercentageToWinMetadata
Description

Gets the metadata for the minimum percentage to win value.

Returnosid.Metadata metadata for the minimum percentage to win
Compliancemandatory This method must be implemented.
MethodsetMinimumPercentageToWin
Description

Sets the minimum percentage to win (0-100).

Parameterscardinalpercentage the mnimum percentage to win
ErrorsINVALID_ARGUMENT percentage is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearMinimumPercentageToWin
Description

Clears the minimum percentage to win value.

Compliancemandatory This method must be implemented.
MethodgetMinimumPVotesToWinMetadata
Description

Gets the metadata for the minimum votes to win value.

Returnosid.Metadata metadata for the minimum votes to win
Compliancemandatory This method must be implemented.
MethodsetMinimumVotesToWin
Description

Sets the minimum votes to win (0-100).

Parameterscardinalvotes the mnimum votes to win
ErrorsINVALID_ARGUMENT votes is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearMinimumVotesToWin
Description

Clears the minimum votes to win value.

Compliancemandatory This method must be implemented.
MethodgetRaceProcessorFormRecord
Description

Gets the RaceProcessorFormRecord corresponding to the given race processor record Type.

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