Interface Race

All Superinterfaces:
Browsable, Extensible, Identifiable, Operable, OsidGovernator, OsidObject, Subjugateable

public interface Race extends OsidGovernator, Subjugateable

An Race defines a competition among Candidates .

  • Method Details

    • getBallotId

      Id getBallotId()
      Gets the ballot Id .
      Returns:
      the ballot Id
      Compliance:
      mandatory - This method must be implemented.
    • getBallot

      Ballot getBallot() throws OperationFailedException
      Gets the ballot.
      Returns:
      the ballot
      Throws:
      OperationFailedException - unable to complete request
      Compliance:
      mandatory - This method must be implemented.
    • getRaceRecord

      RaceRecord getRaceRecord(Type raceRecordType) throws OperationFailedException
      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 .
      Parameters:
      raceRecordType - the race record type
      Returns:
      the race record
      Throws:
      NullArgumentException - raceRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(raceRecordType) is false
      Compliance:
      mandatory - This method must be implemented.