S - the type of stateE - the type of eventpublic class InitialTransition<S,E> extends AbstractTransition<S,E> implements Transition<S,E>
Transition used during a state machine start.actions, target| Constructor and Description |
|---|
InitialTransition(State<S,E> target)
Instantiates a new initial transition.
|
InitialTransition(State<S,E> target,
Action<S,E> action)
Instantiates a new initial transition.
|
InitialTransition(State<S,E> target,
java.util.Collection<Action<S,E>> actions)
Instantiates a new initial transition.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
transit(StateContext<S,E> context)
Transit this transition with a give state context.
|
addActionListener, executeTransitionActions, getActions, getGuard, getKind, getSecurityRule, getSource, getTarget, getTrigger, removeActionListener, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddActionListener, executeTransitionActions, getActions, getGuard, getKind, getSecurityRule, getSource, getTarget, getTrigger, removeActionListenerpublic InitialTransition(State<S,E> target)
target - the targetpublic InitialTransition(State<S,E> target, Action<S,E> action)
target - the targetaction - the actionpublic boolean transit(StateContext<S,E> context)
Transitiontransit in interface Transition<S,E>transit in class AbstractTransition<S,E>context - the state context