Class Generator


  • public class Generator
    extends java.lang.Object
    Generates block-structured Petri nets with an iterative mechanism. Usable for scalability analysis of algorithms.
    Author:
    Andreas Rogge-Solti
    • Constructor Detail

      • Generator

        public Generator​(long seed)
    • Method Detail

      • generateStochasticNet

        public java.lang.Object[] generateStochasticNet​(GeneratorConfig config)
        Parameters:
        config - GeneratorConfig
        Returns:
        Object[] consisting of the stochastic net [index 0], the initial marking [index 1] and the final marking [index 2]
      • getRandomParameters

        public double[] getRandomParameters​(StochasticNet.DistributionType type)
        returns random parameters of distributions, such that the mean is between 1 and 10 and the variance is around 2
        Parameters:
        type -
        Returns:
      • getNameForNumber

        public static java.lang.String getNameForNumber​(int i)