S - the type of stateE - the type of eventpublic interface Transition<S,E>
Transition is something what a state machine associates with a state
changes.| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<Action<S,E>> |
getActions()
Gets the transition actions.
|
TransitionKind |
getKind()
Gets the transition kind.
|
State<S,E> |
getSource()
Gets the source state of this transition.
|
State<S,E> |
getTarget()
Gets the target state of this transition.
|
Trigger<S,E> |
getTrigger()
Gets the transition trigger.
|
boolean |
transit(StateContext<S,E> context)
Transit this transition with a give state context.
|
boolean transit(StateContext<S,E> context)
context - the state contextjava.util.Collection<Action<S,E>> getActions()
TransitionKind getKind()