|
|||||||||
| 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.BinaryJunctor
de.uni_tuebingen.sfb.lichtenstein.formulas.Equivalence
public class Equivalence
A class representing the equivalence in logical formulas. TODO: remove this class once the template system works. Then store it as a permanent template?
| Constructor Summary | |
|---|---|
Equivalence(Formula first,
Formula second)
Initialize a new equivalence between two formulas. |
|
| Method Summary | |
|---|---|
void |
accept(FormulaVisitor visitor)
Accept a formula visitor. |
Conjunction |
getEquivalentFormula()
Returns a formula which is equivalent to this equivalence: (first -> second) & (second -> first). |
Conjunction |
getNormalForm()
Get a normal form with only conjunction, disjunction, negation and existential quantification. |
String |
getSymbol()
Return the textual representation of this binary junctor. |
| Methods inherited from class de.uni_tuebingen.sfb.lichtenstein.formulas.BinaryJunctor |
|---|
containsVariable, equals, getFirstArgument, getFirstIndexOf, getNbBoundVariables, getNbFreeVariables, getNbSubformulas, getNbVariables, getPredicates, getSecondArgument, getSubformulaAt, getVariableAt, hashCode, isFreeVariable, toString |
| Methods inherited from class de.uni_tuebingen.sfb.lichtenstein.formulas.ComposedFormula |
|---|
getAllSubformulas |
| Methods inherited from class de.uni_tuebingen.sfb.lichtenstein.formulas.FormulaImpl |
|---|
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 |
| Constructor Detail |
|---|
public Equivalence(Formula first,
Formula second)
first - The first formula.second - The second formula.| new.getFirstArgument() == first| new.getSecondArgument() == second| Method Detail |
|---|
public Conjunction getEquivalentFormula()
(first -> second) & (second -> first).
| result.getFirstArgument() in
Implication &&
| result.getSecondArgument() in Implication && |
result.getFirstArgument().getFirstArgument() == getFirstArgument() &&
|
result.getFirstArgument().getSecondArgument() == getSecondArgument() &&
|
result.getSecondArgument().getFirstArgument() == getFirstArgument() &&
|
result.getSecondArgument().getFirstArgument() == getSecondArgument()public Conjunction getNormalForm()
| result == getEquivalentFormula().getNormalForm()public String getSymbol()
getSymbol in class ComposedFormula
public void accept(FormulaVisitor visitor)
throws de.uni_tuebingen.sfb.lichtenstein.exceptions.VisitorException
accept in interface Visitableaccept in class FormulaImplvisitor - The visitor that is to be accepted to do its work.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||