public class ForallQuantifiedFormula extends QuantifiedFormula
| Constructor and Description |
|---|
ForallQuantifiedFormula(FolFormula folFormula,
net.sf.tweety.logics.commons.syntax.Variable variable)
Creates a new for-all-quantified formula with the given formula and variable.
|
ForallQuantifiedFormula(ForallQuantifiedFormula other) |
ForallQuantifiedFormula(RelationalFormula folFormula,
Set<net.sf.tweety.logics.commons.syntax.Variable> variables)
Creates a new for-all-quantified formula with the given formula and variables.
|
| Modifier and Type | Method and Description |
|---|---|
ForallQuantifiedFormula |
clone() |
FolFormula |
collapseAssociativeFormulas()
This method collapses all associative operations appearing
in this term, e.g.
|
ForallQuantifiedFormula |
substitute(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v,
net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t)
Substitutes all occurrences of term "v" in this formula
by term "t" and returns the new formula.
|
FolFormula |
toNnf()
Makes the negation normal form of this formula.
|
String |
toString() |
containsQuantifier, equals, getAtoms, getFormula, getFunctors, getPredicates, getQuantifiedFormulas, getQuantifierVariables, getTerms, getTerms, getUnboundVariables, hashCode, isClosed, isClosed, isDnf, isLiteral, isWellBound, isWellBoundcombineWithAnd, combineWithOr, complement, getUniformProbability, toDnfallGroundInstances, allSubstitutions, containsTermsOfType, exchange, getPredicateCls, getSatisfactionRatio, getSignature, isGround, isWellFormed, substitutepublic ForallQuantifiedFormula(RelationalFormula folFormula, Set<net.sf.tweety.logics.commons.syntax.Variable> variables)
folFormula - the formula this for-all-quantified formula ranges over.variables - the variables of this for-all-quantified formula.public ForallQuantifiedFormula(FolFormula folFormula, net.sf.tweety.logics.commons.syntax.Variable variable)
folFormula - the formula this for-all-quantified formula ranges over.variable - the variable of this for-all-quantified formula.public ForallQuantifiedFormula(ForallQuantifiedFormula other)
public ForallQuantifiedFormula substitute(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v, net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t) throws IllegalArgumentException
RelationalFormulasubstitute in interface net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormulasubstitute in class FolFormulav - the term to be substituted.t - the term to substitute.IllegalArgumentException - if "v" and "t" are of different sorts
(NOTE: this exception is only thrown when "v" actually appears in this
formula).public FolFormula collapseAssociativeFormulas()
FolFormulacollapseAssociativeFormulas in class FolFormulapublic FolFormula toNnf()
FolFormulatoNnf in class FolFormulapublic String toString()
toString in class 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 FolFormulaCopyright © 2016. All rights reserved.