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, getKind, getSecurityRule, getSource, getTarget, getTrigger, removeActionListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addActionListener, executeTransitionActions, getActions, getKind, getSecurityRule, getSource, getTarget, getTrigger, removeActionListener
public 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)
Transition
transit
in interface Transition<S,E>
transit
in class AbstractTransition<S,E>
context
- the state context