Class ShortLog
- java.lang.Object
-
- org.processmining.lpmsupportedwords.models.ShortLog
-
public class ShortLog extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ShortLog(org.deckfour.xes.model.XLog log, org.deckfour.xes.classification.XEventClassifier classifier)Transforms a given XLog into an array of arrays of shorts based on the given classifier, and builds the necessary data structures to translate events between the ShortLog and XLog formats.ShortLog(org.deckfour.xes.model.XLog log, ShortLog twin)Allows construction of a ShortLog with guaranteed the same classifier and legend (translations between ShortLog and XLog) as its twin.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.deckfour.xes.classification.XEventClassifiergetClassifier()The classifier used to build this ShortLog.org.deckfour.xes.model.XEvent[]getEventArray()Returns an array of XEvents that are represented in the ShortLog by the index used here.int[]getEventCounts()Returns an array where array[i] is the number of times i occurs in the log.shortgetEventId(java.lang.String label)Returns the short used for a particular event in this ShortLog.short[][]getLog()Returns a copy of the short-based log.
-
-
-
Constructor Detail
-
ShortLog
public ShortLog(org.deckfour.xes.model.XLog log, org.deckfour.xes.classification.XEventClassifier classifier)Transforms a given XLog into an array of arrays of shorts based on the given classifier, and builds the necessary data structures to translate events between the ShortLog and XLog formats.- Parameters:
log-classifier-
-
ShortLog
public ShortLog(org.deckfour.xes.model.XLog log, ShortLog twin)Allows construction of a ShortLog with guaranteed the same classifier and legend (translations between ShortLog and XLog) as its twin.- Parameters:
log-twin-
-
-
Method Detail
-
getEventCounts
public int[] getEventCounts()
Returns an array where array[i] is the number of times i occurs in the log.- Returns:
-
getLog
public short[][] getLog()
Returns a copy of the short-based log. shortLog[tradeIndex][eventIndex] on this refers to the short that represents the event class at originalLog.get(traceIndex).get(eventIndex) in the original log.- Returns:
-
getClassifier
public org.deckfour.xes.classification.XEventClassifier getClassifier()
The classifier used to build this ShortLog.- Returns:
-
getEventArray
public org.deckfour.xes.model.XEvent[] getEventArray()
Returns an array of XEvents that are represented in the ShortLog by the index used here.- Returns:
-
getEventId
public short getEventId(java.lang.String label)
Returns the short used for a particular event in this ShortLog.- Parameters:
label-- Returns:
-
-