public class IntArrayValue extends Value
IntValue attributes
is defined instead of using this class, because a series of IntValues will have better compatibility with existing BURLAP tools and algorithms, but this class
can be used in cases where there is a very large number of int values that have to be stored in each state to cut down on memory overhead.| Modifier and Type | Field and Description |
|---|---|
protected int[] |
intArray |
attribute, isObservable| Constructor and Description |
|---|
IntArrayValue(Attribute attribute) |
IntArrayValue(Value 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, toStringpublic IntArrayValue(Attribute attribute)
public IntArrayValue(Value v)
public Value copy()
Valuepublic boolean valueHasBeenSet()
ValuevalueHasBeenSet in class Valuepublic void setValue(int v)
Valuepublic void setValue(double 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.lang.String getStringVal()
ValuegetStringVal in class Valuepublic java.util.Set<java.lang.String> getAllRelationalTargets()
ValuegetAllRelationalTargets in class Valuepublic boolean getBooleanValue()
ValuegetBooleanValue in class Valuepublic double getNumericRepresentation()
ValuegetNumericRepresentation in class Valuepublic void setValue(int[] intArray)
Valuepublic void setValue(double[] doubleArray)
Valuepublic int[] getIntArray()
ValuegetIntArray in class Valuepublic double[] getDoubleArray()
ValuegetDoubleArray in class Valuepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object