public abstract class OOMDPValue extends java.lang.Object implements Value
Constructor and Description |
---|
OOMDPValue(Attribute attribute)
Initializes this value to be an assignment for Attribute attribute.
|
OOMDPValue(OOMDPValue 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.String |
attName()
The name of the Attribute object for which this is a value assignment.
|
Value |
clearRelationTargets()
Removes any relational targets for this attribute
|
java.util.Set<java.lang.String> |
getAllRelationalTargets()
Returns the ordered set of all relational targets of this object.
|
Attribute |
getAttribute()
Returns the Attribute object for which this is a value assignment.
|
boolean |
getBooleanValue()
Returns the boolean value of this attibute.
|
int |
getDiscVal()
Returns the discrete integer value of this Value object
|
double[] |
getDoubleArray()
Returns a double array value
|
int[] |
getIntArray()
Returns an int array value
|
double |
getNumericRepresentation()
Returns a numeric representation
|
double |
getRealVal()
Returns the real-valued double value of this Value object
|
java.lang.String |
getStringVal()
Returns the string value of this Value object
|
Value |
removeRelationalTarget(java.lang.String target)
Removes a specific relational target from the relational value in relational attribute.
|
Value |
setValue(boolean v)
Sets the internalvalue representation using a boolean value
|
Value |
setValue(double v)
Sets the internal value representation using a double value
|
Value |
setValue(double[] doubleArray)
Sets the double array value.
|
Value |
setValue(int v)
Sets the internal value representation using an int 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
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
buildStringVal, copy, valueHasBeenSet
protected Attribute attribute
public OOMDPValue(Attribute attribute)
attribute
- public OOMDPValue(OOMDPValue v)
v
- the source Value to make this object a copy of.public Attribute getAttribute()
getAttribute
in interface Value
public java.lang.String attName()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getStringVal()
Value
getStringVal
in interface Value
public int getDiscVal()
getDiscVal
in interface Value
public double getRealVal()
getRealVal
in interface Value
public java.util.Set<java.lang.String> getAllRelationalTargets()
Value
getAllRelationalTargets
in interface Value
public boolean getBooleanValue()
getBooleanValue
in interface Value
public int[] getIntArray()
getIntArray
in interface Value
public double[] getDoubleArray()
getDoubleArray
in interface Value
public double getNumericRepresentation()
getNumericRepresentation
in interface Value
public Value setValue(int v)
public Value setValue(double v)
public Value setValue(java.lang.String v)
public Value addRelationalTarget(java.lang.String t)
addRelationalTarget
in interface Value
t
- the name of the object instance targetpublic Value addAllRelationalTargets(java.util.Collection<java.lang.String> targets)
addAllRelationalTargets
in interface Value
public Value clearRelationTargets()
clearRelationTargets
in interface Value
public Value removeRelationalTarget(java.lang.String target)
removeRelationalTarget
in interface Value
target
- the object name identifier to removepublic Value setValue(boolean v)
public Value setValue(int[] intArray)