S
- the type of stateE
- the type of eventpublic interface PseudoState<S,E>
PseudoState
is an abstraction that encompasses different types of
transient states or vertices in the state machine.
Pseudostates are typically used to connect multiple transitions into more complex state transitions paths. For example, by combining a transition entering a fork pseudostate with a set of transitions exiting the fork pseudostate, we get a compound transition that leads to a set of orthogonal target states.
Modifier and Type | Method and Description |
---|---|
void |
addPseudoStateListener(PseudoStateListener<S,E> listener)
Registers a new
PseudoStateListener . |
State<S,E> |
entry(StateContext<S,E> context)
Initiate an entry sequence for the state and return a next
state where state machine should go.
|
void |
exit(StateContext<S,E> context)
Initiate an exit sequence for the state.
|
PseudoStateKind |
getKind()
Gets the pseudostate kind.
|
void |
setPseudoStateListeners(java.util.List<PseudoStateListener<S,E>> listeners)
Registers a new
PseudoStateListener s. |
PseudoStateKind getKind()
State<S,E> entry(StateContext<S,E> context)
context
- the contextvoid exit(StateContext<S,E> context)
context
- the contextvoid addPseudoStateListener(PseudoStateListener<S,E> listener)
PseudoStateListener
.listener
- the listenervoid setPseudoStateListeners(java.util.List<PseudoStateListener<S,E>> listeners)
PseudoStateListener
s. Clears all
existing listeners.listeners
- the listeners