Class XCaseExtension

  • All Implemented Interfaces:
    java.io.Serializable

    public class XCaseExtension
    extends org.deckfour.xes.extension.XExtension
    Extension that adds a Case ID to events. When traditional XLogs are converted to EventCollections the case notion is lost. The Case extension can be used to retrieve event belonging to the same case.
    Author:
    B.F.A. Hompes
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.deckfour.xes.model.XAttributeLiteral ATTR_CASE
      Attribute prototype.
      static org.deckfour.xes.model.XAttributeDiscrete ATTR_INDEX  
      static java.lang.String KEY_CASE
      Keys for the attribute.
      static java.lang.String KEY_INDEX  
      • Fields inherited from class org.deckfour.xes.extension.XExtension

        allAttributes, eventAttributes, logAttributes, metaAttributes, name, prefix, traceAttributes, uri
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void assignCase​(org.deckfour.xes.model.XEvent event, java.lang.String caseid)  
      void assignCase​(org.deckfour.xes.model.XEvent event, org.deckfour.xes.model.XTrace trace)  
      void assignCaseIndex​(org.deckfour.xes.model.XEvent event, int index)  
      void assignCaseIndex​(org.deckfour.xes.model.XEvent event, org.deckfour.xes.model.XTrace trace)  
      java.lang.String extractCase​(org.deckfour.xes.model.XEvent event)  
      java.lang.Long extractCaseIndex​(org.deckfour.xes.model.XEvent event)  
      static XCaseExtension instance()
      Provides static access to the singleton instance of this extension.
      • Methods inherited from class org.deckfour.xes.extension.XExtension

        accept, equals, getDefinedAttributes, getEventAttributes, getLogAttributes, getMetaAttributes, getName, getPrefix, getTraceAttributes, getUri, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • KEY_CASE

        public static final java.lang.String KEY_CASE
        Keys for the attribute.
      • KEY_INDEX

        public static final java.lang.String KEY_INDEX
      • ATTR_CASE

        public static org.deckfour.xes.model.XAttributeLiteral ATTR_CASE
        Attribute prototype.
      • ATTR_INDEX

        public static org.deckfour.xes.model.XAttributeDiscrete ATTR_INDEX
    • Method Detail

      • instance

        public static XCaseExtension instance()
        Provides static access to the singleton instance of this extension.
        Returns:
        Singleton instance.
      • extractCase

        public java.lang.String extractCase​(org.deckfour.xes.model.XEvent event)
      • assignCase

        public void assignCase​(org.deckfour.xes.model.XEvent event,
                               java.lang.String caseid)
      • assignCase

        public void assignCase​(org.deckfour.xes.model.XEvent event,
                               org.deckfour.xes.model.XTrace trace)
      • extractCaseIndex

        public java.lang.Long extractCaseIndex​(org.deckfour.xes.model.XEvent event)
      • assignCaseIndex

        public void assignCaseIndex​(org.deckfour.xes.model.XEvent event,
                                    int index)
      • assignCaseIndex

        public void assignCaseIndex​(org.deckfour.xes.model.XEvent event,
                                    org.deckfour.xes.model.XTrace trace)