Interface EventRelations<T>
-
- All Known Subinterfaces:
LogRelations
- All Known Implementing Classes:
AbstractLogRelations,AlphaLogRelationsImpl,BasicLogRelations,HeuristicsLogRelationsImpl
public interface EventRelations<T>Signifies relations amongst a set of events originating from some source T
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.processmining.framework.util.Pair<java.util.List<org.deckfour.xes.classification.XEventClass>,int[][]>absoluteDirectlyFollowsMatrix()Returns a matrix with absolute dfr-frequencies.org.processmining.framework.util.Pair<java.util.List<org.deckfour.xes.classification.XEventClass>,double[][]>causalMatrix()Returns a causal matrix with some causal measure.java.util.Map<org.processmining.framework.util.Pair<org.deckfour.xes.classification.XEventClass,org.deckfour.xes.classification.XEventClass>,java.lang.Double>getCausalDependencies()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 causal dependency from x to y exists.java.util.Map<org.processmining.framework.util.Pair<org.deckfour.xes.classification.XEventClass,org.deckfour.xes.classification.XEventClass>,java.lang.Integer>getDirectFollowsDependencies()Returns a map from pairs of event classes to integers, such that if a pair (x,y) of two event classes x and y are in the map, and the integer value attached to this pair is greater than 0, then a dfrPairs follows dependency from x to y exists.java.util.Map<org.deckfour.xes.classification.XEventClass,java.lang.Integer>getEndEvents()Tells for each event class how often it appears at the endEvents of a trace in the log, if any, i.e.org.deckfour.xes.classification.XEventClassesgetEventClasses()Returns the event classes defined in the log and used in the relationsjava.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.Integer>getLengthTwoLoops()Returns a map from pairs of event classes to integers for which it is known that they are in length-two loop situations.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.TgetSource()java.util.Map<org.deckfour.xes.classification.XEventClass,java.lang.Integer>getStartEvents()Tells for each event class how often it appears at the startEvents of a trace in the log, if any, i.e.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.
-
-
-
Method Detail
-
getSource
T getSource()
-
getEventClasses
org.deckfour.xes.classification.XEventClasses getEventClasses()
Returns the event classes defined in the log and used in the relations- Returns:
- event classes;
-
absoluteDirectlyFollowsMatrix
org.processmining.framework.util.Pair<java.util.List<org.deckfour.xes.classification.XEventClass>,int[][]> absoluteDirectlyFollowsMatrix()
Returns a matrix with absolute dfr-frequencies. The first element of the pair is a List of XEventClasses. The index in the list corresponds to the index in the matrix. The matrix should be read as int[fromIndices][toIndices]- Returns:
- pair of eventclass mappings and absolute dfr value-matrix
-
causalMatrix
org.processmining.framework.util.Pair<java.util.List<org.deckfour.xes.classification.XEventClass>,double[][]> causalMatrix()
Returns a causal matrix with some causal measure. The first element of the pair is a List of XEvent The first element of the pair is a List of XEventClasses. The index in the list corresponds to the index in the matrix.- Returns:
- a causal matrix
-
getCausalDependencies
java.util.Map<org.processmining.framework.util.Pair<org.deckfour.xes.classification.XEventClass,org.deckfour.xes.classification.XEventClass>,java.lang.Double> getCausalDependencies()
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 causal dependency from x to y exists. The double value indicates the strength of the causal dependency and should be between 0 and 1 (inclusive).- Returns:
- a map from pairs of event classes to doubles
-
getDirectFollowsDependencies
java.util.Map<org.processmining.framework.util.Pair<org.deckfour.xes.classification.XEventClass,org.deckfour.xes.classification.XEventClass>,java.lang.Integer> getDirectFollowsDependencies()
Returns a map from pairs of event classes to integers, such that if a pair (x,y) of two event classes x and y are in the map, and the integer value attached to this pair is greater than 0, then a dfrPairs follows dependency from x to y exists. The integer value indicates how often the first event is directly followed by the second event.- Returns:
- a map from pairs of event classes to integers
-
getParallelRelations
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. 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
-
getStartEvents
java.util.Map<org.deckfour.xes.classification.XEventClass,java.lang.Integer> getStartEvents()
Tells for each event class how often it appears at the startEvents of a trace in the log, if any, i.e. the returned integer is always greater than 0.- Returns:
- the number of times each event class appears at the startEvents of a trace.
-
getEndEvents
java.util.Map<org.deckfour.xes.classification.XEventClass,java.lang.Integer> getEndEvents()
Tells for each event class how often it appears at the endEvents of a trace in the log, if any, i.e. the returned integer is always greater than 0.- Returns:
- the number of times each event class appears at the endEvents of a trace.
-
getLengthOneLoops
java.util.Map<org.deckfour.xes.classification.XEventClass,java.lang.Integer> getLengthOneLoops()
Returns a map from self-loop event classes to integers.- Returns:
- a map from self-loop event classes to integers.
-
lengthOneLoops
java.util.Map<org.deckfour.xes.classification.XEventClass,java.lang.Double> lengthOneLoops()
Returns a map from self-loop event classes to doubles.- Returns:
- a map from self-loop event classes to doubles.
-
getLengthTwoLoops
java.util.Map<org.processmining.framework.util.Pair<org.deckfour.xes.classification.XEventClass,org.deckfour.xes.classification.XEventClass>,java.lang.Integer> getLengthTwoLoops()
Returns a map from pairs of event classes to integers for which it is known that they are in length-two loop situations.- Returns:
- a map from pairs of event classes to integers
-
lengthTwoLoops
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.- Returns:
- a map from pairs of event classes to doubles
-
-