public interface Race extends OsidGovernator, Aggregateable, Subjugateable
An Race
defines a competition among Candidates.
Modifier and Type | Method and Description |
---|---|
Ballot |
getBallot()
Gets the ballot.
|
Id |
getBallotId()
Gets the ballot
Id . |
IdList |
getCandidateIds()
Gets the candidate
Ids in this race. |
CandidateList |
getCandidates()
Gets the candidates in this race.
|
RaceRecord |
getRaceRecord(Type raceRecordType)
Gets the race record corresponding to the given
Pollstem
record Type. |
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
isActive, isDisabled, isEnabled, isOperational
getBranding, getBrandingIds, getLicense, getProvider, getProviderId
Id getBallotId()
Id
. Id
mandatory
- This method must be implemented. Ballot getBallot() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. IdList getCandidateIds()
Ids
in this race. Ids
mandatory
- This method must be implemented. CandidateList getCandidates() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. RaceRecord getRaceRecord(Type raceRecordType) throws OperationFailedException
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
.raceRecordType
- the race record typeNullArgumentException
- raceRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(raceRecordType)
is false
mandatory
- This method must be implemented.