Interface Guard<S,E>

Type Parameters:
S - the type of state
E - 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 Type
    Method
    Description
    boolean
    Evaluate a guard condition.
  • Method Details

    • evaluate

      boolean evaluate(StateContext<S,E> context)
      Evaluate a guard condition.
      Parameters:
      context - the state context
      Returns:
      true, if guard evaluation is successful, false otherwise.