|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.uni_tuebingen.sfb.lichtenstein.formulas.FormulaImpl de.uni_tuebingen.sfb.lichtenstein.formulas.ComposedFormula de.uni_tuebingen.sfb.lichtenstein.formulas.FirstOrderQuantor
public abstract class FirstOrderQuantor
A class for representing quantors on first order variables, implementing common methods for existential and universal quantors.
Constructor Summary | |
---|---|
protected |
FirstOrderQuantor(FirstOrderVariable var,
Formula arg)
Initialize a new quantor, given a variable to bind and a formula to act upon. |
Method Summary | |
---|---|
protected Set<Predicate> |
computePredicates()
Compute the set of predicates in this formula. |
protected Set<Variable> |
computeVariables()
Compute the set of variables in this formula. |
boolean |
containsVariable(Variable var)
Returns whether this formula contains the given variable. |
boolean |
equals(Object other)
An object is equal to a quantor if it has the same class (i.e., not only it is a quantor, but it really has the same leaf-level class), the arguments are equal and they bind the same variable. |
Formula |
getArgument()
Returns the formula this quantor acts on. |
FirstOrderVariable |
getBoundVariable()
Returns the variable that is bound by this quantor. |
Set<Variable> |
getFreeVariables()
Return the free variables in this formula. |
int |
getNbSubformulas()
Returns the number of subformulas of this formula. |
Formula |
getSubformulaAt(int index)
Returns the indexth subformula of this formula. |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
isFree(Variable variable)
Check whether the given variable is free in this formula. |
String |
toString()
Returns a string representation of the object. |
Methods inherited from class de.uni_tuebingen.sfb.lichtenstein.formulas.ComposedFormula |
---|
getAllSubformulas, getSymbol |
Methods inherited from class de.uni_tuebingen.sfb.lichtenstein.formulas.FormulaImpl |
---|
and, exists, exists, forAll, forAll, getPredicates, getVariables, iff, implies, isClosed, not, or |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.uni_tuebingen.sfb.lichtenstein.formulas.Formula |
---|
and, exists, exists, forAll, forAll, getNormalForm, getPredicates, getVariables, iff, implies, isClosed, not, or |
Methods inherited from interface de.uni_tuebingen.sfb.lichtenstein.formulas.Visitable |
---|
accept |
Constructor Detail |
---|
protected FirstOrderQuantor(FirstOrderVariable var, Formula arg)
var
- The variable that is bound by this quantor.arg
- The formula which this quantor acts upon.Method Detail |
---|
public FirstOrderVariable getBoundVariable()
getBoundVariable
in interface Quantification
public Formula getArgument()
getArgument
in interface Quantification
protected Set<Variable> computeVariables()
computeVariables
in class FormulaImpl
public Set<Variable> getFreeVariables()
getFreeVariables
in interface Formula
getFreeVariables
in class FormulaImpl
LinkedHashSet
public boolean containsVariable(Variable var)
containsVariable
in interface Formula
var
- The variable to check.public boolean isFree(Variable variable)
isFree
in interface Formula
variable
- The variable to check.protected Set<Predicate> computePredicates()
computePredicates
in class FormulaImpl
public int getNbSubformulas()
getNbSubformulas
in class ComposedFormula
public Formula getSubformulaAt(int index) throws IndexOutOfBoundsException
getSubformulaAt
in class ComposedFormula
index
- The index of the wanted subformula. Indices start from 0.
IndexOutOfBoundsException
- [CAN]
The index is bigger than or equal to the number of subformulas of this formula, or less than zero | index <
0 || index >= getNbSubformulas()public boolean equals(Object other)
equals
in class FormulaImpl
public int hashCode()
hashCode
in class FormulaImpl
public String toString()
toString
in class FormulaImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |