|
|||||||||
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.BinaryJunctor de.uni_tuebingen.sfb.lichtenstein.formulas.Implication
public class Implication
A class representing the implication of formulas.
Constructor Summary | |
---|---|
Implication(Formula antecedent,
Formula consequent)
Initialize a new implication, given an antecedent and a consequent |
Method Summary | |
---|---|
void |
accept(FormulaVisitor visitor)
Accept a formula visitor. |
Formula |
getAntecedent()
Return the antecedent of this implication. |
Formula |
getConsequent()
Return the consequent of this implication. |
Disjunction |
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 Implication(Formula antecedent, Formula consequent)
antecedent
- The antecedent, i.e. the formula that implies.consequent
- The consequent, i.e. the implied formula.| new.getAntecedent() == first
| new.getConsequent() == second
Method Detail |
---|
public Formula getAntecedent()
|
result == getFirstArgument()
public Formula getConsequent()
|
result == getFirstArgument()
public Disjunction getNormalForm()
| result == getFirstArgument().getNormalForm().not().or(getSecondArgument().getNormalForm())
Note that this is similar to the disjunctive normal form, but not all the same!
public String getSymbol()
getSymbol
in class ComposedFormula
public void accept(FormulaVisitor visitor) throws de.uni_tuebingen.sfb.lichtenstein.exceptions.VisitorException
accept
in interface Visitable
accept
in class FormulaImpl
visitor
- 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 |