org.jscience.politics.vote
Class Ballot

java.lang.Object
  extended by org.jscience.politics.vote.Ballot
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
BinaryBallot, RankedBallot

public abstract class Ballot
extends java.lang.Object
implements java.lang.Cloneable

This class represents the different choices available to someone in a specific vote session.


Constructor Summary
Ballot()
           
 
Method Summary
abstract  void addChoice(java.lang.String title)
          DOCUMENT ME!
abstract  void addOptionToChoice(java.lang.String title, java.lang.String option)
          DOCUMENT ME!
abstract  java.lang.Object clone()
          DOCUMENT ME!
abstract  java.util.Set getChoices()
          DOCUMENT ME!
abstract  java.util.Set getOptionsForChoice(java.lang.String title)
          DOCUMENT ME!
abstract  boolean isOptionSelected(java.lang.String title, java.lang.String option)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ballot

public Ballot()
Method Detail

addChoice

public abstract void addChoice(java.lang.String title)
DOCUMENT ME!

Parameters:
title - DOCUMENT ME!

addOptionToChoice

public abstract void addOptionToChoice(java.lang.String title,
                                       java.lang.String option)
DOCUMENT ME!

Parameters:
title - DOCUMENT ME!
option - DOCUMENT ME!

getChoices

public abstract java.util.Set getChoices()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getOptionsForChoice

public abstract java.util.Set getOptionsForChoice(java.lang.String title)
DOCUMENT ME!

Parameters:
title - DOCUMENT ME!
Returns:
DOCUMENT ME!

isOptionSelected

public abstract boolean isOptionSelected(java.lang.String title,
                                         java.lang.String option)
DOCUMENT ME!

Parameters:
title - DOCUMENT ME!
option - DOCUMENT ME!
Returns:
DOCUMENT ME!

clone

public abstract java.lang.Object clone()
DOCUMENT ME!

Overrides:
clone in class java.lang.Object
Returns:
DOCUMENT ME!