org.gswing.components.common
Class ListVote

java.lang.Object
  extended by org.gswing.components.common.Vote
      extended by org.gswing.components.common.ListVote

public class ListVote
extends Vote

Purpose: Represents a vote in a List election..


Constructor Summary
ListVote(int constituency, int electionNo, int votes, String party)
          Constructor.
 
Method Summary
 String getParty()
          The party that recieved the votes.
 
Methods inherited from class org.gswing.components.common.Vote
getConstituency, getElectionNo, getVotes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListVote

public ListVote(int constituency,
                int electionNo,
                int votes,
                String party)
Constructor.

Parameters:
constituency - The unique constituency number.
electionNo - The unique election number.
votes - The number of votes for a particular candidate / party.
party - The party (abbreviation) that recieved the votes.
Method Detail

getParty

public String getParty()
The party that recieved the votes.

Returns:
The politiacl party.


Copyright © 2008. All Rights Reserved.