public class MultiTargetRelationalValue extends OOMDPValue implements Value
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<java.lang.String> |
targetObjects
The set of object targets to which this value points.
|
attribute
Constructor and Description |
---|
MultiTargetRelationalValue(Attribute attribute)
Initializes the value to be associted with the given attribute
|
MultiTargetRelationalValue(Attribute attribute,
java.util.Collection<java.lang.String> targets) |
MultiTargetRelationalValue(MultiTargetRelationalValue v)
Initializes this value as a copy from the source Value object v.
|
Modifier and Type | Method and Description |
---|---|
Value |
addAllRelationalTargets(java.util.Collection<java.lang.String> targets) |
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.
|
attName, getAttribute, getBooleanValue, getDiscVal, getDoubleArray, getIntArray, getRealVal, getStringVal, setValue, setValue, setValue, setValue, setValue, toString
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
attName, getAttribute, getBooleanValue, getDiscVal, getDoubleArray, getIntArray, getRealVal, getStringVal, setValue, setValue, setValue, setValue, setValue
protected final java.util.Set<java.lang.String> targetObjects
public MultiTargetRelationalValue(Attribute attribute)
attribute
- the attribute with which this value is associatedpublic MultiTargetRelationalValue(MultiTargetRelationalValue v)
v
- the source Value to make this object a copy of.public MultiTargetRelationalValue(Attribute attribute, java.util.Collection<java.lang.String> targets)
public Value copy()
Value
public boolean valueHasBeenSet()
Value
valueHasBeenSet
in interface Value
public Value setValue(java.lang.String v)
OOMDPValue
setValue
in interface Value
setValue
in class OOMDPValue
v
- the string value assignmentpublic Value addRelationalTarget(java.lang.String t)
OOMDPValue
addRelationalTarget
in interface Value
addRelationalTarget
in class OOMDPValue
t
- the name of the object instance targetpublic Value addAllRelationalTargets(java.util.Collection<java.lang.String> targets)
addAllRelationalTargets
in interface Value
addAllRelationalTargets
in class OOMDPValue
public Value clearRelationTargets()
OOMDPValue
clearRelationTargets
in interface Value
clearRelationTargets
in class OOMDPValue
public Value removeRelationalTarget(java.lang.String target)
OOMDPValue
removeRelationalTarget
in interface Value
removeRelationalTarget
in class OOMDPValue
target
- the object name identifier to removepublic java.util.Set<java.lang.String> getAllRelationalTargets()
Value
getAllRelationalTargets
in interface Value
getAllRelationalTargets
in class OOMDPValue
public java.lang.StringBuilder buildStringVal(java.lang.StringBuilder builder)
buildStringVal
in interface Value
public double getNumericRepresentation()
OOMDPValue
getNumericRepresentation
in interface Value
getNumericRepresentation
in class OOMDPValue
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object