Class NLPProgram

  • All Implemented Interfaces:
    Serializable, Cloneable, Iterable<NLPRule>, Collection<NLPRule>, Set<NLPRule>, net.sf.tweety.commons.BeliefBase, net.sf.tweety.logics.commons.syntax.interfaces.LogicProgram<net.sf.tweety.logics.fol.syntax.FolFormula,​net.sf.tweety.logics.fol.syntax.FolFormula,​NLPRule>

    public class NLPProgram
    extends net.sf.tweety.commons.util.rules.RuleSet<NLPRule>
    implements net.sf.tweety.logics.commons.syntax.interfaces.LogicProgram<net.sf.tweety.logics.fol.syntax.FolFormula,​net.sf.tweety.logics.fol.syntax.FolFormula,​NLPRule>
    A nested logic program
    Author:
    Tim Janus
    See Also:
    Serialized Form
    • Constructor Detail

      • NLPProgram

        public NLPProgram()
    • Method Detail

      • getFacts

        public Set<net.sf.tweety.logics.fol.syntax.FolFormula> getFacts()
        Returns:
        A set of facts as FOL formulas
      • addFact

        public void addFact​(net.sf.tweety.logics.fol.syntax.FolFormula fact)
        Specified by:
        addFact in interface net.sf.tweety.logics.commons.syntax.interfaces.LogicProgram<net.sf.tweety.logics.fol.syntax.FolFormula,​net.sf.tweety.logics.fol.syntax.FolFormula,​NLPRule>
      • getMinimalSignature

        public net.sf.tweety.logics.fol.syntax.FolSignature getMinimalSignature()
        Specified by:
        getMinimalSignature in interface net.sf.tweety.commons.BeliefBase
        Specified by:
        getMinimalSignature in interface net.sf.tweety.logics.commons.syntax.interfaces.LogicProgram<net.sf.tweety.logics.fol.syntax.FolFormula,​net.sf.tweety.logics.fol.syntax.FolFormula,​NLPRule>
      • substitute

        public NLPProgram substitute​(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t,
                                     net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v)
        Specified by:
        substitute in interface net.sf.tweety.logics.commons.syntax.interfaces.LogicProgram<net.sf.tweety.logics.fol.syntax.FolFormula,​net.sf.tweety.logics.fol.syntax.FolFormula,​NLPRule>
      • substitute

        public NLPProgram substitute​(Map<? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>,​? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> map)
                              throws IllegalArgumentException
        Specified by:
        substitute in interface net.sf.tweety.logics.commons.syntax.interfaces.LogicProgram<net.sf.tweety.logics.fol.syntax.FolFormula,​net.sf.tweety.logics.fol.syntax.FolFormula,​NLPRule>
        Throws:
        IllegalArgumentException
      • exchange

        public NLPProgram exchange​(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v,
                                   net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t)
                            throws IllegalArgumentException
        Specified by:
        exchange in interface net.sf.tweety.logics.commons.syntax.interfaces.LogicProgram<net.sf.tweety.logics.fol.syntax.FolFormula,​net.sf.tweety.logics.fol.syntax.FolFormula,​NLPRule>
        Throws:
        IllegalArgumentException