Class PNSimulatorConfig
- java.lang.Object
-
- org.processmining.plugins.stochasticpetrinet.simulator.PNSimulatorConfig
-
public class PNSimulatorConfig extends java.lang.ObjectConfiguration parameters for the simple simulation of (stochastic) Petri Nets. Used byPNSimulator.- Author:
- Andreas Rogge-Solti
-
-
Constructor Summary
Constructors Constructor Description PNSimulatorConfig()PNSimulatorConfig(long numberOfTraces)PNSimulatorConfig(long numberOfTraces, StochasticNet net)PNSimulatorConfig(long numberOfTraces, StochasticNet.TimeUnit unitFactor)PNSimulatorConfig(long numberOfTraces, StochasticNet.TimeUnit unitFactor, long seed)PNSimulatorConfig(long numberOfTraces, StochasticNet.TimeUnit unitFactor, long seed, double arrivalRate)PNSimulatorConfig(long numberOfTraces, StochasticNet.TimeUnit unitFactor, long seed, double arrivalRate, int maxEventsInOneTrace)PNSimulatorConfig(long numberOfTraces, StochasticNet.TimeUnit unitFactor, long seed, double arrivalRate, int maxEventsInOneTrace, StochasticNet.ExecutionPolicy policy)PNSimulatorConfig(long numberOfTraces, StochasticNet.TimeUnit unitFactor, long seed, double arrivalRate, int maxEventsInOneTrace, StochasticNet.ExecutionPolicy policy, java.lang.String logName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StochasticNet.ExecutionPolicygetExecutionPolicy()doublegetQuantile()StochasticNet.TimeUnitgetUnitFactor()booleanisAllowUnbounded()booleanisDeterministicBoundedStateSpaceExploration()voidsetAllowUnbounded(boolean allowUnbounded)voidsetDeterministicBoundedStateSpaceExploration(boolean deterministicBoundedStateSpaceExploration)voidsetQuantile(double quantile)voidsetSeed(long seed)voidsetSimulateTraceless(boolean simulateTraceLess)
-
-
-
Constructor Detail
-
PNSimulatorConfig
public PNSimulatorConfig(long numberOfTraces, StochasticNet net)
-
PNSimulatorConfig
public PNSimulatorConfig()
-
PNSimulatorConfig
public PNSimulatorConfig(long numberOfTraces)
-
PNSimulatorConfig
public PNSimulatorConfig(long numberOfTraces, StochasticNet.TimeUnit unitFactor)
-
PNSimulatorConfig
public PNSimulatorConfig(long numberOfTraces, StochasticNet.TimeUnit unitFactor, long seed)
-
PNSimulatorConfig
public PNSimulatorConfig(long numberOfTraces, StochasticNet.TimeUnit unitFactor, long seed, double arrivalRate)
-
PNSimulatorConfig
public PNSimulatorConfig(long numberOfTraces, StochasticNet.TimeUnit unitFactor, long seed, double arrivalRate, int maxEventsInOneTrace)
-
PNSimulatorConfig
public PNSimulatorConfig(long numberOfTraces, StochasticNet.TimeUnit unitFactor, long seed, double arrivalRate, int maxEventsInOneTrace, StochasticNet.ExecutionPolicy policy)
-
PNSimulatorConfig
public PNSimulatorConfig(long numberOfTraces, StochasticNet.TimeUnit unitFactor, long seed, double arrivalRate, int maxEventsInOneTrace, StochasticNet.ExecutionPolicy policy, java.lang.String logName)- Parameters:
numberOfTraces- the number of traces to generate by simulation.unitFactor- the time units factor represented in the stochastic distributions (1 = milliseconds, 1000 = seconds, 60.000=minutes...)seed- the seed for the pseudo-random generator (helps to generate the same results, if required)arrivalRate- the arrival rate lamda for the poisson distribution used to simulate the arriving process of new casesmaxEventsInOneTrace- in order to avoid running into infinite loops, there is this variable that sets an upper limit.policy- theStochasticNet.ExecutionPolicyof the network, i.e., how to select the next transition (preselection/race), and how to deal with transitions that lose a race.logName- the name of the generated log.
-
-
Method Detail
-
isDeterministicBoundedStateSpaceExploration
public boolean isDeterministicBoundedStateSpaceExploration()
-
setDeterministicBoundedStateSpaceExploration
public void setDeterministicBoundedStateSpaceExploration(boolean deterministicBoundedStateSpaceExploration)
-
isAllowUnbounded
public boolean isAllowUnbounded()
-
setAllowUnbounded
public void setAllowUnbounded(boolean allowUnbounded)
-
setSeed
public void setSeed(long seed)
-
setSimulateTraceless
public void setSimulateTraceless(boolean simulateTraceLess)
-
getExecutionPolicy
public StochasticNet.ExecutionPolicy getExecutionPolicy()
-
getUnitFactor
public StochasticNet.TimeUnit getUnitFactor()
-
setQuantile
public void setQuantile(double quantile)
-
getQuantile
public double getQuantile()
-
-