Class PNLogReplayer


  • public class PNLogReplayer
    extends org.processmining.plugins.petrinet.replayer.PNLogReplayer
    Author:
    aadrians, dfahland
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.deckfour.xes.classification.XEventClass DUMMY  
    • Constructor Summary

      Constructors 
      Constructor Description
      PNLogReplayer()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static org.processmining.plugins.connectionfactories.logpetrinet.TransEvClassMapping adoptEventClassMapping​(org.processmining.framework.plugin.PluginContext context, org.processmining.models.graphbased.directed.petrinet.PetrinetGraph net, org.deckfour.xes.model.XLog log, org.processmining.plugins.connectionfactories.logpetrinet.TransEvClassMapping old_map, boolean createConnection)
      Adopt an existing transition to event class mapping between an old net and the given log, to a new mapping between the given net and log.
      static org.processmining.models.semantics.petrinet.Marking adoptFinalMarking​(org.processmining.framework.plugin.PluginContext context, org.processmining.models.graphbased.directed.petrinet.PetrinetGraph net, org.processmining.models.semantics.petrinet.Marking old_m_final, boolean createConnection)
      Create a final marking for the given net based on a final marking of another net.
      static org.processmining.plugins.petrinet.replayresult.PNRepResult callReplayer​(org.processmining.framework.plugin.PluginContext context, org.processmining.models.graphbased.directed.petrinet.PetrinetGraph net, org.deckfour.xes.model.XLog log, org.processmining.plugins.connectionfactories.logpetrinet.TransEvClassMapping mapping, PNLogReplayer.ReplayParams par)  
      protected static org.processmining.plugins.petrinet.replayresult.PNRepResult cancel​(org.processmining.framework.plugin.PluginContext context, java.lang.String message)  
      static java.lang.Object[] constructFinalMarking​(org.processmining.framework.plugin.PluginContext context, org.processmining.models.graphbased.directed.petrinet.PetrinetGraph net)  
      static org.deckfour.xes.classification.XEventClassifier getDefaultClassifier​(org.deckfour.xes.model.XLog log)  
      static java.util.List<org.deckfour.xes.classification.XEventClass> getEventClasses​(org.deckfour.xes.model.XLog log, org.deckfour.xes.classification.XEventClassifier classifier)  
      static org.processmining.plugins.connectionfactories.logpetrinet.TransEvClassMapping getEventClassMapping​(org.processmining.framework.plugin.PluginContext context, org.processmining.models.graphbased.directed.petrinet.PetrinetGraph net, org.deckfour.xes.model.XLog log, org.deckfour.xes.classification.XEventClassifier classifier)  
      static org.deckfour.xes.classification.XEventClass getEventClassMapping_preSelectOption​(java.lang.String transition, java.util.Collection<org.deckfour.xes.classification.XEventClass> eventClasses)
      Returns the Event Option Box index of the most similar event for the transition.
      static org.deckfour.xes.classification.XEventClass getEventClassMapping_preSelectOption_ignoreLifeCycle​(java.lang.String transition, java.util.Collection<org.deckfour.xes.classification.XEventClass> eventClasses)
      Returns the Event Option Box index of the most similar event for the transition, ignores any lifecycle information (after a "+") in the name for the matching.
      static PNLogReplayer.ReplayParams getReplayerParameters​(org.processmining.framework.plugin.PluginContext context, org.processmining.models.graphbased.directed.petrinet.PetrinetGraph net, org.processmining.models.semantics.petrinet.Marking m_initial, org.processmining.models.semantics.petrinet.Marking m_final, org.deckfour.xes.model.XLog log, org.deckfour.xes.classification.XEventClassifier classifier)  
      org.processmining.plugins.petrinet.replayer.algorithms.IPNReplayAlgorithm getUsedAlgorithm()  
      org.processmining.plugins.petrinet.replayer.algorithms.IPNReplayParameter getUsedAlgParameters()  
      org.processmining.plugins.connectionfactories.logpetrinet.TransEvClassMapping getUsedMapping()  
      org.processmining.plugins.petrinet.replayresult.PNRepResult replayLog​(org.processmining.contexts.uitopia.UIPluginContext context, org.processmining.models.graphbased.directed.petrinet.PetrinetGraph net, org.deckfour.xes.model.XLog log)  
      • Methods inherited from class org.processmining.plugins.petrinet.replayer.PNLogReplayer

        createConnections, replayLog, replayLog, replayLog, replayLog, replayLog, replayLog, replayLog, replayLog, replayLog, replayLogGUI
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DUMMY

        public static final org.deckfour.xes.classification.XEventClass DUMMY
    • Constructor Detail

      • PNLogReplayer

        public PNLogReplayer()
    • Method Detail

      • replayLog

        public org.processmining.plugins.petrinet.replayresult.PNRepResult replayLog​(org.processmining.contexts.uitopia.UIPluginContext context,
                                                                                     org.processmining.models.graphbased.directed.petrinet.PetrinetGraph net,
                                                                                     org.deckfour.xes.model.XLog log)
                                                                              throws org.processmining.framework.connections.ConnectionCannotBeObtained
        Throws:
        org.processmining.framework.connections.ConnectionCannotBeObtained
      • getUsedAlgorithm

        public org.processmining.plugins.petrinet.replayer.algorithms.IPNReplayAlgorithm getUsedAlgorithm()
      • getUsedAlgParameters

        public org.processmining.plugins.petrinet.replayer.algorithms.IPNReplayParameter getUsedAlgParameters()
      • getUsedMapping

        public org.processmining.plugins.connectionfactories.logpetrinet.TransEvClassMapping getUsedMapping()
      • getEventClassMapping

        public static org.processmining.plugins.connectionfactories.logpetrinet.TransEvClassMapping getEventClassMapping​(org.processmining.framework.plugin.PluginContext context,
                                                                                                                         org.processmining.models.graphbased.directed.petrinet.PetrinetGraph net,
                                                                                                                         org.deckfour.xes.model.XLog log,
                                                                                                                         org.deckfour.xes.classification.XEventClassifier classifier)
      • adoptEventClassMapping

        public static org.processmining.plugins.connectionfactories.logpetrinet.TransEvClassMapping adoptEventClassMapping​(org.processmining.framework.plugin.PluginContext context,
                                                                                                                           org.processmining.models.graphbased.directed.petrinet.PetrinetGraph net,
                                                                                                                           org.deckfour.xes.model.XLog log,
                                                                                                                           org.processmining.plugins.connectionfactories.logpetrinet.TransEvClassMapping old_map,
                                                                                                                           boolean createConnection)
        Adopt an existing transition to event class mapping between an old net and the given log, to a new mapping between the given net and log. Reuses the original event classifier and the original dummy event class.
        Parameters:
        context -
        net -
        log -
        old_map -
        createConnection -
        Returns:
        mapping between net and log
      • getEventClassMapping_preSelectOption

        public static org.deckfour.xes.classification.XEventClass getEventClassMapping_preSelectOption​(java.lang.String transition,
                                                                                                       java.util.Collection<org.deckfour.xes.classification.XEventClass> eventClasses)
        Returns the Event Option Box index of the most similar event for the transition.
        Parameters:
        transition - Name of the transitions
        events - Array with the options for this transition
        Returns:
        Index of option more similar to the transition
      • getEventClassMapping_preSelectOption_ignoreLifeCycle

        public static org.deckfour.xes.classification.XEventClass getEventClassMapping_preSelectOption_ignoreLifeCycle​(java.lang.String transition,
                                                                                                                       java.util.Collection<org.deckfour.xes.classification.XEventClass> eventClasses)
        Returns the Event Option Box index of the most similar event for the transition, ignores any lifecycle information (after a "+") in the name for the matching. Do not apply if the log uses different life-cycle transitions.
        Parameters:
        transition - Name of the transitions
        events - Array with the options for this transition
        Returns:
        Index of option more similar to the transition
      • getEventClasses

        public static java.util.List<org.deckfour.xes.classification.XEventClass> getEventClasses​(org.deckfour.xes.model.XLog log,
                                                                                                  org.deckfour.xes.classification.XEventClassifier classifier)
      • getDefaultClassifier

        public static org.deckfour.xes.classification.XEventClassifier getDefaultClassifier​(org.deckfour.xes.model.XLog log)
        Parameters:
        log -
        Returns:
        default event classifier of the log
      • getReplayerParameters

        public static PNLogReplayer.ReplayParams getReplayerParameters​(org.processmining.framework.plugin.PluginContext context,
                                                                       org.processmining.models.graphbased.directed.petrinet.PetrinetGraph net,
                                                                       org.processmining.models.semantics.petrinet.Marking m_initial,
                                                                       org.processmining.models.semantics.petrinet.Marking m_final,
                                                                       org.deckfour.xes.model.XLog log,
                                                                       org.deckfour.xes.classification.XEventClassifier classifier)
      • callReplayer

        public static org.processmining.plugins.petrinet.replayresult.PNRepResult callReplayer​(org.processmining.framework.plugin.PluginContext context,
                                                                                               org.processmining.models.graphbased.directed.petrinet.PetrinetGraph net,
                                                                                               org.deckfour.xes.model.XLog log,
                                                                                               org.processmining.plugins.connectionfactories.logpetrinet.TransEvClassMapping mapping,
                                                                                               PNLogReplayer.ReplayParams par)
      • constructFinalMarking

        public static java.lang.Object[] constructFinalMarking​(org.processmining.framework.plugin.PluginContext context,
                                                               org.processmining.models.graphbased.directed.petrinet.PetrinetGraph net)
      • adoptFinalMarking

        public static org.processmining.models.semantics.petrinet.Marking adoptFinalMarking​(org.processmining.framework.plugin.PluginContext context,
                                                                                            org.processmining.models.graphbased.directed.petrinet.PetrinetGraph net,
                                                                                            org.processmining.models.semantics.petrinet.Marking old_m_final,
                                                                                            boolean createConnection)
        Create a final marking for the given net based on a final marking of another net.
        Parameters:
        context -
        net -
        old_m_final -
        createConnection - whether to create a FinalMarkingConnection between net and new final marking
        Returns:
        new final making
      • cancel

        protected static org.processmining.plugins.petrinet.replayresult.PNRepResult cancel​(org.processmining.framework.plugin.PluginContext context,
                                                                                            java.lang.String message)