com.hack23.cia.model.api.sweden
Interface PartyBallotResultData

Package class diagram package PartyBallotResultData
All Superinterfaces:
BaseBallotResultData, Data, MetaData, ModelObject, ParliamentMetaData, PersistedModelObject, Resource, Serializable
All Known Implementing Classes:
PartyBallotResult

public interface PartyBallotResultData
extends BaseBallotResultData

The Interface PartyBallotResultData.


Method Summary
 void calcWinningPosition()
          Calc winning position.
 long getAbsentVotes()
          Gets the absent votes.
 long getOpponentVotes()
          Gets the opponent votes.
 long getTotalVotes()
          Gets the total votes.
 VotePosition getWinningPosition()
          Gets the winning position.
 long getWinningVotes()
          Gets the winning votes.
 boolean isRebelVote(VoteData voteForParliamentMember)
          Checks if is rebel vote.
 void newVote(VoteData vote)
          New vote.
 void setPoliticalPartyData(PoliticalPartyData politicalParty)
          Sets the political party data.
 
Methods inherited from interface com.hack23.cia.model.api.sweden.ParliamentMetaData
getCreatedDate
 
Methods inherited from interface com.hack23.cia.model.api.common.Resource
getResourceType
 
Methods inherited from interface com.hack23.cia.model.api.common.PersistedModelObject
getId, getTypeContext, getVersion, isNew, setId, setVersion
 

Method Detail

calcWinningPosition

void calcWinningPosition()
Calc winning position.


getAbsentVotes

long getAbsentVotes()
Gets the absent votes.

Returns:
the absent votes

getOpponentVotes

long getOpponentVotes()
Gets the opponent votes.

Returns:
the opponent votes

getTotalVotes

long getTotalVotes()
Gets the total votes.

Returns:
the total votes

getWinningPosition

VotePosition getWinningPosition()
Gets the winning position.

Returns:
the winning position

getWinningVotes

long getWinningVotes()
Gets the winning votes.

Returns:
the winning votes

isRebelVote

boolean isRebelVote(VoteData voteForParliamentMember)
Checks if is rebel vote.

Parameters:
voteForParliamentMember - the vote for parliament member
Returns:
true, if is rebel vote

newVote

void newVote(VoteData vote)
New vote.

Parameters:
vote - the vote

setPoliticalPartyData

void setPoliticalPartyData(PoliticalPartyData politicalParty)
Sets the political party data.

Parameters:
politicalParty - the new political party data


Copyright © 2008-2009 www.hack23.com. All Rights Reserved.