|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.omegahat.Simulation.RandomGenerators.CollingsPRNGAdministrator
creates instances of CollingsPRNG that are garanteed to be mutually independent
Field Summary | |
(package private) MultiplicativeCongruentialPRNG |
LC
Multiplicative Congruential Generator used by the administrator to select constants and seeds for the created CollingsPRNG's. |
protected java.util.Vector |
listeners
|
private static int |
Mod
Modulus constant for the congruential generator used to pick the multiplicative constants and to intialize the seeds for each component generator. |
private int |
Mult
Multiplicative constant for the congruential generator used to pick the multiplicative constants and to intialize the seeds for each component generator. |
private int |
NumGen
Number of generators that each CollingsPRNG will use |
private int |
Seed
Seed for the congruential generator used to pick the multiplicative constants and to intialize the seeds for each component generator. |
Constructor Summary | |
CollingsPRNGAdministrator()
Default Class Constructor |
|
CollingsPRNGAdministrator(int seed)
Class constructer that allows specification of the seed used to intialize the state of the created PRNG's |
|
CollingsPRNGAdministrator(int seed,
int numGen)
Class constructer that allows specification of the seed used to intialize the state of the created PRNG's, and the number of component generators used by each CollingsPRNG created. |
|
CollingsPRNGAdministrator(int seed,
int numGen,
int mult)
Class constructer that allows specification of the seed used to intialize the state of the created PRNG's, the number of component generators used by each CollingsPRNG created. |
Method Summary | |
int |
addListener(PRNGAdministratorListener l)
|
int |
getMult()
|
int |
getNumGen()
|
int |
getSeed()
|
java.util.Vector |
listeners()
|
java.util.Vector |
listeners(java.util.Vector v)
|
private PRNGState |
makeGeneratorState()
|
void |
notifyListeners(PRNGState state)
|
PRNGState |
registerPRNGState()
|
PRNGState |
registerPRNGState(java.lang.Object ignored)
|
boolean |
removeListener(PRNGAdministratorListener l)
|
Methods inherited from class java.lang.Object |
|
Field Detail |
private int Seed
private int Mult
private static int Mod
private int NumGen
MultiplicativeCongruentialPRNG LC
protected java.util.Vector listeners
Constructor Detail |
public CollingsPRNGAdministrator()
public CollingsPRNGAdministrator(int seed)
seed
- seed value used for initializing constructed generatorspublic CollingsPRNGAdministrator(int seed, int numGen)
seed
- seed value used for initializing constructed generatorsnumGen
- the number of component generators used by each
constructed generatorpublic CollingsPRNGAdministrator(int seed, int numGen, int mult)
seed
- seed value used for initializing constructed generatorsnumGen
- the number of component generators used by each
constructed generatormult
- multiplicative constant for PRNG used for initializationMethod Detail |
public int getSeed()
public int getNumGen()
public int getMult()
private PRNGState makeGeneratorState()
public PRNGState registerPRNGState()
registerPRNGState
in interface PRNGAdministrator
public PRNGState registerPRNGState(java.lang.Object ignored)
registerPRNGState
in interface PRNGAdministrator
public void notifyListeners(PRNGState state)
public int addListener(PRNGAdministratorListener l)
public boolean removeListener(PRNGAdministratorListener l)
public java.util.Vector listeners()
public java.util.Vector listeners(java.util.Vector v)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |