Interface IControlEventMatcher<C,​B>

Type Parameters:
C - control event type
B - controlled event type
All Known Implementing Classes:
CallEventMatcher, FlowTraceEventMatcher

public interface IControlEventMatcher<C,​B>
Matcher interface to control whether an event can pass or must be held.
Since:
1.15
Author:
Reiner Jung
  • Method Summary

    Modifier and Type Method Description
    boolean checkControlEvent​(C controlEvent, B baseEvent)
    Check whether a base event matches a control event.
    boolean keepControlEvent​(B baseEvent)
    True whether a control event must be kept to be reused for another base event.
    boolean requiresControlEvent​(B baseEvent)
    Check whether the given event must be handled by the controller
  • Method Details

    • requiresControlEvent

      boolean requiresControlEvent​(B baseEvent)
      Check whether the given event must be handled by the controller
      Parameters:
      baseEvent - the base event
      Returns:
      returns true when the base event must only be released with a proper control event
    • checkControlEvent

      boolean checkControlEvent​(C controlEvent, B baseEvent)
      Check whether a base event matches a control event.
      Parameters:
      controlEvent - the control event
      baseEvent - the base event to be checked
      Returns:
      returns true if the base event is accepted
    • keepControlEvent

      boolean keepControlEvent​(B baseEvent)
      True whether a control event must be kept to be reused for another base event.
      Parameters:
      baseEvent - the previously checked base event
      Returns:
      true to keep control event