|
||||||||||
| 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.UnaryJunctor
public abstract class UnaryJunctor
A class representing a unary junctor, having one argument.
| Constructor Summary | |
|---|---|
protected |
UnaryJunctor(Formula argument)
Initialize a new unary junctor, taking a formula as argument. |
| Method Summary | |
|---|---|
protected Set<Predicate> |
computePredicates()
Return all 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 unary junctor if it has the same class (i.e., not only it is a unary junctor, but it really has the same leaf-level class), and the arguments are equal. |
Formula |
getArgument()
Returns the argument. |
int |
getNbSubformulas()
Returns the number of subformulas. |
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, getFreeVariables, 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 |
|---|
getNormalForm |
| Methods inherited from interface de.uni_tuebingen.sfb.lichtenstein.formulas.Visitable |
|---|
accept |
| Constructor Detail |
|---|
protected UnaryJunctor(Formula argument)
argument - The argument.| Method Detail |
|---|
public Formula getArgument()
protected Set<Variable> computeVariables()
computeVariables in class FormulaImplpublic boolean containsVariable(Variable var)
var - The variable to check.public boolean isFree(Variable variable)
variable - The variable to check.protected Set<Predicate> computePredicates()
computePredicates in class FormulaImplpublic final 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 | |||||||||