public class RealValue extends OOMDPValue implements Value
| Modifier and Type | Field and Description |
|---|---|
protected double |
realVal
The real value stored as a double.
|
attribute| Constructor and Description |
|---|
RealValue(Attribute attribute)
Initializes this value to be an assignment for Attribute attribute.
|
RealValue(Attribute attribute,
double realVal) |
RealValue(RealValue v)
Initializes this value as a copy from the source Value object 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 |
getNumericRepresentation()
Returns a numeric representation
|
double |
getRealVal()
Returns the real-valued double value of this Value object
|
Value |
setValue(double v)
Sets the internal value representation using a double value
|
Value |
setValue(int v)
Sets the internal value representation using an int 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, getDoubleArray, getIntArray, getStringVal, removeRelationalTarget, setValue, setValue, setValue, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAllRelationalTargets, addRelationalTarget, attName, clearRelationTargets, getAllRelationalTargets, getAttribute, getBooleanValue, getDiscVal, getDoubleArray, getIntArray, getStringVal, removeRelationalTarget, setValue, setValue, setValueprotected final double realVal
public RealValue(Attribute attribute)
attribute - public RealValue(RealValue v)
v - the source Value to make this object a copy of.public RealValue(Attribute attribute, double realVal)
public Value copy()
Valuepublic boolean valueHasBeenSet()
ValuevalueHasBeenSet in interface Valuepublic Value setValue(int v)
OOMDPValuesetValue in interface ValuesetValue in class OOMDPValuev - the int value assignmentpublic Value setValue(double v)
OOMDPValuesetValue in interface ValuesetValue in class OOMDPValuev - the double value assignmentpublic Value setValue(java.lang.String v)
OOMDPValuesetValue in interface ValuesetValue in class OOMDPValuev - the string value assignmentpublic double getRealVal()
OOMDPValuegetRealVal in interface ValuegetRealVal in class OOMDPValuepublic java.lang.StringBuilder buildStringVal(java.lang.StringBuilder builder)
buildStringVal in interface Valuepublic double getNumericRepresentation()
OOMDPValuegetNumericRepresentation in interface ValuegetNumericRepresentation in class OOMDPValuepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object