Class TimeStampedObject
- java.lang.Object
-
- org.chocosolver.solver.search.loop.TimeStampedObject
-
- Direct Known Subclasses:
EnumDelta
,EnumDeltaMonitor
,IntervalDelta
,IntervalDeltaMonitor
,OneValueDelta
,OneValueDeltaMonitor
,SetDelta
,SetDeltaMonitor
public abstract class TimeStampedObject extends Object
Class for factorizing code of time stamped objects- Since:
- 24/04/2014
- Author:
- Jean-Guillaume Fages
-
-
Constructor Summary
Constructors Constructor Description TimeStampedObject(IEnvironment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IEnvironment
getEnvironment()
int
getTimeStamp()
boolean
needReset()
void
resetStamp()
sets the current time stamp of the object to the time stamp of the environment
-
-
-
Constructor Detail
-
TimeStampedObject
public TimeStampedObject(IEnvironment environment)
-
-
Method Detail
-
getEnvironment
public final IEnvironment getEnvironment()
- Returns:
- the environment
-
getTimeStamp
public int getTimeStamp()
- Returns:
- the current time stamp of the object
-
needReset
public final boolean needReset()
- Returns:
- true iff the current time stamp of the object is different from the time stamp of the environment
-
resetStamp
public final void resetStamp()
sets the current time stamp of the object to the time stamp of the environment
-
-