public class DefaultRule
extends net.sf.tweety.logics.commons.syntax.RelationalFormula
| Constructor and Description |
|---|
DefaultRule()
an empty Default Rule
|
DefaultRule(net.sf.tweety.logics.fol.syntax.FolFormula pre,
Collection<net.sf.tweety.logics.fol.syntax.FolFormula> jus,
net.sf.tweety.logics.fol.syntax.FolFormula conc)
Creates a new DefaultRule
|
DefaultRule(net.sf.tweety.logics.fol.syntax.FolFormula pre,
net.sf.tweety.logics.fol.syntax.FolFormula jus,
net.sf.tweety.logics.fol.syntax.FolFormula conc)
Creates a new DefaultRule
|
| Modifier and Type | Method and Description |
|---|---|
net.sf.tweety.logics.commons.syntax.RelationalFormula |
clone() |
net.sf.tweety.logics.fol.syntax.Conjunction |
combineWithAnd(net.sf.tweety.logics.commons.syntax.interfaces.Conjuctable formula) |
net.sf.tweety.logics.fol.syntax.Disjunction |
combineWithOr(net.sf.tweety.logics.commons.syntax.interfaces.Disjunctable formula) |
net.sf.tweety.logics.commons.syntax.RelationalFormula |
complement() |
boolean |
containsQuantifier() |
boolean |
equals(Object o) |
Set<net.sf.tweety.logics.fol.syntax.FOLAtom> |
getAtoms() |
net.sf.tweety.logics.fol.syntax.FolFormula |
getConclusion() |
Set<net.sf.tweety.logics.commons.syntax.Functor> |
getFunctors() |
Collection<net.sf.tweety.logics.fol.syntax.FolFormula> |
getJustification() |
Set<? extends net.sf.tweety.logics.commons.syntax.Predicate> |
getPredicates() |
net.sf.tweety.logics.fol.syntax.FolFormula |
getPrerequisite() |
Set<net.sf.tweety.logics.commons.syntax.Variable> |
getQuantifierVariables() |
net.sf.tweety.logics.fol.syntax.FolSignature |
getSignature() |
Set<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> |
getTerms() |
<C extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> |
getTerms(Class<C> cls) |
Set<net.sf.tweety.logics.commons.syntax.Variable> |
getUnboundVariables() |
net.sf.tweety.math.probability.Probability |
getUniformProbability() |
int |
hashCode() |
boolean |
isClosed() |
boolean |
isClosed(Set<net.sf.tweety.logics.commons.syntax.Variable> boundVariables) |
boolean |
isLiteral() |
boolean |
isNormal(DefaultTheory dt)
Tests, whether the default is normal
normal ^= a:c/c
|
boolean |
isWellBound() |
boolean |
isWellBound(Set<net.sf.tweety.logics.commons.syntax.Variable> boundVariables) |
net.sf.tweety.logics.commons.syntax.RelationalFormula |
substitute(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v,
net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t) |
String |
toString() |
public DefaultRule()
public DefaultRule(net.sf.tweety.logics.fol.syntax.FolFormula pre,
net.sf.tweety.logics.fol.syntax.FolFormula jus,
net.sf.tweety.logics.fol.syntax.FolFormula conc)
throws IllegalArgumentException
pre - the prerequsitejus - the justificationconc - the conclusionnet.sf.tweety.commons.ParserException - when a parameter is missingIllegalArgumentExceptionpublic DefaultRule(net.sf.tweety.logics.fol.syntax.FolFormula pre,
Collection<net.sf.tweety.logics.fol.syntax.FolFormula> jus,
net.sf.tweety.logics.fol.syntax.FolFormula conc)
throws IllegalArgumentException
pre - the prerequsitejus - the justificationsconc - the conclusionnet.sf.tweety.commons.ParserException - when a parameter is missingIllegalArgumentExceptionpublic boolean isNormal(DefaultTheory dt)
public net.sf.tweety.logics.fol.syntax.FolFormula getPrerequisite()
public Collection<net.sf.tweety.logics.fol.syntax.FolFormula> getJustification()
public net.sf.tweety.logics.fol.syntax.FolFormula getConclusion()
public Set<? extends net.sf.tweety.logics.commons.syntax.Predicate> getPredicates()
public boolean isLiteral()
public Set<net.sf.tweety.logics.commons.syntax.Variable> getQuantifierVariables()
public Set<net.sf.tweety.logics.commons.syntax.Variable> getUnboundVariables()
public boolean containsQuantifier()
public boolean isWellBound()
public boolean isWellBound(Set<net.sf.tweety.logics.commons.syntax.Variable> boundVariables)
public boolean isClosed()
public boolean isClosed(Set<net.sf.tweety.logics.commons.syntax.Variable> boundVariables)
public Set<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> getTerms()
public <C extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> Set<C> getTerms(Class<C> cls)
public Set<net.sf.tweety.logics.fol.syntax.FOLAtom> getAtoms()
getAtoms in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulagetAtoms in class net.sf.tweety.logics.commons.syntax.RelationalFormulapublic Set<net.sf.tweety.logics.commons.syntax.Functor> getFunctors()
getFunctors in class net.sf.tweety.logics.commons.syntax.RelationalFormulapublic net.sf.tweety.logics.commons.syntax.RelationalFormula 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.ComplexLogicalFormulasubstitute in class net.sf.tweety.logics.commons.syntax.RelationalFormulaIllegalArgumentExceptionpublic net.sf.tweety.math.probability.Probability getUniformProbability()
getUniformProbability in interface net.sf.tweety.logics.commons.syntax.interfaces.ProbabilityAwaregetUniformProbability in class net.sf.tweety.logics.commons.syntax.RelationalFormulapublic net.sf.tweety.logics.commons.syntax.RelationalFormula complement()
complement in interface net.sf.tweety.logics.commons.syntax.interfaces.Invertablecomplement in class net.sf.tweety.logics.commons.syntax.RelationalFormulapublic net.sf.tweety.logics.fol.syntax.Disjunction combineWithOr(net.sf.tweety.logics.commons.syntax.interfaces.Disjunctable formula)
combineWithOr in interface net.sf.tweety.logics.commons.syntax.interfaces.DisjunctablecombineWithOr in class net.sf.tweety.logics.commons.syntax.RelationalFormulapublic net.sf.tweety.logics.fol.syntax.Conjunction combineWithAnd(net.sf.tweety.logics.commons.syntax.interfaces.Conjuctable formula)
combineWithAnd in interface net.sf.tweety.logics.commons.syntax.interfaces.ConjuctablecombineWithAnd in class net.sf.tweety.logics.commons.syntax.RelationalFormulapublic net.sf.tweety.logics.fol.syntax.FolSignature getSignature()
getSignature in interface net.sf.tweety.commons.FormulagetSignature in class net.sf.tweety.logics.commons.syntax.RelationalFormulapublic String toString()
toString in class net.sf.tweety.logics.commons.syntax.RelationalFormulapublic net.sf.tweety.logics.commons.syntax.RelationalFormula 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.RelationalFormulapublic int hashCode()
Copyright © 2018. All rights reserved.