Class HeuristicsLogRelationsImpl
- java.lang.Object
-
- org.processmining.plugins.log.logabstraction.abstracts.AbstractLogRelations
-
- org.processmining.plugins.log.logabstraction.implementations.HeuristicsLogRelationsImpl
-
- All Implemented Interfaces:
EventRelations<org.deckfour.xes.model.XLog>,LogRelations
public class HeuristicsLogRelationsImpl extends AbstractLogRelations
-
-
Field Summary
Fields Modifier and Type Field Description protected double[][]causalLengthTwoLoopMatrixprotected LogRelationsdelegateprotected double[]lengthOneLoopColumn-
Fields inherited from class org.processmining.plugins.log.logabstraction.abstracts.AbstractLogRelations
absoluteDirectlyFollowsMatrix, absoluteLengthTwoLoopMatrix, causalMatrix, classes, dfrTraceMap, ends, eventClasses, log, progress, starts, summary
-
-
Constructor Summary
Constructors Constructor Description HeuristicsLogRelationsImpl(org.deckfour.xes.model.XLog log)HeuristicsLogRelationsImpl(org.deckfour.xes.model.XLog log, org.deckfour.xes.info.XLogInfo summary)HeuristicsLogRelationsImpl(org.deckfour.xes.model.XLog log, org.deckfour.xes.info.XLogInfo summary, org.processmining.framework.plugin.Progress progress)HeuristicsLogRelationsImpl(org.deckfour.xes.model.XLog log, org.processmining.framework.plugin.Progress progress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcalculateCausalMatrix()protected voidcalculateLenghtTwoLoopMatrix()protected voidcalculateLogRelations()protected voidcalculateMetrics()protected voidcalculateSelfLoopMatrix()protected voidexpandProgress()Add to the progress, the additional cost of computation generated by calculate metrics.java.util.Map<org.deckfour.xes.classification.XEventClass,java.lang.Integer>getLengthOneLoops()Returns a map from self-loop event classes to integers.java.util.Map<org.processmining.framework.util.Pair<org.deckfour.xes.classification.XEventClass,org.deckfour.xes.classification.XEventClass>,java.lang.Double>getParallelRelations()Returns a map from pairs of event classes to double, such that if a pair (x,y) of two event classes x and y are in the map, and the double value attached to this pair is greater than 0, then a parallel relation between x and y exists.protected voidinstantiateDelegate()java.util.Map<org.deckfour.xes.classification.XEventClass,java.lang.Double>lengthOneLoops()Returns a map from self-loop event classes to doubles.java.util.Map<org.processmining.framework.util.Pair<org.deckfour.xes.classification.XEventClass,org.deckfour.xes.classification.XEventClass>,java.lang.Double>lengthTwoLoops()Returns a map from pairs of event classes to doubles for which it is known that they are in length-two loop situations.-
Methods inherited from class org.processmining.plugins.log.logabstraction.abstracts.AbstractLogRelations
absoluteDirectlyFollowsMatrix, causalDependencies, causalMatrix, fillDirectSuccessionMatrices, getCausalDependencies, getCountDirect, getDirectFollowsDependencies, getEndEvents, getEndTraceInfo, getEventClasses, getLengthTwoLoops, getLog, getSource, getStartEvents, getStartTraceInfo, getSummary, increaseProgress, setupEventClasses, storePair, traceContainsLengthTwoConstruct
-
-
-
-
Field Detail
-
lengthOneLoopColumn
protected double[] lengthOneLoopColumn
-
causalLengthTwoLoopMatrix
protected double[][] causalLengthTwoLoopMatrix
-
delegate
protected LogRelations delegate
-
-
Constructor Detail
-
HeuristicsLogRelationsImpl
public HeuristicsLogRelationsImpl(org.deckfour.xes.model.XLog log)
-
HeuristicsLogRelationsImpl
public HeuristicsLogRelationsImpl(org.deckfour.xes.model.XLog log, org.deckfour.xes.info.XLogInfo summary)
-
HeuristicsLogRelationsImpl
public HeuristicsLogRelationsImpl(org.deckfour.xes.model.XLog log, org.processmining.framework.plugin.Progress progress)
-
HeuristicsLogRelationsImpl
public HeuristicsLogRelationsImpl(org.deckfour.xes.model.XLog log, org.deckfour.xes.info.XLogInfo summary, org.processmining.framework.plugin.Progress progress)
-
-
Method Detail
-
calculateLogRelations
protected void calculateLogRelations()
- Specified by:
calculateLogRelationsin classAbstractLogRelations
-
instantiateDelegate
protected void instantiateDelegate()
-
expandProgress
protected void expandProgress()
Description copied from class:AbstractLogRelationsAdd to the progress, the additional cost of computation generated by calculate metrics.- Specified by:
expandProgressin classAbstractLogRelations
-
calculateMetrics
protected void calculateMetrics()
- Specified by:
calculateMetricsin classAbstractLogRelations
-
calculateCausalMatrix
protected void calculateCausalMatrix()
-
calculateSelfLoopMatrix
protected void calculateSelfLoopMatrix()
-
calculateLenghtTwoLoopMatrix
protected void calculateLenghtTwoLoopMatrix()
-
getParallelRelations
public java.util.Map<org.processmining.framework.util.Pair<org.deckfour.xes.classification.XEventClass,org.deckfour.xes.classification.XEventClass>,java.lang.Double> getParallelRelations()
Description copied from interface:EventRelationsReturns a map from pairs of event classes to double, such that if a pair (x,y) of two event classes x and y are in the map, and the double value attached to this pair is greater than 0, then a parallel relation between x and y exists. It can be assumed that the double value attached to (x,y) equals the value attached to (y,x). The double value indicates the strength of the parallel relation and should be between 0 and 1 (inclusive).- Returns:
- a map from pairs of event classes to doubles
-
getLengthOneLoops
public java.util.Map<org.deckfour.xes.classification.XEventClass,java.lang.Integer> getLengthOneLoops()
Description copied from interface:EventRelationsReturns a map from self-loop event classes to integers.- Specified by:
getLengthOneLoopsin interfaceEventRelations<org.deckfour.xes.model.XLog>- Overrides:
getLengthOneLoopsin classAbstractLogRelations- Returns:
- a map from self-loop event classes to integers.
-
lengthOneLoops
public java.util.Map<org.deckfour.xes.classification.XEventClass,java.lang.Double> lengthOneLoops()
Description copied from interface:EventRelationsReturns a map from self-loop event classes to doubles.- Specified by:
lengthOneLoopsin interfaceEventRelations<org.deckfour.xes.model.XLog>- Overrides:
lengthOneLoopsin classAbstractLogRelations- Returns:
- a map from self-loop event classes to doubles.
-
lengthTwoLoops
public java.util.Map<org.processmining.framework.util.Pair<org.deckfour.xes.classification.XEventClass,org.deckfour.xes.classification.XEventClass>,java.lang.Double> lengthTwoLoops()
Description copied from interface:EventRelationsReturns a map from pairs of event classes to doubles for which it is known that they are in length-two loop situations.- Specified by:
lengthTwoLoopsin interfaceEventRelations<org.deckfour.xes.model.XLog>- Overrides:
lengthTwoLoopsin classAbstractLogRelations- Returns:
- a map from pairs of event classes to doubles
-
-