public class IntValue extends OOMDPValue implements Value
DiscreteValue class should be preferred.| Modifier and Type | Field and Description |
|---|---|
protected int |
intVal
The int value
|
attribute| Constructor and Description |
|---|
IntValue(Attribute attribute)
Initializes for a given attribute.
|
IntValue(Attribute attribute,
int intVal) |
IntValue(IntValue v)
Initializes from an existing IntUnBound value.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuilder |
buildStringVal(java.lang.StringBuilder builder) |
Value |
copy()
Creates a deep copy of this value object.
|
boolean |
equals(java.lang.Object obj) |
boolean |
getBooleanValue()
Returns the boolean value of this attibute.
|
int |
getDiscVal()
Returns the discrete integer value of this Value object
|
double |
getNumericRepresentation()
Returns a numeric representation
|
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(int v)
Sets the internal value representation using an int value
|
Value |
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.
|
addAllRelationalTargets, addRelationalTarget, attName, clearRelationTargets, getAllRelationalTargets, getAttribute, getDoubleArray, getIntArray, getRealVal, getStringVal, removeRelationalTarget, setValue, setValue, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAllRelationalTargets, addRelationalTarget, attName, clearRelationTargets, getAllRelationalTargets, getAttribute, getDoubleArray, getIntArray, getRealVal, getStringVal, removeRelationalTarget, setValue, setValuepublic IntValue(Attribute attribute)
attribute - public IntValue(IntValue v)
v - the value to copypublic IntValue(Attribute attribute, int intVal)
public boolean valueHasBeenSet()
ValuevalueHasBeenSet in interface Valuepublic Value copy()
Valuepublic Value setValue(int v)
OOMDPValuesetValue in interface ValuesetValue in class OOMDPValuev - the int value assignmentpublic Value setValue(double v)
OOMDPValuesetValue in interface ValuesetValue in class OOMDPValuev - the double value assignmentpublic Value setValue(java.lang.String v)
OOMDPValuesetValue in interface ValuesetValue in class OOMDPValuev - the string value assignmentpublic Value setValue(boolean v)
OOMDPValuesetValue in interface ValuesetValue in class OOMDPValuev - the boolean valuepublic int getDiscVal()
OOMDPValuegetDiscVal in interface ValuegetDiscVal in class OOMDPValuepublic java.lang.StringBuilder buildStringVal(java.lang.StringBuilder builder)
buildStringVal in interface Valuepublic double getNumericRepresentation()
OOMDPValuegetNumericRepresentation in interface ValuegetNumericRepresentation in class OOMDPValuepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean getBooleanValue()
OOMDPValuegetBooleanValue in interface ValuegetBooleanValue in class OOMDPValue