org.processmining.framework.log.classic
Class ModelElementsClassic

java.lang.Object
  extended by org.processmining.framework.log.classic.ModelElementsClassic
All Implemented Interfaces:
java.lang.Cloneable, ModelElements

public class ModelElementsClassic
extends java.lang.Object
implements ModelElements, java.lang.Cloneable

Version:
1.0
Author:
Peter van den Brand

Constructor Summary
ModelElementsClassic(ProcessInstance pi)
           
 
Method Summary
 java.lang.Object clone()
           
 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()
          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.
 ModelElement next()
          Iterator method.
 void reset()
          Iterator method.
 int size()
          Retrieves the number of model elements contained in this set.
 java.lang.String toString()
          Returns a string representation of this set.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModelElementsClassic

public ModelElementsClassic(ProcessInstance pi)
Method Detail

find

public ModelElement find(java.lang.String element)
Description copied from interface: ModelElements
Retrieves a model element from this set.

Specified by:
find in interface ModelElements
Parameters:
element - Name of the model element.
Returns:
The requested model element, if found; null otherwise.

hasNext

public boolean hasNext()
Description copied from interface: ModelElements
Iterator method. deprecated!

Specified by:
hasNext in interface ModelElements

next

public ModelElement next()
Description copied from interface: ModelElements
Iterator method. deprecated!

Specified by:
next in interface ModelElements

reset

public void reset()
Description copied from interface: ModelElements
Iterator method. deprecated!

Specified by:
reset in interface ModelElements

first

public ModelElement first()
Description copied from interface: ModelElements
Retrieves the first model element in this set.

Specified by:
first in interface ModelElements
Returns:
The first model element in this set.

last

public ModelElement last()
Description copied from interface: ModelElements
Retrieves the last model element in this set.

Specified by:
last in interface ModelElements
Returns:
The last model element in this set.

size

public int size()
Description copied from interface: ModelElements
Retrieves the number of model elements contained in this set.

Specified by:
size in interface ModelElements
Returns:
The number of model elements contained in this set.

get

public ModelElement get(int index)
Description copied from interface: ModelElements
Retrieves a model element contained in this set at the specific index.

Specified by:
get in interface ModelElements
Parameters:
index - Index of the requested model element in this set.
Returns:
The requested model element.

toString

public java.lang.String toString()
Description copied from interface: ModelElements
Returns a string representation of this set.

Specified by:
toString in interface ModelElements
Overrides:
toString in class java.lang.Object
Returns:
A string representation.

iterator

public java.util.Iterator iterator()
Description copied from interface: ModelElements
Retrieves an iterator over the ModelElement instances contained in this set.

Specified by:
iterator in interface ModelElements
Returns:
An iterator over the model elements contained.

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object