Java Doc for DecProcTranslation.java in  » Testing » KeY » de » uka » ilkd » key » proof » decproc » 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 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.uka.ilkd.key.proof.decproc.DecProcTranslation

All known Subclasses:   de.uka.ilkd.key.proof.decproc.ICSTranslation,  de.uka.ilkd.key.proof.decproc.SimplifyTranslation,
DecProcTranslation
abstract public class DecProcTranslation (Code)
Represents a try to remove code duplication.


Field Summary
final protected static  intANTECEDENT
    
final protected static  intSUCCEDENT
    
final protected static  intYESNOT
    
final protected  ConstraintSetconstraintSet
    
final protected  SetOfMetavariablelocalMetavariables
    
final protected  ListmoduloConstraints
    
protected  intmoduloCounter
    
final protected  HashMapmoduloReplacements
    
static  Loggernogger
    
final protected  StringBuffernotes
    
final protected  StringBufferpredicate
     StringBuffer contains all declared predicate symbols.
final protected  SetpredicateSet
    
final protected  Servicesservices
    
protected  Stringtext
     The translation result is stored in this variable.
final protected  HashSetusedGlobalMv
    
final protected  HashSetusedLocalMv
     To handle local metavariabls we have to quantify them existentially.
final protected  HashMapvariableMap
     Some terms should need a unique HashCode (CVC doesn't handle quantors, ProgramVariables from different blocks could have the same name), functions and user named skolemfunctions can get the same name.

Constructor Summary
public  DecProcTranslation(Sequent sequent, ConstraintSet cs, SetOfMetavariable localmv, Services services)
     Just a constructor which starts the conversion to Simplify syntax.

Method Summary
protected  voidcollectQuantifiedVars(Vector quantifiedVars, Term term)
    
public  StringgetText()
    
public  intgetUniqueHashCode(Object qv)
     Returns a unique HashCode for the object qv. Unique means unique for the goal given to the calling class. This function does not depend on .hashcode() to deliver unique hash codes like the memory address of the object.
public  intgetUniqueHashCodeForUninterpretedTerm(Term term)
     Returns a unique HashCode for the term qv. Unique means unique for the goal given to the calling class. This function does not depend on .hashcode() to deliver unique hash codes like the memory address of the object.
abstract protected  StringBuffertranslate(Term term, int skolemization, Vector quantifiedVars)
     Translates the given term into the decision procedure's input syntax and and returns the resulting StringBuffer sb.
Parameters:
  term - the Term which should be written in Simplify syntax
Parameters:
  skolemization - Indicates whether the formula is in the ANTECEDENT, SUCCEDENTor with YESNOT if a "not" operation occurres above the termwhich will prevent skolemization ("not"s are not counted).
abstract protected  StringBuffertranslate(Sequent sequent)
    
abstract protected  StringBuffertranslate(Semisequent ss, int skolemization)
     Translates the given Semisequent into the decision procedure's input syntax and returns the resulting StringBuffer sb.
Parameters:
  ss - the SemiSequent which should be written in the decisionprocedure's syntax
Parameters:
  skolemization - Indicates whether the formula is in the ANTECEDENT, SUCCEDENTor with YESNOT if a "not" operation occurres above the termwhich will prevent skolemization for ICS ("not"s are notcounted).

Field Detail
ANTECEDENT
final protected static int ANTECEDENT(Code)



SUCCEDENT
final protected static int SUCCEDENT(Code)



YESNOT
final protected static int YESNOT(Code)



constraintSet
final protected ConstraintSet constraintSet(Code)
The Constraint under which the sequent is to be proven



localMetavariables
final protected SetOfMetavariable localMetavariables(Code)



moduloConstraints
final protected List moduloConstraints(Code)



moduloCounter
protected int moduloCounter(Code)



moduloReplacements
final protected HashMap moduloReplacements(Code)



nogger
static Logger nogger(Code)



notes
final protected StringBuffer notes(Code)
StringBuffer to store text which could be usefull for the user



predicate
final protected StringBuffer predicate(Code)
StringBuffer contains all declared predicate symbols.



predicateSet
final protected Set predicateSet(Code)
remember all printed predicates



services
final protected Services services(Code)



text
protected String text(Code)
The translation result is stored in this variable.



usedGlobalMv
final protected HashSet usedGlobalMv(Code)



usedLocalMv
final protected HashSet usedLocalMv(Code)
To handle local metavariabls we have to quantify them existentially. We do not need to quantify already substituted metavariables.



variableMap
final protected HashMap variableMap(Code)
Some terms should need a unique HashCode (CVC doesn't handle quantors, ProgramVariables from different blocks could have the same name), functions and user named skolemfunctions can get the same name. The difference to variables is that the have quantified variables so they have to be compared moduloRenaming. Comparing terms without variables with .equals() instead of .equalsModRenaming() should give a speed improvement.




Constructor Detail
DecProcTranslation
public DecProcTranslation(Sequent sequent, ConstraintSet cs, SetOfMetavariable localmv, Services services) throws SimplifyException(Code)
Just a constructor which starts the conversion to Simplify syntax. The result can be fetched with
See Also:    getText-
Parameters:
  sequent - The sequent which shall be translated.
Parameters:
  cs - The constraints which shall be incorporated.
Parameters:
  localmv - The local metavariables, should be the ones introduced afterthe last branch.




Method Detail
collectQuantifiedVars
protected void collectQuantifiedVars(Vector quantifiedVars, Term term)(Code)
Just copies the quantified variables of term into quantifiedVars
Parameters:
  quantifiedVars -
Parameters:
  term -



getText
public String getText()(Code)
Returns the sequent given with the constructor in Simplify syntax (as far as possible)



getUniqueHashCode
public int getUniqueHashCode(Object qv)(Code)
Returns a unique HashCode for the object qv. Unique means unique for the goal given to the calling class. This function does not depend on .hashcode() to deliver unique hash codes like the memory address of the object. It uses a hashMap and compares every new Object in O(n) (n number of Objects with the same .hashCode()) to all others.
Parameters:
  v - the Object the hashcode should be returned.



getUniqueHashCodeForUninterpretedTerm
public int getUniqueHashCodeForUninterpretedTerm(Term term)(Code)
Returns a unique HashCode for the term qv. Unique means unique for the goal given to the calling class. This function does not depend on .hashcode() to deliver unique hash codes like the memory address of the object. It uses a hashMap and compares every new Object in O(n) (n number of Objects with the same .hashCode()) to all others. It compares with .equalsModRenaming().
Parameters:
  term - the Term the hashcode should be returned.



translate
abstract protected StringBuffer translate(Term term, int skolemization, Vector quantifiedVars) throws SimplifyException(Code)
Translates the given term into the decision procedure's input syntax and and returns the resulting StringBuffer sb.
Parameters:
  term - the Term which should be written in Simplify syntax
Parameters:
  skolemization - Indicates whether the formula is in the ANTECEDENT, SUCCEDENTor with YESNOT if a "not" operation occurres above the termwhich will prevent skolemization ("not"s are not counted). ForSimplify this parameter is ignored.
Parameters:
  quantifiedVars - a Vector containing all variables that have been bound insuper-terms. It is only used for the translation of moduloterms, but must be looped through until we get there.



translate
abstract protected StringBuffer translate(Sequent sequent) throws SimplifyException(Code)
Translates the given sequent into the decision procedure's input syntax
Parameters:
  s - the Sequent which should be translated the translated version of s



translate
abstract protected StringBuffer translate(Semisequent ss, int skolemization) throws SimplifyException(Code)
Translates the given Semisequent into the decision procedure's input syntax and returns the resulting StringBuffer sb.
Parameters:
  ss - the SemiSequent which should be written in the decisionprocedure's syntax
Parameters:
  skolemization - Indicates whether the formula is in the ANTECEDENT, SUCCEDENTor with YESNOT if a "not" operation occurres above the termwhich will prevent skolemization for ICS ("not"s are notcounted). For Simplify this parameter is ignored.



Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify() throws IllegalMonitorStateException(Code)(Java Doc)
final public void notifyAll() throws IllegalMonitorStateException(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait() throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)
final public void wait(long ms) throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)
final public void wait(long ms, int ns) throws IllegalMonitorStateException, InterruptedException(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.