|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gswing.components.common.Vote
public abstract class Vote
Purpose: Abstract class provides what the attributes that each vote should consist of.
| Constructor Summary | |
|---|---|
Vote(int constituency,
int electionNo,
int votes)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getConstituency()
Get the contituency identifier of this vote. |
int |
getElectionNo()
Get the election number of this vote. |
int |
getVotes()
Get the number of votes for this vote. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Vote(int constituency,
int electionNo,
int votes)
constituency - The constituency name.electionNo - The unique election number.votes - The number of votes for a particular candidate / party.| Method Detail |
|---|
public int getConstituency()
public int getElectionNo()
public int getVotes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||