org.jactr.core.module.random
Interface IRandomModule

All Superinterfaces:
IInitializable, IInstallable, IModule
All Known Implementing Classes:
DefaultRandomModule

public interface IRandomModule
extends IModule


Field Summary
static java.lang.String RANDOM_TIME_PARAM
           
static java.lang.String SEED_PARAM
           
 
Method Summary
 java.util.Random getGenerator()
           
 long getSeed()
           
 double getTimeRandomizer()
           
 double logisticNoise(double s)
           
 boolean randomBoolean()
           
 double randomizedTime(double currentTime)
           
 void setSeed(long seedValue)
           
 void setTimeRandomizer(double randomizer)
          sets the seed for the time randomizer which will randomize the requested time across the equal distribution [time*((randomizer-1)/randomizer), time*((randomizer+1)/randomizer))
 
Methods inherited from interface org.jactr.core.module.IModule
dispose, getModel, getName, initialize, install, reset
 
Methods inherited from interface org.jactr.core.utils.IInstallable
uninstall
 

Field Detail

SEED_PARAM

static final java.lang.String SEED_PARAM
See Also:
Constant Field Values

RANDOM_TIME_PARAM

static final java.lang.String RANDOM_TIME_PARAM
See Also:
Constant Field Values
Method Detail

setSeed

void setSeed(long seedValue)

getSeed

long getSeed()

getGenerator

java.util.Random getGenerator()

logisticNoise

double logisticNoise(double s)

randomBoolean

boolean randomBoolean()

getTimeRandomizer

double getTimeRandomizer()

setTimeRandomizer

void setTimeRandomizer(double randomizer)
sets the seed for the time randomizer which will randomize the requested time across the equal distribution [time*((randomizer-1)/randomizer), time*((randomizer+1)/randomizer))

Parameters:
randomizer -

randomizedTime

double randomizedTime(double currentTime)