Interface IRulebase

  • All Known Implementing Classes:
    Rulebase

    public interface IRulebase
    Interface for the rulebase that contains all the rules of the system.
    • Method Detail

      • addRule

        void addRule​(IRule<?> rule)
        Add a new rule.
        Parameters:
        rule - The rule.
      • removeRule

        void removeRule​(java.lang.String rulename)
        Remove a rule.
        Parameters:
        rulename - The rule name.
      • updateRule

        void updateRule​(IRule<?> rule)
        Update a rule.
        Parameters:
        rule - The rule.
      • getRules

        java.util.List<IRule<?>> getRules​(EventType event)
        Get all rules that are relevant for an event type.
        Parameters:
        event - The event type.
        Returns:
        The rules.
      • getRules

        java.util.Collection<IRule<?>> getRules()
        Get all rules.
        Returns:
        The rules.
      • getRule

        IRule<?> getRule​(java.lang.String name)
        Get the rule.
        Parameters:
        event - The rule name.
        Returns:
        The rule.
      • containsRule

        boolean containsRule​(java.lang.String name)
        Test if a rule is contained in the rule base.
        Parameters:
        name - The rule name.
        Returns:
        True, if contained.