public abstract class AbstractEnvironment extends Object implements IEnvironment
| Modifier and Type | Field and Description |
|---|---|
protected int |
currentWorld |
protected int |
timestamp |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractEnvironment() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildFakeHistoryOn(ICondition condition)
Force to build fake history when a stored object on a particular condition.
|
boolean |
fakeHistoryNeeded() |
BasicIndexedBipartiteSet |
getSharedBipartiteSetForBooleanVars()
Factory pattern : shared StoredBitSetVector objects is return by the environment
|
int |
getTimeStamp()
Return the current time stamp.
|
int |
getWorldIndex()
Returns the world number.
|
IStateBitSet |
makeBitSet(int size)
Factory pattern: new IStateBitSet objects are created by the environment
|
void |
worldPopUntil(int w)
Backtracks to the
w previous choice point in the tree search |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeBool, makeDoubleVector, makeFloat, makeFloat, makeInt, makeInt, makeIntVector, makeLong, makeLong, save, worldCommit, worldPop, worldPushpublic final int getWorldIndex()
IEnvironmentgetWorldIndex in interface IEnvironmentpublic final int getTimeStamp()
IEnvironmentgetTimeStamp in interface IEnvironmentpublic IStateBitSet makeBitSet(int size)
makeBitSet in interface IEnvironmentsize - initial size of the IStateBitSetpublic void worldPopUntil(int w)
w previous choice point in the tree searchworldPopUntil in interface IEnvironmentw - world index to pop topublic final BasicIndexedBipartiteSet getSharedBipartiteSetForBooleanVars()
getSharedBipartiteSetForBooleanVars in interface IEnvironmentpublic boolean fakeHistoryNeeded()
fakeHistoryNeeded in interface IEnvironmentpublic void buildFakeHistoryOn(ICondition condition)
IEnvironmentICondition.FALSE.buildFakeHistoryOn in interface IEnvironmentcondition - to satisfy to build fake historyCopyright © 2018. All rights reserved.