JaCoP.core
Interface MutableVar

All Known Implementing Classes:
MutableDomain

public interface MutableVar

Standard mutable variable definition

Version:
3.1
Author:
Krzysztof Kuchcinski and Radoslaw Szymanek

Method Summary
 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.
 java.lang.String toString()
          It returns string representation of Mutable variable.
 void update(MutableVarValue value)
          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.
 

Method Detail

previous

MutableVarValue previous()
It returns the earlier value of variable comparing to the current one.

Returns:
previous value of a mutable variable.

removeLevel

void removeLevel(int removeLevel)
It removes given level from mutable variable.

Parameters:
removeLevel - it specifies the level which is being removed.

setCurrent

void setCurrent(MutableVarValue o)
It replace the current representation of the value with a new representation. It ignores the store level.

Parameters:
o - value to which a mutable variable is set.

toString

java.lang.String toString()
It returns string representation of Mutable variable.

Overrides:
toString in class java.lang.Object

update

void update(MutableVarValue value)
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.

Parameters:
value - it specifies the new value of a mutable variable.

value

MutableVarValue value()
It returns current value of MutableVariable.

Returns:
current value of the mutable variable.