Package org.chocosolver.memory
Class EnvironmentBuilder
- java.lang.Object
-
- org.chocosolver.memory.EnvironmentBuilder
-
public class EnvironmentBuilder extends Object
Project: choco-solver.
- Since:
- 10/05/2016.
- Author:
- Charles Prud'homme
-
-
Constructor Summary
Constructors Constructor Description EnvironmentBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnvironmentTrailingbuild()Build the environmentEnvironmentBuilderfromChunk()Build a chunk environmentEnvironmentBuilderfromFlat()Build a flat environmentEnvironmentBuildersetLoadfactor(double lf)The load factor to updateIStorage.EnvironmentBuildersetTrail(IOperationTrail t)Set the operation trail.EnvironmentBuildersetTrail(IStoredBoolTrail t)Set the bool trail.EnvironmentBuildersetTrail(IStoredDoubleTrail t)Set the double trail.EnvironmentBuildersetTrail(IStoredIntTrail t)Set the int trail.EnvironmentBuildersetTrail(IStoredLongTrail t)Set the long trail.EnvironmentBuildersetWorldNumber(int wn)The maximum numbers of worlds that aIStoragecan handle.EnvironmentBuildersetWorldSize(int ws)The maximum numbers of updates that aIStoragecan handle.
-
-
-
Method Detail
-
setWorldSize
public EnvironmentBuilder setWorldSize(int ws)
The maximum numbers of updates that aIStoragecan handle.- Parameters:
ws- maximum numbers- Returns:
this
-
setWorldNumber
public EnvironmentBuilder setWorldNumber(int wn)
The maximum numbers of worlds that aIStoragecan handle.- Parameters:
wn- maximum numbers- Returns:
this
-
setLoadfactor
public EnvironmentBuilder setLoadfactor(double lf)
The load factor to updateIStorage.- Parameters:
lf- load factor- Returns:
this
-
setTrail
public EnvironmentBuilder setTrail(IStoredIntTrail t)
Set the int trail.- Parameters:
t- the trail to use- Returns:
this
-
setTrail
public EnvironmentBuilder setTrail(IStoredLongTrail t)
Set the long trail.- Parameters:
t- the trail to use- Returns:
this
-
setTrail
public EnvironmentBuilder setTrail(IStoredDoubleTrail t)
Set the double trail.- Parameters:
t- the trail to use- Returns:
this
-
setTrail
public EnvironmentBuilder setTrail(IStoredBoolTrail t)
Set the bool trail.- Parameters:
t- the trail to use- Returns:
this
-
setTrail
public EnvironmentBuilder setTrail(IOperationTrail t)
Set the operation trail.- Parameters:
t- the trail to use- Returns:
this
-
build
public EnvironmentTrailing build()
Build the environment- Returns:
- the resulting environment
-
fromChunk
public EnvironmentBuilder fromChunk()
Build a chunk environment- Returns:
this
-
fromFlat
public EnvironmentBuilder fromFlat()
Build a flat environment- Returns:
- the resulting environment
-
-