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

A Ballot represents a set of races.

MethodcanRevote
Description

Tests if races on this ballot can be modified before the election ends.

Returnboolean true if votes can be modified, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetBallotRecord
Description

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

Parametersosid.type.TypeballotRecordTypethe ballot record type
Returnosid.voting.records.BallotRecordthe ballot record
ErrorsNULL_ARGUMENT ballotRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(ballotRecordType) is false
CompliancemandatoryThis method must be implemented.