Class IMTrace.IMEventIterator
- java.lang.Object
-
- org.processmining.plugins.InductiveMiner.mining.logs.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.XEventClassclassify()IMTrace.IMEventIteratorclone()org.deckfour.xes.model.XEventget()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)booleanhasNext()booleanhasPrevious()booleanisAtSameEvent(IMTrace.IMEventIterator other)org.deckfour.xes.model.XEventnext()org.deckfour.xes.model.XEventprevious()voidremove()Remove the current XEvent (= last given by next).voidremoveAll()IMTracesplit()Split the trace such that the part before the current XEvent moves to a new trace.
-
-
-
Method Detail
-
clone
public IMTrace.IMEventIterator clone()
- Overrides:
clonein classjava.lang.Object
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<org.deckfour.xes.model.XEvent>
-
remove
public void remove()
Remove the current XEvent (= last given by next).- Specified by:
removein interfacejava.util.Iterator<org.deckfour.xes.model.XEvent>
-
removeAll
public void removeAll()
-
next
public org.deckfour.xes.model.XEvent next()
- Specified by:
nextin interfacejava.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()
-
isAtSameEvent
public boolean isAtSameEvent(IMTrace.IMEventIterator other)
-
-