|
||||||||||
| 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.XTimeExtension
public class XTimeExtension
This extension defines the Time perspective on event logs. It makes it possible to assign to each event a timestamp, describing when the event has occurred.
| Field Summary | |
|---|---|
static XAttributeTimestamp |
ATTR_TIMESTAMP
Timestamp attribute prototype. |
static URI |
EXTENSION_URI
Unique URI of this extension. |
static String |
KEY_TIMESTAMP
Key for the timestamp attribute. |
| Fields inherited from class org.deckfour.xes.extension.XExtension |
|---|
allAttributes, eventAttributes, logAttributes, metaAttributes, name, prefix, traceAttributes, uri |
| Method Summary | |
|---|---|
void |
assignTimestamp(XEvent event,
Date timestamp)
Assigns to a given event its timestamp. |
void |
assignTimestamp(XEvent event,
long time)
Assigns to a given event its timestamp. |
Date |
extractTimestamp(XEvent event)
Extracts from a given event the timestamp. |
static XTimeExtension |
instance()
Provides access to the singleton instance of this extension. |
| 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_TIMESTAMP
public static XAttributeTimestamp ATTR_TIMESTAMP
| Method Detail |
|---|
public static XTimeExtension instance()
public Date extractTimestamp(XEvent event)
event - Event to be queried.
null if not defined).
public void assignTimestamp(XEvent event,
Date timestamp)
event - Event to be modified.timestamp - Timestamp, as a Date object.
public void assignTimestamp(XEvent event,
long time)
event - Event to be modified.time - Timestamp, as a long of milliseconds in UNIX time.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||