Font Size: a A A

Research On UML Class Diagram Formalization And Python Code Generation Based On Object-Z

Posted on:2020-02-11Degree:MasterType:Thesis
Country:ChinaCandidate:D YuanFull Text:PDF
GTID:2428330578469658Subject:Computer technology
Abstract/Summary:PDF Full Text Request
Unified Modeling Language(UML)is a modeling language based on the combination of multiple object-oriented modeling methods.It has become the de facto standard for software modeling.Its support for object-oriented,visual modeling and powerful presentation capabilities has become the language of choice for building large,very large system models.Most UML specifications are descriptive and easy to understand,but they are not formal description languages.Their grammatical structures use formal stipulations but lack precise semantics.They often produce ambiguity or ambiguity and cannot guarantee the correctness of the software.And reliability.Therefore,in order to enhance the accuracy,consistency and scalability of the language,to ensure the correctness of the system and reduce the cost of software development and the risk of operation and maintenance in the future,it is especially necessary for us to conduct formal research on UML.This article first discusses a mapping method from UML to Object-Z.As a formal language,Object-Z introduces the concept of a class,which can better describe the grammar and static semantics of various types of graphics on the UML metamodel layer.In this paper,the semantics and semantics of UML class diagrams are formally mapped using Object-Z language,and the feasibility and correctness of the mapping are verified by two examples.Then,this article attempts to find a mapping from Object-Z to executable code,turning the "pseudo code" formed by Object-Z into executable code that can be recognized and run by the computer.This article finds that Python is now a more and more popular programming language.Due to its unique grammatical features and excellent code portability,the most important thing is that it has many similarities with the Object-Z language,making it a natural transformation of our Object-Z pseudo.An excellent language for code.In the conversion process,we use a contractual design to ensure the consistency between the Object-Z protocol and Python code,thus ensuring the correctness of the mapping process.Through this work,we have found a way to formalize UML class diagrams into Object-Z specifications and finally map them from Object-Z specifications to Python executable code,which will improve the development efficiency of software development,especially complex large systems.Provides a workable method.
Keywords/Search Tags:UML, Object-Z, formal methods, Python
PDF Full Text Request
Related items