Class PayloadTransitionSystem<E>
- java.lang.Object
-
- org.processmining.models.graphbased.AbstractGraphElement
-
- org.processmining.models.graphbased.AbstractGraph
-
- org.processmining.models.graphbased.directed.AbstractDirectedGraph<State,Transition>
-
- org.processmining.models.graphbased.directed.transitionsystem.TransitionSystemImpl
-
- org.processmining.models.graphbased.directed.transitionsystem.payload.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
-
-
Constructor Summary
Constructors Constructor Description PayloadTransitionSystem(java.lang.String label, PayloadHandler<E> handler)The only constructor for this class.
-
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.StategetSourceState(java.util.List<E> sequence, int i)Returns the source state of the transition that corresponds to the i-th element.StategetTargetState(java.util.List<E> sequence, int i)TransitiongetTransition(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.transitionsystem.TransitionSystemImpl
addProxyMap, addState, addTransition, cloneFrom, findTransition, getEdges, getEdges, getEmptyClone, getNode, getNodes, getStates, getTransitionObjects, getTransitions, putProxy, removeEdge, removeNode, removeState, removeTransition
-
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 org.processmining.models.graphbased.directed.DirectedGraph
getInEdges, getOutEdges
-
Methods inherited from interface org.processmining.models.graphbased.directed.DirectedGraphElement
equals, getGraph, hashCode
-
Methods inherited from interface org.processmining.models.graphbased.directed.transitionsystem.TransitionSystem
getLabel
-
-
-
-
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:
-
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:
-
-