Package org.chocosolver.memory.trailing
Class StoredLong
- java.lang.Object
-
- org.chocosolver.memory.IStateLong
-
- org.chocosolver.memory.trailing.StoredLong
-
public class StoredLong extends IStateLong
A class implementing backtrackable long.
-
-
Field Summary
Fields Modifier and Type Field Description protected IStoredLongTrail
myTrail
-
Fields inherited from class org.chocosolver.memory.IStateLong
currentValue, environment, timeStamp
-
-
Constructor Summary
Constructors Constructor Description StoredLong(EnvironmentTrailing env, long i)
Constructs a stored search with an initial value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
set(long y)
Modifies the value and stores if needed the former value on the trailing stack.-
Methods inherited from class org.chocosolver.memory.IStateLong
_set, get, overrideTimeStamp, toString
-
-
-
-
Field Detail
-
myTrail
protected final IStoredLongTrail myTrail
-
-
Constructor Detail
-
StoredLong
public StoredLong(EnvironmentTrailing env, long i)
Constructs a stored search with an initial value. Note: this constructor should not be used directly: one should instead use the IEnvironment factory
-
-
Method Detail
-
set
public final void set(long y)
Modifies the value and stores if needed the former value on the trailing stack.- Specified by:
set
in classIStateLong
-
-