Class IMLogImpl

    • Field Detail

      • xLog

        protected final org.deckfour.xes.model.XLog xLog
      • addedTraces

        protected final gnu.trove.list.array.TIntArrayList addedTraces
      • activityClassifier

        protected org.deckfour.xes.classification.XEventClassifier activityClassifier
    • Constructor Detail

      • IMLogImpl

        public IMLogImpl​(org.deckfour.xes.model.XLog xLog,
                         org.deckfour.xes.classification.XEventClassifier activityClassifier,
                         XLifeCycleClassifier lifeCycleClassifier)
        Create an IMlog from an XLog.
        Parameters:
        xLog -
      • IMLogImpl

        public IMLogImpl​(IMLogImpl log)
        Clone an existing IMlog
        Parameters:
        log -
    • Method Detail

      • clone

        public IMLog clone()
        Description copied from interface: IMLog
        Clone this IMLog. The new one might be based on the same XLog as the old one.
        Specified by:
        clone in interface IMLog
        Overrides:
        clone in class java.lang.Object
        Returns:
      • classify

        public org.deckfour.xes.classification.XEventClass classify​(IMTrace IMTrace,
                                                                    org.deckfour.xes.model.XEvent event)
        Classify an event
        Specified by:
        classify in interface IMLog
        Returns:
      • getClassifier

        public org.deckfour.xes.classification.XEventClassifier getClassifier()
        Specified by:
        getClassifier in interface IMLog
      • setClassifier

        public void setClassifier​(org.deckfour.xes.classification.XEventClassifier classifier)
        Specified by:
        setClassifier in interface IMLog
      • getTraceWithIndex

        public org.deckfour.xes.model.XTrace getTraceWithIndex​(int traceIndex)
        Specified by:
        getTraceWithIndex in interface IMLog
      • size

        public int size()
        Return the number of traces in the log
        Specified by:
        size in interface IMLog
        Returns:
      • copyTrace

        public IMTrace copyTrace​(IMTrace trace,
                                 java.util.BitSet traceOutEvents)
        Description copied from interface: IMLog
        Copy a trace and return the copy.
        Specified by:
        copyTrace in interface IMLog
        traceOutEvents - A bitset showing for each event of the underlying XTrace whether this event is still included.
        Returns:
      • copyTrace

        public IMTrace copyTrace​(IMTrace trace)
        Description copied from interface: IMLog
        Copy a trace and return the copy.
        Specified by:
        copyTrace in interface IMLog
        Returns:
      • iterator

        public java.util.Iterator<IMTrace> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<IMTrace>
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface IMLog
        Overrides:
        toString in class java.lang.Object
      • toXLog

        public org.deckfour.xes.model.XLog toXLog()
        Specified by:
        toXLog in interface IMLog
      • decoupleFromXLog

        public IMLogImpl decoupleFromXLog()
        Turns the IMLog into an XLog, and makes a new IMLog out of it. Use this method to reduce memory usage if the log becomes sparse.
        Specified by:
        decoupleFromXLog in interface IMLog
        Returns:
        the newly created IMLog, which has no connection anymore to the original XLog.