public class MutableDomain extends Object implements MutableVar
| Modifier and Type | Field and Description |
|---|---|
static boolean |
debug
It specifies if debugging info should be printed out.
|
| Constructor and Description |
|---|
MutableDomain(Store store) |
MutableDomain(Store store,
IntDomain domain) |
| Modifier and Type | Method and Description |
|---|---|
MutableVarValue |
previous()
It returns the earlier value of variable comparing to the current one.
|
void |
removeLevel(int removeLevel)
It removes given level from mutable variable.
|
void |
setCurrent(MutableVarValue o)
It replace the current representation of the value with a new
representation.
|
String |
toString()
It returns string representation of Mutable variable.
|
void |
update(MutableVarValue val)
It updates the value of a mutable variable based on value given as a
parameter, the stamp level of current value and stamp value of passed
value.
|
MutableVarValue |
value()
It returns current value of MutableVariable.
|
public static final boolean debug
public MutableDomain(Store store)
store - store in which the mutable domain is created.public MutableVarValue previous()
MutableVarprevious in interface MutableVarpublic void removeLevel(int removeLevel)
MutableVarremoveLevel in interface MutableVarremoveLevel - it specifies the level which is being removed.public void setCurrent(MutableVarValue o)
MutableVarsetCurrent in interface MutableVaro - value to which a mutable variable is set.public String toString()
MutableVartoString in interface MutableVartoString in class Objectpublic void update(MutableVarValue val)
MutableVarupdate in interface MutableVarval - it specifies the new value of a mutable variable.public MutableVarValue value()
MutableVarvalue in interface MutableVarCopyright © 2016. All rights reserved.