public class IntArrayValue extends OOMDPValue implements Value
IntValue attributes
is defined instead of using this class, because a series of IntValues will have better compatibility with existing BURLAP tools and algorithms, but this class
can be used in cases where there is a very large number of int values that have to be stored in each state to cut down on memory overhead.| Modifier and Type | Field and Description |
|---|---|
protected int[] |
intArray |
attribute| Constructor and Description |
|---|
IntArrayValue(Attribute attribute) |
IntArrayValue(Attribute attribute,
int[] intArray) |
IntArrayValue(IntArrayValue v) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuilder |
buildStringVal(java.lang.StringBuilder builder) |
Value |
copy()
Creates a deep copy of this value object.
|
boolean |
equals(java.lang.Object obj) |
double[] |
getDoubleArray()
Returns a double array value
|
int[] |
getIntArray()
Returns an int array value
|
double |
getNumericRepresentation()
Returns a numeric representation
|
Value |
setValue(double[] doubleArray)
Sets the double array value.
|
Value |
setValue(int[] intArray)
Sets the int array value.
|
Value |
setValue(java.lang.String v)
Sets the internal value representation using a string value
|
boolean |
valueHasBeenSet()
Returns whether the value has been set to a meaningful value.
|
addAllRelationalTargets, addRelationalTarget, attName, clearRelationTargets, getAllRelationalTargets, getAttribute, getBooleanValue, getDiscVal, getRealVal, getStringVal, removeRelationalTarget, setValue, setValue, setValue, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAllRelationalTargets, addRelationalTarget, attName, clearRelationTargets, getAllRelationalTargets, getAttribute, getBooleanValue, getDiscVal, getRealVal, getStringVal, removeRelationalTarget, setValue, setValue, setValuepublic IntArrayValue(Attribute attribute)
public IntArrayValue(IntArrayValue v)
public IntArrayValue(Attribute attribute, int[] intArray)
public Value copy()
Valuepublic boolean valueHasBeenSet()
ValuevalueHasBeenSet in interface Valuepublic Value setValue(java.lang.String v)
OOMDPValuesetValue in interface ValuesetValue in class OOMDPValuev - the string value assignmentpublic java.lang.StringBuilder buildStringVal(java.lang.StringBuilder builder)
buildStringVal in interface Valuepublic double getNumericRepresentation()
OOMDPValuegetNumericRepresentation in interface ValuegetNumericRepresentation in class OOMDPValuepublic Value setValue(int[] intArray)
OOMDPValuesetValue in interface ValuesetValue in class OOMDPValueintArray - the int array value to set.public Value setValue(double[] doubleArray)
OOMDPValuesetValue in interface ValuesetValue in class OOMDPValuedoubleArray - the double array value to set.public int[] getIntArray()
OOMDPValuegetIntArray in interface ValuegetIntArray in class OOMDPValuepublic double[] getDoubleArray()
OOMDPValuegetDoubleArray in interface ValuegetDoubleArray in class OOMDPValuepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object