OSID Logo
OSID Specifications
voting package
Version 3.0.0
Interfaceosid.voting.Ballot
Implementsosid.OsidGovernator
osid.Temporal
Used Byosid.voting.BallotAdminSession
osid.voting.BallotAuthoringSession
osid.voting.BallotList
osid.voting.BallotLookupSession
osid.voting.Race
Description

A Ballot represents a set of races.

MethodgetCommissionerIds
Description

Gets the Ids of the commissioners.

Returnosid.id.IdListthe commissioner Ids
CompliancemandatoryThis method must be implemented.
MethodgetCommissioners
Description

Gets the commissioners.

Returnosid.resource.ResourceListthe commissioners
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodcanRevote
Description

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

Returnbooleantrue 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_ARGUMENTballotRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(ballotRecordType) is false
CompliancemandatoryThis method must be implemented.