|
SSJ V. labo. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumontreal.iro.lecuyer.rng.BasicRandomStreamFactory
public class BasicRandomStreamFactory
BasicRandomStreamFactory
Represents a basic random stream factory that can constructs new instances of a given RandomStream implementation via the newInstance() method. The class name of the implementation to be used must be passed to the constructor as a String, which must be the name of a nullary constructor of a RandomStream object (i.e., a constructor that has no parameters). The streams are constructed by the factory by reflection from this String.
Constructor Summary | |
---|---|
BasicRandomStreamFactory(Class rsClass)
. |
Method Summary | |
---|---|
Class |
getRandomStreamClass()
. |
RandomStream |
newInstance()
Constructs and returns a new random stream. |
void |
setRandomStreamClass(Class rsClass)
. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicRandomStreamFactory(Class rsClass)
Method Detail |
---|
public Class getRandomStreamClass()
public void setRandomStreamClass(Class rsClass)
public RandomStream newInstance()
RandomStreamFactory
RandomStreamInstantiationException
.
newInstance
in interface RandomStreamFactory
public String toString()
toString
in class Object
|
SSJ V. labo. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |