public class Event2TimeAttribute extends AbstractEvent2Time
Constructor and Description |
---|
Event2TimeAttribute(java.lang.String attrKey,
double correctionFactor) |
Event2TimeAttribute(org.deckfour.xes.model.XAttribute attr) |
Modifier and Type | Method and Description |
---|---|
static boolean |
acceptAttributeForTime(org.deckfour.xes.model.XAttribute attr)
Check if the given attribute is a valid time attribute
|
double |
apply(org.processmining.xesalignmentextension.XAlignmentExtension.XAlignmentMove move)
Returns the time associated with this move in milliseconds
|
double |
apply(org.deckfour.xes.model.XEvent event)
Returns the time associated with this event in milliseconds
|
static java.util.List<IEvent2Time> |
extractValidAttributes(org.deckfour.xes.model.XLog log,
boolean addStandard)
Extract list of valid Event2Time converters from XLog global event attributes
|
java.lang.String |
getId() |
java.lang.String |
getKey() |
java.lang.String |
getName() |
java.lang.String |
toString() |
computeDiff, computeDiff
public Event2TimeAttribute(java.lang.String attrKey, double correctionFactor)
attrKey
- The key to extract the time value fromcorrectionFactor
- The correction factor for Discrete and Literal
attributes such that the result is in milliseconds.public Event2TimeAttribute(org.deckfour.xes.model.XAttribute attr)
public static boolean acceptAttributeForTime(org.deckfour.xes.model.XAttribute attr)
attr
- public static java.util.List<IEvent2Time> extractValidAttributes(org.deckfour.xes.model.XLog log, boolean addStandard)
log
- addStandard
- public java.lang.String getKey()
public java.lang.String getId()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public double apply(org.deckfour.xes.model.XEvent event)
event
- public double apply(org.processmining.xesalignmentextension.XAlignmentExtension.XAlignmentMove move)
event
-