org.processmining.framework.log
Class LogEvents

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<LogEvent>
              extended by org.processmining.framework.log.LogEvents
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<LogEvent>, java.util.Collection<LogEvent>, java.util.List<LogEvent>, java.util.RandomAccess

public class LogEvents
extends java.util.ArrayList<LogEvent>

A list of LogEvent objects.

Version:
1.0
Author:
Christian W. Guenther (christian at deckfour dot org), Peter van den Brand
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
LogEvents()
          Constructor for an empty list.
 
Method Summary
 LogEvent findLogEvent(java.lang.String name, java.lang.String type)
          Find a LogEvent object by its name and type.
 int findLogEventNumber(java.lang.String name, java.lang.String type)
          Find the index of a given LogEvent object in the list.
 LogEvent getEvent(int i)
          Returns the item at the given index.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

LogEvents

public LogEvents()
Constructor for an empty list.

Method Detail

findLogEvent

public LogEvent findLogEvent(java.lang.String name,
                             java.lang.String type)
Find a LogEvent object by its name and type. Returns null if there is no such LogEvent in the list.

Parameters:
name - the name of the LogEvent to find
type - the type of the LogEvent to find
Returns:
the LogEvent object if it is found, null otherwise

findLogEventNumber

public int findLogEventNumber(java.lang.String name,
                              java.lang.String type)
Find the index of a given LogEvent object in the list. Returns -1 if there is no such LogEvent in the list.

Parameters:
name - the name of the LogEvent to find
type - the type of the LogEvent to find
Returns:
the index of the LogEvent object in the list if it is found, -1 otherwise

getEvent

public LogEvent getEvent(int i)
Returns the item at the given index.

Parameters:
i - the index
Returns:
the item at index i