Interface StateMachineTransitionConfigurer<S,E>
- Type Parameters:
S- the type of stateE- the type of event
- All Known Implementing Classes:
StateMachineTransitionBuilder
public interface StateMachineTransitionConfigurer<S,E>
Configurer interface exposing different type of transitions.
-
Method Summary
Modifier and TypeMethodDescriptionGets a configurer for transition from a choice pseudostate.Gets a configurer for transition from an entrypoint pseudostate.withExit()Gets a configurer for transition from an exitpoint pseudostate.Gets a configurer for external transition.withFork()Gets a configurer for transition from a fork pseudostate.Gets a configurer for default history transition.Gets a configurer for internal transition.withJoin()Gets a configurer for transition from a join pseudostate.Gets a configurer for transition from a junction pseudostate.Gets a configurer for local transition.
-
Method Details
-
withExternal
Gets a configurer for external transition.- Returns:
ExternalTransitionConfigurerfor chaining- Throws:
Exception- if configuration error happens- See Also:
-
withInternal
Gets a configurer for internal transition. Internal transition is used when action needs to be executed without causing a state transition. With internal transition source and target state is always a same and it is identical with self-transition in the absence of state entry and exit actions.- Returns:
InternalTransitionConfigurerfor chaining- Throws:
Exception- if configuration error happens
-
withLocal
Gets a configurer for local transition. Local transition doesn’t cause exit and entry to source state if target state is a substate of a source state. Other way around, local transition doesn’t cause exit and entry to target state if target is a superstate of a source state.- Returns:
LocalTransitionConfigurerfor chaining- Throws:
Exception- if configuration error happens
-
withChoice
Gets a configurer for transition from a choice pseudostate.- Returns:
ChoiceTransitionConfigurerfor chaining- Throws:
Exception- if configuration error happens
-
withJunction
Gets a configurer for transition from a junction pseudostate.- Returns:
JunctionTransitionConfigurerfor chaining- Throws:
Exception- if configuration error happens
-
withFork
Gets a configurer for transition from a fork pseudostate.- Returns:
ForkTransitionConfigurerfor chaining- Throws:
Exception- if configuration error happens
-
withJoin
Gets a configurer for transition from a join pseudostate.- Returns:
JoinTransitionConfigurerfor chaining- Throws:
Exception- if configuration error happens
-
withEntry
Gets a configurer for transition from an entrypoint pseudostate.- Returns:
EntryTransitionConfigurerfor chaining- Throws:
Exception- if configuration error happens
-
withExit
Gets a configurer for transition from an exitpoint pseudostate.- Returns:
ExitTransitionConfigurerfor chaining- Throws:
Exception- if configuration error happens
-
withHistory
Gets a configurer for default history transition.- Returns:
HistoryTransitionConfigurerfor chaining- Throws:
Exception- if configuration error happens
-