public class LogUtils
extends java.lang.Object
Constructor and Description |
---|
LogUtils() |
Modifier and Type | Method and Description |
---|---|
static org.deckfour.xes.model.XLog |
filterLog(org.deckfour.xes.model.XLog eventlog,
java.util.Collection<java.lang.Integer> traceIndices)
Filter the log to only keep traces of which the indices are given.
|
static org.deckfour.xes.model.XLog |
filterLogActiveTraces(org.deckfour.xes.model.XLog eventlog,
java.util.Date timestamp)
Filter the log to only keep traces which were active at the given time.
|
static org.deckfour.xes.model.XLog |
filterLogUntil(org.deckfour.xes.model.XLog eventlog,
java.util.Date timestamp,
boolean inclusive)
Filter the log to only keep events which occurred before or at
(inclusive=true) the indicated time.
|
static java.util.TreeMap<java.util.Date,java.util.ArrayList<org.deckfour.xes.model.XEvent>> |
getOrderedEvents(org.deckfour.xes.model.XLog eventlog)
Return a sorted map of
|
static boolean |
isActive(org.deckfour.xes.model.XTrace trace,
java.util.Date timestamp)
Checks whether the given trace is active at the given time.
|
public static java.util.TreeMap<java.util.Date,java.util.ArrayList<org.deckfour.xes.model.XEvent>> getOrderedEvents(org.deckfour.xes.model.XLog eventlog)
eventlog
- The event logpublic static org.deckfour.xes.model.XLog filterLog(org.deckfour.xes.model.XLog eventlog, java.util.Collection<java.lang.Integer> traceIndices)
eventlog
- The original event logtraceIndices
- The indices of traces to keeppublic static org.deckfour.xes.model.XLog filterLogUntil(org.deckfour.xes.model.XLog eventlog, java.util.Date timestamp, boolean inclusive)
eventlog
- The original event logtimestamp
- The time to look atinclusive
- Whether or not to keep events that occurred exactly on the
given time.public static org.deckfour.xes.model.XLog filterLogActiveTraces(org.deckfour.xes.model.XLog eventlog, java.util.Date timestamp)
eventlog
- The event log to filter.timestamp
- The time to look at.public static boolean isActive(org.deckfour.xes.model.XTrace trace, java.util.Date timestamp)
trace
- The trace to check.timestamp
- The time to look at.