OSID Logo
OSID Specifications
voting package
Version 3.1.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.IdList the commissioner Ids
Compliancemandatory This method must be implemented.
MethodgetCommissioners
Description

Gets the commissioners.

Returnosid.resource.ResourceList the commissioners
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodcanRevote
Description

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

Returnboolean true if votes can be modified, false otherwise
Compliancemandatory This 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.TypeballotRecordType the ballot record type
Returnosid.voting.records.BallotRecord the ballot record
ErrorsNULL_ARGUMENT ballotRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(ballotRecordType) is false
Compliancemandatory This method must be implemented.