Class XFLogImpl
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- org.processmining.filtering.xflog.implementations.ShuffleInsertionList<org.deckfour.xes.model.XTrace>
-
- org.processmining.filtering.xflog.implementations.XFLogImpl
-
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Iterable<org.deckfour.xes.model.XTrace>,java.util.Collection<org.deckfour.xes.model.XTrace>,java.util.List<org.deckfour.xes.model.XTrace>,org.deckfour.xes.model.XAttributable,org.deckfour.xes.model.XElement,org.deckfour.xes.model.XLog,XFLog
public class XFLogImpl extends ShuffleInsertionList<org.deckfour.xes.model.XTrace> implements XFLog
-
-
Field Summary
Fields Modifier and Type Field Description protected org.deckfour.xes.model.XAttributeMapattributesprotected org.deckfour.xes.classification.XEventClassifiercachedClassifierprotected org.deckfour.xes.info.XLogInfocachedInfoprotected java.util.List<org.deckfour.xes.classification.XEventClassifier>classifiersprotected java.util.Set<org.deckfour.xes.extension.XExtension>extensionsprotected java.util.List<org.deckfour.xes.model.XAttribute>globalEventAttributesprotected java.util.List<org.deckfour.xes.model.XAttribute>globalTraceAttributesprotected org.deckfour.xes.model.XLogsourceFilter related variables-
Fields inherited from class org.processmining.filtering.xflog.implementations.ShuffleInsertionList
newElements, positions
-
-
Constructor Summary
Constructors Constructor Description XFLogImpl(org.deckfour.xes.model.XLog source, int[] tracePositions, Filter<org.deckfour.xes.model.XTrace> traceFilter, Filter<org.deckfour.xes.model.XAttributeMap> logAttributeFilter)XFLogImpl(org.deckfour.xes.model.XLog source, java.util.List<org.deckfour.xes.model.XTrace> modifiedOrder, Filter<org.deckfour.xes.model.XTrace> traceFilter, Filter<org.deckfour.xes.model.XAttributeMap> logAttributeFilter)XFLogImpl(org.deckfour.xes.model.XLog source, Filter<org.deckfour.xes.model.XTrace> traceFilter, Filter<org.deckfour.xes.model.XAttributeMap> logAttributeFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(org.deckfour.xes.model.XVisitor visitor)java.lang.Objectclone()Creates an identical copy of this element.org.deckfour.xes.model.XTraceget(int index)org.deckfour.xes.model.XAttributeMapgetAttributes()Retrieves the attributes set for this element.java.util.List<org.deckfour.xes.classification.XEventClassifier>getClassifiers()This method returns the list of classifiers defined for this log.java.util.Set<org.deckfour.xes.extension.XExtension>getExtensions()Retrieves the extensions used by this element, i.e.java.util.List<org.deckfour.xes.model.XAttribute>getGlobalEventAttributes()This method returns a list of attributes which are global for all events, i.e.java.util.List<org.deckfour.xes.model.XAttribute>getGlobalTraceAttributes()This method returns a list of attributes which are global for all traces, i.e.org.deckfour.xes.info.XLogInfogetInfo(org.deckfour.xes.classification.XEventClassifier classifier)Returns the cached info for the given classifier, null if not available.org.deckfour.xes.model.XLoggetSource()What log is this filtered log based upon?booleanhasAttributes()Checks for the existence of attributes.protected voidinit(org.deckfour.xes.model.XLog source, Filter<org.deckfour.xes.model.XTrace> traceFilter, Filter<org.deckfour.xes.model.XAttributeMap> logAttributeFilter)voidsetAttributes(org.deckfour.xes.model.XAttributeMap attributes)Sets the map of attributes for this element.voidsetInfo(org.deckfour.xes.classification.XEventClassifier classifier, org.deckfour.xes.info.XLogInfo info)Adds the given info for the given classifier to the info cache.voidsetLogAttributeFilter(Filter<org.deckfour.xes.model.XAttributeMap> filter)Set the "log attribute filter" of this log.voidsetSource(org.deckfour.xes.model.XLog log)Set the source of this filtered log.voidsetTraceFilter(Filter<org.deckfour.xes.model.XTrace> filter)Set the "trace filter" of this log.-
Methods inherited from class org.processmining.filtering.xflog.implementations.ShuffleInsertionList
size
-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
-
-
-
Field Detail
-
source
protected org.deckfour.xes.model.XLog source
Filter related variables
-
attributes
protected org.deckfour.xes.model.XAttributeMap attributes
-
extensions
protected java.util.Set<org.deckfour.xes.extension.XExtension> extensions
-
classifiers
protected java.util.List<org.deckfour.xes.classification.XEventClassifier> classifiers
-
globalTraceAttributes
protected java.util.List<org.deckfour.xes.model.XAttribute> globalTraceAttributes
-
globalEventAttributes
protected java.util.List<org.deckfour.xes.model.XAttribute> globalEventAttributes
-
cachedInfo
protected org.deckfour.xes.info.XLogInfo cachedInfo
-
cachedClassifier
protected org.deckfour.xes.classification.XEventClassifier cachedClassifier
-
-
Constructor Detail
-
XFLogImpl
public XFLogImpl(org.deckfour.xes.model.XLog source, Filter<org.deckfour.xes.model.XTrace> traceFilter, Filter<org.deckfour.xes.model.XAttributeMap> logAttributeFilter)
-
XFLogImpl
public XFLogImpl(org.deckfour.xes.model.XLog source, int[] tracePositions, Filter<org.deckfour.xes.model.XTrace> traceFilter, Filter<org.deckfour.xes.model.XAttributeMap> logAttributeFilter)
-
-
Method Detail
-
init
protected void init(org.deckfour.xes.model.XLog source, Filter<org.deckfour.xes.model.XTrace> traceFilter, Filter<org.deckfour.xes.model.XAttributeMap> logAttributeFilter)
-
clone
public java.lang.Object clone()
Description copied from interface:org.deckfour.xes.model.XElementCreates an identical copy of this element.- Specified by:
clonein interfaceorg.deckfour.xes.model.XElement- Overrides:
clonein classShuffleInsertionList<org.deckfour.xes.model.XTrace>- Returns:
- An identical clone.
-
getAttributes
public org.deckfour.xes.model.XAttributeMap getAttributes()
Description copied from interface:org.deckfour.xes.model.XAttributableRetrieves the attributes set for this element.- Specified by:
getAttributesin interfaceorg.deckfour.xes.model.XAttributable- Returns:
- A map of attributes.
-
setAttributes
public void setAttributes(org.deckfour.xes.model.XAttributeMap attributes)
Description copied from interface:org.deckfour.xes.model.XAttributableSets the map of attributes for this element.- Specified by:
setAttributesin interfaceorg.deckfour.xes.model.XAttributable- Parameters:
attributes- A map of attributes.
-
getExtensions
public java.util.Set<org.deckfour.xes.extension.XExtension> getExtensions()
Description copied from interface:org.deckfour.xes.model.XAttributableRetrieves the extensions used by this element, i.e. the extensions used by all attributes of this element, and the element itself.- Specified by:
getExtensionsin interfaceorg.deckfour.xes.model.XAttributable- Returns:
- A set of extensions.
-
hasAttributes
public boolean hasAttributes()
Description copied from interface:org.deckfour.xes.model.XAttributableChecks for the existence of attributes. This method can be a more efficient way of checking for the existance of attributes than usingXAttributable.getAttributes()in certain situations.- Specified by:
hasAttributesin interfaceorg.deckfour.xes.model.XAttributable- Returns:
- whether this element has any attributes
-
getSource
public org.deckfour.xes.model.XLog getSource()
Description copied from interface:XFLogWhat log is this filtered log based upon?
-
setSource
public void setSource(org.deckfour.xes.model.XLog log)
Description copied from interface:XFLogSet the source of this filtered log. Setting the source can invoke a re-evaluation of the internal apply(s).
-
get
public org.deckfour.xes.model.XTrace get(int index)
- Specified by:
getin interfacejava.util.List<org.deckfour.xes.model.XTrace>- Overrides:
getin classShuffleInsertionList<org.deckfour.xes.model.XTrace>
-
setTraceFilter
public void setTraceFilter(Filter<org.deckfour.xes.model.XTrace> filter)
Description copied from interface:XFLogSet the "trace filter" of this log. The trace filter will be applied on each trace upon trace request (lazy evaluation).- Specified by:
setTraceFilterin interfaceXFLog- Parameters:
filter- to apply on traces in the log.
-
setLogAttributeFilter
public void setLogAttributeFilter(Filter<org.deckfour.xes.model.XAttributeMap> filter)
Description copied from interface:XFLogSet the "log attribute filter" of this log. The filter will be applied on the log's attribute upon attribute request (lazy evaluation).- Specified by:
setLogAttributeFilterin interfaceXFLog- Parameters:
filter- to apply on log's attributes.
-
accept
public boolean accept(org.deckfour.xes.model.XVisitor visitor)
- Specified by:
acceptin interfaceorg.deckfour.xes.model.XLog
-
getClassifiers
public java.util.List<org.deckfour.xes.classification.XEventClassifier> getClassifiers()
Description copied from interface:org.deckfour.xes.model.XLogThis 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:
getClassifiersin interfaceorg.deckfour.xes.model.XLog- Returns:
- The list of classifiers defined for this log.
-
getGlobalEventAttributes
public java.util.List<org.deckfour.xes.model.XAttribute> getGlobalEventAttributes()
Description copied from interface:org.deckfour.xes.model.XLogThis 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:
getGlobalEventAttributesin interfaceorg.deckfour.xes.model.XLog- Returns:
- List of ubiquitous event attributes.
-
getGlobalTraceAttributes
public java.util.List<org.deckfour.xes.model.XAttribute> getGlobalTraceAttributes()
Description copied from interface:org.deckfour.xes.model.XLogThis 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:
getGlobalTraceAttributesin interfaceorg.deckfour.xes.model.XLog- Returns:
- List of ubiquitous trace attributes.
-
getInfo
public org.deckfour.xes.info.XLogInfo getInfo(org.deckfour.xes.classification.XEventClassifier classifier)
Description copied from interface:org.deckfour.xes.model.XLogReturns the cached info for the given classifier, null if not available.- Specified by:
getInfoin interfaceorg.deckfour.xes.model.XLog- Parameters:
classifier- The given classifier.- Returns:
- The cached info for the given classifier, null if not available.
-
setInfo
public void setInfo(org.deckfour.xes.classification.XEventClassifier classifier, org.deckfour.xes.info.XLogInfo info)Description copied from interface:org.deckfour.xes.model.XLogAdds the given info for the given classifier to the info cache.- Specified by:
setInfoin interfaceorg.deckfour.xes.model.XLog- Parameters:
classifier- The given classifier.info- The given info.
-
-