org.bolson.vote
Class NamedHistogram.Choice

java.lang.Object
  extended by org.bolson.vote.NamedHistogram.Choice
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
NamedHistogram

protected class NamedHistogram.Choice
extends java.lang.Object
implements java.lang.Comparable


Field Summary
 int[] counts
           
 java.lang.String name
           
 double sum
           
 int votes
           
 
Constructor Summary
NamedHistogram.Choice(java.lang.String nameIn, int buckets)
           
 
Method Summary
 int compareTo(java.lang.Object bi)
           
 void vote(float rating)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

counts

public int[] counts

votes

public int votes

sum

public double sum

name

public java.lang.String name
Constructor Detail

NamedHistogram.Choice

public NamedHistogram.Choice(java.lang.String nameIn,
                             int buckets)
Method Detail

vote

public void vote(float rating)

compareTo

public int compareTo(java.lang.Object bi)
              throws java.lang.ClassCastException
Specified by:
compareTo in interface java.lang.Comparable
Throws:
java.lang.ClassCastException