Class IMTrace

  • All Implemented Interfaces:
    java.lang.Iterable<org.deckfour.xes.model.XEvent>, org.deckfour.xes.model.XAttributable

    public class IMTrace
    extends java.lang.Object
    implements java.lang.Iterable<org.deckfour.xes.model.XEvent>, org.deckfour.xes.model.XAttributable
    • Field Detail

      • outEvents

        public final java.util.BitSet outEvents
    • Constructor Detail

      • IMTrace

        public IMTrace​(int XTraceIndex,
                       int IMTraceIndex,
                       java.util.BitSet outEvents,
                       IMLog log)
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Returns:
        Whether the trace contains no events.
      • size

        public int size()
        Returns:
        The number of events in the trace.
      • iterator

        public IMTrace.IMEventIterator iterator()
        Specified by:
        iterator in interface java.lang.Iterable<org.deckfour.xes.model.XEvent>
      • subList

        public java.lang.Iterable<org.deckfour.xes.model.XEvent> subList​(int from,
                                                                         int to)
        Returns a sublist. This is O(n) in the number of events in the trace.
        Parameters:
        from - index at which the sub list starts. Inclusive.
        to - index at which the sub list ends. Exclusive.
        Returns:
      • get

        @Deprecated
        public org.deckfour.xes.model.XEvent get​(int index)
        Deprecated.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getAttributes

        public org.deckfour.xes.model.XAttributeMap getAttributes()
        Specified by:
        getAttributes in interface org.deckfour.xes.model.XAttributable
      • getIMTraceIndex

        public int getIMTraceIndex()
      • getXTraceIndex

        public int getXTraceIndex()
      • getExtensions

        public java.util.Set<org.deckfour.xes.extension.XExtension> getExtensions()
        Specified by:
        getExtensions in interface org.deckfour.xes.model.XAttributable
      • hasAttributes

        public boolean hasAttributes()
        Specified by:
        hasAttributes in interface org.deckfour.xes.model.XAttributable
      • setAttributes

        public void setAttributes​(org.deckfour.xes.model.XAttributeMap arg0)
        Specified by:
        setAttributes in interface org.deckfour.xes.model.XAttributable