public class RandomRegistry extends Object
Modifier and Type | Field and Description |
---|---|
private List |
_gens |
private List |
_states |
Modifier | Constructor and Description |
---|---|
|
RandomRegistry()
Constructor.
|
private |
RandomRegistry(RandomRegistry rr)
Hide copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addGenerator(RandomGenerator gen)
Register a generator.
|
int |
generatorCount()
Return the number of registered generators.
|
int |
record()
Record the states.
|
int |
set(int istate)
Reset the state.
|
int |
stateCount()
Return the number of recorded states.
|
String |
toString()
String representation of RandomRegistry.
|
private RandomRegistry(RandomRegistry rr)
rr
- public RandomRegistry()
public void addGenerator(RandomGenerator gen)
gen
- RandomGenerator to register.public int record()
public int generatorCount()
public int stateCount()
public int set(int istate)
istate
- integer state to be reset.Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.