|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.mining.dmcscanning.logutils.FilteredIterator
public class FilteredIterator
FilteredIterator This class implements a read-only iterator over a ProcessInstance, or rather the AuditTrailEntries contained within it. Notice that this implies that you cannot alter the iterated set in any way, i.e. no removal or insertion methods are implemented. Instances of this class can be equipped with an EventFilter instance. This is used to filter the set of audit trail entries from the wrapped ProcessInstance following its specified constraints. Notice: Although a FilteredIterator can only be equipped with one EventFilter instance at a time, you can use e.g. the BooleanFilter to compose more sophisticated filter criteria (e.g. multiple filters of which all (AND), one (OR), etc. have to match).
Field Summary | |
---|---|
protected int |
cachedNextPosition
|
protected java.util.ArrayList |
entries
|
protected EventFilter |
filter
|
protected ProcessInstance |
instance
|
protected int |
position
|
Constructor Summary | |
---|---|
FilteredIterator(FilteredIterator toClone)
copy constructor |
|
FilteredIterator(ProcessInstance anInstance)
constructor |
|
FilteredIterator(ProcessInstance anInstance,
EventFilter aFilter)
|
Method Summary | |
---|---|
Bookmark |
bookmark()
|
java.lang.Object |
clone()
clone method |
java.util.Collection |
filteredList()
Convenience method. |
EventFilter |
getFilter()
|
ProcessInstance |
getProcessInstance()
|
boolean |
hasNext()
|
protected boolean |
match(int index)
Tests, whether all active EventFilters match the given audit trail entry |
java.lang.Object |
next()
|
AuditTrailEntry |
nextAuditTrailEntry()
|
void |
remove()
This class implements a read-only iterator, i.e. |
void |
reset()
Resets the iterator to its initial state, i.e. |
boolean |
reset(Bookmark bookmark)
Resets the iterator's state (i.e. |
void |
setFilter(EventFilter aFilter)
Sets the event filter to be used in filtering the result set |
void |
setProcessInstance(ProcessInstance anInstance)
Sets the process instance to be iterated over |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ProcessInstance instance
protected java.util.ArrayList entries
protected int position
protected int cachedNextPosition
protected EventFilter filter
Constructor Detail |
---|
public FilteredIterator(ProcessInstance anInstance)
public FilteredIterator(ProcessInstance anInstance, EventFilter aFilter)
public FilteredIterator(FilteredIterator toClone)
toClone
- Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public void setFilter(EventFilter aFilter)
aFilter
- public EventFilter getFilter()
public void setProcessInstance(ProcessInstance anInstance)
anInstance
- public ProcessInstance getProcessInstance()
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public AuditTrailEntry nextAuditTrailEntry()
public void remove()
remove
in interface java.util.Iterator
public Bookmark bookmark()
public boolean reset(Bookmark bookmark)
bookmark
-
public void reset()
public java.util.Collection filteredList()
protected boolean match(int index)
index
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |