S
- the type of stateE
- the type of eventpublic abstract class AbstractTransition<S,E> extends java.lang.Object implements Transition<S,E>
Transition
.Constructor and Description |
---|
AbstractTransition(State<S,E> source,
State<S,E> target,
java.util.Collection<Action<S,E>> actions,
E event,
TransitionKind kind,
Guard<S,E> guard,
Trigger<S,E> trigger) |
AbstractTransition(State<S,E> source,
State<S,E> target,
java.util.Collection<Action<S,E>> actions,
E event,
TransitionKind kind,
Guard<S,E> guard,
Trigger<S,E> trigger,
SecurityRule securityRule) |
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 AbstractTransition(State<S,E> source, State<S,E> target, java.util.Collection<Action<S,E>> actions, E event, TransitionKind kind, Guard<S,E> guard, Trigger<S,E> trigger)
public 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 boolean transit(StateContext<S,E> context)
Transition
transit
in interface Transition<S,E>
context
- the state contextpublic TransitionKind getKind()
Transition
getKind
in interface Transition<S,E>
public SecurityRule getSecurityRule()
Transition
getSecurityRule
in interface Transition<S,E>