public class Outcome extends java.lang.Object implements java.lang.Comparable<Outcome>
Currently, there is no need for more than an int-encoded representation of an event. We can represent each abstraction level as an ordered integer array.
Let's assume we encode the events A,B,C,D with 1,2,3,4 respectively.
The set abstraction is represented as an ordered array of the encoded integers. {B,D,A} -> [1,2,4] The multiset abstraction is also an ordered array but with multiple. {B²,D,A³} -> [1,1,1,2,2,4] And the list abstraction is just kept. -> [2,1,4,3,3,1]
Comparison becomes easy this way, as we don't need to search but can fast and simple array-comparison.
AbstractionLevel
Constructor and Description |
---|
Outcome(int... args) |
Outcome(org.deckfour.xes.model.XTrace trace,
AbstractionLevel level,
org.deckfour.xes.classification.XEventClasses eventClasses,
java.util.Map<org.deckfour.xes.classification.XEventClass,java.lang.Integer> encoding) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Outcome o) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
public Outcome(int... args)
public Outcome(org.deckfour.xes.model.XTrace trace, AbstractionLevel level, org.deckfour.xes.classification.XEventClasses eventClasses, java.util.Map<org.deckfour.xes.classification.XEventClass,java.lang.Integer> encoding)