Package se.sics.kompics.simulator
Class SimulationScenario
java.lang.Object
se.sics.kompics.simulator.SimulationScenario
- All Implemented Interfaces:
Serializable
public abstract class SimulationScenario extends Object implements Serializable
The
SimulationScenario
class.- Version:
- $Id$
- Author:
- Cosmin Arad <[email protected]>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
SimulationScenario.Snapshot
protected class
SimulationScenario.StochasticProcess
-
Constructor Summary
Constructors Constructor Description SimulationScenario()
-
Method Summary
Modifier and Type Method Description protected Distribution<Double>
constant(double value)
protected Distribution<Long>
constant(long value)
protected Distribution<BigInteger>
constant(BigInteger value)
protected Distribution<Double>
exponential(double mean)
protected Distribution<Long>
exponential(long mean)
protected Distribution<BigInteger>
exponential(BigInteger mean)
LinkedList<StochasticSimulatorEvent>
generateEventList()
static Random
getRandom()
static SimulationScenario
load(String scenarioFile)
protected Distribution<Double>
normal(double mean, double variance)
protected Distribution<Long>
normal(long mean, long variance)
protected Distribution<BigInteger>
normal(BigInteger mean, BigInteger variance)
static void
setSeed(long seed)
void
simulate(Class<? extends se.sics.kompics.ComponentDefinition> main)
void
simulate(Class<? extends se.sics.kompics.ComponentDefinition> main, boolean allowThreads)
void
simulate(Class<? extends se.sics.kompics.ComponentDefinition> main, javassist.Translator t)
protected SimulationScenario.Snapshot
snapshot(TakeSnapshot takeSnapshotEvent)
protected void
terminateAfterTerminationOf(long delay, SimulationScenario.StochasticProcess... process)
protected void
terminateAt(long time)
protected Distribution<Double>
uniform(double min, double max)
protected Distribution<BigInteger>
uniform(int numBits)
protected Distribution<Long>
uniform(long min, long max)
protected Distribution<BigInteger>
uniform(BigInteger min, BigInteger max)
-
Constructor Details
-
SimulationScenario
public SimulationScenario()
-
-
Method Details
-
setSeed
-
getRandom
-
terminateAt
-
terminateAfterTerminationOf
protected final void terminateAfterTerminationOf(long delay, SimulationScenario.StochasticProcess... process) -
snapshot
-
simulate
-
simulate
-
simulate
-
load
-
generateEventList
-
constant
-
constant
-
constant
-
uniform
-
uniform
-
uniform
-
uniform
-
exponential
-
exponential
-
exponential
-
normal
-
normal
-
normal
-