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

Package class diagram package BallotResult
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.BallotResult
All Implemented Interfaces:
Data, MetaData, ModelObject, PersistedModelObject, Resource, ParliamentMetaData, Serializable

@Entity
public class BallotResult
extends AbstractBallotResult

The Class BallotResult.

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
BallotResult()
          Instantiates a new ballot result.
 
Method Summary
 ResourceType getResourceType()
          Gets the resource type.
 boolean isLosingVote(Vote vote)
          Checks if is losing vote.
 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

BallotResult

public BallotResult()
Instantiates a new ballot result.

Method Detail

getResourceType

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

Returns:
the resource type

isLosingVote

public boolean isLosingVote(Vote vote)
Checks if is losing vote.

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

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.