|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.kernel.memory.AbstractEnvironment
public abstract class AbstractEnvironment
Super class of all environments !
Field Summary | |
---|---|
IStateIntVector |
currentBitSet
Shared BitSet |
protected int |
currentWorld
The current world index. |
protected int |
nextOffset
Nex free bit in the shared BitSet |
Fields inherited from interface choco.kernel.memory.IEnvironment |
---|
LOGGER |
Constructor Summary | |
---|---|
AbstractEnvironment()
|
Method Summary | ||
---|---|---|
void |
createSharedBipartiteSet(int size)
Build a shared bipartite set |
|
int |
getNextOffset()
Return the next free bit in the shared StoredBitSetVector object |
|
IStateIntVector |
getSharedBipartiteSetForBooleanVars()
Factory pattern : shared StoredBitSetVector objects is return by the environment |
|
int |
getWorldIndex()
Returns the world number. |
|
void |
increaseSizeOfSharedBipartiteSet(int gap)
Increase the size of the shared bi partite set, it HAS to be called before the end of the environment creation BEWARE: be sure you are correctly calling this method |
|
IStateIntVector |
makeBipartiteIntList(int[] entries)
|
|
IStateIntVector |
makeBipartiteSet(ArrayList<IndexedObject> entries)
|
|
IStateIntVector |
makeBipartiteSet(IndexedObject[] entries)
|
|
IStateIntVector |
makeBipartiteSet(int nbEntries)
|
|
IStateIntVector |
makeBipartiteSet(int[] entries)
|
|
IStateBitSet |
makeBitSet(int size)
Factory pattern: new IStateBitSet objects are created by the environment |
|
IntInterval |
makeIntInterval(int inf,
int sup)
Factory pattern : new IntInterval objects are created by the environment |
|
PartiallyStoredIntVector |
makePartiallyStoredIntVector()
Factory pattern : create a new partially stored int vector via the environment. |
|
|
makePartiallyStoredVector()
Factory pattern : create a new partially stored vector via the environment. |
|
|
makeStoredBipartiteList(Collection<E> coll)
|
|
|
makeStoredBipartiteList(E[] elm)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface choco.kernel.memory.IEnvironment |
---|
clear, makeBinaryTree, makeBool, makeDoubleVector, makeDoubleVector, makeDoubleVector, makeFloat, makeFloat, makeInt, makeInt, makeIntProcedure, makeIntVector, makeIntVector, makeIntVector, makeLong, makeLong, makeLongVector, makeLongVector, makeLongVector, makeObject, makeVector, worldCommit, worldPop, worldPush |
Field Detail |
---|
protected int currentWorld
public IStateIntVector currentBitSet
protected int nextOffset
Constructor Detail |
---|
public AbstractEnvironment()
Method Detail |
---|
public final int getWorldIndex()
IEnvironment
getWorldIndex
in interface IEnvironment
public final void createSharedBipartiteSet(int size)
IEnvironment
createSharedBipartiteSet
in interface IEnvironment
size
- size of the bi partite setpublic final IStateIntVector getSharedBipartiteSetForBooleanVars()
getSharedBipartiteSetForBooleanVars
in interface IEnvironment
public final int getNextOffset()
getNextOffset
in interface IEnvironment
public <E> StoredBipartiteSet makeStoredBipartiteList(Collection<E> coll)
makeStoredBipartiteList
in interface IEnvironment
public <E> StoredBipartiteSet makeStoredBipartiteList(E[] elm)
makeStoredBipartiteList
in interface IEnvironment
public IStateIntVector makeBipartiteIntList(int[] entries)
makeBipartiteIntList
in interface IEnvironment
public IStateIntVector makeBipartiteSet(int[] entries)
makeBipartiteSet
in interface IEnvironment
public IStateIntVector makeBipartiteSet(int nbEntries)
makeBipartiteSet
in interface IEnvironment
public IStateIntVector makeBipartiteSet(IndexedObject[] entries)
makeBipartiteSet
in interface IEnvironment
public IStateIntVector makeBipartiteSet(ArrayList<IndexedObject> entries)
makeBipartiteSet
in interface IEnvironment
public <T> PartiallyStoredVector<T> makePartiallyStoredVector()
IEnvironment
makePartiallyStoredVector
in interface IEnvironment
T
- object to store
public PartiallyStoredIntVector makePartiallyStoredIntVector()
IEnvironment
makePartiallyStoredIntVector
in interface IEnvironment
public IntInterval makeIntInterval(int inf, int sup)
IEnvironment
makeIntInterval
in interface IEnvironment
inf
- intitial lower boundsup
- intial upper bound
public IStateBitSet makeBitSet(int size)
makeBitSet
in interface IEnvironment
size
- initail size of the IStateBitSet
public void increaseSizeOfSharedBipartiteSet(int gap)
increaseSizeOfSharedBipartiteSet
in interface IEnvironment
gap
- the gap the reach the expected size
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |