Title :
Generating Java Skeletal Code with Design Contracts from Specifications in a Subset of Object Z
Author :
Ramkarthik, Sowmiya ; Zhang, Cui
Author_Institution :
Dept. of Comput. Sci., California State Univ., Sacramento, CA
Abstract :
Object-Z is an object-oriented extension of the Z notation for formal specifications. Using Object-Z, structuring and developing large, complex software system specifications became possible by defining the systems as collections of independent classes and objects. The class schema framework in Object Z suggests that a one-to-one relationship exists between a class schema and a skeletal Java class with its design contract. The design contract for a Java class includes the invariant property of the class state, the pre and post conditions for the methods. This paper, demonstrates how Java skeletal code with design contracts can be generated from the specifications written in a subset of Object Z. Object Z class schema specification defined using a graphical user interface is converted to a XML representation. The Java skeletal code containing the design contracts is then generated by processing the XML representation
Keywords :
Java; XML; formal specification; graphical user interfaces; program compilers; software libraries; specification languages; Java class design contract; Java skeletal code generation; Object Z class schema specification; Object-Z object-oriented extension; XML representation; Z notation; formal specifications; graphical user interface; software system specification; Buildings; Computer science; Contracts; Formal specifications; Graphical user interfaces; Java; Object oriented modeling; Software maintenance; Software systems; XML;
Conference_Titel :
Computer and Information Science, 2006 and 2006 1st IEEE/ACIS International Workshop on Component-Based Software Engineering, Software Architecture and Reuse. ICIS-COMSAR 2006. 5th IEEE/ACIS International Conference on
Conference_Location :
Honolulu, HI
Print_ISBN :
0-7695-2613-6
DOI :
10.1109/ICIS-COMSAR.2006.41