Class QuantifiedFormulaSupport<T extends RelationalFormula>
- java.lang.Object
-
- net.sf.tweety.logics.commons.syntax.QuantifiedFormulaSupport<T>
-
- Type Parameters:
T- The type of the formulas which are quantified.
public class QuantifiedFormulaSupport<T extends RelationalFormula> extends Object
This class provides common functionalities for quantified formulas, i.e. forall and exists quantified formulas.- Author:
- Matthias Thimm, Anna Gessler
-
-
Constructor Summary
Constructors Constructor Description QuantifiedFormulaSupport(T formula, Set<Variable> variables)
-
Method Summary
Modifier and Type Method Description booleancontainsQuantifier()Set<? extends Atom>getAtoms()TgetFormula()Returns the folFormula this quantified formula ranges overSet<Functor>getFunctors()Set<? extends Predicate>getPredicates()Set<Variable>getQuantifierVariables()Returns the variables of this quantified formula.Set<Term<?>>getTerms()<C extends Term<?>>
Set<C>getTerms(Class<C> cls)Set<Variable>getUnboundVariables()inthashCode()booleanisClosed()booleanisClosed(Set<Variable> boundVariables)booleanisDnf()booleanisLiteral()booleanisWellBound()booleanisWellBound(Set<Variable> boundVariables)voidsetFormula(T formula)voidsetQuantifierVariables(Set<Variable> variables)
-
-
-
Method Detail
-
getFormula
public T getFormula()
Returns the folFormula this quantified formula ranges over- Returns:
- the folFormula this quantified formula ranges over
-
getQuantifierVariables
public Set<Variable> getQuantifierVariables()
Returns the variables of this quantified formula.- Returns:
- the variables of this quantified formula.
-
setFormula
public void setFormula(T formula)
-
isClosed
public boolean isClosed()
-
containsQuantifier
public boolean containsQuantifier()
-
isWellBound
public boolean isWellBound()
-
isDnf
public boolean isDnf()
-
isLiteral
public boolean isLiteral()
-
-