|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deckfour.xes.extension.XExtension
org.deckfour.xes.extension.std.XLifecycleExtension
public class XLifecycleExtension
Extension defining additional attributes for the event lifecycle. Lifecycles define a set of states for activities, with an accompanying set of transitions between those states. Any event which is referring to by a lifecycle represents a certain transition of an activity within that lifecycle.
Nested Class Summary | |
---|---|
static class |
XLifecycleExtension.StandardModel
Enumeration for the standard lifecycle model. |
Field Summary | |
---|---|
static XAttributeLiteral |
ATTR_MODEL
Lifecycle model attribute prototype |
static XAttributeLiteral |
ATTR_TRANSITION
Transition attribute prototype |
static URI |
EXTENSION_URI
The unique URI of this extension. |
static String |
KEY_MODEL
Key for the lifecycle model attribute. |
static String |
KEY_TRANSITION
Key for the transition attribute. |
static String |
VALUE_MODEL_STANDARD
Value for the lifecycle model attribute referring to the standard model. |
Fields inherited from class org.deckfour.xes.extension.XExtension |
---|
allAttributes, eventAttributes, logAttributes, metaAttributes, name, prefix, traceAttributes, uri |
Method Summary | |
---|---|
void |
assignModel(XLog log,
String model)
Assigns a value for the lifecycle model identifier to a given log. |
void |
assignStandardTransition(XEvent event,
XLifecycleExtension.StandardModel transition)
Assigns a standard lifecycle transition to the given event. |
void |
assignTransition(XEvent event,
String transition)
Assigns a lifecycle transition string to the given event. |
String |
extractModel(XLog log)
Extracts the lifecycle model identifier from a given log. |
XLifecycleExtension.StandardModel |
extractStandardTransition(XEvent event)
Extracts the standard lifecycle transition object from a given event. |
String |
extractTransition(XEvent event)
Extracts the lifecycle transition string from a given event. |
static XLifecycleExtension |
instance()
Provides static access to the singleton instance of this extension. |
boolean |
usesStandardModel(XLog log)
Checks, whether a given log uses the standard model for lifecycle transitions. |
Methods inherited from class org.deckfour.xes.extension.XExtension |
---|
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 |
---|
public static final URI EXTENSION_URI
public static final String KEY_MODEL
public static final String KEY_TRANSITION
public static final String VALUE_MODEL_STANDARD
public static XAttributeLiteral ATTR_MODEL
public static XAttributeLiteral ATTR_TRANSITION
Method Detail |
---|
public static XLifecycleExtension instance()
public String extractModel(XLog log)
log
- Event log.
public void assignModel(XLog log, String model)
log
- Log to be tagged.model
- Lifecycle model identifier string to be used.public boolean usesStandardModel(XLog log)
log
- Log to be checked.
public String extractTransition(XEvent event)
event
- An event.
null
, if not defined.public XLifecycleExtension.StandardModel extractStandardTransition(XEvent event)
event
- An event.
null
, if not defined.public void assignTransition(XEvent event, String transition)
event
- Event to be tagged.transition
- Lifecycle transition string to be assigned.public void assignStandardTransition(XEvent event, XLifecycleExtension.StandardModel transition)
event
- Event to be tagged.transition
- Standard lifecycle transition to be assigned.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |