Class Outcome

  • All Implemented Interfaces:
    java.lang.Comparable<Outcome>

    public class Outcome
    extends java.lang.Object
    implements java.lang.Comparable<Outcome>
    The outcome of an abstraction of a trace

    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.

    Author:
    Andreas Rogge-Solti
    See Also:
    AbstractionLevel
    • Constructor Summary

      Constructors 
      Constructor 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)  
    • Constructor Detail

      • Outcome

        public Outcome​(int... args)
      • Outcome

        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)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(Outcome o)
        Specified by:
        compareTo in interface java.lang.Comparable<Outcome>