|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsim.engine.Sequence
sim.engine.RandomSequence
RandomSequence is a Sequence which executes its Steppable objects in random order each time. RandomSequence does not ordinarily synchronize on the random number generator -- unless you set shouldSynchronize to true. This is commonly only necessary if you're running multithreaded (you're embedded inside a ParallelSequence for example).
Field Summary |
Fields inherited from class sim.engine.Sequence |
steps |
Constructor Summary | |
RandomSequence(Steppable[] steps)
Does not synchronize on the random number generator |
|
RandomSequence(Steppable[] steps,
boolean shouldSynchronize)
Synchronizes on the random number generator only if shouldSynchronize is true |
Method Summary | |
void |
step(SimState state)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RandomSequence(Steppable[] steps)
public RandomSequence(Steppable[] steps, boolean shouldSynchronize)
Method Detail |
public void step(SimState state)
step
in interface Steppable
step
in class Sequence
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |