com.hack23.cia.model.api.sweden.configuration
Interface BallotResultData

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

public interface BallotResultData
extends BaseBallotResultData

The Interface BallotResultData.


Method Summary
Modifier and Type Method and Description
 void calcWinningPosition()
          Calc winning position.
 long getOpponentVotes()
          Gets the opponent votes.
 VotePosition getWinningPosition()
          Gets the winning position.
 boolean isLosingVote(VoteData vote)
          Checks if is losing vote.
 
Methods inherited from interface com.hack23.cia.model.api.sweden.configuration.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

isLosingVote

boolean isLosingVote(VoteData vote)
Checks if is losing vote.

Parameters:
vote - the vote
Returns:
true, if is losing vote


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