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 |
---|---|
void |
addActionListener(ActionListener<S,E> listener)
Adds the action listener.
|
void |
executeTransitionActions(StateContext<S,E> context)
Execute transition actions.
|
java.util.Collection<Action<S,E>> |
getActions()
Gets the transition actions.
|
Guard<S,E> |
getGuard()
Gets the guard of this transition.
|
TransitionKind |
getKind()
Gets the transition kind.
|
SecurityRule |
getSecurityRule()
Gets the security rule.
|
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.
|
void |
removeActionListener(ActionListener<S,E> listener)
Removes the action listener.
|
boolean |
transit(StateContext<S,E> context)
Transit this transition with a give state context.
|
boolean transit(StateContext<S,E> context)
context
- the state contextvoid executeTransitionActions(StateContext<S,E> context)
context
- the state contextState<S,E> getSource()
State<S,E> getTarget()
java.util.Collection<Action<S,E>> getActions()
TransitionKind getKind()
SecurityRule getSecurityRule()
void addActionListener(ActionListener<S,E> listener)
listener
- the listenervoid removeActionListener(ActionListener<S,E> listener)
listener
- the listener