Interface Rule<C extends Formula,​P extends Formula>

    • Method Summary

      Modifier and Type Method Description
      void addPremise​(P premise)
      Add the given premise to this rule.
      void addPremises​(java.util.Collection<? extends P> premises)
      Add the given premises to this rule.
      C getConclusion()
      Returns the conclusion of this rule.
      java.util.Collection<? extends P> getPremise()
      Returns the premise of this rule.
      Signature getSignature()
      Returns the signature of the language of this formula.
      boolean isConstraint()  
      boolean isFact()  
      void setConclusion​(C conclusion)
      Set the conclusion of this rule.
    • Method Detail

      • isFact

        boolean isFact()
      • isConstraint

        boolean isConstraint()
      • setConclusion

        void setConclusion​(C conclusion)
        Set the conclusion of this rule.
        Parameters:
        conclusion - some formula
      • addPremise

        void addPremise​(P premise)
        Add the given premise to this rule.
        Parameters:
        premise - some formula
      • addPremises

        void addPremises​(java.util.Collection<? extends P> premises)
        Add the given premises to this rule.
        Parameters:
        premises - some formulas
      • getSignature

        Signature getSignature()
        Description copied from interface: Formula
        Returns the signature of the language of this formula.
        Specified by:
        getSignature in interface Formula
        Returns:
        the signature of the language of this formula.
      • getPremise

        java.util.Collection<? extends P> getPremise()
        Returns the premise of this rule.
        Returns:
        the premise of this rule.
      • getConclusion

        C getConclusion()
        Returns the conclusion of this rule.
        Returns:
        the conclusion of this rule.