|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.framework.log.rfb.LightweightModelElements
public class LightweightModelElements
This class implements a set of model elements, as found in a log file or process instance, as a dynamic structure of lightweight proxies for elements and iterators.
Nested Class Summary | |
---|---|
protected class |
LightweightModelElements.LightweightModelElement
Lightweight proxy class implementing a model element in the lighweight set. |
protected class |
LightweightModelElements.LightweightModelElementIterator
Typical lightweight iterator over a set of model elements. |
Field Summary | |
---|---|
protected java.util.ArrayList<java.lang.String> |
elements
Contains the actual model elements as strings. |
protected int |
iteratorPosition
Deprecated. subject to removal (iterator interface deprecated) |
protected java.util.HashSet<ProcessInstance> |
processInstances
The process instance(s) this set of model elements refers to |
Constructor Summary | |
---|---|
LightweightModelElements(java.util.ArrayList<java.lang.String> elementNames,
java.util.HashSet<ProcessInstance> instances)
Creates a new set of model elements. |
|
LightweightModelElements(java.util.HashSet<ProcessInstance> instances)
Creates a new empty set of model elements. |
Method Summary | |
---|---|
void |
addElement(java.lang.String element)
Adds a model element with the given name to the set. |
ModelElement |
find(java.lang.String element)
Retrieves a model element from this set. |
ModelElement |
first()
Retrieves the first model element in this set. |
ModelElement |
get(int index)
Retrieves a model element contained in this set at the specific index. |
protected java.util.Set<AuditTrailEntry> |
getInstancesForModelElement(int index)
Retrieves the set of audit trail entries which are instances of the indexed model element contained in this set. |
java.util.ArrayList<java.lang.String> |
getModelElementStrings()
Retrieves the set of model elements as a list of strings. |
boolean |
hasNext()
Iterator method. |
java.util.Iterator |
iterator()
Retrieves an iterator over the ModelElement
instances contained in this set. |
ModelElement |
last()
Retrieves the last model element in this set. |
void |
merge(LightweightModelElements mergeElements)
Merges this set of model elements with another one, thus rendering the instance on which this method is invoked the union of its prior set and the set of elements to be merged with. |
ModelElement |
next()
Iterator method. |
void |
reset()
Iterator method. |
int |
size()
Retrieves the number of model elements contained in this set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.processmining.framework.log.ModelElements |
---|
toString |
Field Detail |
---|
protected java.util.ArrayList<java.lang.String> elements
protected java.util.HashSet<ProcessInstance> processInstances
protected int iteratorPosition
Constructor Detail |
---|
public LightweightModelElements(java.util.ArrayList<java.lang.String> elementNames, java.util.HashSet<ProcessInstance> instances)
elementNames
- List of model elements as strings.instances
- The set of process instances this set refers topublic LightweightModelElements(java.util.HashSet<ProcessInstance> instances)
instances
- The set of process instances this set refers toMethod Detail |
---|
public void merge(LightweightModelElements mergeElements)
mergeElements
- Set of elements to be merged with.public java.util.ArrayList<java.lang.String> getModelElementStrings()
public void addElement(java.lang.String element)
element
- Name of the model element
to be added.public ModelElement find(java.lang.String element)
ModelElements
find
in interface ModelElements
element
- Name of the model element.
null
otherwise.public ModelElement first()
ModelElements
first
in interface ModelElements
public ModelElement last()
ModelElements
last
in interface ModelElements
public ModelElement get(int index)
ModelElements
get
in interface ModelElements
index
- Index of the requested model
element in this set.
public java.util.Iterator iterator()
ModelElements
ModelElement
instances contained in this set.
iterator
in interface ModelElements
public boolean hasNext()
ModelElements
hasNext
in interface ModelElements
public ModelElement next()
ModelElements
next
in interface ModelElements
public void reset()
ModelElements
reset
in interface ModelElements
public int size()
ModelElements
size
in interface ModelElements
protected java.util.Set<AuditTrailEntry> getInstancesForModelElement(int index)
index
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |