| Interface | osid.voting.Vote | ||
|---|---|---|---|
| Implements | osid.OsidRelationship | ||
| Description |
A | ||
| Method | getCandidateId | ||
| Description |
Gets the candidate | ||
| Return | osid.id.Id | a candidate Id | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCandidate | ||
| Description |
Gets the | ||
| Return | osid.voting.Candidate | the candidate | |
| Errors | OPERATION_FAILED | unable to complete request | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getVoterId | ||
| Description |
Gets the resource | ||
| Return | osid.id.Id | the resource Id | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getVoter | ||
| Description |
Gets the resource of the voter. | ||
| Return | osid.resource.Resource | the resource | |
| Errors | OPERATION_FAILED | unable to complete request | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getVotingAgentId | ||
| Description |
Gets the agent | ||
| Return | osid.id.Id | the agent Id | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getVotingAgent | ||
| Description |
Gets the agent of the voter. | ||
| Return | osid.authentication.Agent | the agent | |
| Errors | OPERATION_FAILED | unable to complete request | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getVotes | ||
| Description |
Gets the number of votes cast for this candidate. | ||
| Return | integer | the number of votes cast | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getVoteRecord | ||
| Description |
Gets the vote record corresponding to the given | ||
| Parameters | osid.type.Type | voteRecordType | the type of the record to retrieve |
| Return | osid.voting.records.VoteRecord | the vote record | |
| Errors | NULL_ARGUMENT | voteRecordType is null | |
| OPERATION_FAILED | unable to complete request | ||
| UNSUPPORTED | hasRecordType(voteRecordType) is false | ||
| Compliance | mandatory | This method must be implemented. | |