|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--cern.colt.PersistentObject
|
+--edu.cornell.lassp.houle.RngPack.RandomElement
|
+--SSF.Util.Random.RandomStream
| Nested Class Summary | |
class |
RandomStream.AlignmentException
Exception thrown if entities from two different SSF timelines both request the same stream. |
class |
RandomStream.CollisionException
Exception thrown if two stream names accidentally hash to the same 32-bit extract of their MD5 digests. |
class |
RandomStream.DistributionException
Exception thrown when the user names an unknown random distribution. |
class |
RandomStream.NamingException
Exception thrown when the user names an unknown random number generator. |
class |
RandomStream.StreamException
|
| Constructor Summary | |
protected |
RandomStream()
|
| Method Summary | |
java.lang.Object |
getAlignment()
Return the SSF alignment of all entities sharing this stream. |
static RandomDistribution |
getDistribution(com.renesys.raceway.DML.Configuration cfg,
RandomStream rng)
|
static RandomDistribution |
getDistribution(java.lang.String distname,
RandomStream rng)
|
java.lang.String |
getName()
Return the so-called "universal name" of this stream, consisting of the generator name concatenated with "::" plus the user-supplied stream name. |
static RandomStream |
getStream(com.renesys.raceway.SSF.Entity requestor,
java.lang.String generatorName,
java.lang.String streamName)
Obtain a reference to the globally unique random stream corresponding to the given generator name and stream name. |
double |
nextDouble()
|
double |
raw()
Returns a uniformly distributed pseudo-random number. |
| Methods inherited from class edu.cornell.lassp.houle.RngPack.RandomElement |
choose, choose, gaussian, gaussian, powlaw, raw, raw, uniform |
| Methods inherited from class cern.colt.PersistentObject |
clone |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected RandomStream()
| Method Detail |
public double raw()
RandomElementRandomJava for an example of how to do this.
raw in class RandomElementRandomJavapublic double nextDouble()
public final java.lang.Object getAlignment()
public final java.lang.String getName()
public static RandomStream getStream(com.renesys.raceway.SSF.Entity requestor,
java.lang.String generatorName,
java.lang.String streamName)
throws RandomStream.CollisionException,
RandomStream.AlignmentException,
RandomStream.NamingException
RandomStream.CollisionException
RandomStream.AlignmentException
RandomStream.NamingException
public static RandomDistribution getDistribution(java.lang.String distname,
RandomStream rng)
throws RandomStream.DistributionException
RandomStream.DistributionException
public static RandomDistribution getDistribution(com.renesys.raceway.DML.Configuration cfg,
RandomStream rng)
throws RandomStream.DistributionException
RandomStream.DistributionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||