public class Utils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static org.deckfour.xes.factory.XFactory |
xesFactory |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static org.processmining.framework.util.Pair<java.lang.String,java.lang.String> |
fromEventsToActs(org.processmining.framework.util.Pair<org.deckfour.xes.model.XEvent,org.deckfour.xes.model.XEvent> events) |
static org.processmining.framework.util.Pair<java.lang.String,java.lang.String> |
fromEventsToActs(org.deckfour.xes.model.XEvent eventA,
org.deckfour.xes.model.XEvent eventB) |
static java.lang.String |
fromMillisecToStringDuration(long duration)
This method converts a time duration, expressed in milliseconds, into a
human readable version (e.g.
|
static java.lang.String |
getActivityName(org.deckfour.xes.model.XEvent e)
This method, given an event, returns the name of the activity
|
static java.lang.String |
getCaseID(org.deckfour.xes.model.XTrace t)
This method, given a trace, returns its case id
|
static double |
harmonicMean(java.util.List<java.lang.Double> values)
Returns the harmonic mean of the given list of values
|
static boolean |
inRange(int value,
int left,
int right)
This method check if, given a value, it's inside the interval defined by
its left and right area
|
static boolean |
inRectangle(java.awt.Point p,
java.awt.Rectangle r)
This method check if, given a point, it's inside the given rectangle
|
static boolean |
isTraceComplete(org.deckfour.xes.model.XEvent e)
This method tells whether the given event is the tagged as the last
event of a stream
|
static boolean |
isTraceStart(org.deckfour.xes.model.XEvent e)
This method tells whether the given event is the tagged as the first
event of a stream
|
static void |
l(java.lang.String message) |
static java.util.ArrayList<org.processmining.framework.util.Pair<java.lang.String,java.lang.String>> |
parseString(java.lang.String argument)
This method parses a string (typically given as argument on the command
line) like "(a,b);(c,d);(e,f) ; ( ggg , hhh)" and generates an array
list of pairs of string
|
static double |
round(double value,
int digit)
This method rounds the provided value to the provided number of digits.
|
static org.deckfour.xes.model.XLog |
traceSet2Log(java.util.concurrent.ArrayBlockingQueue<org.deckfour.xes.model.XTrace> originalLog) |
public static boolean isTraceStart(org.deckfour.xes.model.XEvent e)
e - an eventpublic static boolean isTraceComplete(org.deckfour.xes.model.XEvent e)
e - an eventpublic static java.lang.String fromMillisecToStringDuration(long duration)
duration - the time duration, expressed in millisecondspublic static boolean inRange(int value,
int left,
int right)
value - the value to be checkedleft - the leftmost boundright - the rightmost boundpublic static boolean inRectangle(java.awt.Point p,
java.awt.Rectangle r)
p - the point to be checkedr - the rectangle boundpublic static java.lang.String getCaseID(org.deckfour.xes.model.XTrace t)
t - the given tracepublic static java.lang.String getActivityName(org.deckfour.xes.model.XEvent e)
e - the log eventpublic static double harmonicMean(java.util.List<java.lang.Double> values)
values - the list of valuesorg.processmining.plugins.joosbuijs.blockminer.genetic.TreeEvaluatorpublic static double round(double value,
int digit)
value - digit - public static java.util.ArrayList<org.processmining.framework.util.Pair<java.lang.String,java.lang.String>> parseString(java.lang.String argument)
argument - public static org.processmining.framework.util.Pair<java.lang.String,java.lang.String> fromEventsToActs(org.deckfour.xes.model.XEvent eventA,
org.deckfour.xes.model.XEvent eventB)
eventA - eventB - public static org.processmining.framework.util.Pair<java.lang.String,java.lang.String> fromEventsToActs(org.processmining.framework.util.Pair<org.deckfour.xes.model.XEvent,org.deckfour.xes.model.XEvent> events)
events - public static void l(java.lang.String message)
public static org.deckfour.xes.model.XLog traceSet2Log(java.util.concurrent.ArrayBlockingQueue<org.deckfour.xes.model.XTrace> originalLog)
originalLog - logStartsEnd -