Class NAryTreeToProcessTree


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.processmining.processtree.ProcessTree convert​(org.deckfour.xes.classification.XEventClasses classes, org.processmining.plugins.etm.model.narytree.NAryTree tree, java.lang.String name)
      Converts the given NAryTree to a ProcessTree while converting the leaf pointers to event class names
      static org.processmining.processtree.ProcessTree convert​(org.processmining.plugins.etm.model.narytree.NAryTree tree)
      Converts the given NAryTree to a ProcessTree without converting the leaf pointers to event class names
      static org.processmining.processtree.ProcessTree convert​(org.processmining.plugins.etm.model.narytree.NAryTree tree, org.deckfour.xes.classification.XEventClasses classes)
      Converts the given NAryTree to a ProcessTree while converting the leaf pointers to event class names
      static org.processmining.processtree.Node convertNode​(org.processmining.processtree.ProcessTree processTree, org.deckfour.xes.classification.XEventClasses classes, org.processmining.plugins.etm.model.narytree.NAryTree tree, int node)
      Convert a single node of the given NAryTree to a node in the ProcessTree, using the provided list of event classes for the translation
      static org.processmining.processtree.Node convertNode​(org.processmining.processtree.ProcessTree processTree, org.processmining.plugins.etm.model.narytree.NAryTree tree, int node)
      Convert a single node of the given NAryTree to a node in the ProcessTree
      static org.processmining.processtree.Node convertNode​(org.processmining.processtree.ProcessTree processTree, org.processmining.processtree.Block parentNode, org.deckfour.xes.classification.XEventClasses classes, org.processmining.plugins.etm.model.narytree.NAryTree tree, int node)
      Convert a single node of the given NAryTree to a node in the ProcessTree, using the provided list of event classes for the translation
      static org.processmining.processtree.ProcessTree convertWithoutConfiguration​(org.deckfour.xes.classification.XEventClasses classes, org.processmining.plugins.etm.model.narytree.NAryTree tree, java.lang.String name)
      Converts the given NAryTree to a ProcessTree while converting the leaf pointers to event class names and including the provided configurations of the NAryTree
      • Methods inherited from class java.lang.Object

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

      • NAryTreeToProcessTree

        public NAryTreeToProcessTree()
    • Method Detail

      • convert

        public static org.processmining.processtree.ProcessTree convert​(org.processmining.plugins.etm.model.narytree.NAryTree tree)
        Converts the given NAryTree to a ProcessTree without converting the leaf pointers to event class names
        Parameters:
        tree - NAryTree to convert
        Returns:
        ProcessTree the processTree equivalent
      • convert

        public static org.processmining.processtree.ProcessTree convert​(org.processmining.plugins.etm.model.narytree.NAryTree tree,
                                                                        org.deckfour.xes.classification.XEventClasses classes)
        Converts the given NAryTree to a ProcessTree while converting the leaf pointers to event class names
        Parameters:
        classes - XEventClasses list of event classes
        tree - NAryTree to convert
        Returns:
        ProcessTree the processTree equivalent
      • convert

        public static org.processmining.processtree.ProcessTree convert​(org.deckfour.xes.classification.XEventClasses classes,
                                                                        org.processmining.plugins.etm.model.narytree.NAryTree tree,
                                                                        java.lang.String name)
        Converts the given NAryTree to a ProcessTree while converting the leaf pointers to event class names
        Parameters:
        classes - XEventClasses list of event classes
        tree - NAryTree to convert
        name - The name of the ProcessTree
        Returns:
        ProcessTree the processTree equivalent
      • convertWithoutConfiguration

        public static org.processmining.processtree.ProcessTree convertWithoutConfiguration​(org.deckfour.xes.classification.XEventClasses classes,
                                                                                            org.processmining.plugins.etm.model.narytree.NAryTree tree,
                                                                                            java.lang.String name)
        Converts the given NAryTree to a ProcessTree while converting the leaf pointers to event class names and including the provided configurations of the NAryTree
        Parameters:
        classes - XEventClasses list of event classes
        tree - NAryTree to convert
        name - The name of the ProcessTree
        Returns:
        Pair> The ProcessTree and a list of configurations to be applied on this tree
      • convertNode

        public static org.processmining.processtree.Node convertNode​(org.processmining.processtree.ProcessTree processTree,
                                                                     org.processmining.plugins.etm.model.narytree.NAryTree tree,
                                                                     int node)
        Convert a single node of the given NAryTree to a node in the ProcessTree
        Parameters:
        processTree - ProcessTree to add the converted node to
        tree - NAryTree to convert the node from
        node - int index of the node to convert (including subtree!)
        Returns:
        ProcessTree Node of the corresponding NAryTree node.
      • convertNode

        public static org.processmining.processtree.Node convertNode​(org.processmining.processtree.ProcessTree processTree,
                                                                     org.deckfour.xes.classification.XEventClasses classes,
                                                                     org.processmining.plugins.etm.model.narytree.NAryTree tree,
                                                                     int node)
        Convert a single node of the given NAryTree to a node in the ProcessTree, using the provided list of event classes for the translation
        Parameters:
        processTree - ProcessTree to add the converted node to
        classes - XEventClasses used to translate the NAryTree leaf pointers to class names
        tree - NAryTree to convert the node from
        node - int index of the node to convert (including subtree!)
        configurations - An ArrayList of configurations to be filled with the correct settings. This method is tolerant regarding the list, e.g. a null instance will not break it and if the size if different than the number of configurations for the NAryTree it will be handled correctly.
        Returns:
        ProcessTree Node of the corresponding NAryTree node.
      • convertNode

        public static org.processmining.processtree.Node convertNode​(org.processmining.processtree.ProcessTree processTree,
                                                                     org.processmining.processtree.Block parentNode,
                                                                     org.deckfour.xes.classification.XEventClasses classes,
                                                                     org.processmining.plugins.etm.model.narytree.NAryTree tree,
                                                                     int node)
        Convert a single node of the given NAryTree to a node in the ProcessTree, using the provided list of event classes for the translation
        Parameters:
        processTree - ProcessTree to add the converted node to
        parentNode - The node in the ProcessTree that is the parent of the subtree to be translated. If NULL then no parent is assumed. The parent reference is used to attach the child to the parent and correctly set the configurations.
        classes - XEventClasses used to translate the NAryTree leaf pointers to class names
        tree - NAryTree to convert the node from
        node - int index of the node to convert (including subtree!)
        configurations - An ArrayList of configurations to be filled with the correct settings. This method is tolerant regarding the list, e.g. a null instance will not break it and if the size if different than the number of configurations for the NAryTree it will be handled correctly.
        Returns:
        ProcessTree Node of the corresponding NAryTree node.