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> |
last(S target)
Specify a target state
S as a last choice. |
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. |
addObjectPostProcessor, and, getBuilder, init, isAssignable, setBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and
public void configure(StateMachineTransitionBuilder<S,E> builder) throws java.lang.Exception
AnnotationConfigurer
AnnotationBuilder
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)
JunctionTransitionConfigurer
S
for this Transition
.source
in interface JunctionTransitionConfigurer<S,E>
source
- the source state S
public JunctionTransitionConfigurer<S,E> first(S target, Guard<S,E> guard)
JunctionTransitionConfigurer
S
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> then(S target, Guard<S,E> guard)
JunctionTransitionConfigurer
S
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> last(S target)
JunctionTransitionConfigurer
S
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 state