Class XFTraceImpl
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- org.processmining.filtering.xflog.implementations.ShuffleInsertionList<org.deckfour.xes.model.XEvent>
-
- org.processmining.filtering.xflog.implementations.XFTraceImpl
-
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Iterable<org.deckfour.xes.model.XEvent>,java.util.Collection<org.deckfour.xes.model.XEvent>,java.util.List<org.deckfour.xes.model.XEvent>,org.deckfour.xes.model.XAttributable,org.deckfour.xes.model.XElement,org.deckfour.xes.model.XTrace,XFTrace
public class XFTraceImpl extends ShuffleInsertionList<org.deckfour.xes.model.XEvent> implements XFTrace
-
-
Field Summary
Fields Modifier and Type Field Description protected org.deckfour.xes.model.XAttributeMapattributesprotected Filter<org.deckfour.xes.model.XEvent>eventAttributeFilterprotected org.deckfour.xes.model.XTracesourceprotected Filter<org.deckfour.xes.model.XAttributeMap>traceAttributeFilter-
Fields inherited from class org.processmining.filtering.xflog.implementations.ShuffleInsertionList
newElements, positions
-
-
Constructor Summary
Constructors Constructor Description XFTraceImpl(org.deckfour.xes.model.XTrace source, int[] eventPositions, Filter<org.deckfour.xes.model.XEvent> eventAttributeFilter, Filter<org.deckfour.xes.model.XAttributeMap> traceAttributeFilter)XFTraceImpl(org.deckfour.xes.model.XTrace source, java.util.List<org.deckfour.xes.model.XEvent> modifiedOrder, Filter<org.deckfour.xes.model.XEvent> eventAttributeFilter, Filter<org.deckfour.xes.model.XAttributeMap> traceAttributeFilter)XFTraceImpl(org.deckfour.xes.model.XTrace source, Filter<org.deckfour.xes.model.XEvent> eventFilter, Filter<org.deckfour.xes.model.XAttributeMap> traceAttributeFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(org.deckfour.xes.model.XVisitor visitor, org.deckfour.xes.model.XLog log)java.lang.Objectclone()Creates an identical copy of this element.org.deckfour.xes.model.XEventget(int index)org.deckfour.xes.model.XAttributeMapgetAttributes()Retrieves the attributes set for this element.java.util.Set<org.deckfour.xes.extension.XExtension>getExtensions()Retrieves the extensions used by this element, i.e.org.deckfour.xes.model.XTracegetSource()What trace is this filtered trace based upon?booleanhasAttributes()Checks for the existence of attributes.protected voidinit(org.deckfour.xes.model.XTrace source, Filter<org.deckfour.xes.model.XEvent> eventAttributeFilter, Filter<org.deckfour.xes.model.XAttributeMap> traceAttributeFilter)intinsertOrdered(org.deckfour.xes.model.XEvent event)The interface describes an "ordering based on time".voidsetAttributes(org.deckfour.xes.model.XAttributeMap attributes)Sets the map of attributes for this element.voidsetEventFilter(Filter<org.deckfour.xes.model.XEvent> filter)Set the trace's event attribute filter.voidsetSource(org.deckfour.xes.model.XTrace trace)Set the source of this filtered trace.voidsetTraceAttributeFilter(Filter<org.deckfour.xes.model.XAttributeMap> filter)Set the trace's attribute filter-
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
-
attributes
protected org.deckfour.xes.model.XAttributeMap attributes
-
source
protected org.deckfour.xes.model.XTrace source
-
eventAttributeFilter
protected Filter<org.deckfour.xes.model.XEvent> eventAttributeFilter
-
traceAttributeFilter
protected Filter<org.deckfour.xes.model.XAttributeMap> traceAttributeFilter
-
-
Constructor Detail
-
XFTraceImpl
public XFTraceImpl(org.deckfour.xes.model.XTrace source, Filter<org.deckfour.xes.model.XEvent> eventFilter, Filter<org.deckfour.xes.model.XAttributeMap> traceAttributeFilter)
-
XFTraceImpl
public XFTraceImpl(org.deckfour.xes.model.XTrace source, int[] eventPositions, Filter<org.deckfour.xes.model.XEvent> eventAttributeFilter, Filter<org.deckfour.xes.model.XAttributeMap> traceAttributeFilter)
-
-
Method Detail
-
init
protected void init(org.deckfour.xes.model.XTrace source, Filter<org.deckfour.xes.model.XEvent> eventAttributeFilter, Filter<org.deckfour.xes.model.XAttributeMap> traceAttributeFilter)
-
get
public org.deckfour.xes.model.XEvent get(int index)
- Specified by:
getin interfacejava.util.List<org.deckfour.xes.model.XEvent>- Overrides:
getin classShuffleInsertionList<org.deckfour.xes.model.XEvent>
-
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.XEvent>- Returns:
- An identical clone.
-
accept
public void accept(org.deckfour.xes.model.XVisitor visitor, org.deckfour.xes.model.XLog log)- Specified by:
acceptin interfaceorg.deckfour.xes.model.XTrace
-
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.XTrace getSource()
Description copied from interface:XFTraceWhat trace is this filtered trace based upon?
-
setSource
public void setSource(org.deckfour.xes.model.XTrace trace)
Description copied from interface:XFTraceSet the source of this filtered trace. Setting the source can invoke a re-evaluation of the internal apply(s).
-
setEventFilter
public void setEventFilter(Filter<org.deckfour.xes.model.XEvent> filter)
Description copied from interface:XFTraceSet the trace's event attribute filter.- Specified by:
setEventFilterin interfaceXFTrace- Parameters:
filter- on attribute map.
-
setTraceAttributeFilter
public void setTraceAttributeFilter(Filter<org.deckfour.xes.model.XAttributeMap> filter)
Description copied from interface:XFTraceSet the trace's attribute filter- Specified by:
setTraceAttributeFilterin interfaceXFTrace- Parameters:
filter- on trace attribute-map
-
insertOrdered
public int insertOrdered(org.deckfour.xes.model.XEvent event)
The interface describes an "ordering based on time". This does no longer comply with the "current" view on Logs.- Specified by:
insertOrderedin interfaceorg.deckfour.xes.model.XTrace- Parameters:
event- the event to be inserted.- Returns:
- index of the inserted event.
-
-