|
||||||||||
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.FormulaVisitor de.uni_tuebingen.sfb.lichtenstein.binarytrees.MonaFormulaBuilder
public class MonaFormulaBuilder
A class which visits a Formula and converts it to a Mona formula. It uses a mapping of predicates to variable names which do not conflict with Mona syntax.
Constructor Summary | |
---|---|
MonaFormulaBuilder(Map<String,String> predicates)
Initialize a builder for MONA formulas. |
Method Summary | |
---|---|
String |
parse()
Parse the formula. |
String |
randomVarName()
Create a random variable name. |
protected void |
visit(Conjunction form)
Visit a conjunction. |
protected void |
visit(Disjunction form)
Visit a disjunction. |
protected void |
visit(Dominance form)
Visit a dominance atomic formula. |
protected void |
visit(Equivalence form)
Visit an equivalence atomic formula. |
protected void |
visit(FirstOrderEquality form)
Visit a first order equality atomic formula. |
protected void |
visit(FirstOrderExistentialQuantification form)
Visit an existential quantification. |
protected void |
visit(FirstOrderUniversalQuantification form)
Visit a universal quantification. |
void |
visit(Formula form)
Visit a formula. |
protected void |
visit(ImmediateDominance form)
Visit an immediate dominance atomic formula. |
protected void |
visit(Implication form)
Visit an implication. |
protected void |
visit(Inclusion form)
Visit an inclusion. |
protected void |
visit(Negation form)
Visit a negation. |
protected void |
visit(Precedence form)
Visit a precedence atomic formula. |
protected void |
visit(ProperDominance form)
Visit a proper dominance atomic formula. |
protected void |
visit(SecondOrderEquality form)
Visit a second order equality atomic formula. |
protected void |
visit(SecondOrderExistentialQuantification form)
Visit an existential quantification. |
protected void |
visit(SecondOrderUniversalQuantification form)
Visit a universal quantification. |
protected void |
visit(Subset form)
Visit a subset atomic formula. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MonaFormulaBuilder(Map<String,String> predicates)
predicates
- Method Detail |
---|
public String parse()
parse
in interface MonaFormulaParser
public void visit(Formula form) throws VisitorException
visit
in class FormulaVisitor
form
- The formula to be visited.
VisitorException
- [CAN]
A visitor can throw any exception. Visitors should thoroughly document this behaviour.protected void visit(Negation form) throws VisitorException
visit
in class FormulaVisitor
form
- The formula to be visited.
VisitorException
- [CAN]
A visitor can throw any exception. Visitors should thoroughly document this behaviour.protected void visit(Conjunction form) throws VisitorException
visit
in class FormulaVisitor
form
- The formula to be visited.
VisitorException
- [CAN]
A visitor can throw any exception. Visitors should thoroughly document this behaviour.protected void visit(Disjunction form) throws VisitorException
visit
in class FormulaVisitor
form
- The formula to be visited.
VisitorException
- [CAN]
A visitor can throw any exception. Visitors should thoroughly document this behaviour.protected void visit(Implication form) throws VisitorException
visit
in class FormulaVisitor
form
- The formula to be visited.
VisitorException
- [CAN]
A visitor can throw any exception. Visitors should thoroughly document this behaviour.protected void visit(Equivalence form) throws VisitorException
visit
in class FormulaVisitor
form
- The formula to be visited.
VisitorException
- [CAN]
A visitor can throw any exception. Visitors should thoroughly document this behaviour.protected void visit(FirstOrderExistentialQuantification form) throws VisitorException
visit
in class FormulaVisitor
form
- The formula to be visited.
VisitorException
- [CAN]
A visitor can throw any exception. Visitors should thoroughly document this behaviour.protected void visit(FirstOrderUniversalQuantification form) throws VisitorException
visit
in class FormulaVisitor
form
- The formula to be visited.
VisitorException
- [CAN]
A visitor can throw any exception. Visitors should thoroughly document this behaviour.protected void visit(SecondOrderExistentialQuantification form) throws VisitorException
visit
in class FormulaVisitor
form
- The formula to be visited.
VisitorException
- [CAN]
A visitor can throw any exception. Visitors should thoroughly document this behaviour.protected void visit(SecondOrderUniversalQuantification form) throws VisitorException
visit
in class FormulaVisitor
form
- The formula to be visited.
VisitorException
- [CAN]
A visitor can throw any exception. Visitors should thoroughly document this behaviour.protected void visit(FirstOrderEquality form) throws VisitorException
visit
in class FormulaVisitor
form
- The formula to be visited.
VisitorException
- [CAN]
A visitor can throw any exception. Visitors should thoroughly document this behaviour.protected void visit(SecondOrderEquality form) throws VisitorException
visit
in class FormulaVisitor
form
- The formula to be visited.
VisitorException
- [CAN]
A visitor can throw any exception. Visitors should thoroughly document this behaviour.protected void visit(Inclusion form) throws VisitorException
visit
in class FormulaVisitor
form
- The formula to be visited.
VisitorException
- [CAN]
A visitor can throw any exception. Visitors should thoroughly document this behaviour.protected void visit(Subset form) throws VisitorException
visit
in class FormulaVisitor
form
- The formula to be visited.
VisitorException
- [CAN]
A visitor can throw any exception. Visitors should thoroughly document this behaviour.protected void visit(Dominance form) throws VisitorException
visit
in class FormulaVisitor
form
- The formula to be visited.
VisitorException
- [CAN]
A visitor can throw any exception. Visitors should thoroughly document this behaviour.protected void visit(ImmediateDominance form) throws VisitorException
visit
in class FormulaVisitor
form
- The formula to be visited.
VisitorException
- [CAN]
A visitor can throw any exception. Visitors should thoroughly document this behaviour.protected void visit(ProperDominance form) throws VisitorException
visit
in class FormulaVisitor
form
- The formula to be visited.
VisitorException
- [CAN]
A visitor can throw any exception. Visitors should thoroughly document this behaviour.protected void visit(Precedence form) throws VisitorException
visit
in class FormulaVisitor
form
- The formula to be visited.
VisitorException
- [CAN]
A visitor can throw any exception. Visitors should thoroughly document this behaviour.public String randomVarName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |