Class AttributesAnalysisAlgorithm


  • public class AttributesAnalysisAlgorithm
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<org.processmining.acceptingpetrinetdecomposer.models.rpst.PetriNetRPSTNode,​java.util.Map<java.lang.String,​java.lang.Integer>> apply​(org.processmining.framework.plugin.PluginContext context, org.processmining.acceptingpetrinetdecomposer.models.rpst.PetriNetRPST rpst, org.processmining.plugins.petrinet.replayresult.PNRepResult alignments, org.deckfour.xes.model.XLog log, java.lang.String attribute)
      Creates a map that maps each fragment to a map which measures the occurrences of different values of the given attribute inside the fragment.
      long countTotalEvents​(org.deckfour.xes.model.XLog log)  
      org.jfree.data.category.CategoryDataset createCategoryDataset​(java.util.Map<java.lang.String,​java.lang.Integer> data)  
      java.lang.Object[] getAttributeNames​(org.deckfour.xes.model.XLog log1, org.deckfour.xes.model.XLog log2)
      Get the names of all event attributes from both event logs.
      • Methods inherited from class java.lang.Object

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

      • AttributesAnalysisAlgorithm

        public AttributesAnalysisAlgorithm()
    • Method Detail

      • apply

        public java.util.Map<org.processmining.acceptingpetrinetdecomposer.models.rpst.PetriNetRPSTNode,​java.util.Map<java.lang.String,​java.lang.Integer>> apply​(org.processmining.framework.plugin.PluginContext context,
                                                                                                                                                                             org.processmining.acceptingpetrinetdecomposer.models.rpst.PetriNetRPST rpst,
                                                                                                                                                                             org.processmining.plugins.petrinet.replayresult.PNRepResult alignments,
                                                                                                                                                                             org.deckfour.xes.model.XLog log,
                                                                                                                                                                             java.lang.String attribute)
        Creates a map that maps each fragment to a map which measures the occurrences of different values of the given attribute inside the fragment. This map maps the each String attribute value occurring in synchronous events of the fragment to the number of every synchronous events belonging to the fragment that have this value.
        Parameters:
        context - Plugin context.
        rpst - RPST specifying the decomposition.
        alignments - Alignment of the given event log.
        log - Considered event log.
        attribute - Name of the attribute including prefixes, i.e. "org:resource", "concept:name".
        Returns:
        Map with fragments as keys and maps, which map attribute values to their number of occurrences, as values.
      • createCategoryDataset

        public org.jfree.data.category.CategoryDataset createCategoryDataset​(java.util.Map<java.lang.String,​java.lang.Integer> data)
      • getAttributeNames

        public java.lang.Object[] getAttributeNames​(org.deckfour.xes.model.XLog log1,
                                                    org.deckfour.xes.model.XLog log2)
        Get the names of all event attributes from both event logs.
        Parameters:
        log1 -
        log2 -
        Returns:
        Object array in which every value is a String.
      • countTotalEvents

        public long countTotalEvents​(org.deckfour.xes.model.XLog log)