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> 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>> 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> |
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, 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> 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.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