Interface Guard<S,E>
- Type Parameters:
S- the type of stateE- the type of event
- All Known Implementing Classes:
SpelExpressionGuard
public interface Guard<S,E>
Guards are typically considered as guard conditions which affect the
behaviour of a state machine by enabling actions or transitions only when they
evaluate to TRUE and disabling them when they evaluate to
FALSE.-
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(StateContext<S, E> context) Evaluate a guard condition.
-
Method Details
-
evaluate
Evaluate a guard condition.- Parameters:
context- the state context- Returns:
- true, if guard evaluation is successful, false otherwise.
-