S
- the type of stateE
- the type of eventpublic interface ChoiceTransitionConfigurer<S,E> extends AnnotationConfigurerBuilder<StateMachineTransitionConfigurer<S,E>>
TransitionConfigurer
interface for configuring Transition
from a choice pseudo state.Modifier and Type | Method and Description |
---|---|
ChoiceTransitionConfigurer<S,E> |
first(S target,
Guard<S,E> guard)
Specify a target state
S as a first choice. |
ChoiceTransitionConfigurer<S,E> |
first(S target,
Guard<S,E> guard,
Action<S,E> action)
Specify a target state
S as a first choice associating an
Action to outgoing vertex. |
ChoiceTransitionConfigurer<S,E> |
first(S target,
Guard<S,E> guard,
Action<S,E> action,
Action<S,E> error)
Specify a target state
S as a first choice associating an
Action to outgoing vertex. |
ChoiceTransitionConfigurer<S,E> |
last(S target)
Specify a target state
S as a last choice. |
ChoiceTransitionConfigurer<S,E> |
last(S target,
Action<S,E> action)
Specify a target state
S as a last choice associating an
Action to outgoing vertex. |
ChoiceTransitionConfigurer<S,E> |
last(S target,
Action<S,E> action,
Action<S,E> error)
Specify a target state
S as a last choice associating an
Action to outgoing vertex. |
ChoiceTransitionConfigurer<S,E> |
source(S source)
Specify a source state
S for this Transition . |
ChoiceTransitionConfigurer<S,E> |
then(S target,
Guard<S,E> guard)
Specify a target state
S as a then choice. |
ChoiceTransitionConfigurer<S,E> |
then(S target,
Guard<S,E> guard,
Action<S,E> action)
Specify a target state
S as a then choice associating an
Action to outgoing vertex. |
ChoiceTransitionConfigurer<S,E> |
then(S target,
Guard<S,E> guard,
Action<S,E> action,
Action<S,E> error)
Specify a target state
S as a then choice associating an
Action to outgoing vertex. |
and
ChoiceTransitionConfigurer<S,E> source(S source)
S
for this Transition
.source
- the source state S
ChoiceTransitionConfigurer<S,E> first(S target, Guard<S,E> guard)
S
as a first choice.
This must be set.
In normal if/else if/else this would represent if.
target
- the target stateguard
- the guard for this choiceChoiceTransitionConfigurer<S,E> first(S target, Guard<S,E> guard, Action<S,E> action)
S
as a first choice associating an
Action
to outgoing vertex. This must be set.
In normal if/else if/else this would represent if.
target
- the target stateguard
- the guard for this choiceaction
- the actionChoiceTransitionConfigurer<S,E> first(S target, Guard<S,E> guard, Action<S,E> action, Action<S,E> error)
S
as a first choice associating an
Action
to outgoing vertex. This must be set.
In normal if/else if/else this would represent if.
target
- the target stateguard
- the guard for this choiceaction
- the actionerror
- action that will be called if any unexpected exception is thrown by the action.ChoiceTransitionConfigurer<S,E> then(S target, Guard<S,E> guard)
S
as a then choice.
This is optional. Multiple thens will preserve order.
In normal if/else if/else this would represent else if.
target
- the target stateguard
- the guard for this choiceChoiceTransitionConfigurer<S,E> then(S target, Guard<S,E> guard, Action<S,E> action)
S
as a then choice associating an
Action
to outgoing vertex. This is optional. Multiple thens
will preserve order.
In normal if/else if/else this would represent else if.
target
- the target stateguard
- the guard for this choiceaction
- the actionChoiceTransitionConfigurer<S,E> then(S target, Guard<S,E> guard, Action<S,E> action, Action<S,E> error)
S
as a then choice associating an
Action
to outgoing vertex. This is optional. Multiple thens
will preserve order.
In normal if/else if/else this would represent else if.
target
- the target stateguard
- the guard for this choiceaction
- the actionerror
- action that will be called if any unexpected exception is thrown by the action.ChoiceTransitionConfigurer<S,E> last(S target)
S
as a last choice.
This must be set.
In normal if/else if/else this would represent else.
target
- the target stateChoiceTransitionConfigurer<S,E> last(S target, Action<S,E> action)
S
as a last choice associating an
Action
to outgoing vertex. This must be set.
In normal if/else if/else this would represent else.
target
- the target stateaction
- the actionChoiceTransitionConfigurer<S,E> last(S target, Action<S,E> action, Action<S,E> error)
S
as a last choice associating an
Action
to outgoing vertex. This must be set.
In normal if/else if/else this would represent else.
target
- the target stateaction
- the actionerror
- action that will be called if any unexpected exception is thrown by the action.