org.deckfour.xes.model.impl
Class XLogImpl

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<XTrace>
              extended by org.deckfour.xes.model.impl.XLogImpl
All Implemented Interfaces:
Serializable, Cloneable, Iterable<XTrace>, Collection<XTrace>, List<XTrace>, RandomAccess, XAttributable, XElement, XLog

public class XLogImpl
extends ArrayList<XTrace>
implements XLog

Implementation for the XLog interface.

Author:
Christian W. Guenther (christian@deckfour.org)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
XLogImpl(XAttributeMap attributeMap)
          Creates a new log.
 
Method Summary
 Object clone()
          Creates an identical copy of this element.
 XAttributeMap getAttributes()
          Retrieves the attributes set for this element.
 List<XEventClassifier> getClassifiers()
          This method returns the list of classifiers defined for this log.
 Set<XExtension> getExtensions()
          Retrieves the extensions used by this element, i.e.
 List<XAttribute> getGlobalEventAttributes()
          This method returns a list of attributes which are global for all events, i.e.
 List<XAttribute> getGlobalTraceAttributes()
          This method returns a list of attributes which are global for all traces, i.e.
 void setAttributes(XAttributeMap attributes)
          Sets the map of attributes for this element.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, 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
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Constructor Detail

XLogImpl

public XLogImpl(XAttributeMap attributeMap)
Creates a new log.

Parameters:
attributeMap - The attribute map used to store this log's attributes.
Method Detail

getAttributes

public XAttributeMap getAttributes()
Description copied from interface: XAttributable
Retrieves the attributes set for this element.

Specified by:
getAttributes in interface XAttributable
Returns:
A map of attributes.

setAttributes

public void setAttributes(XAttributeMap attributes)
Description copied from interface: XAttributable
Sets the map of attributes for this element.

Specified by:
setAttributes in interface XAttributable
Parameters:
attributes - A map of attributes.

getExtensions

public Set<XExtension> getExtensions()
Description copied from interface: XAttributable
Retrieves the extensions used by this element, i.e. the extensions used by all attributes of this element, and the element itself.

Specified by:
getExtensions in interface XAttributable
Returns:
A set of extensions.

clone

public Object clone()
Description copied from interface: XElement
Creates an identical copy of this element.

Specified by:
clone in interface XElement
Overrides:
clone in class ArrayList<XTrace>
Returns:
An identical clone.

getClassifiers

public List<XEventClassifier> getClassifiers()
Description copied from interface: XLog
This method returns the list of classifiers defined for this log. This list can be used for reading or writing, i.e., it must be supported to add further classifiers to this list.

Specified by:
getClassifiers in interface XLog
Returns:
The list of classifiers defined for this log.

getGlobalEventAttributes

public List<XAttribute> getGlobalEventAttributes()
Description copied from interface: XLog
This method returns a list of attributes which are global for all events, i.e. every event in the log is guaranteed to have these attributes.

Specified by:
getGlobalEventAttributes in interface XLog
Returns:
List of ubiquitous event attributes.

getGlobalTraceAttributes

public List<XAttribute> getGlobalTraceAttributes()
Description copied from interface: XLog
This method returns a list of attributes which are global for all traces, i.e. every trace in the log is guaranteed to have these attributes.

Specified by:
getGlobalTraceAttributes in interface XLog
Returns:
List of ubiquitous trace attributes.