|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<K,V> java.util.HashMap edu.indiana.iucbrf.feature.finiteset.KeyToValueToDouble
public class KeyToValueToDouble
This class represents a map from FeatureKey to a HashMap, which in turn maps from FSMFeature attribute value (String) to a MutableDouble.
Constructor Summary | |
---|---|
KeyToValueToDouble(FeatureSpecCollection fsc)
|
Method Summary | |
---|---|
static java.util.HashMap |
constructValueSetToDoubleMap(java.util.HashSet valueSet)
Prepare a HashMap from members of a valueSet to a MutableDouble with value 0. |
double |
getDouble(FeatureKey key,
java.lang.String value)
Returns double associated with the value of an attribute. |
java.util.HashMap |
getDoubles(FeatureKey key)
Returns a map from attribute value (String) to MutableDouble. |
protected MutableDouble |
getMutableDouble(FeatureKey key,
java.lang.String value)
|
void |
incrementDouble(FeatureKey key,
java.lang.String value)
Increments the MutableDouble associated with the value of an attribute. |
void |
reinitDoubles()
Reinitialize the MutableDouble associated with the attribute values, to handle a new list of cases. |
java.lang.String |
toString()
|
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public KeyToValueToDouble(FeatureSpecCollection fsc)
Method Detail |
---|
public static java.util.HashMap constructValueSetToDoubleMap(java.util.HashSet valueSet)
public java.util.HashMap getDoubles(FeatureKey key)
public double getDouble(FeatureKey key, java.lang.String value)
public void incrementDouble(FeatureKey key, java.lang.String value)
public void reinitDoubles()
protected MutableDouble getMutableDouble(FeatureKey key, java.lang.String value)
public java.lang.String toString()
toString
in class java.util.AbstractMap
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |