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

Package class diagram package PartyBallotResult
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
              extended by com.hack23.cia.model.sweden.impl.PartyBallotResult
All Implemented Interfaces:
Data, MetaData, ModelObject, PersistedModelObject, Resource, ParliamentMetaData, Serializable

@Entity
public class PartyBallotResult
extends AbstractBallotResult

The Class PartyBallotResult.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.hack23.cia.model.sweden.impl.AbstractBallotResult
opponentVotes, winningPosition, winningVotes
 
Fields inherited from class com.hack23.cia.model.sweden.impl.AbstractBallotMetaData
absentVotes, neutralVotes, noVotes, totalVotes, yesVotes
 
Constructor Summary
PartyBallotResult()
          Instantiates a new party ballot result.
 
Method Summary
 PoliticalParty getPoliticalParty()
          Gets the political party.
 ResourceType getResourceType()
          Gets the resource type.
 boolean isRebelVote(Vote vote)
          Checks if is rebel vote.
 void setPoliticalParty(PoliticalParty politicalParty)
          Sets the political party.
 void setResourceType(ResourceType resourceType)
          Sets the resource type.
 
Methods inherited from class com.hack23.cia.model.sweden.impl.AbstractBallotResult
calcWinningPosition, getOpponentVotes, getWinningPosition, getWinningVotes, setOpponentVotes, setWinningPosition, setWinningVotes
 
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.PersistedModelObject
isNew
 

Constructor Detail

PartyBallotResult

public PartyBallotResult()
Instantiates a new party ballot result.

Method Detail

getPoliticalParty

public PoliticalParty getPoliticalParty()
Gets the political party.

Returns:
the political party

getResourceType

public ResourceType getResourceType()
Description copied from interface: Resource
Gets the resource type.

Returns:
the resource type

isRebelVote

public boolean isRebelVote(Vote vote)
Checks if is rebel vote.

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

setPoliticalParty

public void setPoliticalParty(PoliticalParty politicalParty)
Sets the political party.

Parameters:
politicalParty - the new political party

setResourceType

public void setResourceType(ResourceType resourceType)
Description copied from interface: Resource
Sets the resource type.

Parameters:
resourceType - the new resource type


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