OSID Logo
OSID Specifications
voting package
Version 3.1.0
Interfaceosid.voting.Race
Implementsosid.OsidGovernator
osid.Subjugateable
Used Byosid.voting.Candidate
osid.voting.RaceAdminSession
osid.voting.RaceList
osid.voting.RaceLookupSession
osid.voting.RaceResult
osid.voting.VoterAllocation
osid.voting.VotingSession
Description

An Race defines a competition among Candidates.

MethodgetBallotId
Description

Gets the ballot Id.

Returnosid.id.Id the ballot Id
Compliancemandatory This method must be implemented.
MethodgetBallot
Description

Gets the ballot.

Returnosid.voting.Ballot the ballot
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This 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.TyperaceRecordType the race record type
Returnosid.voting.records.RaceRecord the race record
ErrorsNULL_ARGUMENT raceRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(raceRecordType) is false
Compliancemandatory This method must be implemented.