public class NAryTreeToProcessTree
extends java.lang.Object
Constructor and Description |
---|
NAryTreeToProcessTree() |
Modifier and Type | Method and Description |
---|---|
static void |
addFitnessProperties(org.processmining.processtree.ProcessTree processTree,
NAryTree naryTree,
CentralRegistry registry) |
static org.processmining.processtree.ProcessTree |
convert(NAryTree tree)
Converts the given NAryTree to a ProcessTree without converting the leaf
pointers to event class names
|
static org.processmining.processtree.ProcessTree |
convert(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.ProcessTree |
convert(org.deckfour.xes.classification.XEventClasses classes,
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.Node |
convertNode(org.processmining.processtree.ProcessTree processTree,
org.processmining.processtree.Block parentNode,
org.deckfour.xes.classification.XEventClasses classes,
NAryTree tree,
int node,
java.util.ArrayList<org.processmining.processtree.configuration.controlflow.ControlFlowConfiguration> configurations)
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,
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.deckfour.xes.classification.XEventClasses classes,
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.deckfour.xes.classification.XEventClasses classes,
NAryTree tree,
int node,
java.util.ArrayList<org.processmining.processtree.configuration.controlflow.ControlFlowConfiguration> configurations)
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.framework.util.Pair<org.processmining.processtree.ProcessTree,java.util.ArrayList<org.processmining.processtree.configuration.controlflow.ControlFlowConfiguration>> |
convertWithConfiguration(org.deckfour.xes.classification.XEventClasses classes,
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
|
public static org.processmining.processtree.ProcessTree convert(NAryTree tree)
tree
- NAryTree to convertpublic static org.processmining.processtree.ProcessTree convert(NAryTree tree, org.deckfour.xes.classification.XEventClasses classes)
classes
- XEventClasses list of event classestree
- NAryTree to convertpublic static org.processmining.processtree.ProcessTree convert(org.deckfour.xes.classification.XEventClasses classes, NAryTree tree, java.lang.String name)
classes
- XEventClasses list of event classestree
- NAryTree to convertname
- The name of the ProcessTreepublic static org.processmining.framework.util.Pair<org.processmining.processtree.ProcessTree,java.util.ArrayList<org.processmining.processtree.configuration.controlflow.ControlFlowConfiguration>> convertWithConfiguration(org.deckfour.xes.classification.XEventClasses classes, NAryTree tree, java.lang.String name)
classes
- XEventClasses list of event classestree
- NAryTree to convertname
- The name of the ProcessTreepublic static org.processmining.processtree.Node convertNode(org.processmining.processtree.ProcessTree processTree, NAryTree tree, int node)
processTree
- ProcessTree to add the converted node totree
- NAryTree to convert the node fromnode
- int index of the node to convert (including subtree!)public static org.processmining.processtree.Node convertNode(org.processmining.processtree.ProcessTree processTree, org.deckfour.xes.classification.XEventClasses classes, NAryTree tree, int node)
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!)public static org.processmining.processtree.Node convertNode(org.processmining.processtree.ProcessTree processTree, org.deckfour.xes.classification.XEventClasses classes, NAryTree tree, int node, java.util.ArrayList<org.processmining.processtree.configuration.controlflow.ControlFlowConfiguration> configurations)
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.public static org.processmining.processtree.Node convertNode(org.processmining.processtree.ProcessTree processTree, org.processmining.processtree.Block parentNode, org.deckfour.xes.classification.XEventClasses classes, NAryTree tree, int node, java.util.ArrayList<org.processmining.processtree.configuration.controlflow.ControlFlowConfiguration> configurations)
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.public static void addFitnessProperties(org.processmining.processtree.ProcessTree processTree, NAryTree naryTree, CentralRegistry registry)