The Study of Construction and Validation of Object-oriented Formal Specification

Author
ChenZuoHai
Advisor
ZuoHuaiKou
School
Shanghai University
Major
Control Theory and Control Engineering
Classification
TP311.52 Software Development
Degree
Doctoral dissertation
Year
2007
Downloads
228
Citations
2

Request the full text

Abstract

With the rapid improvement of computer hardware performance and the decline of price, the application area of computer system is extending continuously. While the software system is becoming more and more complicated, research on how to better the software quality and improve the software development efficiency becomes crucial.The unified modeling language (UML) is becoming the defacto modeling language in software engineering field. It provides rich modeling mechanism, and easy for average user to understand, so it is widely used in the user requirement election and definition stages. However lack of formal semantics of UML makes it difficult for system analyst to develop a precise requirement model, therefore it becomes even more difficult to use software tools to automatically analyze, verify and validate the model.Formal method is a software development method based on mathematics. It can formally specify the properties, which the software system should satisfy. It has the characteristic of preciseness, completeness and unambiguousness, which can be used to analyze and validate formal specification It is regarded as one of the promising methods to improve the software development quality. However formal method is mainly used in safety critical area in industry. Formal method is often criticized for its difficult using and time consuming. Since it requires good mathematics background and abstract logical thinking ability of software analyst to use formal method, creating formal specification is hard, and lack of effective and integrated tools prevends software developers from utilizing formal method.It is a worthwhile topic on how to effectively integrate object-oriented software development method and formal method. The research objectives and main contributions in the thesis are listed as follows:This thesis uses UML and Object-Z as modeling tool and proposes a method to integrate graphical specification technique and formal method, which aims to get precise software requirement specification. The thesis researches how to get the graphics specification from user requirement and how to derive the corresponding formal specification and the approaches to effectively validate and verify the formal specification from the system perspective.Based on the analysis of the graphics specification technique and formal method, it points out the advantages and disadvantages. From careful analysis the conclusion is: the integration of graphics specification technique and formal methods can complement limitation of each other and fully develop each method’s potential. This thesis proposes a development method of integrating graphics method and formal method to constitute software requirement specification.During the process of integrating UML and formal method, complementary method and integration method are synthesized. Firstly OCL(Object Constraint Language) is used to give more precise description of the UML model by utilizing complementary method, then integration method is used, i.e. translating the UML model incorporating OCL constraints to Object-Z specification, to formalize UML models. By using Object-Z specification language, Object-oriented concepts can be easily expressed. Based on the existing results and analysis the shortcoming of current researches, this thesis systematically proposes a full set of translation rules from UML class diagrams, state-chart diagrams and use-case diagrams to Object-Z specification. An elevator system example is given to illustrate the approach.During the research process of integrating UML and Object-Z, the OCL and Object-Z language are found to be complementary to each other and an approach to systemically translate OCL expression into formal Object-Z notation is proposed. The approach combines the merits of the intuition of UML/OCL models and the preciseness of Object-Z specification language, which can be used to generate more complete Object-Z specification. In order to support the proposed approach in this thesis, a XMI based prototype tool named UML Formalizer is developed to realize the automatic translation from UML model into Object-Z specification.Based on the analysis of current frequently used Object-Z exchange formats, Latex and XML format, this thesis compares and analyzes both exchange formats and concludes that the XML based Object-Z specification format is more suitable for tool integration. The thesis improves existing XML mark-up format of Object-Z specification language and particularly consummates the operational parts and utilizes XML schema to define the XML mark-up format of Object-Z specification language. A detailed definition of the XML structure is given.In the research area of Object-Z specification animation, this thesis proposes a validation method to animate formal specification and develops a prototype tool: OZAniamtor, to animate Object-Z specification, which can help users to validate formal specification.

Table of contents

Abstract 6-8 ABSTRACT 8-10 directory 10-14 List of charts and 14-15 form directory 15-16 first chapter 16-27 1.1 subject source 16 1.2 Overview 16-17 1.3 Software Requirements Engineering Introduction 17-20 1.3.1 software requirements engineering development 17 1.3.2 software requirements definition 17-18 < br /> 1.3.3 Software Requirements classification 18 1.3.4 software requirements development process 18-19 1.3.5 Software Requirements Specification note describes the method 19-20 1.4 software requirements analysis techniques 20-23 1.4.1 object-oriented 20 1.4.2 Formal Methods 20 - 23 1.5 semi-formal methods and formal methods compare 23-24 160 thesis research 24-25 1.7 thesis outline 1.8 Summary 25-26 26-27 the second chapter of the language background 27-35 2.1 Overview 27 2.2 Z language and Z language family 27-30 2.2.1 Z language Introduction 27 2.2.2 the Object-Z language features 27-29 2.2 .3 other object-oriented Z language extensions 29-30 2.2.4 Object-Z language support tools 30 2.3 UML Profile 30-34 2.3.1 UML basic concept 31-32 2.3.2 UML extension of mechanisms 32 2.3.3 UML tools support 32 - About 33 33 2.3.4 OCL languages ?? 2.3.5 OCL, the Object-Z as a model constraint language comparison 33-34 2.4 Summary 34-35 Chapter III of the research analysis 35-43 3.1 Overview 35 3.2 on methodology combining discussion 35 -36 3.3 IFAD Rose-the VDM Link 36 3.4 with UML and B 36-37 3.5 with UML with the Z / the Object-Z The main research work 37-41 3.5.1 Synthesis method 37-38 3.5.2 complement the object-oriented modeling language (AML) 38 3.5.3 ROZ and tools 38 3.5.4 Noe, as well as the Hartrum on the Rational Rose 98 of the extension 38-39 3.5.5 RoZeLink is 39 3.5.6 France and other research 39-40 3.5.7 Kim, research work 40 3.5.8 Other relevant research -41 3.6 existing work the main problems 41-42 3.7 Summary 42-43 Chapter from the UML model to the Object-Z specifications conversion 43-61 4.1 Overview 43-44 Formal Methods 4.1.1 Object-Oriented Model Overview 43-44 4.2 the UML formalization of the class diagram 44-49 4.2.1 UML class diagram Profile 44-45 4.2.2 the UML class formalization 45-46 < br /> 4.2.3 the relationship between formal 46 4.2.4 inherit the relationship between formal 46-47 4.2.5 associated with formalization 47 -48 4.2.6 associated class formal 48-49 4.2.7 system class formal 49 4.3 UML state diagram formalization 49-51 4.3.1 UML state diagram Profile 49 4.3.2 from the state diagram to the conversion of Object-Z specifications 49-51 <br / > 4.4 UML Use Case Diagram formalized 51-54 4.4.1 Use Case diagram Profile 51 4.4.2 sequence diagram use case diagram use cases 51-52 4.4.3 formalized sequence diagram 52-53 4.4.4 use case diagram in the form of formalization of the use case diagram, 53 4.4.5 process 53-54 4.5 UML constraints formalized 54-60 4.5.1 predefined basic types 54-56 4.5.2 set the type of (Collection) 56-58 4.5.3 iteration conversion 58-59 4.5.4 OCL expression to the Object-Z expressions conversion 59-60 4.6 Summary 60-61 Chapter instance is research 61-73 5.1 Overview 61 < br /> 5.2 Problem Description 61-62 5.3 UML modeling 62-65 5.3.1 the UML class diagram model 62-63 5.3.2 UML state diagram model 63-64 5.3.3 to increase the OCL constraints 64-65 5.4 Notes from UML models to Object-Z Specifications 65-68 general inspection of the 5.5 Object-Z model verification method 68-70 5.5.1 local definition of consistency 68-69 5.5. 69 5.5.3 class initialization state of the two-state model consistency checks verify the existence of check verification 69 5.5.4 operating mode of the consistency check verification 69-70 5.5.5 Specification describes the nature of the check verification 70 5.6 Elevator Model check verification 70-72 5.6.1 state model consistency check verification 70-71 5.6.2 initial state exists check verification 71 5.6.3 operating mode consistency checks verify 71 5.6.4 the nature of the elevator system to prove 71-72 5.7 Summary 72-73 Chapter VI UMLFormalizer the design and realization 73-83 6.1 Overview 73 6.2 the XMI Technical Overview 73-75 the 6.3 UMLFormalizer is system block diagram 75-77 6.3.1 XMI file resolve 75-77 6.4 XML format, Object-Z file storage format defined 77-81 6.4.1 XML structure of the description 78 <br / > 6.4.2 related research work introduced 78-79 6.4.3 class 79-80 6.4.4 variable definition is 80 6.4. 5 operating 80-81 6.5 UMLFormalizer function is About 81-82 6.6 Summary 82-83 Chapter VII of the Object-Z animation technology Research 83-97 7.1 introduced 83 7.2 specification animation essence 83-84 7.3 related 84 -85 7.4 SICStus Prolog language Introduction 85-86 7.5 the Object-Z class mode of conversion 86-89 7.5.1 the Object-Z class 86 7.5.2 basic types instantiated 86-87 7.5.3 class constants 87 7.5.4 state mode 87 - 89 7.6 Object-Z set theory Prolog predicate to achieve 89-92 7.6.1 finite set and set operations 89-90 7.6.2 of ordered pairs and relationships 90-91 7.6.3 function 91-92 7.7 conversion rules description 92 of 7.8 OZAnimator-Object-Z animated simulation function of the system introduced 92-95 7.9 instance research 95-96 7.10 Summary 96-97 Conclusion to Chapter VIII 8.1 In this paper, summary of 97-99 97 8.2 The main innovation 97-98 8.3 for further research work Looking 98 -99 References 99-109 of study for a degree during the published papers and to participate in the research work 109-111 thank 111

Related dissertations

  1. Research on Metadata and Information Model of Unconventional Emergent Event
    LiuLiLi ·Dalian University of Technology ·2012 ·Master's thesis
  2. Key Technology Research for Networking Automatic Test System
    GuWenZuo ·East China Normal University ·2013 ·Doctoral dissertation
  3. The Engineering Drawing Files Based on Web Information Management System Design and Implementation
  4. Design and Implementation of Dynamic Monitoring System for Budget Enforcement Based on J2EE
    WangZhiJun ·Xiamen University ·2014 ·Master's thesis
  5. The Design and Implementation of Statistical Data Collection and Process System of Dujiangyan Statistical Bureau
  6. Design and Implementation of the XProc Processor Based on.NET
  7. Design and Implementation of the XML Document Processing System Based on Xproc
  8. Research of Web Information Extraction Based on XML
    ZhengBangXi ·Dalian Jiaotong University ·2013 ·Master's thesis
  9. Research of Information Extraction from Web Documents Based on Tree Automaton
    YangFan ·East China Jiaotong University ·2013 ·Master's thesis
  10. Research and Application of Information Retrieval Based on XML Document
    HuZuoZuo ·Shandong University ·2013 ·Master's thesis
  11. Research of Keyword Query Processing on XML Data
    ZhaoXingMin ·Yanshan University ·2013 ·Master's thesis
  12. Research on Subtree Results Generation of XML Keyword Search
    WangBo ·Yanshan University ·2013 ·Master's thesis
  13. Results Diversification for XML Keyword Search Based on Semantics
    SongYuLing ·Beijing Jiaotong University ·2014 ·Master's thesis
  14. Agent-based Research and Implementation on Simulation Modeling and Scenario in Battlefield Environment
  15. Analog Electronic Technology Experiment Based on Virtual and Practicality Combined Lab
    HeZhenLei ·Zhejiang University ·2013 ·Master's thesis
  16. Power Electronic Remote Experiment Under Virtual and Reality Combination Framework
    ShenZhangBiao ·Zhejiang University ·2014 ·Master's thesis
  17. Research and Implementation of Keyword Query Technique in a Seamless Intergrated Relation-XML Database System
    ZhaoLi ·Northeastern University ·2011 ·Master's thesis
  18. The Design and Implementation of WebDAV Service in XML Database
  19. Research of Heterogeneous Database Integration Based on Web Service and XML
    XiaMinNa ·Hunan University ·2012 ·Master's thesis
  20. Research on Encoding and Query Process Technology for Continuous Uncertain