public class EventLogUtilities
extends java.lang.Object
Constructor and Description |
---|
EventLogUtilities() |
Modifier and Type | Method and Description |
---|---|
static org.deckfour.xes.model.XLog |
assignThroughTimeAttribute(org.deckfour.xes.model.XLog log)
THis plugin is to add throughtime as one attribute in trace and then
assign label into it
|
static void |
assignVariantLabel(java.util.List<org.deckfour.xes.model.XTrace> traceList,
java.lang.String attr_name,
java.lang.Boolean is_true) |
static void |
assignVariantLabel(TraceVariant variant,
java.lang.String attr_name,
double prob) |
static void |
assignVariantListLabel(java.util.List<TraceVariant> variants,
double overlap_rate,
double pos_rate) |
static org.deckfour.xes.model.XLog |
clonePureLog(org.deckfour.xes.model.XLog log,
java.lang.String suffix) |
static void |
deleteVariantFromLog(TraceVariant var,
org.deckfour.xes.model.XLog log) |
static void |
exportSingleLog(org.deckfour.xes.model.XLog log,
java.lang.String targetName) |
static java.util.Map<org.deckfour.xes.classification.XEventClass,java.util.List<org.processmining.models.graphbased.directed.petrinet.elements.Transition>> |
getEventTransitionMap(org.deckfour.xes.model.XLog log,
org.processmining.models.graphbased.directed.petrinet.Petrinet net,
org.deckfour.xes.classification.XEventClassifier classifier)
we build one map between XEventClasses and Transtitions in Petri Net, if
we use the event classifie we should stick on it, else, we should use the
other ones..
|
static java.util.List<LabeledTraceVariant> |
getLabeledTraceVariants(org.deckfour.xes.model.XLog log,
org.deckfour.xes.classification.XEventClassifier classifier)
create the labeled TraceVariants
|
static java.util.List<TraceVariant> |
getTraceVariants(org.deckfour.xes.model.XLog log)
here we summary the log information, including variant and then show it
in a visualizer how should we use it?? If randomness is uncontrolled, but
we need to control it..
|
static org.deckfour.xes.model.XLog[] |
sampleLog(org.deckfour.xes.model.XLog log,
double percentage)
sample the log in percentage of the whole size.
|
static org.deckfour.xes.model.XLog[] |
sampleLog(org.deckfour.xes.model.XLog log,
int number)
this method sample the log file with a certain number, as the training
set, or test set.
|
static org.deckfour.xes.model.XLog[] |
splitLog(org.deckfour.xes.model.XLog log,
java.lang.String key,
java.lang.String value)
we split log into two part onl trace level, so on the attribute value of trace
but for one attribute, it has the positive and negative values
|
static java.util.List<org.deckfour.xes.classification.XEventClass> |
transferTrace(org.deckfour.xes.model.XLog log,
org.deckfour.xes.model.XTrace trace,
org.deckfour.xes.classification.XEventClassifier classfier) |
public static java.util.List<org.deckfour.xes.classification.XEventClass> transferTrace(org.deckfour.xes.model.XLog log, org.deckfour.xes.model.XTrace trace, org.deckfour.xes.classification.XEventClassifier classfier)
public static java.util.Map<org.deckfour.xes.classification.XEventClass,java.util.List<org.processmining.models.graphbased.directed.petrinet.elements.Transition>> getEventTransitionMap(org.deckfour.xes.model.XLog log, org.processmining.models.graphbased.directed.petrinet.Petrinet net, org.deckfour.xes.classification.XEventClassifier classifier)
eventClasses
- transitions
- public static void exportSingleLog(org.deckfour.xes.model.XLog log, java.lang.String targetName) throws java.io.IOException
java.io.IOException
public static java.util.List<TraceVariant> getTraceVariants(org.deckfour.xes.model.XLog log)
log
- public static java.util.List<LabeledTraceVariant> getLabeledTraceVariants(org.deckfour.xes.model.XLog log, org.deckfour.xes.classification.XEventClassifier classifier)
log
- classifier
- public static void assignVariantLabel(java.util.List<org.deckfour.xes.model.XTrace> traceList, java.lang.String attr_name, java.lang.Boolean is_true)
public static void assignVariantLabel(TraceVariant variant, java.lang.String attr_name, double prob)
public static org.deckfour.xes.model.XLog assignThroughTimeAttribute(org.deckfour.xes.model.XLog log)
context
- log
- public static void assignVariantListLabel(java.util.List<TraceVariant> variants, double overlap_rate, double pos_rate)
public static void deleteVariantFromLog(TraceVariant var, org.deckfour.xes.model.XLog log)
public static org.deckfour.xes.model.XLog[] sampleLog(org.deckfour.xes.model.XLog log, int number)
log
- number
- the number to sample the whole log. If number >= log.size,
then all is output; If number =0, then generate the number
number set of sampled one if number <0, nothing is done,
simply exception throw out, but we can test it before itpublic static org.deckfour.xes.model.XLog[] sampleLog(org.deckfour.xes.model.XLog log, double percentage)
log
- percentage
- 0<=percentage<=1public static org.deckfour.xes.model.XLog clonePureLog(org.deckfour.xes.model.XLog log, java.lang.String suffix)
public static org.deckfour.xes.model.XLog[] splitLog(org.deckfour.xes.model.XLog log, java.lang.String key, java.lang.String value)
log
-