System model structured analysis method and system based on MDZIP format

By structurally parsing the system model in MDZIP format and generating json format data, it solves the problem that the system model cannot be displayed and edited online, realizes online collaborative design and online and offline data synchronization, and improves design efficiency.

CN118797930APending Publication Date: 2024-10-18BEIJING SIMULATION CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410807687.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The existing technology cannot directly parse the system model data in MDZIP format into structured data, which limits the application of the system model in online collaborative design. It is impossible to display and edit the system model online without installing modeling software.

Method used

By obtaining the system model in MDZIP format, construct parsing data and map it to the preset parsing structure to generate system model data in json format, including the id, name, model diagram information and model element information of the system model. The parsing structure includes Detailed information about model diagrams, packages and model elements to enable structured parsing of system models.

Benefits of technology

It realizes the online display and editing of system models, breaks the installation restrictions of modeling software, improves the efficiency of system model collaborative design, allows model information to be modified online and synchronized back to MDZIP files, and realizes online and offline integrated collaborative design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118797930A_ABST
    Figure CN118797930A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a method and a system for carrying out structured analysis on a system model based on an MDZIP format. In a specific embodiment, the method comprises the following steps: acquiring a system model in an MDZIP format, and constructing analysis data of the system model; mapping the analysis data into a preset analysis structure to obtain json format data of the system model; wherein the analysis data comprises an id of the system model, a name of the system model, model graph information and model element information in the system model; according to the method, the system model based on the MDZIP format is subjected to structured analysis, the analysis structure is designed, the system model data in the MDZIP format is converted into structured data from unstructured data, the analyzed json format file can be directly used by a web system, online display of the system model can be achieved, and the system model can be displayed conveniently and rapidly. And the installation of modeling software and the environmental limitation of a modeling environment are broken.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of simulation technology, and more specifically, to a system model structured analysis method and system based on MDZIP format. Background Art

[0002] At present, the system model is a description, simulation and abstraction of the system, reflecting the physical nature and main characteristics of the system. Based on the reuse and expansion of the subset of UML2.0, the Object Management Group OMG proposed a new system modeling language SysML and used SysML as the standard modeling language for system engineering. SysML provides semantics for the structural model, behavior model, requirement model and parameter model of the system, and also provides complete semantics for the model representation. The structure of the SysML language is based on a four-layer metamodel structure: meta-metamodel, metamodel, model and user object. The meta-metamodel layer has the highest level of abstraction and is the model that defines the metamodel description language. It provides the most basic concepts and mechanisms for defining the elements and various mechanisms of the metamodel. The metamodel is an instance of the meta-metamodel, which defines the model description language and provides various packages for expressing the system, the definition types of model elements, tagged values ​​and constraints, etc. The model is an instance of the metamodel, which defines the model of the description language for a specific domain. The user object is an instance of the model. Any complex system is a specific object that communicates with each other in the eyes of the user, with the purpose of realizing the functions and performance of the complex system. System models are usually built using commercial modeling software such as MagicDraw. MagicDraw provides the SysML modeling language, and users can use SysML to build system models. At the same time, MagicDraw provides a variety of graphical representations of system models, including block diagrams, internal block diagrams, activity diagrams, state machine diagrams, parameter diagrams, package diagrams, and use case diagrams. The system model in MagicDraw uses the MDZIP format as a typical model format. After building the system model in MagicDraw, the system model is exported as an MDZIP format file. The MDZIP format model file follows the SysML syntax and can be parsed according to the SysML syntax. System models are usually built by users in local modeling software, and designers often collaborate on system models. Therefore, in order to improve the efficiency of model collaborative design, it is necessary to build a web-based collaborative modeling system to provide online model collaborative design functions. However, due to the installation of modeling software and modeling environment limitations, system models cannot be directly displayed and edited online, and MDZIP format files cannot be directly used by the system, so the system model needs to be parsed. Summary of the invention

[0003] The object of the present invention is to provide a method and system for performing structured analysis on a system model based on the MDZIP format, so as to solve at least one of the problems existing in the prior art.

[0004] In order to achieve the above object, the present invention adopts the following technical solutions:

[0005] A first aspect of the present invention provides a method for performing structured analysis on a system model based on the MDZIP format, comprising:

[0006] Get the system model in MDZIP format and build the parsing data of the system model;

[0007] Map the parsed data to a preset parsing structure to obtain JSON format data of the system model;

[0008] The parsed data includes the id of the system model, the name of the system model, the model diagram information and the model element information in the system model;

[0009] Mapping the parsed data to a preset parsed structure includes

[0010] According to the id of the system model and the name of the system model in the parsed data, mapping is performed to obtain information of the system model id structure and the system model name structure in the parsed structure;

[0011] Mapping the structure information of all model graph sets in the parsed structure to obtain information based on the model graph information in the parsed data;

[0012] According to the model element information in the parsed data, information of the set structure of all model elements in the parsed structure is mapped and obtained.

[0013] Optionally, the preset analytical structure construction method includes

[0014] Decompress the system model file in MDZIP format to obtain the configuration file of the system model;

[0015] Extract the model file and binary file in the configuration file to construct parsed data of the system model;

[0016] Construct a parsing structure in json format according to the parsed data.

[0017] Optionally, the model file includes information of the system model; the binary file includes size information of the model diagram in the system model, size information of the model elements and coordinate information of the model elements.

[0018] Optionally, mapping the parsed data to a preset parsed structure further comprises finding a binary file corresponding to the model graph and the model elements according to the model graph information in the parsed data.

[0019] Optionally, the information of the collection structure of all model graphs includes the unique identifier of the model graph, the name of the model graph, the type of the model graph, the ID of the package structure to which it belongs, the hierarchical structure identifying the model graph, and the ID set of all components contained in the model graph.

[0020] Optionally, the information of the collection structure of all model elements includes the unique identifier of the model element, the name of the model element, the x-axis coordinate, the y-axis coordinate, the length and width of the model element in the model diagram, the UML type corresponding to the model element, the SysML type corresponding to the model element, the model diagram id, the package id, the port information in the model element, the interface associated with the model element, the attribute information contained in the model element and the association relationship between the model elements.

[0021] Optionally, the port information in the model element includes a port unique identifier, a port name, a port authority, and a port aggregation mode;

[0022] The interface associated with the model element includes an interface unique identifier, an interface name, an interface type, an interface application party ID, and an interface provider party ID;

[0023] The attribute information contained in the model element includes attribute id, attribute name, attribute authority, attribute type, value type when the attribute is DataType, attribute value and attribute identifier;

[0024] The association relationship of the model elements includes a relationship unique identifier id, a relationship name, a relationship type, a start model element id, an end model element id and a linear relationship authority.

[0025] A second aspect of the present invention provides a system model structured parsing system based on the MDZIP format, comprising:

[0026] The data acquisition module is used to obtain the system model in MDZIP format and construct the parsing data of the system model;

[0027] The data parsing module is used to map the parsed data into a preset parsing structure to obtain JSON format data of the system model.

[0028] The third aspect of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method provided in the first aspect of the present invention when executing the program.

[0029] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method provided by the first aspect of the present invention.

[0030] The beneficial effects of the present invention are as follows:

[0031] The present invention performs structured parsing on the system model based on the MDZIP format, and designs the parsing structure, so that the system model data in the MDZIP format is converted from unstructured data to structured data, and the parsed json format file can be directly used by the web system, so that the online display of the system model can be realized, breaking the environmental restrictions of the installation of the modeling software and the modeling environment. When the online system performs collaborative modeling on the system model, the key value can be modified by indexing the key name of the parsed json data to realize the modification of the model information, and the granularity of the collaborative design data of the system model is refined from the model file level to the model component level, thereby improving the efficiency of the collaborative design of the system model. The present invention can also synchronize the model modification information back to the MDZIP format file through the parsing structure after the online system performs modeling modification on the system model, and the user can open the MDZIP file after the synchronization information in the local MagicDraw modeling software, and continue to model the system model, thereby realizing the online and offline integrated collaborative design of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The specific implementation modes of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0033] Figure 1 A flow chart of a system model structured parsing method based on the MDZIP format in an embodiment of the present invention is shown.

[0034] Figure 2 A schematic diagram showing an embodiment of the present invention using a system model structured parsing method based on the MDZIP format. DETAILED DESCRIPTION

[0035] In order to explain the present invention more clearly, the present invention is further described below in conjunction with embodiments and drawings. Similar components in the drawings are represented by the same reference numerals. It should be understood by those skilled in the art that the content specifically described below is illustrative rather than restrictive, and the protection scope of the present invention should not be limited thereto.

[0036] like Figure 1 As shown, a structured analysis method based on a system model in MDZIP format includes:

[0037] Get the system model in MDZIP format and build the parsing data of the system model;

[0038] The parsed data is mapped to a preset parsing structure to obtain JSON format data of the system model.

[0039] Specifically, MDZIP is a compressed file format. The system model file in MDZIP format is decompressed to obtain all configuration files related to the model, including metadata information configuration files, project structure information files, project identification files, project options files, model information files, diagrams and other resource files, and proxy information backup files of external resources, etc. The model information is mainly extracted using model information files with the suffix ".model" and data files starting with "BINARY". The model information file with the suffix ".model" is referred to as a model file. The model file follows the XML syntax regulations and describes the main information of the system model. The model information is contained in various tags; the data file starting with "BINARY" is referred to as a binary file. It also follows the XML syntax regulations and describes the size of the system model diagram and the size, coordinates and other information of the diagram elements.

[0040] The model file is mainly composed of <xmi:documentation> 、 <xmi:extension> 、 <uml:model>and other tool configuration information tags, where <uml:model>The tag contains the key information of the entire system model, as well as all the hierarchical relationships and type information. <uml:model>The tag is parsed, parsing rules for the tag are established, and various relevant information of the system model is extracted.

[0041] <uml:model>The tag itself includes three basic attributes: "xmi:type", "xmi:id" and "name", which identify the model attribute, model id and model name respectively. <uml:model>Tags mainly consist of multiple <packagedelement>Sub-tag tag composition, through parsing <packagedelement>Sub-tags can obtain specific model element information of the system model. <packagedelement>The "xmi:type" attribute of the tag is used to identify the model element type. For example, when the value of "xmi:type" is "uml:Package", the <packagedelement>The tag represents the package in the model. By analyzing the tag, we can get the package structure information of the model. The package hierarchy is composed of <packagedelement>The nested relationship control of tags; when the "xmi:type" value is "uml:Class" or "uml:interface", the <packagedelement>The label represents a class or interface in the model diagram. <ownedattribute>The subtag contains the specific attribute information of the model element; when the "xmi:type" value is "uml:Association", it indicates the association relationship between two model elements. Based on the value of "xmi:type", it can be determined whether the current <packagedelement>The label contains information about which model element, thereby realizing the parsing of the specific information of each model element.

[0042] <packagedelement>The tag contains <owneddiagram>The sub-tabs identify all model diagrams, each <owneddiagram>The sub-tag represents a model diagram, identifying the attributes of each model diagram such as id, type, name, visibility and hierarchy. <owneddiagram>Tags <usedelements>Sub-label, indicating all model elements contained in the model diagram, each <usedelements>The tag represents the id of a model element, and the corresponding <packagedelement>Tags to obtain detailed model element information.

[0043] The "Binaries.properties" file contains the statistics of all binary files. Each binary file is read according to this file. The binary file records the location and size information of each model element. <mdelement>The tag represents a model element, and its "elementClass" attribute represents the model element type. <elementid>The subtag corresponds to the "xmi:id" attribute in the model file. <geometry>The values ​​of the sub-tags correspond to the x-coordinate value, y-coordinate value, length and width. By parsing the binary file, the position and size information of each model element can be determined, thereby realizing the online drawing of the model diagram.

[0044] In one embodiment, the JSON format parsing structure of the design system model includes

[0045] Decompress the system model file in MDZIP format to obtain the configuration file of the system model;

[0046] Extract the model file and binary file in the configuration file to construct parsed data of the system model;

[0047] Constructing a parsing structure in json format according to the parsed data;

[0048] The parsed data includes the system model ID, system model name, model diagram information and model element information in the system model.

[0049] The parsing structure includes the system model id structure, the system model name structure, the collection structure of all model diagrams, the collection structure of all model packages and the collection structure of all model elements; specifically, the parsing structure is shown in Table 1; the meaning of the parsing structure fields of the system model and their correspondence with the model file and binary file labels are shown in Table 2.

[0050] Table 1

[0051]

[0052] Table 2

[0053] json fields Field meaning Corresponding model file tag Corresponding attributes of corresponding tags id System model id <uml:model> < / uml:model> xmi:id name System model name <uml:model> < / uml:model> name diagrams A collection of all model diagrams <owneddiagram> < / owneddiagram> packages A collection of all model packs <packagedelement> < / packagedelement> xmi:type packagedElements The collection of all model elements <packagedelement> < / packagedelement>

[0054] In one possible implementation, the diagrams structure of the collection of all model diagrams in the parsing structure includes

[0055] According to the model graph information in the parsed data, obtaining the structure information of all the model graph sets in the parsed structure;

[0056] The information of the structure of all model graph sets obtained includes

[0057] The unique identifier of the model diagram, the name of the model diagram, the type of the model diagram, the id of the package structure to which it belongs, the hierarchical structure that identifies the model diagram, and the id set of all components contained in the model diagram.

[0058] In a specific example, the diagrams structure of the collection of all model diagrams in the parsing structure is shown in Table 3, and the meaning of the fields of the diagrams structure of the collection of all model diagrams in the parsing structure and the corresponding relationship with the model file tags are shown in Table 4.

[0059] Table 3

[0060]

[0061] Table 4

[0062]

[0063] In one embodiment, the package structure of all model packages is the same as the parsing structure, which is a nested substructure, indicating the submodels contained in the current model. By recursively traversing packages, the hierarchical structure of the entire system model is obtained. Specifically, the package structure is shown in Table 5.

[0064] Table 5

[0065]

[0066] In one possible implementation, the packagedElements structure of all model elements in the parsed structure includes

[0067] According to the model element information in the parsed data, the information of the set structure of all the model elements in the parsed structure is obtained.

[0068] The information of the obtained set structure of all model elements includes

[0069] The unique identifier of the model element, the name of the model element, the x-axis coordinate, y-axis coordinate, length and width of the model element in the model diagram, the UML type corresponding to the model element, the SysML type corresponding to the model element, the model diagram id, the package id, the port information in the model element, the interface associated with the model element, the attribute information contained in the model element and the association relationship between the model elements.

[0070] Specifically, the structure of the packagedElements collection of all model elements is shown in Table 6; the meaning of the structure fields of "packagedElements" and the corresponding relationship with the model file / binary file tags are shown in Table 7.

[0071] Table 6

[0072]

[0073]

[0074] Table 7

[0075]

[0076] In a specific embodiment, the port information ports in the model element includes a port unique identifier, a port name, a port authority, and a port aggregation mode. In a specific example, the port information ports substructure in the model element of the packagedElements structure, which is a collection of all model elements in the parsed structure, is shown in Table 8, and the meaning of the port information ports substructure fields in the model element and the corresponding relationship with the model file tag are shown in Table 9.

[0077] Table 8

[0078]

[0079] Table 9

[0080] json fields Field meaning Corresponding model file tag Corresponding attributes of corresponding tags id Port unique identifier <ownedattribute> < / ownedattribute> xmi:id name Port Name <ownedattribute> < / ownedattribute> name visibility Port permissions <ownedattribute> < / ownedattribute> visibility aggregation Port aggregation mode <ownedattribute> < / ownedattribute> aggregation

[0081] In a specific embodiment, the interface information interfaces associated with the model element includes an interface unique identifier, an interface name, an interface type, an interface application party id, and an interface provider id.

[0082] In a specific example, the interfaces substructure of the interface information associated with the model elements of the packagedElements structure, which is a collection of all model elements in the parsed structure, is shown in Table 10; the meaning of the fields of the interfaces substructure of the interface information associated with the model elements in the model elements and their correspondence with the model file tags are shown in Table 11.

[0083] Table 10

[0084]

[0085] Table 11

[0086] json fields Field meaning Corresponding model file tag Corresponding attributes of corresponding tags id Interface unique identifier <interfacerealization> < / interfacerealization> xmi:id name Interface Name <interfacerealization> < / interfacerealization> name type Interface Type <interfacerealization> < / interfacerealization> xmi:type beginElementId Interface application id <client> < / client> xmi:idref endElementId Interface provider id <supplier> < / supplier> xmi:idref

[0087] In a specific embodiment, the attribute information properties contained in the model element includes attribute id, attribute name, attribute authority, attribute type, value type when the attribute is DataType, attribute value and attribute identifier.

[0088] In a specific example, the property information properties substructure contained in the model element of the packagedElements structure, which is the set of all model elements in the parsed structure, is shown in Table 12; the meaning of the property information properties substructure fields contained in the model element in the model element and their correspondence with the model file tags are shown in Table 13.

[0089] Table 12

[0090]

[0091]

[0092] Table 13

[0093]

[0094] Specifically, the values ​​of the two attributes "name" and "value" of the model element are modified online. The "tagAttributeName" can be used to identify whether it is the "name" and "value" attributes, and the two flags "updateFlag" and "showFlag" can be used to identify whether the attributes can be modified.

[0095] In a specific embodiment, the association relations of the model elements include a relationship unique identifier id, a relationship name, a relationship type, a start model element id, an end model element id and a linear relationship authority.

[0096] In a specific example, the relations substructure of the model elements of the packagedElements structure, which is the set of all model elements in the parsed structure, is shown in Table 14; the meaning of the fields of the relations substructure of the model elements and their correspondence with the model file tags are shown in Table 15.

[0097] Specifically, the meaning of the "relations" substructure field and its corresponding relationship with the model file tag are as follows, where: <packagedelement>The xmi:id attribute value and <ownedattribute>The association attribute values ​​of the two tags are equal, and the correspondence between the two tags is achieved by matching these two attribute values.

[0098] Table 14

[0099]

[0100] Table 15

[0101]

[0102] A specific embodiment is a system model structured analysis method based on MDZIP format. Figure 2 As shown, for a given system model in MDZIP format, the parsing steps are as follows:

[0103] S1 finds the system model in MDZIP format <uml:model>Tags, Extract <uml:model>The xmi:id and name attribute values ​​in the tag obtain the system model id and system model name required by the system model id structure and system model name structure in the parsing structure.

[0104] S2 parses the model diagram information and obtains the diagrams structure information in the parsed structure.

[0105] S21 finds the system model in MDZIP format <uml:model>All in the tag <owneddiagram>Tags, parse each <owneddiagram>Tags, Extract <owneddiagram>The xmi:id, name, xmi:type and ownerOfDiagram attribute values ​​in the tag correspond to the unique model diagram identifier, model diagram name, model diagram type, package structure id and hierarchical structure of the model diagram in each model diagram;

[0106] S22 parses all <owneddiagram>Tags <usedelements>The content of the sub-tag obtains the packagedElementIds of each model diagram, that is, the ID set of all model elements contained in each model diagram;

[0107] S23 Analysis <owneddiagram>Tags <binaryobject>Sub-label, which contains the correspondence between the model diagram and the binary file. <binaryobject>The streamContentID attribute value of the tag is the binary file name corresponding to the model diagram. Extract the streamContentID attribute to get the binary file corresponding to the model diagram.

[0108] S3 parses the model element information and obtains the information required for parsing the packagedElements structure in the structure.

[0109] S31 found <uml:model>All in the tag <packagedelement>Label, for each <packagedelement>Tags are parsed separately; for each <packagedelement>Tags, first extract xmi:id and name, and get the unique identifier and model element name of each model element in the packagedElements structure.

[0110] S32 finds the coordinates and length and width information of the model element in the binary file according to the unique identifier of the model element, and obtains the position information in the packagedElements structure.

[0111] S33 Extraction <packagedelement>The xmi:type attribute value of the tag corresponds to the UML type type of the model element; then each model element packagedElement is processed separately according to the UML type type corresponding to each model element packageElement.

[0112] S331 When type is uml:Class,

[0113] Analyze the current <packagedelement>Tags <interfacerealization>The subtag contains the interface information of the model element and obtains the information of the interfaces substructure in the packagedElements structure;

[0114] extract <interfacerealization>The xmi:id, name, and xmi:type attributes in the subtag obtain the interface unique identifier, interface name, and interface type information required by the interfaces structure;

[0115] Analysis <interfacerealization>Tags <supplier>and <client>Sub-tags, <supplier>The label indicates the sender of the interface. <client>The label represents the interface side of the interface, respectively extract <supplier>and <client>The xmi:idref attribute in the tag gets beginElementId and endElementId.

[0116] S332 Analysis Current <packagedelement>Tags All <ownedattribute>Subtag, which contains the attribute information of the model element. <ownedattribute>The xmi:type attribute:

[0117] S3321 When the xmi:type attribute is uml:Port, extract <ownedattribute>The xmi:id, name, visibility, and aggregation attributes correspond to the ports substructure in the packagedElements structure;

[0118] S3322 When the xmi:type attribute value is uml:Property, extract <ownedattribute>The xmi:id, name, and visibility of the packagedElements structure correspond to the attribute id, attribute name, and attribute permission of the properties substructure.

[0119] S33221 Analysis <ownedattribute>Sub-tags of <referenceextension>, this tag indicates the attribute type and attribute value type, extracts its referentType and referentPath attribute values, and forms the attribute type propertyType required by properties and the value type valueType when the attribute type is DataType;

[0120] S33222 Analysis <ownedattribute>Sub-tags of <defaultvalue>, extract its value attribute value, and form the attribute value defaultValue required by properties. Finally, the properties substructure of the packagedElements structure is formed.

[0121] S333 Extract current <packagedelement>Label (denoted as <packagedelement>The value of the association attribute of tag A);

[0122] Find the xmi:id with the association attribute value and type with uml:Association <packagedelement>Label (denoted as <packagedelement>Label B);

[0123] extract <packagedelement>The xmi:id and name attributes of tag B correspond to the unique relationship identifier id and relationship name required to constitute the relations in the packagedElements structure;

[0124] extract <packagedelement>The first one of label B <memberend>The xmi:idref attribute value of the child tag is used as the end model element identifier endElementId required in the relations structure; extract <ownedend>The xmi:type, type, and visibility attribute values ​​of the subtags correspond to the relationship type type, the start model element identifier beginElementId, and the linear relationship permission visibility required in the relations structure; ultimately, packagedElements( <packagedelement>Label A)'s relations.

[0125] S334 When type is other, other attribute information of the parsed model element is expanded.

[0126] S335 When type is uml:Package, it is a model package element, and the above parsing process is recursively executed to form a collection packages of all model packages required in the parsing structure.

[0127] S4 At this point, the analysis of the system model is completed.

[0128] The present invention designs a system model structured parsing method based on the MDZIP format, which decompresses the MDZIP file, parses the configuration information and parameter information in each subfile, studies the correspondence between the component and the model core file, analyzes the graph structure contained in the system model, establishes the parsing rules of various elements in the model graph, and extracts the key information of the graph and the model. A general json format parsing structure is designed to convert the information of the system model into structured json data. The structured json data can be directly used by the web system, which solves the problem that the system model cannot be directly displayed and edited in the online system, breaks the installation and environment restrictions of the modeling software, and the json format data refines the granularity of the collaborative design data of the system model from the model file level to the module level, and can synchronize the collaborative design information back to the MDZIP file, thereby realizing the online and offline two-way transmission and integrated collaborative design of the system model, and improving the efficiency of model collaborative design.

[0129] In the description of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "upper", "lower", etc. is based on the orientation or positional relationship shown in the accompanying drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. Unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal connection of two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances.

[0130] It should also be noted that, in the description of the present invention, relational terms such as first and second, etc., are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0131] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not limitations on the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is impossible to list all the embodiments here. All obvious changes or modifications derived from the technical solution of the present invention are still within the protection scope of the present invention.< / packagedelement> < / ownedend> < / memberend> < / packagedelement> < / packagedelement> < / packagedelement> < / packagedelement> < / packagedelement> < / packagedelement> < / defaultvalue> < / ownedattribute> < / referenceextension> < / ownedattribute> < / ownedattribute> < / ownedattribute> < / ownedattribute> < / ownedattribute> < / packagedelement> < / client> < / supplier> < / client> < / supplier> < / client> < / supplier> < / interfacerealization> < / interfacerealization> < / interfacerealization> < / packagedelement> < / packagedelement> < / packagedelement> < / packagedelement> < / packagedelement> < / uml:model> < / binaryobject> < / binaryobject> < / owneddiagram> < / usedelements> < / owneddiagram> < / owneddiagram> < / owneddiagram> < / owneddiagram> < / uml:model> < / uml:model> < / uml:model> < / ownedattribute> < / packagedelement> < / geometry> < / elementid> < / mdelement> < / packagedelement> < / usedelements> < / usedelements> < / owneddiagram> < / owneddiagram> < / owneddiagram> < / packagedelement> < / packagedelement> < / ownedattribute> < / packagedelement> < / packagedelement> < / packagedelement> < / packagedelement> < / packagedelement> < / packagedelement> < / uml:model> < / uml:model> < / uml:model> < / uml:model> < / uml:model> < / xmi:extension> < / xmi:documentation>

Claims

1. A structured analysis method based on a system model in MDZIP format, characterized in that: include: Get the system model in MDZIP format and build the parsing data of the system model; Map the parsed data to a preset parsing structure to obtain JSON format data of the system model; The parsed data includes the id of the system model, the name of the system model, the model diagram information and the model element information in the system model; Mapping the parsed data to a preset parsed structure includes According to the id of the system model and the name of the system model in the parsed data, mapping is performed to obtain information of the system model id structure and the system model name structure in the parsed structure; Mapping the structure information of all model graph sets in the parsed structure to obtain information based on the model graph information in the parsed data; According to the model element information in the parsed data, information of the set structure of all model elements in the parsed structure is mapped and obtained.

2. The method according to claim 1, characterized in that The preset analytical structure construction method includes Decompress the system model file in MDZIP format to obtain the configuration file of the system model; Extract the model file and binary file in the configuration file to construct parsed data of the system model; Construct a parsing structure in json format according to the parsed data.

3. The method according to claim 2, characterized in that The model file includes information of the system model; the binary file includes size information of the model diagram in the system model, size information of the model elements and coordinate information of the model elements.

4. The method according to claim 3, characterized in that: Mapping the parsed data to a preset parsed structure also includes finding a binary file corresponding to the model graph and the model element according to the model graph information in the parsed data.

5. The method according to claim 4, characterized in that The information of the collection structure of all model diagrams includes the unique identifier of the model diagram, the name of the model diagram, the type of the model diagram, the ID of the package structure to which it belongs, the hierarchical structure identifying the model diagram, and the ID set of all components contained in the model diagram.

6. The method according to claim 4, characterized in that The information of the collection structure of all model elements includes the unique identifier of the model element, the name of the model element, the x-axis coordinate, the y-axis coordinate, the length and width of the model element in the model diagram, the UML type corresponding to the model element, the SysML type corresponding to the model element, the model diagram id, the package id, the port information in the model element, the interface associated with the model element, the attribute information contained in the model element and the association relationship between the model elements.

7. The method according to claim 6, characterized in that The port information in the model element includes a port unique identifier, a port name, a port authority, and a port aggregation mode; The interface associated with the model element includes an interface unique identifier, an interface name, an interface type, an interface application party ID, and an interface provider party ID; The attribute information contained in the model element includes attribute id, attribute name, attribute authority, attribute type, value type when the attribute is DataType, attribute value and attribute identifier; The association relationship of the model elements includes a relationship unique identifier id, a relationship name, a relationship type, a start model element id, an end model element id and a linear relationship authority.

8. A system model structured analysis system based on MDZIP format using the method according to any one of claims 1 to 7, characterized in that: include: The data acquisition module is used to obtain the system model in MDZIP format and construct the parsing data of the system model; The data parsing module is used to map the parsed data into a preset parsing structure to obtain JSON format data of the system model.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.