public class RelationalValue extends OOMDPValue implements Value
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
target
A string representing the object target of this value.
|
attribute| Constructor and Description |
|---|
RelationalValue(Attribute attribute)
Initializes this value to be an assignment for Attribute attribute.
|
RelationalValue(Attribute attribute,
java.lang.String target) |
RelationalValue(RelationalValue v)
Initializes this value as a copy from the source Value object v.
|
| Modifier and Type | Method and Description |
|---|---|
Value |
addRelationalTarget(java.lang.String t)
adds a relational target for the object instance named t
|
java.lang.StringBuilder |
buildStringVal(java.lang.StringBuilder builder) |
Value |
clearRelationTargets()
Removes any relational targets for this attribute
|
Value |
copy()
Creates a deep copy of this value object.
|
boolean |
equals(java.lang.Object obj) |
java.util.Set<java.lang.String> |
getAllRelationalTargets()
Returns the ordered set of all relational targets of this object.
|
double |
getNumericRepresentation()
Returns a numeric representation
|
Value |
removeRelationalTarget(java.lang.String target)
Removes a specific relational target from the relational value in relational attribute.
|
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, attName, getAttribute, getBooleanValue, getDiscVal, getDoubleArray, getIntArray, getRealVal, getStringVal, setValue, setValue, setValue, setValue, setValue, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAllRelationalTargets, attName, getAttribute, getBooleanValue, getDiscVal, getDoubleArray, getIntArray, getRealVal, getStringVal, setValue, setValue, setValue, setValue, setValueprotected final java.lang.String target
public RelationalValue(Attribute attribute)
attribute - public RelationalValue(RelationalValue v)
v - the source Value to make this object a copy of.public RelationalValue(Attribute attribute, java.lang.String target)
public Value copy()
Valuepublic boolean valueHasBeenSet()
ValuevalueHasBeenSet in interface Valuepublic Value setValue(java.lang.String v)
OOMDPValuesetValue in interface ValuesetValue in class OOMDPValuev - the string value assignmentpublic Value addRelationalTarget(java.lang.String t)
OOMDPValueaddRelationalTarget in interface ValueaddRelationalTarget in class OOMDPValuet - the name of the object instance targetpublic Value clearRelationTargets()
OOMDPValueclearRelationTargets in interface ValueclearRelationTargets in class OOMDPValuepublic Value removeRelationalTarget(java.lang.String target)
OOMDPValueremoveRelationalTarget in interface ValueremoveRelationalTarget in class OOMDPValuetarget - the object name identifier to removepublic java.util.Set<java.lang.String> getAllRelationalTargets()
ValuegetAllRelationalTargets in interface ValuegetAllRelationalTargets 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