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


java.lang.Object
   de.uka.ilkd.key.parser.ocl.FunctionFactory

FunctionFactory
public class FunctionFactory (Code)
ATTENTION: This is not a real factory in the sense of the design pattern "Factory"! This Class creates all necessary functions (for the ocl-translation). It also creates axioms, defining the semantics of the created functions and puts them into the AxiomCollector. Don't forget to reset (resetFactory) the factory for initialization!


Field Summary
final public static  FunctionFactoryINSTANCE
    


Method Summary
public static  TermbuildAddTerm(Term[] subTerms)
    
public  FunctioncreateAllInstancesConstant(CollectionSort csort)
    
public  FunctioncreateAllInstancesConstant(Sort sort)
    
public  FunctioncreateCollectFunction(LogicVariable collectVar, Term collectTerm, int collectionType)
    
public  TermcreateRangedBag(Term lowerBound, Term upperBound, Function leq)
    
public  TermcreateRangedSequence(Term lowerBound, Term upperBound, Function leq)
    
public  TermcreateRangedSet(Term lowerBound, Term upperBound, Function leq)
    
public  FunctioncreateRejectFunction(LogicVariable rejectVar, Term rejectTerm, int collectionType)
    
public  FunctioncreateSelectFunction(LogicVariable selectVar, Term selectTerm, int collectionType)
    
public  Termexcluding(Term setSymbol, Term element)
    
public static  CollectionSortgetBagSort(Sort sort)
    
public static  CollectionSortgetCollectionSort(Sort sort, int collectionType)
    
public  SetOfLogicVariablegetCreatedVars()
    
public  FunctiongetEmptyBag(Sort sort)
    
public  FunctiongetEmptyCollection(Sort sort, int collectionType)
    
public  FunctiongetEmptySequence(Sort sort)
    
public  FunctiongetEmptySet(Sort sort)
    
public  NamespacegetFunctions()
    
public static  CollectionSortgetSequenceSort(Sort sort)
    
public static  CollectionSortgetSetSort(Sort sort)
    
public  Termincluding(Term setSymbol, Term element)
    
public  voidresetFactory(Services services, AxiomCollector ac)
     initialises the required parameters for the FunctionFactory to work properly ATTENTION: must be called once before any of the other non-static methods.
public  Termsimplify(Term t)
    
public  Termunion(Term t1, Term t2)
    
public  TermunionAndSimplify(Term t1, Term t2)
    

Field Detail
INSTANCE
final public static FunctionFactory INSTANCE(Code)





Method Detail
buildAddTerm
public static Term buildAddTerm(Term[] subTerms)(Code)
Conjunction of subTerms



createAllInstancesConstant
public Function createAllInstancesConstant(CollectionSort csort)(Code)
creates an appropriate function-symbol representing allInstances of the given sort and the axiom that specifies the meaning of this function-symbol C.allInstances()
Parameters:
  csort - CollectionSort of the function-symbol



createAllInstancesConstant
public Function createAllInstancesConstant(Sort sort)(Code)
creates an appropriate function-symbol representing allInstances of the given sort and the axiom that specifies the meaning of this function-symbol
Parameters:
  sort - Element-Sort of the function-symbol



createCollectFunction
public Function createCollectFunction(LogicVariable collectVar, Term collectTerm, int collectionType) throws OCLTranslationError(Code)
creates an appropriate function-symbol representing collect for the given term and adds the axioms that specifie the meaning of this function-symbol to the local axiom-list c->collect(e | b)
Parameters:
  collectVar - Translation of e
Parameters:
  selectTerm - Translation of b
throws:
  OCLTranslationError -



createRangedBag
public Term createRangedBag(Term lowerBound, Term upperBound, Function leq) throws OCLTranslationError(Code)



createRangedSequence
public Term createRangedSequence(Term lowerBound, Term upperBound, Function leq) throws OCLTranslationError(Code)



createRangedSet
public Term createRangedSet(Term lowerBound, Term upperBound, Function leq) throws OCLTranslationError(Code)



createRejectFunction
public Function createRejectFunction(LogicVariable rejectVar, Term rejectTerm, int collectionType) throws OCLTranslationError(Code)
creates an appropriate function-symbol representing reject for the given term and adds the axioms that specifie the meaning of this function-symbol to the local axiom-list c->reject(e | b)
Parameters:
  rejectVar - Translation of e
Parameters:
  rejectTerm - Translation of b
throws:
  OCLTranslationError -



createSelectFunction
public Function createSelectFunction(LogicVariable selectVar, Term selectTerm, int collectionType) throws OCLTranslationError(Code)
creates an appropriate function-symbol representing select for the given term and adds the axioms that specifie the meaning of this function-symbol to the local axiom-list c->select(e | b)
Parameters:
  selectVar - Translation of e
Parameters:
  selectTerm - Translation of b
throws:
  OCLTranslationError -



excluding
public Term excluding(Term setSymbol, Term element) throws OCLTranslationError(Code)



getBagSort
public static CollectionSort getBagSort(Sort sort)(Code)



getCollectionSort
public static CollectionSort getCollectionSort(Sort sort, int collectionType)(Code)
Returns the corresponding CollectionSort of the given sort
Parameters:
  sort -
Parameters:
  collectionType - the concrete collection type according to OCLCollection null if no AbstractNonCollectionSort is given,otherwise the corresponding CollectionSort is returned.



getCreatedVars
public SetOfLogicVariable getCreatedVars()(Code)
returns the list of created variables which are used in the axioms



getEmptyBag
public Function getEmptyBag(Sort sort)(Code)
Returns the function-symbol representing emptyBag of the given sort
Parameters:
  sort - may be the elementsort or the collectionsort function-symbol representing emptyBag



getEmptyCollection
public Function getEmptyCollection(Sort sort, int collectionType)(Code)
Returns the function-symbol representing emptyCollection of the given type and sort
Parameters:
  elementsort - of the collection function-symbol representing emptyCollection



getEmptySequence
public Function getEmptySequence(Sort sort)(Code)
Returns the function-symbol representing emptySequence of the given sort
Parameters:
  sort - may be the elementsort or the collectionsort function-symbol representing emptySequence



getEmptySet
public Function getEmptySet(Sort sort)(Code)
Returns the function-symbol representing emptySet of the given sort
Parameters:
  sort - may be the elementsort or the collectionsort function-symbol representing emptySet



getFunctions
public Namespace getFunctions()(Code)
returns the namespace which holds all the created functions



getSequenceSort
public static CollectionSort getSequenceSort(Sort sort)(Code)



getSetSort
public static CollectionSort getSetSort(Sort sort)(Code)



including
public Term including(Term setSymbol, Term element) throws OCLTranslationError(Code)



resetFactory
public void resetFactory(Services services, AxiomCollector ac)(Code)
initialises the required parameters for the FunctionFactory to work properly ATTENTION: must be called once before any of the other non-static methods. Sets all parameters to initial values - any prior changes get lost!
Parameters:
  services -
Parameters:
  ac -



simplify
public Term simplify(Term t)(Code)



union
public Term union(Term t1, Term t2) throws OCLTranslationError(Code)



unionAndSimplify
public Term unionAndSimplify(Term t1, Term t2) throws OCLTranslationError(Code)



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.