Java Doc for PreTranslationVisitor.java in  » Testing » KeY » de » uka » ilkd » key » proof » decproc » translation » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » KeY » de.uka.ilkd.key.proof.decproc.translation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


de.uka.ilkd.key.proof.decproc.translation.TranslationVisitor
   de.uka.ilkd.key.proof.decproc.translation.PreTranslationVisitor

PreTranslationVisitor
public class PreTranslationVisitor extends TranslationVisitor (Code)
This class implements a visitor used to determine the translatability of KeY Terms into SMT-LIB Formulae.

This implementation is intended for KeY Terms of Sort Formula. To determine if a given Term can be translated into SMT-LIB syntax, its execPretOrder method should be called with an instance of this class as argument. The determined result can be fetched subsequently by the getTranslationResult method, which in case of this class delivers a Boolean indicating the translatability

This class also provides a factory method that can be used to get an instance of this class. It implements the singleton pattern and allows reusing the same visitor object for multiple successive translations, in conjunction with the reset method
author:
   akuwertz
version:
   1.4, 12/10/2006 (Introduced new superclass 'TranslationVisitor')




Constructor Summary
public  PreTranslationVisitor(boolean useQuantifier)
     Sole constructor.

Method Summary
public static synchronized  TranslationVisitorgetInstance()
     A factory method returning a PreTranslationVisitor instance.

This method uses the Singleton pattern.

protected  ObjectgetResult()
     Returns true if the Term visited during the last pretranslation process can be translated into SMT-Lib syntax.
protected  booleanisReusable()
    
public  booleannoFreeVariableOccurrences(Term t)
    
public  voidreset()
    
public static  voidsetTranslateQuantifers(boolean useQuantifiers)
    
public  voidvisit(Term t)
     The visit method of this PreTranslationVisitor.


Constructor Detail
PreTranslationVisitor
public PreTranslationVisitor(boolean useQuantifier)(Code)
Sole constructor.

Creates a new PreTranslationVisitor and initialises it with the rules for all operators that can not be translated
Parameters:
  useQuantifier - boolean that determines whether quantifiers will be translated or not





Method Detail
getInstance
public static synchronized TranslationVisitor getInstance()(Code)
A factory method returning a PreTranslationVisitor instance.

This method uses the Singleton pattern. It is intended to enable the reuse of an already created visitor object after a complete translation. Use this method to get an instance of PreTranslationVisitor if there is no need for concurrency.

To specify whether the returned instance should translate quantifiers or not, the setTranslateQuantifiers method must be called prior to calling this method a PreTranslationVisitor instance.
throws:
  IllegalStateException - if the cached PreTranslationVisitor instance is notconsidered reusable at this point of time
See Also:   TranslationVisitor.getInstance
See Also:   PreTranslationVisitor.setTranslateQuantifers(boolean)




getResult
protected Object getResult()(Code)
Returns true if the Term visited during the last pretranslation process can be translated into SMT-Lib syntax.

A Term is considered translatable if it does not represent a Quantifier, a Metavariable, a Modality or an IUpdateOperator and does not contain any subterm representing one of the above mentioned Operators.

This method should not be called directly but only accessed via the getTranslationResult method a Boolean indicating if the currently visited Term is consideredtranslatable into SMT-Lib syntax; otherwise false




isReusable
protected boolean isReusable()(Code)
Returns true if this PreTranslationVisitor is ready for the next translation process

This holds if that translation process has finished and the getTranslationResult method was called, or if the reset method has been called in an arbitrary state true if this TranslationVisitor is ready to be reused; otherwise false




noFreeVariableOccurrences
public boolean noFreeVariableOccurrences(Term t)(Code)
Checks whether a given Term contains any free quantifiable variables
Parameters:
  t - the Term to be checked for free variable occurrences true if no free variables occur in t



reset
public void reset()(Code)



setTranslateQuantifers
public static void setTranslateQuantifers(boolean useQuantifiers)(Code)
Determines whether a PreTranslationVisitor instance retrieved by the getInstance method translated quantifiers or not
Parameters:
  useQuantifiers - specifies if quantifiers should be translated or not
See Also:   PreTranslationVisitor.getInstance()



visit
public void visit(Term t)(Code)
The visit method of this PreTranslationVisitor. Takes a Term and tries to determine its translatability by its Operator
See Also:   de.uka.ilkd.key.logic.Visitor.visit(de.uka.ilkd.key.logic.Term)



Fields inherited from de.uka.ilkd.key.proof.decproc.translation.TranslationVisitor
final protected static String NoReuseStateException(Code)(Java Doc)
final protected static Logger logger(Code)(Java Doc)
protected String loggingSubclass(Code)(Java Doc)
final protected static String translationNotFinishedException(Code)(Java Doc)
protected IOperatorTranslation[] translationRules(Code)(Java Doc)

Methods inherited from de.uka.ilkd.key.proof.decproc.translation.TranslationVisitor
public static synchronized TranslationVisitor getInstance()(Code)(Java Doc)
abstract protected Object getResult()(Code)(Java Doc)
final public Object getTranslationResult()(Code)(Java Doc)
protected boolean isReusable()(Code)(Java Doc)
final protected String logThis(String toLog)(Code)(Java Doc)
public void reset()(Code)(Java Doc)
final protected void setTranslationRules(ListOfIOperatorTranslation rules)(Code)(Java Doc)
final public void subtreeEntered(Term subtreeRoot)(Code)(Java Doc)
final public void subtreeLeft(Term subtreeRoot)(Code)(Java Doc)
abstract public void visit(Term t)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.