Class TSEventCache
- java.lang.Object
-
- org.processmining.plugins.transitionsystem.miner.util.TSEventCache
-
public class TSEventCache extends java.lang.ObjectClass that caches (and enforces sequential access to) events in a trace.- Author:
- hverbeek
-
-
Constructor Summary
Constructors Constructor Description TSEventCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.deckfour.xes.model.XEventget(org.deckfour.xes.model.XTrace t, int i)Gets the event at index i in the given trace t.
-
-
-
Method Detail
-
get
public org.deckfour.xes.model.XEvent get(org.deckfour.xes.model.XTrace t, int i)Gets the event at index i in the given trace t. Precondition: This event exists. Side effect: Caches up to MAX_CACHE_SIZE events in the trace. Somehow, the OpenXES library seems to favor sequential access in traces. Therefore, we try to access all events in a trace sequentially and cache them. Later requests can then be answered from the cache.- Parameters:
t- The given trace.i- The given index.- Returns:
- The event at index i in trace t.
-
-