public class RelationalConditional
extends net.sf.tweety.logics.commons.syntax.RelationalFormula
implements net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.fol.syntax.FolFormula,net.sf.tweety.logics.fol.syntax.FolFormula>
| Constructor and Description |
|---|
RelationalConditional(net.sf.tweety.logics.fol.syntax.FolFormula conclusion)
Creates a new conditional with the given conclusion and
a tautological premise.
|
RelationalConditional(net.sf.tweety.logics.fol.syntax.FolFormula premise,
net.sf.tweety.logics.fol.syntax.FolFormula conclusion)
Creates a new conditional with the given premise and conclusion.
|
| 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) |
RelationalConditional |
clone() |
net.sf.tweety.logics.fol.syntax.Conjunction |
combineWithAnd(net.sf.tweety.logics.commons.syntax.interfaces.Conjuctable f) |
net.sf.tweety.logics.fol.syntax.Disjunction |
combineWithOr(net.sf.tweety.logics.commons.syntax.interfaces.Disjunctable f) |
net.sf.tweety.logics.commons.syntax.RelationalFormula |
complement() |
boolean |
containsQuantifier() |
boolean |
equals(Object obj) |
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() |
Set<net.sf.tweety.logics.commons.syntax.Predicate> |
getPredicates() |
Collection<? extends net.sf.tweety.logics.fol.syntax.FolFormula> |
getPremise() |
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 |
isConstraint() |
boolean |
isFact()
Checks whether this conditional is a fact, i.e.
|
boolean |
isLiteral() |
boolean |
isWellBound() |
boolean |
isWellBound(Set<net.sf.tweety.logics.commons.syntax.Variable> boundVariables) |
void |
setConclusion(net.sf.tweety.logics.fol.syntax.FolFormula conclusion) |
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 RelationalConditional(net.sf.tweety.logics.fol.syntax.FolFormula premise,
net.sf.tweety.logics.fol.syntax.FolFormula conclusion)
premise - a fol formula.conclusion - a fol formula.public RelationalConditional(net.sf.tweety.logics.fol.syntax.FolFormula conclusion)
conclusion - a fol formula.public boolean containsQuantifier()
containsQuantifier in interface net.sf.tweety.logics.commons.syntax.interfaces.QuantifiedFormulapublic 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.Predicate> getPredicates()
getPredicates in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulapublic Set<net.sf.tweety.logics.commons.syntax.Variable> getUnboundVariables()
getUnboundVariables in interface net.sf.tweety.logics.commons.syntax.interfaces.QuantifiedFormulapublic 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 isClosed()
isClosed in interface net.sf.tweety.logics.commons.syntax.interfaces.QuantifiedFormulapublic boolean isClosed(Set<net.sf.tweety.logics.commons.syntax.Variable> boundVariables)
isClosed in interface net.sf.tweety.logics.commons.syntax.interfaces.QuantifiedFormulapublic boolean isWellBound()
isWellBound in interface net.sf.tweety.logics.commons.syntax.interfaces.QuantifiedFormulapublic boolean isWellBound(Set<net.sf.tweety.logics.commons.syntax.Variable> boundVariables)
isWellBound in interface net.sf.tweety.logics.commons.syntax.interfaces.QuantifiedFormulapublic 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 String toString()
toString 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.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 Collection<? extends 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.Conjunction combineWithAnd(net.sf.tweety.logics.commons.syntax.interfaces.Conjuctable f)
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.Disjunction combineWithOr(net.sf.tweety.logics.commons.syntax.interfaces.Disjunctable f)
combineWithOr in interface net.sf.tweety.logics.commons.syntax.interfaces.DisjunctablecombineWithOr 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 int hashCode()
public boolean equals(Object obj)
public 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 boolean isLiteral()
isLiteral 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 <C extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> Set<C> getTerms(Class<C> cls)
getTerms in interface net.sf.tweety.logics.commons.syntax.interfaces.LogicStructurepublic Set<net.sf.tweety.logics.commons.syntax.Variable> getQuantifierVariables()
getQuantifierVariables in interface net.sf.tweety.logics.commons.syntax.interfaces.QuantifiedFormulapublic RelationalConditional 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 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 void setConclusion(net.sf.tweety.logics.fol.syntax.FolFormula conclusion)
setConclusion 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 addPremise(net.sf.tweety.logics.fol.syntax.FolFormula premise)
addPremise 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 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 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>getSignature in class net.sf.tweety.logics.commons.syntax.RelationalFormulaCopyright © 2018. All rights reserved.