Class TSEventCache


  • public class TSEventCache
    extends java.lang.Object
    Class 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.XEvent get​(org.deckfour.xes.model.XTrace t, int i)
      Gets the event at index i in the given trace t.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TSEventCache

        public TSEventCache()
    • 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.