Simulation Scenarios Reference

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:

  1. se.sics.kompics.simulator.adaptor.distributions.ConstantDistribution
  2. se.sics.kompics.simulator.adaptor.distributions.IntegerUniformDistribution
  3. se.sics.kompics.simulator.adaptor.distributions.DoubleUniformDistribution
  4. se.sics.kompics.simulator.adaptor.distributions.LongUniformDistribution
  5. se.sics.kompics.simulator.adaptor.distributions.BigIntegerUniformDistribution
  6. se.sics.kompics.simulator.adaptor.distributions.IntegerNormalDistribution
  7. se.sics.kompics.simulator.adaptor.distributions.DoubleNormalDistribution
  8. se.sics.kompics.simulator.adaptor.distributions.LongNormalDistribution
  9. se.sics.kompics.simulator.adaptor.distributions.BigIntegerNormalDistribution
  10. se.sics.kompics.simulator.adaptor.distributions.IntegerExponentialDistribution
  11. se.sics.kompics.simulator.adaptor.distributions.DoubleExponentialDistribution
  12. se.sics.kompics.simulator.adaptor.distributions.LongExponentialDistribution
  13. se.sics.kompics.simulator.adaptor.distributions.BigIntegerExponentialDistribution
  14. se.sics.kompics.simulator.adaptor.distributions.extra.BasicIntSequentialDistribution
  15. 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