public class MultiTargetRelationalValue extends 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, isObservable
Constructor and Description |
---|
MultiTargetRelationalValue(Attribute attribute)
Initializes the value to be associted with the given attribute
|
MultiTargetRelationalValue(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, toString
protected java.util.Set<java.lang.String> targetObjects
public MultiTargetRelationalValue(Attribute attribute)
attribute
- the attribute with which this value is associatedpublic MultiTargetRelationalValue(Value v)
v
- the source Value to make this object a copy of.public Value copy()
Value
public boolean valueHasBeenSet()
Value
valueHasBeenSet
in class Value
public void setValue(int v)
Value
public void setValue(double v)
Value
public void setValue(java.lang.String v)
Value
public void setValue(boolean v)
Value
public void addRelationalTarget(java.lang.String t)
Value
addRelationalTarget
in class Value
t
- the name of the object instance targetpublic void addAllRelationalTargets(java.util.Collection<java.lang.String> targets)
addAllRelationalTargets
in class Value
public void clearRelationTargets()
Value
clearRelationTargets
in class Value
public void removeRelationalTarget(java.lang.String target)
Value
removeRelationalTarget
in class Value
target
- the object name identifier to removepublic int getDiscVal()
Value
getDiscVal
in class Value
public double getRealVal()
Value
getRealVal
in class Value
public java.util.Set<java.lang.String> getAllRelationalTargets()
Value
getAllRelationalTargets
in class Value
public java.lang.String getStringVal()
Value
getStringVal
in class Value
public double getNumericRepresentation()
Value
getNumericRepresentation
in class Value
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean getBooleanValue()
Value
getBooleanValue
in class Value
public void setValue(int[] intArray)
Value
public void setValue(double[] doubleArray)
Value
public int[] getIntArray()
Value
getIntArray
in class Value
public double[] getDoubleArray()
Value
getDoubleArray
in class Value