public class NLPRule
extends net.sf.tweety.logics.commons.syntax.ComplexLogicalFormulaAdapter
implements net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormula, net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.fol.syntax.FolFormula,net.sf.tweety.logics.fol.syntax.FolFormula>
| Constructor and Description |
|---|
NLPRule() |
NLPRule(net.sf.tweety.logics.fol.syntax.FolFormula conclusion) |
NLPRule(net.sf.tweety.logics.fol.syntax.FolFormula conclusion,
Collection<net.sf.tweety.logics.fol.syntax.FolFormula> premise) |
NLPRule(net.sf.tweety.logics.fol.syntax.FolFormula conclusion,
net.sf.tweety.logics.fol.syntax.FolFormula premise) |
NLPRule(NLPRule other) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPremise(net.sf.tweety.logics.fol.syntax.FolFormula premise) |
void |
addPremises(Collection<? extends net.sf.tweety.logics.fol.syntax.FolFormula> premises) |
NLPRule |
clone() |
boolean |
equals(Object other) |
Set<net.sf.tweety.logics.fol.syntax.FOLAtom> |
getAtoms() |
net.sf.tweety.logics.fol.syntax.FolFormula |
getConclusion() |
Class<? extends net.sf.tweety.logics.commons.syntax.Predicate> |
getPredicateCls() |
Set<net.sf.tweety.logics.commons.syntax.Predicate> |
getPredicates() |
Collection<net.sf.tweety.logics.fol.syntax.FolFormula> |
getPremise() |
net.sf.tweety.logics.fol.syntax.FolSignature |
getSignature() |
Set<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> |
getTerms() |
int |
hashCode() |
boolean |
isConstraint() |
boolean |
isFact() |
void |
setConclusion(net.sf.tweety.logics.fol.syntax.FolFormula conclusion) |
NLPRule |
substitute(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v,
net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t) |
containsTermsOfType, exchange, getTerms, isGround, isLiteral, isWellFormed, substitutefinalize, getClass, notify, notifyAll, toString, wait, wait, waitexchange, isGround, isWellFormed, substitutepublic NLPRule()
public NLPRule(NLPRule other)
public NLPRule(net.sf.tweety.logics.fol.syntax.FolFormula conclusion)
public NLPRule(net.sf.tweety.logics.fol.syntax.FolFormula conclusion,
net.sf.tweety.logics.fol.syntax.FolFormula premise)
public NLPRule(net.sf.tweety.logics.fol.syntax.FolFormula conclusion,
Collection<net.sf.tweety.logics.fol.syntax.FolFormula> premise)
public void addPremise(net.sf.tweety.logics.fol.syntax.FolFormula premise)
throws net.sf.tweety.logics.commons.error.LanguageException
addPremise in interface net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.fol.syntax.FolFormula,net.sf.tweety.logics.fol.syntax.FolFormula>net.sf.tweety.logics.commons.error.LanguageExceptionpublic void addPremises(Collection<? extends net.sf.tweety.logics.fol.syntax.FolFormula> premises)
addPremises in interface net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.fol.syntax.FolFormula,net.sf.tweety.logics.fol.syntax.FolFormula>public void setConclusion(net.sf.tweety.logics.fol.syntax.FolFormula conclusion)
throws net.sf.tweety.logics.commons.error.LanguageException
setConclusion in interface net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.fol.syntax.FolFormula,net.sf.tweety.logics.fol.syntax.FolFormula>net.sf.tweety.logics.commons.error.LanguageExceptionpublic Collection<net.sf.tweety.logics.fol.syntax.FolFormula> getPremise()
getPremise in interface net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.fol.syntax.FolFormula,net.sf.tweety.logics.fol.syntax.FolFormula>public net.sf.tweety.logics.fol.syntax.FolFormula getConclusion()
getConclusion in interface net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.fol.syntax.FolFormula,net.sf.tweety.logics.fol.syntax.FolFormula>public net.sf.tweety.logics.fol.syntax.FolSignature getSignature()
getSignature in interface net.sf.tweety.commons.FormulagetSignature in interface net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.fol.syntax.FolFormula,net.sf.tweety.logics.fol.syntax.FolFormula>public boolean isFact()
isFact in interface net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.fol.syntax.FolFormula,net.sf.tweety.logics.fol.syntax.FolFormula>public boolean isConstraint()
isConstraint in interface net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.fol.syntax.FolFormula,net.sf.tweety.logics.fol.syntax.FolFormula>public Set<net.sf.tweety.logics.fol.syntax.FOLAtom> getAtoms()
getAtoms in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulapublic Set<net.sf.tweety.logics.commons.syntax.Predicate> getPredicates()
getPredicates in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulapublic Class<? extends net.sf.tweety.logics.commons.syntax.Predicate> getPredicateCls()
getPredicateCls in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulapublic Set<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> getTerms()
getTerms in interface net.sf.tweety.logics.commons.syntax.interfaces.LogicStructurepublic NLPRule substitute(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v, net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t) throws IllegalArgumentException
substitute in interface net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormulaIllegalArgumentExceptionpublic int hashCode()
public boolean equals(Object other)
public NLPRule clone()
clone in interface net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormulaclone in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulaclone in class net.sf.tweety.logics.commons.syntax.ComplexLogicalFormulaAdapterCopyright © 2018. All rights reserved.