Class Main


  • public class Main
    extends java.lang.Object
    • Field Detail

      • Context

        public static org.processmining.framework.plugin.PluginContext Context
      • UIContext

        public static org.processmining.contexts.uitopia.UIPluginContext UIContext
      • UsingUI

        public static boolean UsingUI
      • UsingContext

        public static boolean UsingContext
      • graph

        public static org.jgrapht.Graph<java.lang.String,​org.jgrapht.graph.DefaultEdge> graph
      • graphProvided

        public static boolean graphProvided
      • startTime

        public static long startTime
    • Constructor Detail

      • Main

        public Main()
    • Method Detail

      • run

        public static java.lang.Object[] run​(org.processmining.ocel.ocelobjects.OcelEventLog ocel,
                                             OCLPMDiscoveryParameters parameters)
        Full OCLPM discovery starting from ocel
        Parameters:
        ocel -
        parameters -
        Returns:
        {oclpmResult, tlpms, placeSet}
      • run

        public static java.lang.Object[] run​(org.processmining.ocel.ocelobjects.OcelEventLog ocel,
                                             OCLPMDiscoveryParameters parameters,
                                             TaggedPlaceSet placeSet)
        Full OCLPM discovery starting from place nets
        Parameters:
        ocel -
        parameters -
        Returns:
        {oclpmResult, tlpms}
      • run

        public static java.lang.Object[] run​(org.processmining.ocel.ocelobjects.OcelEventLog ocel,
                                             OCLPMDiscoveryParameters parameters,
                                             TaggedPlaceSet placeSet,
                                             java.util.ArrayList<java.lang.String> labels)
        Full OCLPM discovery starting from place nets with enhanced OCEL input
        Parameters:
        ocel -
        parameters -
        Returns:
        {oclpmResult, tlpms}
      • run

        public static java.lang.Object[] run​(org.processmining.ocel.ocelobjects.OcelEventLog ocel,
                                             OCLPMDiscoveryParameters parameters,
                                             LPMResultsTagged tlpms,
                                             TaggedPlaceSet placeSet)
        OCLPM discovery starting from Tagged LPMs
        Parameters:
        ocel -
        parameters -
        Returns:
        {oclpmResult}
      • discoverPlaceSet

        public static TaggedPlaceSet discoverPlaceSet​(org.processmining.ocel.ocelobjects.OcelEventLog ocel,
                                                      OCLPMDiscoveryParameters parameters)
        Returns a PlaceSet and a map which maps each Place.id to the ObjectType of the flat log on which it has been discovered
        Parameters:
        ocel -
        parameters -
        Returns:
        PlaceSet
      • discoverLPMs

        public static LPMResultsTagged discoverLPMs​(org.processmining.ocel.ocelobjects.OcelEventLog ocel,
                                                    OCLPMDiscoveryParameters parameters,
                                                    TaggedPlaceSet placeSet,
                                                    java.util.ArrayList<java.lang.String> labels)
        LPM discovery with given case notions in the OCEL
        Parameters:
        ocel -
        parameters -
        placeSet -
        labels -
        Returns:
      • discoverLPMs

        public static LPMResultsTagged discoverLPMs​(org.processmining.ocel.ocelobjects.OcelEventLog ocel,
                                                    OCLPMDiscoveryParameters parameters,
                                                    TaggedPlaceSet placeSet)
        LPM discovery which first creates case notions to perform the LPM discovery on.
        Parameters:
        ocel -
        parameters -
        placeSet -
        Returns:
      • convertLPMstoOCLPMs

        public static OCLPMResult convertLPMstoOCLPMs​(OCLPMDiscoveryParameters parameters,
                                                      LPMResultsTagged tlpms,
                                                      TaggedPlaceSet placeSet)
        Ensures that the places in the OCLPMs have the same ids as the places in the placeSet by replacing them with equal (isomorphic + same type) places from the placeSet. (done in the grabIsomorphicPlaces function during OCLPMResult creation)
        Parameters:
        parameters -
        tlpms -
        placeSet -
        Returns:
      • computeVariableArcsWholeLog

        public static java.util.HashMap<java.lang.String,​java.util.HashSet<java.lang.String>> computeVariableArcsWholeLog​(OCLPMDiscoveryParameters parameters)
        Computes a map which assigns each object type to all the activities with which the type has variable arcs
        Parameters:
        parameters -
        Returns:
      • setUp

        public static void setUp​(org.processmining.framework.plugin.PluginContext context)
      • setUp

        public static void setUp​(org.processmining.framework.plugin.PluginContext context,
                                 int min,
                                 int max)
      • setUp

        public static void setUp​(org.processmining.framework.plugin.PluginContext context,
                                 OCLPMDiscoveryParameters parameters,
                                 boolean placeDiscovery,
                                 boolean lpmDiscovery)
        Calculates the steps shown in the UI progress indicator.
        Parameters:
        context -
        parameters -
        placeDiscovery - set true if discovery of place nets is performed
        lpmDiscovery - set true if LPM discovery is performed
      • getContext

        public static org.processmining.framework.plugin.PluginContext getContext()
      • messageNormal

        public static void messageNormal​(java.lang.String message)
      • updateProgress

        public static void updateProgress()
      • updateProgress

        public static void updateProgress​(java.lang.String message)
      • buildObjectGraph

        public static org.jgrapht.Graph<java.lang.String,​org.jgrapht.graph.DefaultEdge> buildObjectGraph​(org.processmining.ocel.ocelobjects.OcelEventLog ocel,
                                                                                                               OCLPMDiscoveryParameters parameters)
      • getGraph

        public static org.jgrapht.Graph<java.lang.String,​org.jgrapht.graph.DefaultEdge> getGraph()
      • setGraph

        public static void setGraph​(org.jgrapht.Graph<java.lang.String,​org.jgrapht.graph.DefaultEdge> graph)
      • flattenOCEL

        public static org.deckfour.xes.model.XLog flattenOCEL​(org.processmining.ocel.ocelobjects.OcelEventLog ocel,
                                                              java.lang.String newTypeLabel,
                                                              java.lang.Boolean flattenCounting)
      • startTimer

        public static void startTimer()
      • printExecutionTime

        public static void printExecutionTime()
      • endTimer

        public static void endTimer​(OCLPMResult oclpmResult,
                                    java.lang.String startingFrom)