Class 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
    • 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
      void accept​(org.deckfour.xes.model.XVisitor visitor, org.deckfour.xes.model.XLog log)  
      java.lang.Object clone()
      Creates an identical copy of this element.
      org.deckfour.xes.model.XEvent get​(int index)  
      org.deckfour.xes.model.XAttributeMap getAttributes()
      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.XTrace getSource()
      What trace is this filtered trace based upon?
      boolean hasAttributes()
      Checks for the existence of attributes.
      protected void init​(org.deckfour.xes.model.XTrace source, Filter<org.deckfour.xes.model.XEvent> eventAttributeFilter, Filter<org.deckfour.xes.model.XAttributeMap> traceAttributeFilter)  
      int insertOrdered​(org.deckfour.xes.model.XEvent event)
      The interface describes an "ordering based on time".
      void setAttributes​(org.deckfour.xes.model.XAttributeMap attributes)
      Sets the map of attributes for this element.
      void setEventFilter​(Filter<org.deckfour.xes.model.XEvent> filter)
      Set the trace's event attribute filter.
      void setSource​(org.deckfour.xes.model.XTrace trace)
      Set the source of this filtered trace.
      void setTraceAttributeFilter​(Filter<org.deckfour.xes.model.XAttributeMap> filter)
      Set the trace's attribute filter
      • 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
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
    • 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)
      • XFTraceImpl

        public 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)
    • 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:
        get in interface java.util.List<org.deckfour.xes.model.XEvent>
        Overrides:
        get in class ShuffleInsertionList<org.deckfour.xes.model.XEvent>
      • clone

        public java.lang.Object clone()
        Description copied from interface: org.deckfour.xes.model.XElement
        Creates an identical copy of this element.
        Specified by:
        clone in interface org.deckfour.xes.model.XElement
        Overrides:
        clone in class ShuffleInsertionList<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:
        accept in interface org.deckfour.xes.model.XTrace
      • getAttributes

        public org.deckfour.xes.model.XAttributeMap getAttributes()
        Description copied from interface: org.deckfour.xes.model.XAttributable
        Retrieves the attributes set for this element.
        Specified by:
        getAttributes in interface org.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.XAttributable
        Sets the map of attributes for this element.
        Specified by:
        setAttributes in interface org.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.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 org.deckfour.xes.model.XAttributable
        Returns:
        A set of extensions.
      • hasAttributes

        public boolean hasAttributes()
        Description copied from interface: org.deckfour.xes.model.XAttributable
        Checks for the existence of attributes. This method can be a more efficient way of checking for the existance of attributes than using XAttributable.getAttributes() in certain situations.
        Specified by:
        hasAttributes in interface org.deckfour.xes.model.XAttributable
        Returns:
        whether this element has any attributes
      • getSource

        public org.deckfour.xes.model.XTrace getSource()
        Description copied from interface: XFTrace
        What trace is this filtered trace based upon?
        Specified by:
        getSource in interface XFTrace
        Returns:
        pointer to current source.
      • setSource

        public void setSource​(org.deckfour.xes.model.XTrace trace)
        Description copied from interface: XFTrace
        Set the source of this filtered trace. Setting the source can invoke a re-evaluation of the internal apply(s).
        Specified by:
        setSource in interface XFTrace
        Parameters:
        trace - pointer to new source.
      • setEventFilter

        public void setEventFilter​(Filter<org.deckfour.xes.model.XEvent> filter)
        Description copied from interface: XFTrace
        Set the trace's event attribute filter.
        Specified by:
        setEventFilter in interface XFTrace
        Parameters:
        filter - on attribute map.
      • setTraceAttributeFilter

        public void setTraceAttributeFilter​(Filter<org.deckfour.xes.model.XAttributeMap> filter)
        Description copied from interface: XFTrace
        Set the trace's attribute filter
        Specified by:
        setTraceAttributeFilter in interface XFTrace
        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:
        insertOrdered in interface org.deckfour.xes.model.XTrace
        Parameters:
        event - the event to be inserted.
        Returns:
        index of the inserted event.