public class RelationalValue extends Value
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
target
A string representing the object target of this value.
|
attribute, isObservable| Constructor and Description |
|---|
RelationalValue(Attribute attribute)
Initializes this value to be an assignment for Attribute attribute.
|
RelationalValue(Value v)
Initializes this value as a copy from the source Value object v.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAllRelationalTargets(java.util.Collection<java.lang.String> targets) |
void |
addRelationalTarget(java.lang.String t)
adds a relational target for the object instance named t
|
void |
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.
|
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 double representation of this value.
|
double |
getRealVal()
Returns the real-valued double value of this Value object
|
java.lang.String |
getStringVal()
Returns the string value of this Value object
|
void |
removeRelationalTarget(java.lang.String target)
Removes a specific relational target from the relational value in relational attribute.
|
void |
setValue(boolean v)
Sets the internalvalue representation using a boolean value
|
void |
setValue(double v)
Sets the internal value representation using a double value
|
void |
setValue(double[] doubleArray)
Sets the double array value.
|
void |
setValue(int v)
Sets the internal value representation using an int value
|
void |
setValue(int[] intArray)
Sets the int array value.
|
void |
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, isObservable, setObservability, toStringprotected java.lang.String target
public RelationalValue(Attribute attribute)
attribute - public RelationalValue(Value v)
v - the source Value to make this object a copy of.public Value copy()
Valuepublic boolean valueHasBeenSet()
ValuevalueHasBeenSet in class Valuepublic void setValue(int v)
Valuepublic void setValue(double v)
Valuepublic void setValue(boolean v)
Valuepublic void setValue(java.lang.String v)
Valuepublic void addRelationalTarget(java.lang.String t)
ValueaddRelationalTarget in class Valuet - the name of the object instance targetpublic void addAllRelationalTargets(java.util.Collection<java.lang.String> targets)
addAllRelationalTargets in class Valuepublic void clearRelationTargets()
ValueclearRelationTargets in class Valuepublic void removeRelationalTarget(java.lang.String target)
ValueremoveRelationalTarget in class Valuetarget - the object name identifier to removepublic int getDiscVal()
ValuegetDiscVal in class Valuepublic double getRealVal()
ValuegetRealVal in class Valuepublic java.util.Set<java.lang.String> getAllRelationalTargets()
ValuegetAllRelationalTargets in class Valuepublic java.lang.String getStringVal()
ValuegetStringVal in class Valuepublic double getNumericRepresentation()
ValuegetNumericRepresentation in class Valuepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean getBooleanValue()
ValuegetBooleanValue in class Valuepublic void setValue(int[] intArray)
Valuepublic void setValue(double[] doubleArray)
Valuepublic int[] getIntArray()
ValuegetIntArray in class Valuepublic double[] getDoubleArray()
ValuegetDoubleArray in class Value