public class FitnessHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static org.deckfour.xes.factory.XFactory |
xesFactory |
| Constructor and Description |
|---|
FitnessHelper() |
| Modifier and Type | Method and Description |
|---|---|
static org.processmining.models.semantics.petrinet.Marking |
getFinalMarking(org.processmining.models.graphbased.directed.petrinet.Petrinet net)
Method to generate an "artificial" final marking, by checking the
places with no outgoing connections
|
static java.lang.Double |
getFitness(org.processmining.framework.plugin.PluginContext context,
org.processmining.models.graphbased.directed.petrinet.Petrinet net,
org.deckfour.xes.model.XLog log)
Method that computes the fitness, using the Replayer package.
|
static org.processmining.models.semantics.petrinet.Marking |
getInitialMarking(org.processmining.models.graphbased.directed.petrinet.Petrinet net)
Method to generate an "artificial" initial marking, by checking the
places with no incoming connections
|
static org.processmining.plugins.connectionfactories.logpetrinet.TransEvClassMapping |
getLogModelMapping(org.deckfour.xes.model.XLog log,
org.deckfour.xes.classification.XEventClass dummyEventClass,
org.processmining.models.graphbased.directed.petrinet.Petrinet net)
Method to generate a mapping (based on
XLogInfoImpl.NAME_CLASSIFIER) between a Petri net and a log |
static void |
injectArtificialStartEnd(org.deckfour.xes.model.XTrace t)
Method to inject artificial start and end events into a given trace
|
static org.deckfour.xes.model.XLog |
keepOnlyTracesWithStartEnd(org.deckfour.xes.model.XLog log,
java.util.ArrayList<org.processmining.framework.util.Pair<java.lang.String,java.lang.String>> startsEnds)
Method to filter the traces of a log to consider only the "complete" ones
(i.e.
|
static org.deckfour.xes.model.XLog |
traceSet2Log(java.util.concurrent.ArrayBlockingQueue<org.deckfour.xes.model.XTrace> originalLog,
java.util.Collection<org.processmining.framework.util.Pair<java.lang.String,java.lang.String>> logStartsEnd) |
public static void injectArtificialStartEnd(org.deckfour.xes.model.XTrace t)
t - the trace that needs to be injected with thepublic static org.deckfour.xes.model.XLog keepOnlyTracesWithStartEnd(org.deckfour.xes.model.XLog log,
java.util.ArrayList<org.processmining.framework.util.Pair<java.lang.String,java.lang.String>> startsEnds)
log - the first logstartsEnds - list of pairs of starting and finishing events (the
first event of the pair identifies the first event, the second identifies
the last)public static org.processmining.models.semantics.petrinet.Marking getInitialMarking(org.processmining.models.graphbased.directed.petrinet.Petrinet net)
net - the petrinet modelpublic static org.processmining.models.semantics.petrinet.Marking getFinalMarking(org.processmining.models.graphbased.directed.petrinet.Petrinet net)
net - the Petri net modelpublic static org.processmining.plugins.connectionfactories.logpetrinet.TransEvClassMapping getLogModelMapping(org.deckfour.xes.model.XLog log,
org.deckfour.xes.classification.XEventClass dummyEventClass,
org.processmining.models.graphbased.directed.petrinet.Petrinet net)
XLogInfoImpl.NAME_CLASSIFIER) between a Petri net and a loglog - the given logdummyEventClass - a dummy event class (to map unmappable events)net - the given Petri netpublic static java.lang.Double getFitness(org.processmining.framework.plugin.PluginContext context,
org.processmining.models.graphbased.directed.petrinet.Petrinet net,
org.deckfour.xes.model.XLog log)
context - the plugin contextnet - the model as a Petri netoriginalLog - the logstartsEnds - list of pairs of starting and finishing events (the
first event of the pair identifies the first event, the second identifies
the last)org.processmining.plugins.joosbuijs.blockminer.genetic.TreeEvaluatorpublic static org.deckfour.xes.model.XLog traceSet2Log(java.util.concurrent.ArrayBlockingQueue<org.deckfour.xes.model.XTrace> originalLog,
java.util.Collection<org.processmining.framework.util.Pair<java.lang.String,java.lang.String>> logStartsEnd)
originalLog - logStartsEnd -