Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A meta-model-based uml syntax consistency detection method

A detection method and meta-model technology, applied in the direction of model-driven code, program code conversion, creation/generation of source code, etc., can solve the problems of old language, lack of compiler, low degree of technology integration, etc., to reduce conversion steps, Reduced possibility of errors, reduced complexity effects

Inactive Publication Date: 2021-12-31
NORTHEASTERN UNIV LIAONING
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] There are many technologies for UML consistency detection, but most of them are based on various formal methods and logic languages, such as Z language, B language, CSP, CTL / LTL propositional logic, etc. These formal methods and logic languages ​​are based on strict Mathematical theory requires developers to have a good mathematical foundation, and some languages ​​​​are relatively old, lack new versions of compilers, and are not well integrated with various current technologies

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A meta-model-based uml syntax consistency detection method
  • A meta-model-based uml syntax consistency detection method
  • A meta-model-based uml syntax consistency detection method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0040] The invention provides a method for detecting UML syntax consistency based on metamodel, comprising:

[0041] Step 1: the UML metamodel that needs to be detected is mapped into an XMI document, and the UML metamodel is exported as an XMI document by UML drawing software that supports XMI such as Rational Rose and StarUML; in the present embodiment, the UML model that needs to be detected is such as image 3 The class diagram shown, maps it to something like Figure 4 In the shown XMI document, the UML diagram is transformed into a formalized extensible markup language, and the elements in the UML model are transformed into tags in the XMI document.

[0042] Step 2: Parse the XMI document by using the DOM4J parser through the Java language;

[0043] The specific steps of step 2 are as follows:

[0044] Step 2.1: Create a SAXReader parser;

[0045] Step 2.2: The read method through the SAXReader parser will be as Figure 4 The XMI document shown is read into memory an...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a metamodel-based UML syntax consistency detection method, including: mapping the UML model to be detected into an XMI document, exporting the UML model into an XMI document through UML drawing software supporting XMI; using DOM4J through Java language The parser parses the XMI document; designs the meta-model structure, and extracts keywords from the UML model through XPath technology to obtain the information of the UML meta-model, which includes tags and attribute values ​​of the tags; stores the obtained UML meta-model information in the database , for subsequent reading; check the UML meta-model stored in the database according to the UML syntax consistency rules, and realize automatic detection through Java code. The technical scheme of the invention is simple, accurate and efficient, and convenient to find problematic nodes in the model.

Description

technical field [0001] The invention relates to the technical field of computer software engineering, in particular to a metamodel-based UML syntax consistency detection method. Background technique [0002] UML (Unified Modeling Language, Unified Modeling Language) has been widely accepted in the field of software engineering. It is a general visual modeling language suitable for describing software, visual processing, constructing and establishing software system documents. The most commonly used specification in OMG (Object Management Group, Object Management Group) is the preferred modeling language for implementing MDA (Model Driven Architecture, Model Driven Architecture). In recent years, as academia and industry pay great attention to MDA, this makes UML model more and more important in software development, which puts forward higher requirements for the consistency of UML model. Since UML is not a formal language, it cannot give precise specifications, so inconsist...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/35G06F8/41
CPCG06F8/35G06F8/427
Inventor 朱志良乔梁徐腾腾范珊珊蔡壮
Owner NORTHEASTERN UNIV LIAONING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products