public class Utils
extends java.lang.Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object[] |
addArtificialStartEnd(org.processmining.framework.plugin.PluginContext context,
org.processmining.models.graphbased.directed.petrinet.Petrinet net,
java.lang.String startName,
java.lang.String endName) |
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 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 void |
saveToFile(org.processmining.contexts.uitopia.UIPluginContext context,
java.lang.String destinationPath,
java.lang.String modelName,
org.processmining.models.heuristics.HeuristicsNet model) |
static org.processmining.models.graphbased.directed.petrinet.Petrinet |
toPetri(org.processmining.framework.plugin.PluginContext context,
org.processmining.models.heuristics.HeuristicsNet net) |
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 org.processmining.models.graphbased.directed.petrinet.Petrinet toPetri(org.processmining.framework.plugin.PluginContext context, org.processmining.models.heuristics.HeuristicsNet net)
context
- net
- public static java.lang.Object[] addArtificialStartEnd(org.processmining.framework.plugin.PluginContext context, org.processmining.models.graphbased.directed.petrinet.Petrinet net, java.lang.String startName, java.lang.String endName)
net
- startName
- endName
- public static double harmonicMean(java.util.List<java.lang.Double> values)
values
- the list of valuesorg.processmining.plugins.joosbuijs.blockminer.genetic.TreeEvaluator
public static java.util.ArrayList<org.processmining.framework.util.Pair<java.lang.String,java.lang.String>> parseString(java.lang.String argument)
argument
- public static void saveToFile(org.processmining.contexts.uitopia.UIPluginContext context, java.lang.String destinationPath, java.lang.String modelName, org.processmining.models.heuristics.HeuristicsNet model)
context
- destinationPath
- modelName
- model
-