Class KnowledgeBaseImpl

java.lang.Object
fr.inria.rules.integraal.model.kb.impl.KnowledgeBaseImpl
All Implemented Interfaces:
KnowledgeBase

public class KnowledgeBaseImpl extends Object implements KnowledgeBase
Default implementation of a KnowledgeBase
Author:
Florent Tornil
  • Constructor Details

    • KnowledgeBaseImpl

      public KnowledgeBaseImpl(FactBase factbase, RuleBase rulebase)
      Default constructor
      Parameters:
      factbase - the facts
      rulebase - the rules
  • Method Details

    • getFactBase

      public FactBase getFactBase()
      //////////////////////////////////////////////
      Specified by:
      getFactBase in interface KnowledgeBase
      Returns:
      the FactBase attached to this KnowledgeBase
    • getRuleBase

      public RuleBase getRuleBase()
      Description copied from interface: KnowledgeBase
      Returns the rule base attached to this knowledge base.
      Specified by:
      getRuleBase in interface KnowledgeBase
      Returns:
      the RuleBase attached to this KnowledgeBase
    • equals

      public boolean equals(Object o)
      //////////////////////////////////////////////
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object