Package org.processmining.lpm.util
Class NAryTreeToProcessTree
- java.lang.Object
-
- org.processmining.lpm.util.NAryTreeToProcessTree
-
public class NAryTreeToProcessTree extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NAryTreeToProcessTree()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.processmining.processtree.ProcessTreeconvert(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 namesstatic org.processmining.processtree.ProcessTreeconvert(org.processmining.plugins.etm.model.narytree.NAryTree tree)Converts the given NAryTree to a ProcessTree without converting the leaf pointers to event class namesstatic org.processmining.processtree.ProcessTreeconvert(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 namesstatic org.processmining.processtree.NodeconvertNode(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 translationstatic org.processmining.processtree.NodeconvertNode(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 ProcessTreestatic org.processmining.processtree.NodeconvertNode(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 translationstatic org.processmining.processtree.ProcessTreeconvertWithoutConfiguration(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
-
-
-
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 classestree- 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 classestree- NAryTree to convertname- 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 classestree- NAryTree to convertname- 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 totree- NAryTree to convert the node fromnode- 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 toclasses- XEventClasses used to translate the NAryTree leaf pointers to class namestree- NAryTree to convert the node fromnode- 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 toparentNode- 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 namestree- NAryTree to convert the node fromnode- 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.
-
-