Class AllocationBasedNetGenerator
- java.lang.Object
-
- org.processmining.plugins.stochasticpetrinet.external.AllocationBasedNetGenerator
-
public class AllocationBasedNetGenerator extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAllocationBasedNetGenerator.ObsType
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.math3.distribution.RealDistributionarrivalDistributionstatic java.lang.StringPLACE_CASE_PREFIX
-
Constructor Summary
Constructors Constructor Description AllocationBasedNetGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Object[]generateNet(StochasticNet base, PetrinetModelAllocations allocations, java.util.Set<Allocatable> resources, int numCases, double meanTimeBetweenArrivals, double noise, long startTime)Generates a net based on a basis and a number of cases that are drawn randomly from the model.static java.lang.Object[]generateObservationAwareNet(StochasticNet base, PetrinetModelAllocations allocations, java.util.Set<Allocatable> resources, double noise)TOSO: Currently we neglect resources!protected static voidswapTransitionsRandomly(java.util.List<org.processmining.models.graphbased.directed.petrinet.elements.Transition> transitionsToExecuteInSequence, double noise)
-
-
-
Field Detail
-
PLACE_CASE_PREFIX
public static final java.lang.String PLACE_CASE_PREFIX
- See Also:
- Constant Field Values
-
arrivalDistribution
protected static org.apache.commons.math3.distribution.RealDistribution arrivalDistribution
-
-
Method Detail
-
generateObservationAwareNet
public static java.lang.Object[] generateObservationAwareNet(StochasticNet base, PetrinetModelAllocations allocations, java.util.Set<Allocatable> resources, double noise)
TOSO: Currently we neglect resources!- Parameters:
base-allocations-resources-noise-- Returns:
-
generateNet
public static java.lang.Object[] generateNet(StochasticNet base, PetrinetModelAllocations allocations, java.util.Set<Allocatable> resources, int numCases, double meanTimeBetweenArrivals, double noise, long startTime)
Generates a net based on a basis and a number of cases that are drawn randomly from the model. Puts all traces in one big unfolded model.- Parameters:
base- StochasticNetallocations- PetrinetModelAllocationsresources- SetnumCases- intmeanTimeBetweenArrivals- doublenoise- double the noise represents the probability that something goes NOT according to process knowledge (examples are a swap in activities, a change in a duration distribution, a change in the allocated resource set)startTime- the start time of the simulation- Returns:
-
swapTransitionsRandomly
protected static void swapTransitionsRandomly(java.util.List<org.processmining.models.graphbased.directed.petrinet.elements.Transition> transitionsToExecuteInSequence, double noise)
-
-