Class PetrinetLSMiner


  • public class PetrinetLSMiner
    extends LocalSearchMiner<org.processmining.models.graphbased.directed.petrinet.PetrinetGraph>
    Created by andreas on 3/22/17.
    • Constructor Summary

      Constructors 
      Constructor Description
      PetrinetLSMiner​(DistanceFunction function, org.processmining.framework.plugin.PluginContext context, org.deckfour.xes.model.XLog log, org.processmining.models.graphbased.directed.petrinet.PetrinetGraph model)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected Distance computeDistance​(org.deckfour.xes.model.XLog log, org.processmining.models.graphbased.directed.petrinet.PetrinetGraph model)
      Computes the distance between a log and a model Subclasses need to implement this according to their model type.
      protected org.deckfour.xes.model.XLog moveInLog​(org.deckfour.xes.model.XLog log, org.processmining.models.graphbased.directed.petrinet.PetrinetGraph model)
      We assume that the alignment
      protected org.processmining.models.graphbased.directed.petrinet.PetrinetGraph moveInModel​(org.processmining.models.graphbased.directed.petrinet.PetrinetGraph model, org.deckfour.xes.model.XLog log)
      we assume that the alignment guides us in changing the graph.
      • Methods inherited from class java.lang.Object

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

      • currentAlignment

        protected org.processmining.plugins.petrinet.replayresult.PNRepResult currentAlignment
    • Constructor Detail

      • PetrinetLSMiner

        public PetrinetLSMiner​(DistanceFunction function,
                               org.processmining.framework.plugin.PluginContext context,
                               org.deckfour.xes.model.XLog log,
                               org.processmining.models.graphbased.directed.petrinet.PetrinetGraph model)
    • Method Detail

      • computeDistance

        protected Distance computeDistance​(org.deckfour.xes.model.XLog log,
                                           org.processmining.models.graphbased.directed.petrinet.PetrinetGraph model)
        Description copied from class: OptimalMiner
        Computes the distance between a log and a model Subclasses need to implement this according to their model type. Ideally, this is a fast step.
        Specified by:
        computeDistance in class OptimalMiner<org.processmining.models.graphbased.directed.petrinet.PetrinetGraph>
        Parameters:
        log - the log to compare with the model
        model - the model to compare with the log
        Returns:
        Distance
      • moveInModel

        protected org.processmining.models.graphbased.directed.petrinet.PetrinetGraph moveInModel​(org.processmining.models.graphbased.directed.petrinet.PetrinetGraph model,
                                                                                                  org.deckfour.xes.model.XLog log)
        Description copied from class: LocalSearchMiner
        we assume that the alignment guides us in changing the graph.
        Specified by:
        moveInModel in class LocalSearchMiner<org.processmining.models.graphbased.directed.petrinet.PetrinetGraph>
      • moveInLog

        protected org.deckfour.xes.model.XLog moveInLog​(org.deckfour.xes.model.XLog log,
                                                        org.processmining.models.graphbased.directed.petrinet.PetrinetGraph model)
        Description copied from class: LocalSearchMiner
        We assume that the alignment
        Specified by:
        moveInLog in class LocalSearchMiner<org.processmining.models.graphbased.directed.petrinet.PetrinetGraph>
        Returns:
        XLog adjusted to better fit the current