Class OCELUtils


  • public class OCELUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      OCELUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.processmining.ocel.ocelobjects.OcelEventLog addDummyCaseNotion​(org.processmining.ocel.ocelobjects.OcelEventLog ocel, java.lang.String typeName, java.lang.String objectID)
      Adds new object type with the same object for each event.
      static java.util.HashMap<java.util.List<java.lang.String>,​java.lang.Double> computeScore​(org.processmining.ocel.ocelobjects.OcelEventLog ocel, java.lang.String objectType)
      Returns map which maps [Activity,ObjectType] to score (#events of act and |OT|=1 / #events of act)
      static java.util.HashMap<java.util.List<java.lang.String>,​java.lang.Double> computeScore​(org.processmining.ocel.ocelobjects.OcelEventLog ocel, java.util.Set<java.lang.String> objectTypes)
      Returns map which maps [Activity,ObjectType] to score (#events of act and |OT|=1 / #events of act)
      static org.processmining.ocel.ocelobjects.OcelEventLog deepCopy​(org.processmining.ocel.ocelobjects.OcelEventLog ocel)
      Do a deep copy of the given OCEL.
      static org.deckfour.xes.model.XLog flattenCounting​(org.processmining.ocel.ocelobjects.OcelEventLog ocel, java.lang.String caseNotion)
      Flattens OCEL and stores for all object type columns how many objects they had.
      static java.util.Set<java.lang.String> getActivities​(org.processmining.ocel.ocelobjects.OcelEventLog ocel)  
      • Methods inherited from class java.lang.Object

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

      • OCELUtils

        public OCELUtils()
    • Method Detail

      • deepCopy

        public static org.processmining.ocel.ocelobjects.OcelEventLog deepCopy​(org.processmining.ocel.ocelobjects.OcelEventLog ocel)
        Do a deep copy of the given OCEL.
        Parameters:
        ocel -
        Returns:
      • addDummyCaseNotion

        public static org.processmining.ocel.ocelobjects.OcelEventLog addDummyCaseNotion​(org.processmining.ocel.ocelobjects.OcelEventLog ocel,
                                                                                         java.lang.String typeName,
                                                                                         java.lang.String objectID)
        Adds new object type with the same object for each event.
        Parameters:
        ocel - input ocel
        typeName - name of the new object type
        Returns:
        OCEL including the dummy object type
      • getActivities

        public static java.util.Set<java.lang.String> getActivities​(org.processmining.ocel.ocelobjects.OcelEventLog ocel)
      • computeScore

        public static java.util.HashMap<java.util.List<java.lang.String>,​java.lang.Double> computeScore​(org.processmining.ocel.ocelobjects.OcelEventLog ocel,
                                                                                                              java.util.Set<java.lang.String> objectTypes)
        Returns map which maps [Activity,ObjectType] to score (#events of act and |OT|=1 / #events of act)
        Parameters:
        ocel -
        objectTypes - There might be types for which we don't want to compute the score
        Returns:
      • computeScore

        public static java.util.HashMap<java.util.List<java.lang.String>,​java.lang.Double> computeScore​(org.processmining.ocel.ocelobjects.OcelEventLog ocel,
                                                                                                              java.lang.String objectType)
        Returns map which maps [Activity,ObjectType] to score (#events of act and |OT|=1 / #events of act)
        Parameters:
        ocel -
        objectType -
        Returns:
      • flattenCounting

        public static org.deckfour.xes.model.XLog flattenCounting​(org.processmining.ocel.ocelobjects.OcelEventLog ocel,
                                                                  java.lang.String caseNotion)
        Flattens OCEL and stores for all object type columns how many objects they had.
        Parameters:
        ocel -
        caseNotion -
        Returns: