public class StoredLongTrail extends Object implements IStoredLongTrail
| Constructor and Description |
|---|
StoredLongTrail(int nUpdates,
int nWorlds,
double loadfactor)
Constructs a trail with predefined size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildFakeHistory(StoredLong v,
long initValue,
int olderStamp) |
int |
getSize()
Deprecated.
|
void |
savePreviousState(StoredLong v,
long oldValue,
int oldStamp)
Reacts when a StoredInt is modified: push the former value & timestamp
on the stacks.
|
void |
worldCommit(int worldIndex)
Comits a world: merging it with the previous one.
|
void |
worldPop(int worldIndex)
Moving down to the previous world.
|
void |
worldPush(int worldIndex)
Moving up to the next world.
|
public StoredLongTrail(int nUpdates,
int nWorlds,
double loadfactor)
nUpdates - maximal number of updates that will be storednWorlds - maximal number of worlds that will be storedloadfactor - load factor for structurespublic void worldPush(int worldIndex)
public void worldPop(int worldIndex)
@Deprecated public int getSize()
public void worldCommit(int worldIndex)
worldCommit in interface IStoragepublic void savePreviousState(StoredLong v, long oldValue, int oldStamp)
savePreviousState in interface IStoredLongTrailpublic void buildFakeHistory(StoredLong v, long initValue, int olderStamp)
buildFakeHistory in interface IStoredLongTrailCopyright © 2017. All rights reserved.