public class DoubleArrayValue extends OOMDPValue
RealValue
attributes
is defined instead of using this class, because the series of individual RealValue
s will have better compatibility with existing BURLAP tools and algorithms,
but this value
can be used in cases where there is a very large number of double values that have to be stored in each state to cut down on memory overhead.Modifier and Type | Field and Description |
---|---|
protected double[] |
doubleArray |
attribute
Constructor and Description |
---|
DoubleArrayValue(Attribute attribute) |
DoubleArrayValue(Attribute attribute,
double[] doubleArray) |
DoubleArrayValue(DoubleArrayValue 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
public DoubleArrayValue(Attribute attribute)
public DoubleArrayValue(DoubleArrayValue v)
public DoubleArrayValue(Attribute attribute, double[] doubleArray)
public Value copy()
Value
public boolean valueHasBeenSet()
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)
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