com.hack23.cia.model.api.sweden.content
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 getOpponentVotes()
          Gets the opponent votes.
 VotePosition getWinningPosition()
          Gets the winning position.
 long getWinningVotes()
          Gets the winning votes.
 boolean isRebelVote(VoteData voteForParliamentMember)
          Checks if is rebel vote.
 void setPoliticalPartyData(PoliticalPartyData politicalParty)
          Sets the political party data.
 
Methods inherited from interface com.hack23.cia.model.api.sweden.content.BaseBallotResultData
getAbsentVotes, getTotalVotes, newVote
 
Methods inherited from interface com.hack23.cia.model.api.sweden.common.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.


getOpponentVotes

long getOpponentVotes()
Gets the opponent votes.

Returns:
the opponent 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

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.