com.hack23.cia.model.sweden.impl
Class AbstractBallotResult

Package class diagram package AbstractBallotResult
java.lang.Object
  extended by com.hack23.cia.model.common.impl.BaseEntity
      extended by com.hack23.cia.model.sweden.impl.AbstractBallotMetaData
          extended by com.hack23.cia.model.sweden.impl.AbstractBallotResult
All Implemented Interfaces:
Data, MetaData, ModelObject, PersistedModelObject, Resource, ParliamentMetaData, Serializable
Direct Known Subclasses:
BallotResult, PartyBallotResult

@Entity
public abstract class AbstractBallotResult
extends AbstractBallotMetaData

The Class AbstractBallotResult.

See Also:
Serialized Form

Field Summary
protected  long opponentVotes
          The opponent votes.
protected  Vote.Position winningPosition
          The winning position.
protected  long winningVotes
          The winning votes.
 
Fields inherited from class com.hack23.cia.model.sweden.impl.AbstractBallotMetaData
absentVotes, neutralVotes, noVotes, totalVotes, yesVotes
 
Constructor Summary
AbstractBallotResult()
          Instantiates a new abstract ballot result.
 
Method Summary
 void calcWinningPosition()
          Calc winning position.
 long getOpponentVotes()
          Gets the opponent votes.
 Vote.Position getWinningPosition()
          Gets the winning position.
 long getWinningVotes()
          Gets the winning votes.
 void setOpponentVotes(long opponentVotes)
          Sets the opponent votes.
 void setWinningPosition(Vote.Position winningPosition)
          Sets the winning position.
 void setWinningVotes(long winningVotes)
          Sets the winning votes.
 
Methods inherited from class com.hack23.cia.model.sweden.impl.AbstractBallotMetaData
getAbsentVotes, getId, getNeutralVotes, getNoVotes, getTotalVotes, getVersion, getYesVotes, newVote, setAbsentVotes, setId, setNeutralVotes, setNoVotes, setTotalVotes, setVersion, setYesVotes
 
Methods inherited from class com.hack23.cia.model.common.impl.BaseEntity
equals, hashCode, isNew
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hack23.cia.model.common.api.Resource
getResourceType, setResourceType
 
Methods inherited from interface com.hack23.cia.model.common.api.PersistedModelObject
isNew
 

Field Detail

opponentVotes

protected long opponentVotes
The opponent votes.


winningPosition

protected Vote.Position winningPosition
The winning position.


winningVotes

protected long winningVotes
The winning votes.

Constructor Detail

AbstractBallotResult

public AbstractBallotResult()
Instantiates a new abstract ballot result.

Method Detail

calcWinningPosition

public void calcWinningPosition()
Calc winning position.


getOpponentVotes

public long getOpponentVotes()
Gets the opponent votes.

Returns:
the opponent votes

getWinningPosition

public Vote.Position getWinningPosition()
Gets the winning position.

Returns:
the winning position

getWinningVotes

public long getWinningVotes()
Gets the winning votes.

Returns:
the winning votes

setOpponentVotes

public void setOpponentVotes(long opponentVotes)
Sets the opponent votes.

Parameters:
opponentVotes - the new opponent votes

setWinningPosition

public void setWinningPosition(Vote.Position winningPosition)
Sets the winning position.

Parameters:
winningPosition - the new winning position

setWinningVotes

public void setWinningVotes(long winningVotes)
Sets the winning votes.

Parameters:
winningVotes - the new winning votes


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