|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.uni_tuebingen.sfb.lichtenstein.formulas.FormulaImpl
de.uni_tuebingen.sfb.lichtenstein.formulas.ComposedFormula
de.uni_tuebingen.sfb.lichtenstein.formulas.SecondOrderQuantor
public abstract class SecondOrderQuantor
A class for representing quantors on second order variables, implementing common methods for existential and universal quantors.
| Constructor Summary | |
|---|---|
protected |
SecondOrderQuantor(SecondOrderVariable 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. |
SecondOrderVariable |
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 SecondOrderQuantor(SecondOrderVariable var,
Formula arg)
var - The variable that is bound by this quantor.arg - The formula which this quantor acts upon.| Method Detail |
|---|
public SecondOrderVariable getBoundVariable()
getBoundVariable in interface Quantificationpublic Formula getArgument()
getArgument in interface Quantificationprotected Set<Variable> computeVariables()
computeVariables in class FormulaImplpublic Set<Variable> getFreeVariables()
getFreeVariables in interface FormulagetFreeVariables in class FormulaImplLinkedHashSetpublic boolean containsVariable(Variable var)
containsVariable in interface Formulavar - The variable to check.public boolean isFree(Variable variable)
isFree in interface Formulavariable - The variable to check.protected Set<Predicate> computePredicates()
computePredicates in class FormulaImplpublic int getNbSubformulas()
getNbSubformulas in class ComposedFormula
public Formula getSubformulaAt(int index)
throws IndexOutOfBoundsException
getSubformulaAt in class ComposedFormulaindex - 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 FormulaImplpublic int hashCode()
hashCode in class FormulaImplpublic String toString()
toString in class FormulaImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||