Source Code Cross Referenced for AssignmentPair.java in  » Testing » KeY » de » uka » ilkd » key » rule » updatesimplifier » 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.rule.updatesimplifier 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        // This file is part of KeY - Integrated Deductive Software Design
002:        // Copyright (C) 2001-2007 Universitaet Karlsruhe, Germany
003:        //                         Universitaet Koblenz-Landau, Germany
004:        //                         Chalmers University of Technology, Sweden
005:        //
006:        // The KeY system is protected by the GNU General Public License. 
007:        // See LICENSE.TXT for details.
008:        //
009:        package de.uka.ilkd.key.rule.updatesimplifier;
010:
011:        import de.uka.ilkd.key.logic.Term;
012:        import de.uka.ilkd.key.logic.op.ArrayOfQuantifiableVariable;
013:        import de.uka.ilkd.key.logic.op.Location;
014:        import de.uka.ilkd.key.logic.op.SetOfQuantifiableVariable;
015:
016:        /**
017:         * Models an assignment pair <code> l_i := t_i </code>  of an update.
018:         * This data structure is only used for update simplification.
019:         */
020:        public interface AssignmentPair {
021:
022:            /**
023:             * TODO: should guards and bound variables also be compared here???
024:             */
025:            public static class LocationAsKey {
026:                final AssignmentPair pair;
027:
028:                public LocationAsKey(AssignmentPair pair) {
029:                    this .pair = pair;
030:                }
031:
032:                public int hashCode() {
033:                    return pair.locationHashCode();
034:                }
035:
036:                public boolean equals(Object o) {
037:                    if (!(o instanceof  LocationAsKey))
038:                        return false;
039:                    return pair.equalLocations(((LocationAsKey) o).pair);
040:                }
041:
042:                public AssignmentPair getAssignmentPair() {
043:                    return pair;
044:                }
045:            }
046:
047:            /**
048:             * returns the location
049:             * @return the left side of the assignment
050:             */
051:            Term locationAsTerm();
052:
053:            /**
054:             * returns the location operator
055:             * @return the location specifying operator
056:             */
057:            Location location();
058:
059:            /**
060:             * returns the locations sub terms
061:             * @return the left side of the assignment
062:             */
063:            Term[] locationSubs();
064:
065:            /** 
066:             * returns the value that is assigned to the location and adds
067:             * if necessary (i.e. the static type <code>T</code> of the location as term is not a 
068:             * supersort) a type cast <code> (T) </code> in front.
069:             * @return the right side of the assignment      
070:             */
071:            Term value();
072:
073:            /** 
074:             * returns the value that is assigned to the location
075:             * without adding any cast. Use this method with care.
076:             * @return the right side of the assignment      
077:             */
078:            Term valueUnsafe();
079:
080:            /**
081:             * The guard this update might have. This returns the formula <tt>true</tt>
082:             * in case of an unguarded assignment
083:             */
084:            Term guard();
085:
086:            /**
087:             * If this returns <code>true</code> then one cannot assume that the guard
088:             * is valid (always true)
089:             */
090:            boolean nontrivialGuard();
091:
092:            /**
093:             * Variables that be used to express parallel execution of
094:             * unboundedly/infinitely many updates
095:             * 
096:             * @return variables that are bound for this assignment pair
097:             */
098:            ArrayOfQuantifiableVariable boundVars();
099:
100:            /**
101:             * @return the set of quantifiable variables that turn up free in this
102:             *         assignment pair
103:             */
104:            SetOfQuantifiableVariable freeVars();
105:
106:            /**
107:             * compares the location of the given assignment pair with the
108:             * current location and returns true if they are equal
109:             * @param p the AssignmentPair whose location is compared
110:             * @return true if the location that is updated is equal to the location
111:             * of the given assignment pair
112:             */
113:            boolean equalLocations(AssignmentPair p);
114:
115:            /**
116:             * TODO: must guards and bound variables also be considered at this point?
117:             * 
118:             * returns an int fulfilling the usual hashcode properties but
119:             * without consideration of the value part of the assignment pair
120:             * @return an int as location hashcode 
121:             */
122:            int locationHashCode();
123:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.