Class AllocationBasedNetGenerator


  • public class AllocationBasedNetGenerator
    extends java.lang.Object
    • 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
    • Constructor Detail

      • AllocationBasedNetGenerator

        public AllocationBasedNetGenerator()
    • 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 - StochasticNet
        allocations - PetrinetModelAllocations
        resources - Set
        numCases - int
        meanTimeBetweenArrivals - double
        noise - 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)