Class LaunchRulesEngine

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void replaceRules(List<LaunchRule> rules) Set a new set of rules, the new rules replace the current rules.
      void addRules(List<LaunchRule> rules) Adds a new set of rules, the new rules are added to the current rules.
      Event processEvent(@NonNull() Event event) Processes the supplied event with all the rules that match it.
      List<RuleConsequence> evaluateEvent(@NonNull() Event event) Evaluates the supplied event against the all current rules and returns the 's from the rules that matched the supplied event.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • addRules

         void addRules(List<LaunchRule> rules)

        Adds a new set of rules, the new rules are added to the current rules.

        Parameters:
        rules - a list of LaunchRules
      • processEvent

         Event processEvent(@NonNull() Event event)

        Processes the supplied event with all the rules that match it. This processing may result in dispatch of the supplied event after attachment, modification of its data or dispatch of a new event from the supplied event.

        Parameters:
        event - the event to be evaluated
        Returns:

        the processed [Event] after token replacement.

      • evaluateEvent

         List<RuleConsequence> evaluateEvent(@NonNull() Event event)

        Evaluates the supplied event against the all current rules and returns the 's from the rules that matched the supplied event.

        Parameters:
        event - the event to be evaluated
        Returns:

        a List<RuleConsequence> that match the supplied event.