S
- the type of stateE
- the type of eventpublic interface StateConfigurer<S,E> extends AnnotationConfigurerBuilder<StateMachineStateConfigurer<S,E>>
StateConfigurer
interface for configuring State
s.Modifier and Type | Interface and Description |
---|---|
static class |
StateConfigurer.History
Enumeration of a possible history pseudostate type.
|
Modifier and Type | Method and Description |
---|---|
StateConfigurer<S,E> |
choice(S choice)
Specify a state
S to be choice pseudo state. |
StateConfigurer<S,E> |
end(S end)
Specify a state
S to be end state. |
StateConfigurer<S,E> |
entry(S entry)
Specify a state
S to be entrypoint pseudo state. |
StateConfigurer<S,E> |
exit(S exit)
Specify a state
S to be exitpoint pseudo state. |
StateConfigurer<S,E> |
fork(S fork)
Specify a state
S to be fork pseudo state. |
StateConfigurer<S,E> |
history(S history,
StateConfigurer.History type)
Specify a state
S to be history pseudo state. |
StateConfigurer<S,E> |
initial(S initial)
Specify a initial state
S . |
StateConfigurer<S,E> |
initial(S initial,
Action<S,E> action)
Specify a initial state
S with an Action to be executed
with it. |
StateConfigurer<S,E> |
join(S join)
Specify a state
S to be join pseudo state. |
StateConfigurer<S,E> |
junction(S junction)
Specify a state
S to be junction pseudo state. |
StateConfigurer<S,E> |
parent(S state)
Specify a states configured by this configurer instance to be
substates of state
S . |
StateConfigurer<S,E> |
state(S state)
Specify a state
S . |
StateConfigurer<S,E> |
state(S state,
Action<S,E> stateAction)
Specify a state
S with state Action . |
StateConfigurer<S,E> |
state(S state,
Action<S,E> entryAction,
Action<S,E> exitAction)
Specify a state
S with entry and exit Action . |
StateConfigurer<S,E> |
state(S state,
java.util.Collection<? extends Action<S,E>> stateActions)
Specify a state
S with state Action s. |
StateConfigurer<S,E> |
state(S state,
java.util.Collection<? extends Action<S,E>> entryActions,
java.util.Collection<? extends Action<S,E>> exitActions)
Specify a state
S with entry and exit Action s. |
StateConfigurer<S,E> |
state(S state,
E... deferred)
Specify a state
S with a deferred events E . |
StateConfigurer<S,E> |
state(S state,
StateMachine<S,E> stateMachine)
Specify a state
S and its relation with a given
machine as substate machine. |
StateConfigurer<S,E> |
state(S state,
StateMachineFactory<S,E> stateMachineFactory)
Specify a state
S and its relation with a given
machine as substate machine factory. |
StateConfigurer<S,E> |
stateDo(S state,
Action<S,E> action)
Specify a state
S with state behaviour Action . |
StateConfigurer<S,E> |
stateDo(S state,
Action<S,E> action,
Action<S,E> error)
|
StateConfigurer<S,E> |
stateEntry(S state,
Action<S,E> action)
Specify a state
S with state entry Action . |
StateConfigurer<S,E> |
stateEntry(S state,
Action<S,E> action,
Action<S,E> error)
|
StateConfigurer<S,E> |
stateExit(S state,
Action<S,E> action)
Specify a state
S with state exit Action . |
StateConfigurer<S,E> |
stateExit(S state,
Action<S,E> action,
Action<S,E> error)
|
StateConfigurer<S,E> |
states(java.util.Set<S> states)
Specify a states
S . |
and
StateConfigurer<S,E> initial(S initial)
S
.initial
- the initial stateStateConfigurer<S,E> initial(S initial, Action<S,E> action)
S
with an Action
to be executed
with it. Action can be i.e. used to init extended variables.initial
- the initial stateaction
- the actionStateConfigurer<S,E> parent(S state)
S
.state
- the parent stateStateConfigurer<S,E> state(S state)
S
.state
- the stateStateConfigurer<S,E> state(S state, StateMachine<S,E> stateMachine)
S
and its relation with a given
machine as substate machine.state
- the statestateMachine
- the submachineStateConfigurer<S,E> state(S state, StateMachineFactory<S,E> stateMachineFactory)
S
and its relation with a given
machine as substate machine factory.state
- the statestateMachineFactory
- the submachine factoryStateConfigurer<S,E> state(S state, java.util.Collection<? extends Action<S,E>> stateActions)
S
with state Action
s.state
- the statestateActions
- the state actionsStateConfigurer<S,E> state(S state, Action<S,E> stateAction)
S
with state Action
.state
- the statestateAction
- the state actionStateConfigurer<S,E> stateDo(S state, Action<S,E> action)
state
- the stateaction
- the state actionstate(Object, Action)
StateConfigurer<S,E> stateDo(S state, Action<S,E> action, Action<S,E> error)
state
- the stateaction
- the state actionerror
- action that will be called if any unexpected exception is thrown by the action.StateConfigurer<S,E> state(S state, java.util.Collection<? extends Action<S,E>> entryActions, java.util.Collection<? extends Action<S,E>> exitActions)
S
with entry and exit Action
s.state
- the stateentryActions
- the state entry actionsexitActions
- the state exit actionsStateConfigurer<S,E> state(S state, Action<S,E> entryAction, Action<S,E> exitAction)
S
with entry and exit Action
.state
- the stateentryAction
- the state entry actionexitAction
- the state exit actionStateConfigurer<S,E> stateEntry(S state, Action<S,E> action)
S
with state entry Action
.
Currently synonym for state(Object, Action, Action)
with no exit action.state
- the stateaction
- the state entry actionstate(Object, Action, Action)
StateConfigurer<S,E> stateEntry(S state, Action<S,E> action, Action<S,E> error)
S
with state entry Action
and
error Action
callback.
Currently synonym for state(Object, Action, Action)
with no exit action.state
- the stateaction
- the state entry actionerror
- action that will be called if any unexpected exception is thrown by the action.state(Object, Action, Action)
StateConfigurer<S,E> stateExit(S state, Action<S,E> action)
S
with state exit Action
.
Currently synonym for state(Object, Action, Action)
with no entry action.state
- the stateaction
- the state exit actionstate(Object, Action, Action)
StateConfigurer<S,E> stateExit(S state, Action<S,E> action, Action<S,E> error)
S
with state exit Action
and
error Action
callback.
Currently synonym for state(Object, Action, Action)
with no entry action.state
- the stateaction
- the state entry actionerror
- action that will be called if any unexpected exception is thrown by the action.state(Object, Action, Action)
StateConfigurer<S,E> state(S state, E... deferred)
S
with a deferred events E
.state
- the statedeferred
- the deferred eventsStateConfigurer<S,E> states(java.util.Set<S> states)
S
.states
- the statesStateConfigurer<S,E> end(S end)
S
to be end state. This method
can be called for each state to be marked as end state.end
- the end stateStateConfigurer<S,E> choice(S choice)
S
to be choice pseudo state.choice
- the choice pseudo stateStateConfigurer<S,E> junction(S junction)
S
to be junction pseudo state.junction
- the junction pseudo stateStateConfigurer<S,E> fork(S fork)
S
to be fork pseudo state.fork
- the fork pseudo stateStateConfigurer<S,E> join(S join)
S
to be join pseudo state.join
- the join pseudo stateStateConfigurer<S,E> history(S history, StateConfigurer.History type)
S
to be history pseudo state.history
- the history pseudo statetype
- the history pseudo state typeStateConfigurer<S,E> entry(S entry)
S
to be entrypoint pseudo state.entry
- the entrypoint pseudo stateStateConfigurer<S,E> exit(S exit)
S
to be exitpoint pseudo state.exit
- the exitpoint pseudo state