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, waitbuildStringVal, copy, valueHasBeenSetprotected 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 Valuepublic java.lang.String attName()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getStringVal()
ValuegetStringVal in interface Valuepublic int getDiscVal()
getDiscVal in interface Valuepublic double getRealVal()
getRealVal in interface Valuepublic java.util.Set<java.lang.String> getAllRelationalTargets()
ValuegetAllRelationalTargets in interface Valuepublic boolean getBooleanValue()
getBooleanValue in interface Valuepublic int[] getIntArray()
getIntArray in interface Valuepublic double[] getDoubleArray()
getDoubleArray in interface Valuepublic double getNumericRepresentation()
getNumericRepresentation in interface Valuepublic 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 Valuet - the name of the object instance targetpublic Value addAllRelationalTargets(java.util.Collection<java.lang.String> targets)
addAllRelationalTargets in interface Valuepublic Value clearRelationTargets()
clearRelationTargets in interface Valuepublic Value removeRelationalTarget(java.lang.String target)
removeRelationalTarget in interface Valuetarget - the object name identifier to removepublic Value setValue(boolean v)
public Value setValue(int[] intArray)