public class ForallQuantifiedFormula extends FolFormula
| Modifier and Type | Field and Description |
|---|---|
protected net.sf.tweety.logics.commons.syntax.QuantifiedFormulaSupport<FolFormula> |
support
This helper class implements common functionalities of quantified
formulas, meaning the implementation can delegate the method calls to the support
class.
|
| Constructor and Description |
|---|
ForallQuantifiedFormula(ForallQuantifiedFormula other) |
ForallQuantifiedFormula(net.sf.tweety.logics.commons.syntax.RelationalFormula folFormula,
Set<net.sf.tweety.logics.commons.syntax.Variable> variables)
Creates a new quantified folFormula with the given folFormula and variables.
|
ForallQuantifiedFormula(net.sf.tweety.logics.commons.syntax.RelationalFormula folFormula,
net.sf.tweety.logics.commons.syntax.Variable variable)
Creates a new quantified folFormula with the given folFormula and variable.
|
| Modifier and Type | Method and Description |
|---|---|
ForallQuantifiedFormula |
clone() |
FolFormula |
collapseAssociativeFormulas()
This method collapses all associative operations appearing
in this term, e.g.
|
boolean |
containsQuantifier() |
boolean |
equals(Object obj) |
Set<FOLAtom> |
getAtoms() |
FolFormula |
getFormula() |
Set<net.sf.tweety.logics.commons.syntax.Functor> |
getFunctors() |
Set<? extends net.sf.tweety.logics.commons.syntax.Predicate> |
getPredicates() |
Set<FolFormula> |
getQuantifiedFormulas() |
Set<net.sf.tweety.logics.commons.syntax.Variable> |
getQuantifierVariables() |
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() |
boolean |
isClosed() |
boolean |
isClosed(Set<net.sf.tweety.logics.commons.syntax.Variable> boundVariables) |
boolean |
isDnf()
Checks whether this formula is in disjunctive normal form.
|
boolean |
isLiteral() |
boolean |
isWellBound() |
boolean |
isWellBound(Set<net.sf.tweety.logics.commons.syntax.Variable> boundVariables) |
void |
setFormula(FolFormula formula) |
void |
setQuantifierVariables(Set<net.sf.tweety.logics.commons.syntax.Variable> variables) |
ForallQuantifiedFormula |
substitute(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v,
net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t) |
FolFormula |
toNnf()
Makes the negation normal form of this formula.
|
String |
toString() |
combineWithAnd, combineWithOr, complement, getSignature, getUniformProbability, toDnfallGroundInstances, allSubstitutions, containsTermsOfType, exchange, getPredicateCls, getSatisfactionRatio, isGround, isWellFormed, substituteprotected net.sf.tweety.logics.commons.syntax.QuantifiedFormulaSupport<FolFormula> support
public ForallQuantifiedFormula(net.sf.tweety.logics.commons.syntax.RelationalFormula folFormula,
Set<net.sf.tweety.logics.commons.syntax.Variable> variables)
folFormula - the folFormula this quantified folFormula ranges over.variables - the variables of this quantified folFormula.public ForallQuantifiedFormula(net.sf.tweety.logics.commons.syntax.RelationalFormula folFormula,
net.sf.tweety.logics.commons.syntax.Variable variable)
folFormula - the folFormula this quantified folFormula ranges over.variable - the variable of this quantified folFormula.public ForallQuantifiedFormula(ForallQuantifiedFormula other)
public Set<FolFormula> getQuantifiedFormulas()
public boolean equals(Object obj)
public FolFormula toNnf()
FolFormulatoNnf in class FolFormulapublic FolFormula collapseAssociativeFormulas()
FolFormulacollapseAssociativeFormulas in class FolFormulapublic ForallQuantifiedFormula 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 FolFormulaIllegalArgumentExceptionpublic String toString()
toString in class net.sf.tweety.logics.commons.syntax.RelationalFormulapublic ForallQuantifiedFormula clone()
clone in interface net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormulaclone in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulaclone in class FolFormulapublic FolFormula getFormula()
getFormula in interface net.sf.tweety.logics.commons.syntax.interfaces.QuantifiedFormulagetFormula in class net.sf.tweety.logics.commons.syntax.RelationalFormulapublic Set<net.sf.tweety.logics.commons.syntax.Variable> getQuantifierVariables()
getQuantifierVariables in interface net.sf.tweety.logics.commons.syntax.interfaces.QuantifiedFormulagetQuantifierVariables in class FolFormulapublic void setFormula(FolFormula formula)
public void setQuantifierVariables(Set<net.sf.tweety.logics.commons.syntax.Variable> variables)
public Set<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 boolean isDnf()
FolFormulaisDnf in class FolFormulapublic Set<? extends net.sf.tweety.logics.commons.syntax.Predicate> getPredicates()
public boolean isLiteral()
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()
Copyright © 2018. All rights reserved.