public class RandomStreamManager
extends java.lang.Object
After a random stream manager is constructed, any
existing RandomStream object can be registered
to this stream manager (i.e., added to the list)
and eventually unregistered (removed from the list).
| Constructor and Description |
|---|
RandomStreamManager() |
| Modifier and Type | Method and Description |
|---|---|
RandomStream |
add(RandomStream stream)
Adds the given stream to the internal list of
this random stream manager and returns the added stream.
|
void |
clear()
Removes all the streams from the internal list
of this random stream manager.
|
java.util.List |
getStreams()
Returns an unmodifiable list containing all the
random streams in this random
stream manager.
|
boolean |
remove(RandomStream stream)
Removes the given stream from the internal list of this random
stream manager.
|
void |
resetNextSubstream()
Forwards to the
resetNextSubstream methods
of all streams in the list. |
void |
resetStartStream()
Forwards to the
resetStartStream methods
of all streams in the list. |
void |
resetStartSubstream()
Forwards to the
resetStartSubstream methods
of all streams in the list. |
java.lang.String |
toString() |
public RandomStream add(RandomStream stream)
stream - the stream being added.java.lang.NullPointerException - if stream is null.public boolean remove(RandomStream stream)
stream - the stream being removed.public void clear()
public java.util.List getStreams()
unmodifiableList, can be assumed
to contain non-null RandomStream instances.public void resetStartStream()
resetStartStream methods
of all streams in the list.public void resetStartSubstream()
resetStartSubstream methods
of all streams in the list.public void resetNextSubstream()
resetNextSubstream methods
of all streams in the list.public java.lang.String toString()
toString in class java.lang.ObjectTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.