S - the type of stateE - the type of eventpublic 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.| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(StateContext<S,E> context)
Evaluate a guard condition.
|
boolean evaluate(StateContext<S,E> context)
context - the state context