public class XesMicroExtension extends XesExtensionImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LENGTH |
static java.lang.String |
LEVEL |
static java.lang.String |
PARENTID |
Modifier and Type | Method and Description |
---|---|
java.util.List<XesEvent> |
getChildEvents(XesEvent event,
XesTrace trace)
Return the list of child events of the given event in the given trace.
|
java.lang.Long |
getLength(XesEvent event)
Returns the length of the given event, that is, the value of the
attribute with key "micro:length".
|
java.lang.Long |
getLevel(XesEvent event)
Returns the level of the given event, that is, the value of the attribute
with key "micro:level".
|
java.util.UUID |
getParentId(XesEvent event)
Returns the parent id of the given event, that is, the value of the
attribute with key "micro:parentId".
|
static XesMicroExtension |
instance() |
XesIntegerNumberAttribute |
setLength(XesEvent event,
java.lang.Long value)
Sets the length for the given event, that is, the value of the attribute
with key "micro:length".
|
XesIntegerNumberAttribute |
setLevel(XesEvent event,
java.lang.Long value)
Sets the level for the given event, that is, the value of the attribute
with key "micro:level".
|
void |
setLevelsAndLengths(XesTrace trace)
Derives the levels and lengths for the events in the given trace from
their parent ids.
|
XesIdAttribute |
setParentId(XesEvent event,
java.util.UUID value)
Sets the parent id for the given event, that is, the value of the
attribute with key "micro:parentId".
|
addAlias, addEventAttribute, addLogAttribute, addMetaAttribute, addTraceAttribute, getAlias, getEventAttributes, getLogAttributes, getMetaAttributes, getName, getPrefix, getTraceAttributes, getURI, hasAttribute, hasEventAttribute, hasLogAttribute, hasMetaAttribute, hasTraceAttribute, setName, setPrefix, setURI, toString
public static final java.lang.String LEVEL
public static final java.lang.String PARENTID
public static final java.lang.String LENGTH
public static XesMicroExtension instance()
public java.lang.Long getLevel(XesEvent event)
event
- The given event.public XesIntegerNumberAttribute setLevel(XesEvent event, java.lang.Long value)
event
- The given event.value
- The level to set. Must be a positive value.public java.util.UUID getParentId(XesEvent event)
event
- The given event.public XesIdAttribute setParentId(XesEvent event, java.util.UUID value)
event
- The given event.value
- The parent id to set.public java.lang.Long getLength(XesEvent event)
event
- The given event.public XesIntegerNumberAttribute setLength(XesEvent event, java.lang.Long value)
event
- The given event.value
- The length to set.public void setLevelsAndLengths(XesTrace trace)
trace
- The given trace