public class Toolbox
extends java.lang.Object
Constructor and Description |
---|
Toolbox() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
addToDuration(int time,
java.lang.String type) |
static java.util.List<org.deckfour.xes.classification.XEventClassifier> |
computeAllClassifiers(org.deckfour.xes.model.XLog log)
Computes the list of all classifiers for the current log.
|
static java.util.List<java.lang.String> |
computeAttributes(org.deckfour.xes.model.XLog log)
Computes the list of all attributes of all events in the log
|
static org.deckfour.xes.classification.XEventClassifier |
computeClassifier(org.deckfour.xes.model.XLog log,
java.lang.String name)
Computes the corresponding XEventClassifier object when given a log and
the name of a classifier
|
static java.util.List<org.deckfour.xes.classification.XEventClassifier> |
computeComplexClassifiers(org.deckfour.xes.model.XLog log)
Computes the list of complex classifiers for the current log.
|
static java.util.List<java.lang.String> |
computeDesiredEventsFromThreshold(ParameterValueFromRange<java.lang.Integer> threshold,
ParameterOneFromSet rate,
org.deckfour.xes.classification.XEventClasses eventClasses)
This method computes which event classes should be highlighted according
to the selected percentage
|
static java.util.List<java.lang.String> |
computeGlobalAttributes(org.deckfour.xes.model.XLog log)
Computes the list of global attributes of the log events
|
static java.time.LocalDateTime |
computeLastEventTime(java.time.LocalDateTime lastEventTime,
int firstIndex,
org.deckfour.xes.model.XTrace trace,
int index) |
static java.util.List<java.lang.String> |
getClassifiersName(java.util.List<org.deckfour.xes.classification.XEventClassifier> classifiers)
Returns the name of the classifier when passed a classifier object
|
static java.util.ArrayList<java.lang.String> |
getDurations(org.deckfour.xes.model.XLog log) |
static java.time.LocalDateTime[] |
getFirstAndLastTimes(org.deckfour.xes.model.XLog log) |
static java.util.List<java.lang.Integer> |
getMaxOccurrence(org.deckfour.xes.model.XLog log,
org.deckfour.xes.classification.XEventClassifier classifier)
Computes the sizes of the event classes with the lowest and highest
absolute occurrence, respectively
|
static java.util.List<java.lang.Integer> |
getminAdnMaxEventSize(org.deckfour.xes.model.XLog log) |
static int |
getNextId() |
static java.lang.String |
getType(org.deckfour.xes.model.XAttribute attribute) |
static java.util.Map<org.deckfour.xes.model.XTrace,java.util.List<java.lang.Integer>> |
getVariantsToTraceIndices(org.deckfour.xes.model.XLog log,
org.deckfour.xes.classification.XEventClassifier classifier) |
static org.deckfour.xes.model.XLog |
initializeLog(org.deckfour.xes.model.XLog originalLog) |
static boolean |
isSameEvent(org.deckfour.xes.model.XEvent firstEvent,
org.deckfour.xes.model.XEvent secondEvent,
java.util.Set<java.lang.String> attributes) |
static boolean |
isSameVariant(org.deckfour.xes.model.XTrace firstTrace,
org.deckfour.xes.model.XTrace secondTrace,
org.deckfour.xes.classification.XEventClassifier classifier) |
static boolean |
satisfies(org.deckfour.xes.model.XAttributeMap attributes,
java.lang.String attribute_key,
java.util.List<java.lang.String> attribute_values) |
static void |
sort(java.util.List<java.lang.String> strings) |
static java.time.LocalDateTime |
synchronizeGMT(java.lang.String time) |
public static java.util.List<org.deckfour.xes.classification.XEventClassifier> computeComplexClassifiers(org.deckfour.xes.model.XLog log)
log
- the log to be interrogatedpublic static java.util.List<org.deckfour.xes.classification.XEventClassifier> computeAllClassifiers(org.deckfour.xes.model.XLog log)
log
- the log to be interrogatedpublic static java.util.List<java.lang.String> getClassifiersName(java.util.List<org.deckfour.xes.classification.XEventClassifier> classifiers)
classifiers
- public static java.util.List<java.lang.Integer> getMaxOccurrence(org.deckfour.xes.model.XLog log, org.deckfour.xes.classification.XEventClassifier classifier)
log
- the log to be interrogatedclassifier
- based on which we generate the event classespublic static org.deckfour.xes.classification.XEventClassifier computeClassifier(org.deckfour.xes.model.XLog log, java.lang.String name)
log
- name
- the name of the classifier objectpublic static java.util.List<java.lang.String> computeDesiredEventsFromThreshold(ParameterValueFromRange<java.lang.Integer> threshold, ParameterOneFromSet rate, org.deckfour.xes.classification.XEventClasses eventClasses)
threshold
- desiredEvents
- rate
- public static java.util.List<java.lang.String> computeGlobalAttributes(org.deckfour.xes.model.XLog log)
log
- the log to be interrogatedpublic static java.util.List<java.lang.String> computeAttributes(org.deckfour.xes.model.XLog log)
log
- the log to be interrogatedpublic static java.lang.String getType(org.deckfour.xes.model.XAttribute attribute)
public static java.time.LocalDateTime synchronizeGMT(java.lang.String time)
public static org.deckfour.xes.model.XLog initializeLog(org.deckfour.xes.model.XLog originalLog)
public static java.util.Map<org.deckfour.xes.model.XTrace,java.util.List<java.lang.Integer>> getVariantsToTraceIndices(org.deckfour.xes.model.XLog log, org.deckfour.xes.classification.XEventClassifier classifier)
public static boolean isSameVariant(org.deckfour.xes.model.XTrace firstTrace, org.deckfour.xes.model.XTrace secondTrace, org.deckfour.xes.classification.XEventClassifier classifier)
public static boolean isSameEvent(org.deckfour.xes.model.XEvent firstEvent, org.deckfour.xes.model.XEvent secondEvent, java.util.Set<java.lang.String> attributes)
public static int getNextId()
public static java.util.ArrayList<java.lang.String> getDurations(org.deckfour.xes.model.XLog log)
public static java.lang.String addToDuration(int time, java.lang.String type)
public static java.util.List<java.lang.Integer> getminAdnMaxEventSize(org.deckfour.xes.model.XLog log)
public static boolean satisfies(org.deckfour.xes.model.XAttributeMap attributes, java.lang.String attribute_key, java.util.List<java.lang.String> attribute_values)
public static java.time.LocalDateTime[] getFirstAndLastTimes(org.deckfour.xes.model.XLog log)
public static java.time.LocalDateTime computeLastEventTime(java.time.LocalDateTime lastEventTime, int firstIndex, org.deckfour.xes.model.XTrace trace, int index)
public static void sort(java.util.List<java.lang.String> strings)