|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchoco.mem.StoredVectorTrail
public class StoredVectorTrail
Implements a trail with the history of all the stored search vectors.
| Constructor Summary | |
|---|---|
StoredVectorTrail(Environment env,
int nUpdates,
int nWorlds)
Constructs a trail for the specified environment with the specified numbers of updates and worlds. |
|
| Method Summary | |
|---|---|
int |
getSize()
Returns the current size of the stack. |
void |
resizeWorldCapacity(int newWorldCapacity)
increase the capacity of the environment to a given number of worlds |
void |
savePreviousState(StoredVector vect,
int index,
java.lang.Object oldValue,
int oldStamp)
Reacts on the modification of an element in a stored search vector. |
void |
worldCommit()
Comits a world: merging it with the previous one. |
void |
worldPop()
Moving down to the previous world. |
void |
worldPush()
Moving up to the next world. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StoredVectorTrail(Environment env,
int nUpdates,
int nWorlds)
| Method Detail |
|---|
public void savePreviousState(StoredVector vect,
int index,
java.lang.Object oldValue,
int oldStamp)
public void resizeWorldCapacity(int newWorldCapacity)
ITrailStorage
resizeWorldCapacity in interface ITrailStoragepublic void worldPush()
worldPush in interface ITrailStoragepublic void worldPop()
worldPop in interface ITrailStoragepublic void worldCommit()
worldCommit in interface ITrailStoragepublic int getSize()
getSize in interface ITrailStorage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||