public class StringValue extends OOMDPValue implements Value
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
stringVal
The string value
|
attribute| Constructor and Description |
|---|
StringValue(Attribute attribute)
Initializes for a given attribute.
|
StringValue(Attribute attribute,
java.lang.String stringVal) |
StringValue(StringValue v)
Initializes from an existing value.
|
| 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) |
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, getNumericRepresentation, getRealVal, getStringVal, removeRelationalTarget, setValue, setValue, setValue, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAllRelationalTargets, addRelationalTarget, attName, clearRelationTargets, getAllRelationalTargets, getAttribute, getBooleanValue, getDiscVal, getDoubleArray, getIntArray, getNumericRepresentation, getRealVal, getStringVal, removeRelationalTarget, setValue, setValue, setValuepublic StringValue(Attribute attribute)
attribute - public StringValue(StringValue v)
v - the value to copypublic StringValue(Attribute attribute, java.lang.String stringVal)
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 java.lang.StringBuilder buildStringVal(java.lang.StringBuilder builder)
buildStringVal in interface Valuepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object