Simulation Scenarios Reference¶
Simulation Events¶
Distributions¶
The main class in this package is
se.sics.kompics.simulator.adaptor.distributions.Distribution
. There are a number of distributions defined in the simulator module:
se.sics.kompics.simulator.adaptor.distributions.ConstantDistribution
se.sics.kompics.simulator.adaptor.distributions.IntegerUniformDistribution
se.sics.kompics.simulator.adaptor.distributions.DoubleUniformDistribution
se.sics.kompics.simulator.adaptor.distributions.LongUniformDistribution
se.sics.kompics.simulator.adaptor.distributions.BigIntegerUniformDistribution
se.sics.kompics.simulator.adaptor.distributions.IntegerNormalDistribution
se.sics.kompics.simulator.adaptor.distributions.DoubleNormalDistribution
se.sics.kompics.simulator.adaptor.distributions.LongNormalDistribution
se.sics.kompics.simulator.adaptor.distributions.BigIntegerNormalDistribution
se.sics.kompics.simulator.adaptor.distributions.IntegerExponentialDistribution
se.sics.kompics.simulator.adaptor.distributions.DoubleExponentialDistribution
se.sics.kompics.simulator.adaptor.distributions.LongExponentialDistribution
se.sics.kompics.simulator.adaptor.distributions.BigIntegerExponentialDistribution
se.sics.kompics.simulator.adaptor.distributions.extra.BasicIntSequentialDistribution
se.sics.kompics.simulator.adaptor.distributions.extra.GenIntSequentialDistribution
The ConstantDistribution
, as the name suggests is used when we want to pass a custom parameter to the event, but this custom parameter is fixed for all events.
Distributions between 2 and 13 will generate uniform/normal/exponential distribution random numbers.
The SequentialDistributions
are similar to the ConstantDistribution
as they do not generate random numbers, but a predefined sequence. The BasicIntSequentialDistribution
generates integers from the starting point provided in the constructor. For the GenIntSequentialDistribution
, the whole sequence is provided in the constructor. Make sure you do not try to raise more events than the size of this sequence, as once all the numbers in the sequence have been drawn, null values will be returned.
In case these distributions to not fit your needs, you can define your own by extending the Distribution
class
Operations¶
Depending on the amount of customization you need for the simulation events, there are 6 types of operations allowing from 0 to 5 generated parameters. The parameters are generated using a distribution. You can choose among the distributions presented above or create your own parameter distribution that fits your needs better.
StochasticProcesses¶
Event generation related methods:
Process order related methods start..
, terminate