XPUSP - Home

br.usp.ime.xpusp.om
Class ElectivePoolResults

java.lang.Object
  |
  +--br.usp.ime.xpusp.om.ElectivePoolResults

public class ElectivePoolResults
extends java.lang.Object

This class is used to Order the ElectivePoolResults

SourceForge LogoSource Forge Info
CVS File :ElectivePoolResults.java
User :krico
Version :1.1
Date :2002/03/05 08:29:38


Field Summary
(package private)  int[] choiceVotes
           
(package private)  Discipline discipline
           
 
Constructor Summary
ElectivePoolResults(Discipline discipline)
           
 
Method Summary
 void add(ElectivePool ep)
          Add an electivepool
 int[] getChoiceVotes()
          Get the value of choiceVotes.
 Discipline getDiscipline()
          Get the value of discipline.
 java.util.Vector getVotes()
           
 void setChoiceVotes(int[] v)
          Set the value of choiceVotes.
 void setDiscipline(Discipline v)
          Set the value of discipline.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

discipline

Discipline discipline

choiceVotes

int[] choiceVotes
Constructor Detail

ElectivePoolResults

public ElectivePoolResults(Discipline discipline)
                    throws java.lang.Exception
Method Detail

getChoiceVotes

public int[] getChoiceVotes()
Get the value of choiceVotes.
Returns:
int[10] of Integers with the votes ordered by choice where poision x is the number of votes for that choice

getVotes

public java.util.Vector getVotes()
Returns:
a vector of Integers for choiceVotes

setChoiceVotes

public void setChoiceVotes(int[] v)
Set the value of choiceVotes.
Parameters:
v - Value to assign to choiceVotes.

getDiscipline

public Discipline getDiscipline()
Get the value of discipline.
Returns:
value of discipline.

setDiscipline

public void setDiscipline(Discipline v)
Set the value of discipline.
Parameters:
v - Value to assign to discipline.

add

public void add(ElectivePool ep)
Add an electivepool

XPUSP - Home