public class IntArrayValue extends OOMDPValue implements Value
IntValue
attributes
is defined instead of using this class, because a series of IntValue
s 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, toString
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAllRelationalTargets, addRelationalTarget, attName, clearRelationTargets, getAllRelationalTargets, getAttribute, getBooleanValue, getDiscVal, getRealVal, getStringVal, removeRelationalTarget, setValue, setValue, setValue
public IntArrayValue(Attribute attribute)
public IntArrayValue(IntArrayValue v)
public IntArrayValue(Attribute attribute, int[] intArray)
public Value copy()
Value
public boolean valueHasBeenSet()
Value
valueHasBeenSet
in interface Value
public Value setValue(java.lang.String v)
OOMDPValue
setValue
in interface Value
setValue
in class OOMDPValue
v
- the string value assignmentpublic java.lang.StringBuilder buildStringVal(java.lang.StringBuilder builder)
buildStringVal
in interface Value
public double getNumericRepresentation()
OOMDPValue
getNumericRepresentation
in interface Value
getNumericRepresentation
in class OOMDPValue
public Value setValue(int[] intArray)
OOMDPValue
setValue
in interface Value
setValue
in class OOMDPValue
intArray
- the int array value to set.public Value setValue(double[] doubleArray)
OOMDPValue
setValue
in interface Value
setValue
in class OOMDPValue
doubleArray
- the double array value to set.public int[] getIntArray()
OOMDPValue
getIntArray
in interface Value
getIntArray
in class OOMDPValue
public double[] getDoubleArray()
OOMDPValue
getDoubleArray
in interface Value
getDoubleArray
in class OOMDPValue
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object