|
|||||||||
| 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.
| Method Summary | |
|---|---|
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 |
getFirstIndexOf(Variable var)
Get the first index at which the given variable occurs. |
int |
getNbBoundVariables()
Returns the number of bound variables in this formula. |
int |
getNbFreeVariables()
Returns the number of free variables in this formula. |
int |
getNbSubformulas()
Returns the number of subformulas. |
int |
getNbVariables()
Returns the number of variables in this formula. |
Set<Predicate> |
getPredicates()
Return all predicates in this formula. |
Formula |
getSubformulaAt(int index)
Returns the indexth subformula of this formula. |
Variable |
getVariableAt(int index)
Get the indexth variable (free or bound). |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
isFreeVariable(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 |
|---|
accept, and, exists, exists, forAll, forAll, getFreeVariables, getVariables, iff, implies, isClosed, not, or |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface de.uni_tuebingen.sfb.lichtenstein.formulas.Formula |
|---|
getNormalForm |
| Method Detail |
|---|
public Formula getArgument()
| result == getSubformulaAt(0)public int getNbVariables()
| result == getArgument().getNbVariables()public int getNbFreeVariables()
| result == getArgument().getNbFreeVariables()public int getNbBoundVariables()
| result == getArgument().getNbBoundVariables()public int getFirstIndexOf(Variable var)
var - The variable of which the index is wanted.
public Variable getVariableAt(int index)
throws IndexOutOfBoundsException
index - The index of the wanted variable| result == getArgument().getVariableAt(index)public boolean containsVariable(Variable var)
var - The variable to check.| result == getArgument().containsVariable(var)public boolean isFreeVariable(Variable variable)
variable - The variable to check.| result == getArgument().isFreeVariable(variable)public Set<Predicate> getPredicates()
public final int getNbSubformulas()
getNbSubformulas in class ComposedFormula| result == 1
public Formula getSubformulaAt(int index)
throws IndexOutOfBoundsException
getSubformulaAt in class ComposedFormulaindex - The index of the wanted subformula. Indices start from 0.public boolean equals(Object other)
equals in class FormulaImpl| let otherJunctor = (UnaryJunctor) other in | if ( !
getArgument().equals(otherJunctor.getArgument()) )
| then result == falsepublic int hashCode()
hashCode in class FormulaImpl| result ==
getSymbol().hashCode() + getArgument().hashCode()public String toString()
toString in class FormulaImpl| result == getSymbol() + getArgument().toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||