|
SimJava 2.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectSim_erlang_obj
public class Sim_erlang_obj
A random number generator based on the Erlang distribution.
| Constructor Summary | |
|---|---|
Sim_erlang_obj(String name,
double scale,
double shape)
Constructor with which Sim_system is allowed to set the random number
generator's seed |
|
Sim_erlang_obj(String name,
double scale,
double shape,
long seed)
The constructor with which a specific seed is set for the random number generator |
|
| Method Summary | |
|---|---|
String |
get_name()
Get the random number generator's name. |
long |
get_seed()
Get the random number generator's seed. |
double |
sample()
Generate a new random number. |
(package private) static double |
sample(Sim_random_obj source,
double scale,
double shape)
|
void |
set_seed(long seed)
Set the random number generator's seed. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sim_erlang_obj(String name,
double scale,
double shape)
Sim_system is allowed to set the random number
generator's seed
name - The name to be associated with this instancescale - The scale of the distributionshape - The shape of the distribution
public Sim_erlang_obj(String name,
double scale,
double shape,
long seed)
name - The name to be associated with this instancescale - The scale of the distributionshape - The shape of the distributionseed - The initial seed for the generator, two instances with
the same seed will generate the same sequence of numbers| Method Detail |
|---|
public double sample()
sample in interface ContinuousGenerator
static double sample(Sim_random_obj source,
double scale,
double shape)
public void set_seed(long seed)
set_seed in interface Generatorseed - The new seed for the generatorpublic long get_seed()
get_seed in interface Generatorpublic String get_name()
get_name in interface Generator
|
SimJava 2.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||