|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.inject.AbstractModule
org.opt4j.core.start.Opt4JModule
org.opt4j.core.common.random.RandomModule
public class RandomModule
The RandomModule is used to configure the used random number
generator.
| Nested Class Summary | |
|---|---|
static class |
RandomModule.RandType
The RandomModule.RandType. |
| Field Summary | |
|---|---|
protected long |
seed
|
protected RandomModule.RandType |
type
|
protected boolean |
usingSeed
|
| Fields inherited from class org.opt4j.core.start.Opt4JModule |
|---|
SINGLETON |
| Constructor Summary | |
|---|---|
RandomModule()
|
|
| Method Summary | |
|---|---|
void |
config()
Configure the module. |
long |
getSeed()
Returns the seed the is used by the random number generator. |
RandomModule.RandType |
getType()
Returns the type of the random number generator. |
boolean |
isUsingSeed()
Returns true if a specific seed is given. |
void |
setSeed(long seed)
Sets the seed that is used by the random number generator. |
void |
setType(RandomModule.RandType type)
Sets the type of the random number generator to the specified value. |
void |
setUsingSeed(boolean value)
Select if a specific seed should be used. |
| Methods inherited from class org.opt4j.core.start.Opt4JModule |
|---|
addControlListener, addIndividualStateListener, addOptimizerIterationListener, addOptimizerStateListener, bindConstant, bindConstant, bindConstant, bindConstant, configure, constant, multi |
| Methods inherited from class com.google.inject.AbstractModule |
|---|
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected long seed
protected boolean usingSeed
protected RandomModule.RandType type
| Constructor Detail |
|---|
public RandomModule()
| Method Detail |
|---|
public void config()
Opt4JModule
config in class Opt4JModuleBinderpublic void setSeed(long seed)
seed - the seed that is used by the random number generatorgetSeed()public long getSeed()
setSeed(long)public void setType(RandomModule.RandType type)
type - the type of the random number generatorgetType()public RandomModule.RandType getType()
setType(org.opt4j.core.common.random.RandomModule.RandType)public boolean isUsingSeed()
true if a specific seed is given.
setUsingSeed(boolean)public void setUsingSeed(boolean value)
value - true if a seed shall be used, false otherwiseisUsingSeed()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||