Class 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.XAttributeMap attributes  
      protected org.deckfour.xes.classification.XEventClassifier cachedClassifier  
      protected org.deckfour.xes.info.XLogInfo cachedInfo  
      protected java.util.List<org.deckfour.xes.classification.XEventClassifier> classifiers  
      protected java.util.Set<org.deckfour.xes.extension.XExtension> extensions  
      protected java.util.List<org.deckfour.xes.model.XAttribute> globalEventAttributes  
      protected java.util.List<org.deckfour.xes.model.XAttribute> globalTraceAttributes  
      protected org.deckfour.xes.model.XLog source
      Filter related variables
      • Fields inherited from class java.util.AbstractList

        modCount
    • 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
      boolean accept​(org.deckfour.xes.model.XVisitor visitor)  
      java.lang.Object clone()
      Creates an identical copy of this element.
      org.deckfour.xes.model.XTrace get​(int index)  
      org.deckfour.xes.model.XAttributeMap getAttributes()
      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.XLogInfo getInfo​(org.deckfour.xes.classification.XEventClassifier classifier)
      Returns the cached info for the given classifier, null if not available.
      org.deckfour.xes.model.XLog getSource()
      What log is this filtered log based upon?
      boolean hasAttributes()
      Checks for the existence of attributes.
      protected void init​(org.deckfour.xes.model.XLog source, Filter<org.deckfour.xes.model.XTrace> traceFilter, Filter<org.deckfour.xes.model.XAttributeMap> logAttributeFilter)  
      void setAttributes​(org.deckfour.xes.model.XAttributeMap attributes)
      Sets the map of attributes for this element.
      void setInfo​(org.deckfour.xes.classification.XEventClassifier classifier, org.deckfour.xes.info.XLogInfo info)
      Adds the given info for the given classifier to the info cache.
      void setLogAttributeFilter​(Filter<org.deckfour.xes.model.XAttributeMap> filter)
      Set the "log attribute filter" of this log.
      void setSource​(org.deckfour.xes.model.XLog log)
      Set the source of this filtered log.
      void setTraceFilter​(Filter<org.deckfour.xes.model.XTrace> filter)
      Set the "trace filter" of this log.
      • 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

      • 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)
      • XFLogImpl

        public 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)
    • 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.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.XTrace>
        Returns:
        An identical clone.
      • 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.XLog getSource()
        Description copied from interface: XFLog
        What log is this filtered log based upon?
        Specified by:
        getSource in interface XFLog
        Returns:
        pointer to current source.
      • setSource

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

        public org.deckfour.xes.model.XTrace get​(int index)
        Specified by:
        get in interface java.util.List<org.deckfour.xes.model.XTrace>
        Overrides:
        get in class ShuffleInsertionList<org.deckfour.xes.model.XTrace>
      • setTraceFilter

        public void setTraceFilter​(Filter<org.deckfour.xes.model.XTrace> filter)
        Description copied from interface: XFLog
        Set the "trace filter" of this log. The trace filter will be applied on each trace upon trace request (lazy evaluation).
        Specified by:
        setTraceFilter in interface XFLog
        Parameters:
        filter - to apply on traces in the log.
      • setLogAttributeFilter

        public void setLogAttributeFilter​(Filter<org.deckfour.xes.model.XAttributeMap> filter)
        Description copied from interface: XFLog
        Set the "log attribute filter" of this log. The filter will be applied on the log's attribute upon attribute request (lazy evaluation).
        Specified by:
        setLogAttributeFilter in interface XFLog
        Parameters:
        filter - to apply on log's attributes.
      • accept

        public boolean accept​(org.deckfour.xes.model.XVisitor visitor)
        Specified by:
        accept in interface org.deckfour.xes.model.XLog
      • getClassifiers

        public java.util.List<org.deckfour.xes.classification.XEventClassifier> getClassifiers()
        Description copied from interface: org.deckfour.xes.model.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 org.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.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 org.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.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 org.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.XLog
        Returns the cached info for the given classifier, null if not available.
        Specified by:
        getInfo in interface org.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.XLog
        Adds the given info for the given classifier to the info cache.
        Specified by:
        setInfo in interface org.deckfour.xes.model.XLog
        Parameters:
        classifier - The given classifier.
        info - The given info.