Interface TransitionAction<S,E>
-
public interface TransitionAction<S,E>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute(ActionContext<S,E> context)Execute theActions backing this TransitionAction.booleanmatches(S from, S to, E event)Test whether this TransitionAction is applicable to the transition criteria.
-
-
-
Method Detail
-
execute
void execute(ActionContext<S,E> context)
Execute theActions backing this TransitionAction.- Parameters:
context- theActionContext.
-
matches
boolean matches(S from, S to, E event)
Test whether this TransitionAction is applicable to the transition criteria.- Parameters:
from- the state transitioned from.to- the state transitioned to.event- the event that caused the transition.- Returns:
trueif this transition action is applicable to the transition criteria.
-
-