S - the type of stateE - the type of eventpublic class DefaultJunctionTransitionConfigurer<S,E> extends AnnotationConfigurerAdapter<TransitionsData<S,E>,StateMachineTransitionConfigurer<S,E>,StateMachineTransitionBuilder<S,E>> implements JunctionTransitionConfigurer<S,E>
JunctionTransitionConfigurer.| Constructor and Description |
|---|
DefaultJunctionTransitionConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(StateMachineTransitionBuilder<S,E> builder)
Configure the
AnnotationBuilder by setting the necessary properties
on the AnnotationBuilder. |
JunctionTransitionConfigurer<S,E> |
first(S target,
Guard<S,E> guard)
Specify a target state
S as a first choice. |
JunctionTransitionConfigurer<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. |
JunctionTransitionConfigurer<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. |
JunctionTransitionConfigurer<S,E> |
last(S target)
Specify a target state
S as a last choice. |
JunctionTransitionConfigurer<S,E> |
last(S target,
Action<S,E> action)
Specify a target state
S as a last choice associating an
Action to outgoing vertex. |
JunctionTransitionConfigurer<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. |
JunctionTransitionConfigurer<S,E> |
source(S source)
Specify a source state
S for this Transition. |
JunctionTransitionConfigurer<S,E> |
then(S target,
Guard<S,E> guard)
Specify a target state
S as a then choice. |
JunctionTransitionConfigurer<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. |
JunctionTransitionConfigurer<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. |
addObjectPostProcessor, and, getBuilder, init, isAssignable, setBuilderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandpublic void configure(StateMachineTransitionBuilder<S,E> builder) throws java.lang.Exception
AnnotationConfigurerAnnotationBuilder by setting the necessary properties
on the AnnotationBuilder.configure in interface AnnotationConfigurer<TransitionsData<S,E>,StateMachineTransitionBuilder<S,E>>configure in class AnnotationConfigurerAdapter<TransitionsData<S,E>,StateMachineTransitionConfigurer<S,E>,StateMachineTransitionBuilder<S,E>>builder - the builderjava.lang.Exception - if error occurredpublic JunctionTransitionConfigurer<S,E> source(S source)
JunctionTransitionConfigurerS for this Transition.source in interface JunctionTransitionConfigurer<S,E>source - the source state Spublic JunctionTransitionConfigurer<S,E> first(S target, Guard<S,E> guard)
JunctionTransitionConfigurerS as a first choice.
This must be set.
In normal if/else if/else this would represent if.
first in interface JunctionTransitionConfigurer<S,E>target - the target stateguard - the guard for this choicepublic JunctionTransitionConfigurer<S,E> first(S target, Guard<S,E> guard, Action<S,E> action)
JunctionTransitionConfigurerS as a first choice associating an
Action to outgoing vertex. This must be set.
In normal if/else if/else this would represent if.
first in interface JunctionTransitionConfigurer<S,E>target - the target stateguard - the guard for this choiceaction - the actionpublic JunctionTransitionConfigurer<S,E> first(S target, Guard<S,E> guard, Action<S,E> action, Action<S,E> error)
JunctionTransitionConfigurerS as a first choice associating an
Action to outgoing vertex. This must be set.
In normal if/else if/else this would represent if.
first in interface JunctionTransitionConfigurer<S,E>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.public JunctionTransitionConfigurer<S,E> then(S target, Guard<S,E> guard)
JunctionTransitionConfigurerS as a then choice.
This is optional. Multiple thens will preserve order.
In normal if/else if/else this would represent else if.
then in interface JunctionTransitionConfigurer<S,E>target - the target stateguard - the guard for this choicepublic JunctionTransitionConfigurer<S,E> then(S target, Guard<S,E> guard, Action<S,E> action)
JunctionTransitionConfigurerS 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.
then in interface JunctionTransitionConfigurer<S,E>target - the target stateguard - the guard for this choiceaction - the actionpublic JunctionTransitionConfigurer<S,E> then(S target, Guard<S,E> guard, Action<S,E> action, Action<S,E> error)
JunctionTransitionConfigurerS 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.
then in interface JunctionTransitionConfigurer<S,E>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.public JunctionTransitionConfigurer<S,E> last(S target)
JunctionTransitionConfigurerS as a last choice.
This must be set.
In normal if/else if/else this would represent else.
last in interface JunctionTransitionConfigurer<S,E>target - the target statepublic JunctionTransitionConfigurer<S,E> last(S target, Action<S,E> action)
JunctionTransitionConfigurerS as a last choice associating an
Action to outgoing vertex. This must be set.
In normal if/else if/else this would represent else.
last in interface JunctionTransitionConfigurer<S,E>target - the target stateaction - the actionpublic JunctionTransitionConfigurer<S,E> last(S target, Action<S,E> action, Action<S,E> error)
JunctionTransitionConfigurerS as a last choice associating an
Action to outgoing vertex. This must be set.
In normal if/else if/else this would represent else.
last in interface JunctionTransitionConfigurer<S,E>target - the target stateaction - the actionerror - action that will be called if any unexpected exception is thrown by the action.