Font Size: a A A

UML Model Library Construction Method Based On Open Source

Posted on:2017-10-26Degree:MasterType:Thesis
Country:ChinaCandidate:H B XuFull Text:PDF
GTID:2428330485460843Subject:Computer technology
Abstract/Summary:PDF Full Text Request
The code size of modern software products is quite enormous.If a software prod-uct is totally developed from scratch,the development cycle will be very long.This does not meet the needs of modern software industry,which develops and changes quickly.Fortunately,there is a lot of open source software on the internet.If we can reuse some open source software in a new software product,the efficiency of software development will be greatly improved.However,it is not a easy thing for developer-s.To reuse open source software,the problem of collecting and understanding open source software must be solved first.For these problems,a model library based on the actual needs and reverse mod-els generated from source code can be a good solution.Because the software system structure described by model is much more clear than source code and the model con-tains less redundant information that affects project retrieval,these can improve the efficiency of collecting open source software.And reverse models,which contains key information,are in one-to-one correspondence with open source code,this can help developers to understand the design features of open source software.UML is the most popular modeling language in current software industry.Many software products use UML to create its system models,so this paper will build the model library based on UML models.This paper presents a UML model library con-struction method which is based on open source.The construction method mainly includes the following aspects:1.This paper designs a reasonable and feasible model library architecture.The ar-chitecture can be divided into three layers.The lower layer is the data acquisition layer,which is used to collect projects and generate models.The middle layer is the data storage layer,which is used to realize the persistence of models.The upper layer is the application layer,which contains several applications based on model library.This architecture improves the scalability and maintainability of the library.2.This paper proposes a model library construction method based on reverse engi-neering.This method has four parts.Firstly,this paper designs a web crawler,which can be used to collect open source code.Secondly,this paper uses reverse strategy to generate models from source code.Then,this paper summarizes the Java code patterns related to relationships between classes.And this paper us-es Java code patterns to refine models.In the end,this paper designs a kind of persistence strategy based on Neo4j to store models.3.This paper proposes a declarative model query language—MJINS.Firstly,the grammar of MJINS is precisely defined by BNF.Then this paper studies the query description capability under different scenarios of model query.In the end,this paper makes an adaptation of MJINS to Neo4j,which can help users to query the model library.4.This paper does a case study by creating a specific model library based on SourceForge site.In the case study,this paper collects 312 open source projects and 68G source code from SourceForge.Then this paper selects 179 Java project to generate class diagrams.And this paper also refines these models by adding lost relations between classes.Finally,this paper verifies the validity of the query function of the model library.
Keywords/Search Tags:Model Library, Reverse Engineering, Model Refining, Model Persistence, MJINS
PDF Full Text Request
Related items