Package com.alibaba.cola.statemachine
Interface State<S,E,C>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Transition<S,E,C>addTransition(E event, State<S,E,C> target, TransitionType transitionType)Add transition to the stateCollection<Transition<S,E,C>>getAllTransitions()List<Transition<S,E,C>>getEventTransitions(E event)SgetId()Gets the state identifier.
-
-
-
Method Detail
-
getId
S getId()
Gets the state identifier.- Returns:
- the state identifiers
-
addTransition
Transition<S,E,C> addTransition(E event, State<S,E,C> target, TransitionType transitionType)
Add transition to the state- Parameters:
event- the event of the Transitiontarget- the target of the transition- Returns:
-
getAllTransitions
Collection<Transition<S,E,C>> getAllTransitions()
-
-