C - The class implementing the cost structure. To be able to detect
which cost is better, it needs to implement Comparable.public class Replayer<C extends ReplayCost & java.lang.Comparable<? super C>>
extends java.lang.Object
ReplayCost,
ReplayCostAddOperator,
ReplaySettings| Constructor and Description |
|---|
Replayer(org.processmining.framework.plugin.PluginContext context,
org.processmining.models.graphbased.directed.petrinet.Petrinet net,
org.processmining.models.semantics.petrinet.PetrinetSemantics semantics,
java.util.Map<org.processmining.models.graphbased.directed.petrinet.elements.Transition,? extends java.lang.Object> map,
ReplayCostAddOperator<C> addOperator)
Constructs a replayer.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<org.processmining.models.graphbased.directed.petrinet.elements.Transition> |
replayTrace(org.processmining.models.semantics.petrinet.Marking initialMarking,
java.util.List<? extends java.lang.Object> trace,
ReplaySettings<C> settings)
Replays a given trace with the given settings, from the given initial
marking.
|
public Replayer(org.processmining.framework.plugin.PluginContext context,
org.processmining.models.graphbased.directed.petrinet.Petrinet net,
org.processmining.models.semantics.petrinet.PetrinetSemantics semantics,
java.util.Map<org.processmining.models.graphbased.directed.petrinet.elements.Transition,? extends java.lang.Object> map,
ReplayCostAddOperator<C> addOperator)
context - The context in which the replayer runs.net - The net to replay the traces in.semantics - The semantics to use while replaying traces.map - The map from transitions to objects in the trace.addOperator - The operator to use for adding to a cost.public java.util.List<org.processmining.models.graphbased.directed.petrinet.elements.Transition> replayTrace(org.processmining.models.semantics.petrinet.Marking initialMarking,
java.util.List<? extends java.lang.Object> trace,
ReplaySettings<C> settings)
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException
initialMarking - The initial marking of the Petri net for this trace.trace - The trace to replay.settings - The settings to use.java.util.concurrent.ExecutionExceptionjava.lang.InterruptedException