OSID Logo
OSID Specifications
voting package
Version 3.0.0
Release Candidate Preview
Interfaceosid.voting.Race
Implementsosid.OsidGovernator
osid.Subjugateable
Description

An Race defines a competition among Candidates.

MethodgetBallotId
Description

Gets the ballot Id .

Returnosid.id.Idthe ballot Id
CompliancemandatoryThis method must be implemented.
MethodgetBallot
Description

Gets the ballot.

Returnosid.voting.Ballotthe ballot
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetRaceRecord
Description

Gets the race record corresponding to the given Pollstem record Type. This method is used to retrieve an object implementing the requested record. The raceRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(raceRecordType) is true .

Parametersosid.type.TyperaceRecordTypethe race record type
Returnosid.voting.records.RaceRecordthe race record
ErrorsNULL_ARGUMENT raceRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(raceRecordType) is false
CompliancemandatoryThis method must be implemented.