S
- the type of stateE
- the type of eventpublic class InitialTransition<S,E> extends java.lang.Object implements Transition<S,E>
Transition
used during a state machine start.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 |
---|---|
java.util.Collection<Action<S,E>> |
getActions()
Gets the transition actions.
|
TransitionKind |
getKind()
Gets the transition kind.
|
SecurityRule |
getSecurityRule()
Gets the security rule.
|
State<S,E> |
getSource()
Gets the source state of this transition.
|
State<S,E> |
getTarget()
Gets the target state of this transition.
|
Trigger<S,E> |
getTrigger()
Gets the transition trigger.
|
boolean |
transit(StateContext<S,E> context)
Transit this transition with a give state context.
|
public InitialTransition(State<S,E> target)
target
- the initial target statepublic InitialTransition(State<S,E> target, Action<S,E> action)
target
- the initial target stateaction
- the initial actionpublic boolean transit(StateContext<S,E> context)
Transition
transit
in interface Transition<S,E>
context
- the state contextpublic State<S,E> getSource()
Transition
getSource
in interface Transition<S,E>
public State<S,E> getTarget()
Transition
getTarget
in interface Transition<S,E>
public java.util.Collection<Action<S,E>> getActions()
Transition
getActions
in interface Transition<S,E>
public Trigger<S,E> getTrigger()
Transition
getTrigger
in interface Transition<S,E>
public TransitionKind getKind()
Transition
getKind
in interface Transition<S,E>
public SecurityRule getSecurityRule()
Transition
getSecurityRule
in interface Transition<S,E>