edu.umich.soar.hpp
Class HPPCPTValue

java.lang.Object
  extended by edu.umich.soar.hpp.HPPCPTValue
All Implemented Interfaces:
java.lang.Comparable<HPPCPTValue>

public class HPPCPTValue
extends java.lang.Object
implements java.lang.Comparable<HPPCPTValue>

Unit of a CPT value distribution - (value, probability) pair


Constructor Summary
HPPCPTValue(java.lang.String value, double probability)
          Constructor to set (value, probability) pair
 
Method Summary
 int compareTo(HPPCPTValue v)
           
 java.lang.Double getProbability()
          Supports read-only access to the value probability
 java.lang.String getValue()
          Supports read-only access to the value
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HPPCPTValue

public HPPCPTValue(java.lang.String value,
                   double probability)
Constructor to set (value, probability) pair

Parameters:
value - symbolic value
probability - value probability
Method Detail

getValue

public java.lang.String getValue()
Supports read-only access to the value

Returns:
value's value

getProbability

public java.lang.Double getProbability()
Supports read-only access to the value probability

Returns:
value's probability

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(HPPCPTValue v)
Specified by:
compareTo in interface java.lang.Comparable<HPPCPTValue>