Class Generator
- java.lang.Object
-
- org.processmining.plugins.stochasticpetrinet.generator.Generator
-
public class Generator extends java.lang.ObjectGenerates block-structured Petri nets with an iterative mechanism. Usable for scalability analysis of algorithms.- Author:
- Andreas Rogge-Solti
-
-
Constructor Summary
Constructors Constructor Description Generator(long seed)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object[]generateStochasticNet(GeneratorConfig config)static java.lang.StringgetNameForNumber(int i)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
-
-
-
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)
-
-