public class DoubleArrayValue extends OOMDPValue
RealValue attributes
is defined instead of using this class, because the series of individual RealValues 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, toStringpublic DoubleArrayValue(Attribute attribute)
public DoubleArrayValue(DoubleArrayValue v)
public DoubleArrayValue(Attribute attribute, double[] doubleArray)
public Value copy()
Valuepublic boolean valueHasBeenSet()
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)
public 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