Class PayloadTransitionSystem<E>

  • Type Parameters:
    E - is the type of elements in the sequence.
    All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Comparable<org.processmining.models.graphbased.directed.DirectedGraph<State,​Transition>>, org.processmining.models.graphbased.AttributeMapOwner, org.processmining.models.graphbased.directed.DirectedGraph<State,​Transition>, org.processmining.models.graphbased.directed.DirectedGraphElement, TransitionSystem
    Direct Known Subclasses:
    EventPayloadTransitionSystem

    public class PayloadTransitionSystem<E>
    extends TransitionSystemImpl
    This class enables associating a specific strategy of "replaying" a sequence on a transition system. For example, the simplest strategy would be to start in the initial state and then replay one by one sequence element on each transition. Here the new sate is determined purely based on the last sequence element. However, there can be replay strategies can consider more than the last element when determining the new state.
    Author:
    mpesic
    • Field Summary

      • Fields inherited from class org.processmining.models.graphbased.AbstractGraph

        id
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PayloadHandler<E> getPayloadHanlder()
      Returns the payload handler associated with this transition system.
      State getSourceState​(java.util.List<E> sequence, int i)
      Returns the source state of the transition that corresponds to the i-th element.
      State getTargetState​(java.util.List<E> sequence, int i)  
      Transition getTransition​(java.util.List<E> sequence, int i)
      Returns the transition that corresponds to the i-th element of the sequence.
      • Methods inherited from class org.processmining.models.graphbased.directed.AbstractDirectedGraph

        checkAddEdge, compareTo, getGraph, getInEdges, getOutEdges, graphElementAdded, graphElementChanged, graphElementRemoved, removeSurroundingEdges
      • Methods inherited from class org.processmining.models.graphbased.AbstractGraph

        equals, getEdges, hashCode, removeFromEdges, removeNodeFromCollection
      • Methods inherited from class org.processmining.models.graphbased.AbstractGraphElement

        getAttributeMap, getLabel, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.processmining.models.graphbased.AttributeMapOwner

        getAttributeMap
      • Methods inherited from interface java.lang.Comparable

        compareTo
      • Methods inherited from interface org.processmining.models.graphbased.directed.DirectedGraph

        getInEdges, getOutEdges
      • Methods inherited from interface org.processmining.models.graphbased.directed.DirectedGraphElement

        equals, getGraph, hashCode
    • Constructor Detail

      • PayloadTransitionSystem

        public PayloadTransitionSystem​(java.lang.String label,
                                       PayloadHandler<E> handler)
        The only constructor for this class.
        Parameters:
        label - is the transition system label.
        handler - is the specific PayloadHandler.
    • Method Detail

      • getPayloadHanlder

        public PayloadHandler<E> getPayloadHanlder()
        Returns the payload handler associated with this transition system.
        Returns:
      • getSourceState

        public State getSourceState​(java.util.List<E> sequence,
                                    int i)
        Returns the source state of the transition that corresponds to the i-th element.
        Parameters:
        sequence -
        i -
        Returns:
      • getTargetState

        public State getTargetState​(java.util.List<E> sequence,
                                    int i)
      • getTransition

        public Transition getTransition​(java.util.List<E> sequence,
                                        int i)
        Returns the transition that corresponds to the i-th element of the sequence. This is, of course with respect to the way the payload handler replays the sequence.
        Parameters:
        sequence -
        i -
        Returns: