OSID Logo
OSID Specifications
voting package
Version 3.1.0
Interfaceosid.voting.RaceResult
Implementsosid.OsidCompendium
Used Byosid.voting.RaceResultList
Description

The results for a candidate in a race.

MethodgetRaceId
Description

Geta the race Id of the vote.

Returnosid.id.Id the ballot Id
Compliancemandatory This method must be implemented.
MethodgetRace
Description

Gets the race of the vote.

Returnosid.voting.Race the race
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetCandidateId
Description

Gets the candidate Id.

Returnosid.id.Id a candidate Id
Compliancemandatory This method must be implemented.
MethodgetCandidate
Description

Gets the Candidate.

Returnosid.voting.Candidate the candidate
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetResourceId
Description

Gets the resource Id. A resource represents a voter or group of voters across a demographic.

Returnosid.id.Id a resource Id
Compliancemandatory This method must be implemented.
MethodgetResource
Description

Gets the Resource. A resource represents a voter or group of voters across a demographic.

Returnosid.resource.Resource the resource
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodisFinal
Description

Tests if these results are final.

Returnboolean true if these results are final, false otherwise
Compliancemandatory This method must be implemented.
MethodgetTotalVotes
Description

Gets the total number of votes cast for this candidate.

Returninteger the total number of votes cast
Compliancemandatory This method must be implemented.
MethodgetMeanVotes
Description

Gets the mean number of votes cast for this candidate.

Returndecimal the mean number of votes cast
Compliancemandatory This method must be implemented.
MethodgetMedianVotes
Description

Gets the median number of votes cast for this candidate.

Returninteger the median number of votes cast
Compliancemandatory This method must be implemented.
MethodgetVoteStandardDeviation
Description

Gets the standard deviation of the votes.

Returndecimal the standard deviation
Compliancemandatory This method must be implemented.
MethodgetRaceResultRecord
Description

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

Parametersosid.type.TyperaceResultsRecordType the type of the record to retrieve
Returnosid.voting.records.RaceResultRecord the race results record
ErrorsNULL_ARGUMENT raceResultsRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(raceResultsRecordType) is false
Compliancemandatory This method must be implemented.