Class XCaseExtension
- java.lang.Object
-
- org.deckfour.xes.extension.XExtension
-
- org.processmining.servicelevelagreements.model.xes.extensions.XCaseExtension
-
- All Implemented Interfaces:
java.io.Serializable
public class XCaseExtension extends org.deckfour.xes.extension.XExtensionExtension 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.XAttributeLiteralATTR_CASEAttribute prototype.static org.deckfour.xes.model.XAttributeDiscreteATTR_INDEXstatic java.lang.StringKEY_CASEKeys for the attribute.static java.lang.StringKEY_INDEX
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassignCase(org.deckfour.xes.model.XEvent event, java.lang.String caseid)voidassignCase(org.deckfour.xes.model.XEvent event, org.deckfour.xes.model.XTrace trace)voidassignCaseIndex(org.deckfour.xes.model.XEvent event, int index)voidassignCaseIndex(org.deckfour.xes.model.XEvent event, org.deckfour.xes.model.XTrace trace)java.lang.StringextractCase(org.deckfour.xes.model.XEvent event)java.lang.LongextractCaseIndex(org.deckfour.xes.model.XEvent event)static XCaseExtensioninstance()Provides static access to the singleton instance of this extension.
-
-
-
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)
-
-