Class LogModifier


  • public final class LogModifier
    extends java.lang.Object
    Class to modify logs.
    • Constructor Summary

      Constructors 
      Constructor Description
      LogModifier()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.deckfour.xes.model.XLog copyLog​(org.deckfour.xes.model.XLog log)
      Copies a log.
      org.deckfour.xes.model.XLog filter​(org.deckfour.xes.model.XLog log, java.util.Set<java.lang.String> activities)
      Projects a log on a set of activity names.
      static LogModifier getInstance()  
      boolean removeEmptyTraces​(org.deckfour.xes.model.XLog log)
      Checks whether empty traces are in a log and modifies the log removing them.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LogModifier

        public LogModifier()
    • Method Detail

      • getInstance

        public static LogModifier getInstance()
      • copyLog

        public org.deckfour.xes.model.XLog copyLog​(org.deckfour.xes.model.XLog log)
        Copies a log.
        Parameters:
        log - A log to be copied.
        Returns:
        A copy of the log.
      • removeEmptyTraces

        public boolean removeEmptyTraces​(org.deckfour.xes.model.XLog log)
        Checks whether empty traces are in a log and modifies the log removing them.
        Parameters:
        log - The log to be modified.
        Returns:
        True, if the log contains empty traces.
      • filter

        public org.deckfour.xes.model.XLog filter​(org.deckfour.xes.model.XLog log,
                                                  java.util.Set<java.lang.String> activities)
        Projects a log on a set of activity names.
        Parameters:
        log - Input log to be filtered.
        activities - Activities to remain in the output log.
        Returns:
        The input log projected on the activities.