Class IMTrace.IMEventIterator

  • All Implemented Interfaces:
    java.util.Iterator<org.deckfour.xes.model.XEvent>
    Enclosing class:
    IMTrace

    public class IMTrace.IMEventIterator
    extends java.lang.Object
    implements java.util.Iterator<org.deckfour.xes.model.XEvent>
    • Constructor Summary

      Constructors 
      Constructor Description
      IMEventIterator​(int from, int to)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.deckfour.xes.classification.XEventClass classify()  
      IMTrace.IMEventIterator clone()  
      org.deckfour.xes.model.XEvent get()  
      java.lang.Iterable<org.deckfour.xes.model.XEvent> getUntil​(IMTrace.IMEventIterator it)
      Return a new iterable that iterates from the current position (including) to the given iterator (exclusive)
      boolean hasNext()  
      boolean hasPrevious()  
      boolean isAtSameEvent​(IMTrace.IMEventIterator other)  
      org.deckfour.xes.model.XEvent next()  
      org.deckfour.xes.model.XEvent previous()  
      void remove()
      Remove the current XEvent (= last given by next).
      void removeAll()  
      IMTrace split()
      Split the trace such that the part before the current XEvent moves to a new trace.
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • IMEventIterator

        public IMEventIterator​(int from,
                               int to)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<org.deckfour.xes.model.XEvent>
      • remove

        public void remove()
        Remove the current XEvent (= last given by next).
        Specified by:
        remove in interface java.util.Iterator<org.deckfour.xes.model.XEvent>
      • removeAll

        public void removeAll()
      • next

        public org.deckfour.xes.model.XEvent next()
        Specified by:
        next in interface java.util.Iterator<org.deckfour.xes.model.XEvent>
      • get

        public org.deckfour.xes.model.XEvent get()
      • classify

        public org.deckfour.xes.classification.XEventClass classify()
        Returns:
        the event class of the current (i.e. last returned by next()) event.
      • split

        public IMTrace split()
        Split the trace such that the part before the current XEvent moves to a new trace. This iterator will not be altered. The newly trace will not be encountered by any trace iterator that was created before calling split().
        Returns:
        the newly created trace
      • getUntil

        public java.lang.Iterable<org.deckfour.xes.model.XEvent> getUntil​(IMTrace.IMEventIterator it)
        Return a new iterable that iterates from the current position (including) to the given iterator (exclusive)
        Parameters:
        it -
        Returns:
      • hasPrevious

        public boolean hasPrevious()
      • previous

        public org.deckfour.xes.model.XEvent previous()