Interface IRulebase

  • All Superinterfaces:
    java.lang.Cloneable
    All Known Implementing Classes:
    Rulebase

    public interface IRulebase
    extends java.lang.Cloneable
    Contains the rules of a rule system.
    • Method Detail

      • addRule

        void addRule​(IRule rule)
        Add a rule.
        Parameters:
        rule - The rule to add.
      • removeRule

        void removeRule​(IRule rule)
        Remove a rule.
        Parameters:
        rule - The rule to remove.
      • getRules

        java.util.Collection getRules()
        Get all rules.
        Returns:
        All rules.
      • getRule

        IRule getRule​(java.lang.String string)
        Get a rule with a given name.
        Parameters:
        name - The rule name.
        Returns:
        The rule.
      • addRulebaseListener

        void addRulebaseListener​(IRulebaseListener listener)
        Add a new state listener.
        Parameters:
        listener - The state listener.
      • removeRulebaseListener

        void removeRulebaseListener​(IRulebaseListener listener)
        Remove a state listener.
        Parameters:
        listener - The state listener.
      • clone

        java.lang.Object clone()
        Clone this object.
        Returns:
        A clone of this object.