org.processmining.framework.log
Interface ModelElements

All Known Implementing Classes:
LightweightModelElements, ModelElementsClassic

public interface ModelElements

Provides abstract access to the set of model elements having been observed in a log.

Author:
Christian W. Guenther (christian at deckfour dot org)

Method Summary
 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.
 boolean hasNext()
          Deprecated. For iterator access please use the iterator() method of this class.
 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.
 ModelElement next()
          Deprecated. For iterator access please use the iterator() method of this class.
 void reset()
          Deprecated. For iterator access please use the iterator() method of this class.
 int size()
          Retrieves the number of model elements contained in this set.
 java.lang.String toString()
          Returns a string representation of this set.
 

Method Detail

find

ModelElement find(java.lang.String element)
Retrieves a model element from this set.

Parameters:
element - Name of the model element.
Returns:
The requested model element, if found; null otherwise.

first

ModelElement first()
Retrieves the first model element in this set.

Returns:
The first model element in this set.

last

ModelElement last()
Retrieves the last model element in this set.

Returns:
The last model element in this set.

size

int size()
Retrieves the number of model elements contained in this set.

Returns:
The number of model elements contained in this set.

get

ModelElement get(int index)
Retrieves a model element contained in this set at the specific index.

Parameters:
index - Index of the requested model element in this set.
Returns:
The requested model element.

iterator

java.util.Iterator iterator()
Retrieves an iterator over the ModelElement instances contained in this set.

Returns:
An iterator over the model elements contained.

toString

java.lang.String toString()
Returns a string representation of this set.

Overrides:
toString in class java.lang.Object
Returns:
A string representation.

hasNext

boolean hasNext()
Deprecated. For iterator access please use the iterator() method of this class.

Iterator method. deprecated!


next

ModelElement next()
Deprecated. For iterator access please use the iterator() method of this class.

Iterator method. deprecated!


reset

void reset()
Deprecated. For iterator access please use the iterator() method of this class.

Iterator method. deprecated!