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)
This function is called in case of the backtrack, so a constraint can
clear the queue of changed variables which is no longer valid.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isStateful
public static final boolean debug
public MutableDomain(Store store)
store
- store in which the mutable domain is created.public MutableVarValue previous()
MutableVar
previous
in interface MutableVar
public void removeLevel(int removeLevel)
Stateful
removeLevel
in interface Stateful
removeLevel
- the level which is being removed.public void setCurrent(MutableVarValue o)
MutableVar
setCurrent
in interface MutableVar
o
- value to which a mutable variable is set.public String toString()
MutableVar
toString
in interface MutableVar
toString
in class Object
public void update(MutableVarValue val)
MutableVar
update
in interface MutableVar
val
- it specifies the new value of a mutable variable.public MutableVarValue value()
MutableVar
value
in interface MutableVar
Copyright © 2022. All rights reserved.