Class LogLocationDelayInducer
- java.lang.Object
-
- org.processmining.plugins.stochasticpetrinet.simulator.LogLocationDelayInducer
-
public class LogLocationDelayInducer extends java.lang.ObjectThis class takes a location unaware log and transforms it into a location aware log. The effect is that we create delays between activities due to resources moving around on a map. We take a graph containing the connections between different areas and the distances between these areas as edge weights.1. We make one pass through the log to decide which activities are performed where. This is given by a probabilistic mapping of location options per activity.
2. We check for each trace and every activity: where have the resources been before, and how much time has passed since? -> if the resources were seen somewhere else, and the time that passed since is big enough to include a passage time, then it is fine. -> otherwise, we need to shift the activity by the passage time of the latest arriving resource. -> This shift is transitive to all activities having some transitive relation to the current one.
- Author:
- Andreas Rogge-Solti
-
-
Constructor Summary
Constructors Constructor Description LogLocationDelayInducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doublegetDistance(Activity last, Activity activity, WorldConfiguration wc)org.deckfour.xes.model.XLoginduceLocationDelay(org.deckfour.xes.model.XLog log, WorldConfiguration wc, StochasticNet net)protected voidvisualizeGraph(edu.uci.ics.jung.graph.Graph<Activity,LocationChange> dependencyGraph, boolean show, java.util.Map<Activity,java.lang.Number> earliestStartTimes, StochasticNet.TimeUnit unit, Activity root)protected voidwriteRecordsToFile(com.google.common.collect.SortedMultiset<Record> sortedRecords, java.lang.String fileName)
-
-
-
Method Detail
-
induceLocationDelay
public org.deckfour.xes.model.XLog induceLocationDelay(org.deckfour.xes.model.XLog log, WorldConfiguration wc, StochasticNet net)
-
writeRecordsToFile
protected void writeRecordsToFile(com.google.common.collect.SortedMultiset<Record> sortedRecords, java.lang.String fileName)
-
visualizeGraph
protected void visualizeGraph(edu.uci.ics.jung.graph.Graph<Activity,LocationChange> dependencyGraph, boolean show, java.util.Map<Activity,java.lang.Number> earliestStartTimes, StochasticNet.TimeUnit unit, Activity root)
-
getDistance
protected double getDistance(Activity last, Activity activity, WorldConfiguration wc)
-
-