public class DiscretizingStateHashFactory.DiscretizedStateHashTuple extends StateHashTuple
DiscretizingStateHashFactory class.hashCode, needToRecomputeHashCode, s| Constructor and Description |
|---|
DiscretizingStateHashFactory.DiscretizedStateHashTuple(State s) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeHashCode()
This method computes the hashCode for this object and saves it to the
hashCode field beloning to the abstract class. |
boolean |
equals(java.lang.Object other) |
protected int |
getDiscrteizedValue(Attribute att,
double val) |
protected int |
intArrayCode(int[] array)
Returns an int value for an int array
|
protected boolean |
objectsMatch(ObjectInstance o,
ObjectInstance oo)
Compares the values for each attribute of the objects, assuming they are the same class.
|
hashCodepublic DiscretizingStateHashFactory.DiscretizedStateHashTuple(State s)
public void computeHashCode()
StateHashTuplehashCode field beloning to the abstract class.computeHashCode in class StateHashTupleprotected int intArrayCode(int[] array)
array - the int arrayprotected int getDiscrteizedValue(Attribute att, double val)
public boolean equals(java.lang.Object other)
equals in class StateHashTupleprotected boolean objectsMatch(ObjectInstance o, ObjectInstance oo)
o - one object to compareoo - another object to compare that is assumed to be the same class