Method for integration and analysis of sysml functions based on message middleware

CN116776612BActive Publication Date: 2026-09-22COMP APPL RES INST CHINA ACAD OF ENG PHYSICS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310762800.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-26
Publication Date
2026-09-22
Estimated Expiration
2043-06-26

AI Technical Summary

Technical Problem

但现有的系统建模工具在开放性和互操作性上难以满足上述功能需求

Benefits of technology

[0035]本发明至少包括以下有益效果:本发明可实现复杂装备下的系统模型分析、功能集成和可视化展示。具体来说,本发明的方法基于SysMLv2标准规范,采用事件机制和模型元素过滤机制构建面向SysML的分布式系统模型操作与分析机制,满足分布式环境下系统模型操作、功能扩展以及模型数据分析展示的功能。该方法面向复杂装备系统建模领域,旨在解决复杂装备系统建模中存在的模型操作的开放性、模型分析的复杂性以及模型展示的单一性等问题,满足复杂装备下系统模型相关功能快速扩展与可视化展示的需求。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116776612B_ABST
    Figure CN116776612B_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on message middleware's SysML function integration and analysis method, based on SysMLv2 standard specification, using event mechanism and model element filtering mechanism constructs the distributed system model operation and analysis mechanism of facing SysML, realizes distributed SysML model integration and analysis framework on the basis of Restful and message middleware;Wherein the distributed SysML model integration and analysis framework includes system modeling service service interface, event subscription mechanism, Python SysML API, SysML database service.The application provides a kind of based on message middleware's SysML function integration and analysis method, based on SysMLv2 standard specification, using event mechanism and model element filtering mechanism constructs the distributed system model operation and analysis mechanism of facing SysML, satisfies the function of system model operation, functional extension and model data analysis display under distributed environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of complex equipment system modeling. More specifically, this invention relates to a SysML function integration and analysis method based on message middleware. Background Technology

[0002] Model-based systems engineering (MBSE) is a formal application of modeling methodologies to support activities such as system requirements, design, analysis, verification, and validation. These activities begin in the conceptual design phase and continue throughout the design and development lifecycle. System modeling tools based on the standard Systems Modeling Language (SysML) effectively support the implementation of model-based systems engineering in areas such as model modeling, model simulation, and collaborative modeling.

[0003] The development of complex equipment involves integration and collaboration across units, tools, and fields, necessitating that system modeling tools provide convenient and efficient interoperability and functional extension interfaces for modeling, analysis, and visualization. This reduces the difficulty of modeling, analysis, and visualization, meeting the engineering needs of various professionals for efficient modeling, functional analysis, and flexible presentation. However, existing system modeling tools struggle to meet these functional requirements in terms of openness and interoperability. Therefore, this invention proposes a message middleware-based SysML functional integration and analysis method, which enables rapid integration of model analysis, functional integration, and visualization for complex equipment. Summary of the Invention

[0004] One object of the present invention is to solve at least the above-mentioned problems and / or defects, and to provide at least the advantages described below.

[0005] To achieve these objectives and other advantages of the present invention, a SysML function integration and analysis method based on message middleware is provided. Based on the SysMLv2 standard specification, an event mechanism and a model element filtering mechanism are used to construct a distributed system model operation and analysis mechanism for SysML. A distributed SysML model integration and analysis framework is realized on the basis of Restful and message middleware.

[0006] The distributed SysML model integration and analysis framework includes a system modeling service service interface, an event subscription mechanism, a Python SysML API, and a SysML database service.

[0007] Preferably, the construction process of the distributed SysML model integration and analysis framework includes:

[0008] Step 1: Define the platform-independent SysML model synchronization operation interface and the SysML-oriented database service operation interface;

[0009] Step 2: Construct structured query statements based on the SysML model, generate abstract syntax trees, and establish an event management and filtering mechanism based on model element attributes;

[0010] Step 3: Build an interoperability interface for SysML models for the Python programming language, and a distributed SysML model function integration and analysis framework.

[0011] Preferably, in step one, the SysML model synchronization operation interface meets the model element modeling and analysis requirements through an abstract operation interface. The SysML model synchronization operation interface method is as follows:

[0012] S110. Based on the SysML v2 metamodel, define a service-oriented model abstraction operation interface, and abstract SysML v2 metamodel objects into elements, types, characteristics, and relationships.

[0013] S111, Define the CRUD (Create, Read, Update, Delete) interface for element operations under the model;

[0014] S112. In the service-oriented control layer, the calling interface of the above abstract class is service-oriented to meet the needs of adding, deleting, modifying and querying elements.

[0015] In S110, the element implements the basic functional operations of model element operations, including attribute reading and writing, meta-defined attribute reading and writing, element attribute querying, model tree acquisition, inheritance, and adding child elements.

[0016] Relationships enable queries on source, target, and associated elements based on elements.

[0017] Preferably, in step one, the SysML-oriented database service operation interface includes:

[0018] Define a service name manager in the database to provide management functions related to SysML modeling services;

[0019] Define the relevant fields for adding elements, reading attributes, and writing attributes, and implement the persistence of the above information.

[0020] Preferably, in step two, the structured query statement includes: a filtering mechanism that forms SyML model elements from three levels of model element attributes and a data structure that defines the reference object;

[0021] The abstract syntax tree (AST) generation is achieved by parsing key fields in the structured query language using ANTLR to express the AST.

[0022] Preferably, in step two, the event management and filtering mechanism provides a model event data subscription function based on user ID;

[0023] The system modeling service persists the above functions to the SysML database service;

[0024] When a user subscribes to an event, the system parses the user-defined subscription information into a subscription ID, channel name, model element mapper, and expression abstract syntax tree;

[0025] When a user interacts with the model, changes to model elements will add event data to the event manager.

[0026] Preferably, in step three, the SysML model interoperability interface uses Python to implement the model element operation interface of the system modeling service, and builds an event subscription function for model elements based on the publish-subscribe interface of the system modeling service and the publish-subscribe interface of the message middleware.

[0027] The event subscription functionality includes a subscription manager, event handlers, and subscription function interfaces;

[0028] The subscription manager stores the system modeling service ID and the abstract interface of the subscription function. When the event thread receives a subscription message, it triggers the execution of the corresponding subscription function based on the system modeling service to realize the message callback.

[0029] When using a Python service-oriented software architecture to service-orient Python SysML functionality, information on adding Python-extended model elements, setting model attributes, and retrieving model attributes is registered with the SysML database service in the form of operation type and operation URI. A general operation interface for adding elements, setting attributes, and retrieving attributes is provided to the outside world, thus satisfying the expansion of SysML modeling and analysis functions under a distributed framework.

[0030] Preferably, in step three, the SysML model function integration and analysis framework includes SysML database services, system modeling services, SysML Python API, and web-based graphical modeling and display software;

[0031] Among them, the SysML database service provides system modeling service registration and SysML-related database persistence functions;

[0032] The system modeling service provides model modeling functionality, while also offering abstract operation interfaces, tree-based element filtering functionality, and system model event subscription and publishing functionality.

[0033] The SysML Python API provides synchronous and asynchronous call mechanisms related to system model services in the Python environment, supporting system modeling and analysis, and allowing the above functions to be encapsulated as extension functions for models and attributes;

[0034] Graphical modeling and visualization software provides application building tools for system modeling and analysis in a distributed environment.

[0035] This invention offers at least the following advantages: It enables system model analysis, functional integration, and visualization of complex equipment. Specifically, the method of this invention is based on the SysMLv2 standard and employs an event mechanism and a model element filtering mechanism to construct a distributed system model operation and analysis mechanism oriented towards SysML, satisfying the functions of system model operation, functional expansion, and model data analysis and display in a distributed environment. This method is geared towards the field of complex equipment system modeling, aiming to solve problems such as the openness of model operations, the complexity of model analysis, and the uniformity of model display in complex equipment system modeling, and meeting the needs for rapid expansion and visualization of system model-related functions under complex equipment.

[0036] Other advantages, objectives and features of the present invention will become apparent in part from the following description, and in part from those skilled in the art through study and practice of the invention. Attached Figure Description

[0037] Figure 1 The following are the implementation steps of a SysML model function integration and analysis method based on message middleware according to the present invention;

[0038] Figure 2 This invention provides an abstract interface mapping relationship for model elements in a SysML v2 metamodel.

[0039] Figure 3 This invention relates to a mapping relationship between SysML SQL statements and an abstract expression model tree.

[0040] Figure 4 This invention provides a system modeling service model event filtering mechanism.

[0041] Figure 5 This invention provides a Python SysML API implementation mechanism.

[0042] Figure 6 This invention provides a SysML model function integration and analysis startup process; Figure 7 This is a schematic diagram illustrating the functional application of the SysML model. Detailed Implementation

[0043] The present invention will now be described in further detail with reference to the accompanying drawings, so that those skilled in the art can implement it based on the description.

[0044] This invention discloses a SysML function integration and analysis method based on message middleware. Based on the SysMLv2 standard specification, it constructs a distributed system model operation and analysis mechanism for SysML using event mechanisms and model element filtering mechanisms. On the basis of RESTful and message middleware, it implements a distributed SysML model integration and analysis framework consisting of a system modeling service interface, an event subscription mechanism, a Python SysML API, and a SysML database service. The overall idea is to define a platform-independent model element synchronization operation interface and a SysML event publish-subscribe interface based on message middleware. The system modeling service and SysML Python API implement platform-dependent model element operations, including event filtering, event callbacks, event subscriptions, and model element operations, thereby satisfying horizontal functional expansion requirements such as model analysis, function integration, and visualization for SysML system models.

[0045] This approach constructs a platform-independent model interoperability interface based on the SysML v2 metamodel. Through operation interfaces such as model elements, element filtering, and event data publish / subscribe, it satisfies operations like model attribute reading / writing, related data subscription, and functional expansion, while also allowing the platform-independent operation interface to be extended to programming language APIs such as Java / Python. A structured query syntax based on the SysML v2 metamodel is constructed to achieve model element filtering and event data matching under complex conditions. When model elements change, event data filtering and publishing are implemented through abstract syntax tree parameter calculation. A publish / subscribe mechanism using service interfaces and message middleware enables distributed model element attribute operations and event management, reducing model analysis complexity and enabling rapid expansion of model modeling and analysis capabilities under programming languages.

[0046] To fully illustrate the SysML function integration and analysis method based on message middleware of the present invention, the implementation process of the present invention can be divided into the following steps:

[0047] Step 1: Define a platform-independent SysML model synchronization operation interface, which meets the modeling and analysis needs of model elements through abstract operation interfaces such as model, element, property, type, and traceability.

[0048] Step 2: Define the SysML-oriented database service operation interface to meet the requirements of distributed system modeling service management and model element attribute function extension management;

[0049] Step 3: Construct structured query statements and generate abstract syntax trees based on the SysML model to realize structured query and element filtering functions under the model / element / attribute;

[0050] Step 4: Construct an event management and filtering mechanism based on model element attributes, and implement a model element filtering and event publishing mechanism based on abstract syntax trees;

[0051] Step 5: Build an interoperability interface for SysML models in the Python programming language, and implement synchronous and asynchronous calling mechanisms under this programming language;

[0052] Step Six: Construct a distributed SysML model function integration and analysis framework to realize the functional expansion and distributed management of SysML model modeling and analysis.

[0053] Further, step one involves defining service-oriented abstract operation interfaces for the model based on the SysML v2 metamodel. This abstracts SysML v2 metamodel objects into elements (Element), types (Type), features (Feature), and relationships (Relationship). Elements implement basic model element operations, including attribute reading / writing, meta-defined attribute reading / writing, element attribute querying, model tree retrieval, inheritance, and adding child elements. Relationships, based on elements, implement source, target, and querying of associated elements. Next, CRUD (Create, Read, Update, Delete) interfaces for element operations under the model are defined. Finally, the service-oriented control layer provides services for calling the above abstract classes, satisfying the requirements for adding, reading, updating, and querying elements.

[0054] Simultaneously, extended functions for adding elements, reading attributes, and writing attributes are established under the aforementioned element abstract interface. A type manager for adding elements, reading attributes, and writing attributes is introduced into the system modeling module. Abstract operation interfaces for elements, reading attributes, and writing attributes are defined, and a mapping relationship between operation types and abstract operation interfaces is established in the form of key-value pairs, thereby achieving the purpose of expanding element types and element attributes.

[0055] Further: Step 2 involves building a distributed SysML modeling service management and extension mechanism. A service name manager is defined in the database to implement management functions related to SysML modeling services. The main fields include key information such as service name, service IP address, and host name, providing management services such as adding, deleting, and querying services.

[0056] Simultaneously, relevant fields for adding elements, reading attributes, and writing attributes are defined, and the above information is persisted. When the system modeling service function is updated, the configuration information of the custom extended function can be read from the database, and the function mapping of operation type-service API call can be expanded to enable users to call the custom extended function through the system modeling service in a distributed environment.

[0057] Further: Step 3 constructs a structured query statement for the SysML model, forming a filtering mechanism for SysML model elements at three levels: model element attributes. Specifically, `from` filters models and elements, using dots to associate model IDs with element IDs and commas to perform summation operations between sibling IDs; `where` implements conditional queries, with the attribute name preceding the operator and the attribute value following it, including operators such as greater than, equal to, and less than; `select` generates new lists of attribute values ​​and referenced objects based on attributes or operators.

[0058] Define the data structure for referenced objects, using `@id` and `@type` as fixed attributes, and store key-value data in a Map format. To address the nested hierarchy caused by model element references in the system's modeling language, the network configuration automatically converts in-memory objects to referenced objects, including fixed fields such as name, element type, and display information.

[0059] This paper utilizes ANTLR to parse key fields such as select, from, and where in the Structured Query Language (SQL) and implements the parsing of the Expression Abstract Syntax Tree (EAST). The EAST consists of simple constraints, compound constraints, and operators. Attribute values ​​can be separated using dots, and the paper supports retrieving the attribute values ​​of attribute b under attribute a.

[0060] Further: Step four establishes an event management and filtering mechanism for model element attributes, providing user-id-based model event data subscription functionality, including subscription, unsubscription, and modification of subscription information. The system's modeling service persists these functions to the SysML database service. When a user subscribes to an event, the system parses the user-defined subscription information into a subscription ID, channel name, model element mapper, and expression abstract syntax tree.

[0061] When a user interacts with a model, changes occur to model elements, and event data is added to the event manager. The event manager first determines whether the event belongs to a model element mapper under a specific subscription ID based on the model ID and element ID. If the conditions are met, the parameter calculation function is used to perform parameter evaluation under the expression. When the conditions are satisfied, the message is published to the specified client through the message middleware's publishing mechanism.

[0062] Further: Step five involves constructing a SysML model interoperability API for Python, implementing the model element operation interface of the system modeling service using Python. Simultaneously, based on the publish-subscribe interface of the system modeling service and the publish-subscribe interface of the message middleware, an event subscription function for model elements is built. The subscription function consists of a subscription manager, event handlers, and subscription function interfaces. The subscription manager provides event subscription functionality, allowing users to add model service IDs, subscription rules, and callback interfaces to the subscription manager through the subscription interface. The subscription manager stores the system modeling service ID and the abstract interface of the subscription function. When the event thread receives a subscription message, it triggers the execution of the corresponding subscription function based on the system modeling service, realizing the message callback.

[0063] The Python service-oriented software architecture is adopted to service-orientedize the Python SysML functions. The addition of model elements, setting of model attributes, and retrieval of model attributes extended by Python are registered to the SysML database service in the form of operation type and operation URI. A general operation interface for adding elements, setting attributes, and retrieving attributes is provided to the outside world, so as to meet the expansion of SysML modeling and analysis functions under the distributed framework.

[0064] Further: Step six involves constructing a distributed SysML model functionality integration and analysis framework, consisting of a SysML database service, a system modeling service, a SysML Python API, and web-based graphical modeling and visualization software. Specifically, the SysML database service implements system modeling service registration and SysML-related database persistence; the system modeling service implements model modeling functions, providing abstract operation interfaces for models, elements, and relationships, as well as element filtering based on model trees, and system model event subscription and publishing functions; the SysML Python API implements synchronous and asynchronous call mechanisms related to system model services in a Python environment, supporting system modeling and analysis, and also supports encapsulating the above functions as extended functions for models and attributes; the graphical modeling software based on the system modeling service enables the construction of applications related to system modeling and analysis in a distributed environment.

[0065] When a related service starts, it registers its service information, including IP address and HostName, with the SysML database service. The system modeling service reads configuration information and extended functionality information of model element attributes from the database and adds them to the element attribute operation manager. Users can then access all modeling service-related functions through the system modeling service. When a user manipulates the model and model elements change, the event management and filtering mechanism of the model element attributes is triggered, publishing the event information to the designated message middleware. The user program receives the associated event data, triggers an update, and updates the data processing results.

[0066] The effects of this invention include:

[0067] 1) Provides open model / element / attribute operation interfaces and function extension interfaces to meet users' functional extension needs in model modeling and model analysis;

[0068] 2) A model element filtering mechanism based on structured query language facilitates users in filtering and displaying related model data on the basis of the model tree;

[0069] 3) The Python-oriented SysML model API operation interface reduces the difficulty of model modeling and analysis, and improves the model modeling and analysis capabilities of professional designers.

[0070] Example:

[0071] Step one, the abstract interface for element-related types is defined as follows:

[0072]

[0073]

[0074]

[0075] The data structure definition for the manager related to element and attribute value read / write is as follows:

[0076]

[0077] IAddElement, IgetValue, and IsetValue are abstract interfaces for adding, reading, and writing attribute values ​​to elements, respectively. Users can extend functionality in Java code based on these interfaces. At the same time, the modeling service can extend user-defined service functions based on these interfaces, with the call parameters being the server address and related operation parameters.

[0078] Step two, the URI data structure definitions related to server registration management and function extension are as follows:

[0079]

[0080] Based on the aforementioned persistent data structure, the SysML database management service provides functions such as service registration, service startup, and access address query; the function registration manager provides functions for updating models and attributes under service associations. When an extended service starts, the relevant data table information is automatically updated. The system modeling service retrieves extended function information from the tables and adds it to the corresponding type recognizer.

[0081] Step 3: SysML structured query statements are text-based query syntax based on model ID and element ID, and composed of key fields such as select, from, and where. The data structure definition for referenced objects is as follows: when Object is a referenced object, it is automatically processed into a map data structure containing id and type.

[0082]

[0083]

[0084] In this context, `select` specifies the model element's attribute ID, which must meet the requirements in the attribute value retrieval manager. `from` specifies the range of model elements to be selected, and can be used in various ways, such as `projectId`, `projectId.elementId`, `elementId12`, `projectId1.elementId1`, `projectId2.elementId2`, etc., to perform queries on a single model, elements within a single model, or different elements across multiple models. In `where`, `key` is the attribute ID, which must meet the requirements in the attribute value retrieval manager, and its value is the corresponding attribute value. `property` can be linked with multiple attributes using commas; for example, `owner.qualifiedName` represents the complete name of the model element of its parent node.

[0085] The expression abstract syntax tree consists of simple constraints, compound constraints, and operators. Simple constraints express the logical relationship between attribute names and expected attribute values, while compound constraints implement unary operators (>=, <=, >, <, and =, etc.), binary operators (+, -, *, / ), and compound operators (sqrt, sum, etc.).

[0086] The operator data structure is defined as follows:

[0087]

[0088] Step four: The model event manager implements the user event data subscription management function, and its data structure is defined as follows:

[0089]

[0090]

[0091] The user inputs subscription rules into the event data. SubEventManager encapsulates the subscription data into event subscription data (SubEventData) and parses the rules into a model selection range and an expression abstract tree. Users can remotely modify subscription rules based on the subscription ID.

[0092] When the model changes, the system modeling service sends the event data SubEventData to the subscription thread. The user polls the model element ID in the event data to see if the element is within the scope of the subscription elements. If the condition is met, the system calculates whether the condition is met through the parameter expression. If the condition is met, the subscription data is sent to the message middleware.

[0093] Step 5: The Python SysML API encapsulates the service-oriented interface-related model element functionality into a Python API, and implements subscription functionality through an event manager. The Python event callback function is defined as follows:

[0094]

[0095]

[0096] After the user sets the server name of SysMLService, the address of the system service is obtained from the SysML database service, and then a service connection port is created. Based on this, the operation interfaces for models, elements, and relationships are obtained through the interface to perform related operations.

[0097] Step Six: In the distributed SysML model functionality integration and analysis framework, the SysML database service can exist independently or be integrated into other microservice architecture managers, but it must provide SysML-related service-oriented API operation interfaces. The framework loading order is as follows: First, the SysML database service is started, providing service-oriented interfaces at a fixed address; second, the system modeling service reads system configuration information from the SysML database service based on the database service address, and loads extended functions related to models, elements, and attributes based on the configuration information; the Python SysML API reads the connection address of the SysML system modeling service and the middleware connection address from the SysML database service based on the database service address, thereby establishing the relationship between the system modeling service and the Python SysML API.

[0098] When a user invokes extended functions related to the system modeling service, the service determines whether it is an extended function based on the element type or attribute ID, and then calls the Python SysML extended function through the service interface. Users can extend functions through the Python SysML API, perform system model analysis using the Python SysML API, and implement correlation analysis and visualization of model data through the Python integration framework.

[0099] The above solution is merely an illustration of a preferred example and is not limited thereto. When implementing this invention, appropriate substitutions and / or modifications can be made according to the user's needs.

[0100] The number of devices and processing scale described herein are for the purpose of simplifying the description of the invention. Applications, modifications, and variations of the invention will be readily apparent to those skilled in the art.

[0101] Although embodiments of the present invention have been disclosed above, they are not limited to the applications listed in the specification and embodiments. It can be applied to various fields suitable for the present invention. Other modifications can be readily made by those skilled in the art. Therefore, without departing from the general concept defined by the claims and their equivalents, the present invention is not limited to the specific details and examples shown and described herein.

Claims

1. A SysML function integration and analysis method based on message middleware, characterized in that, Based on the SysMLv2 standard specification, an event mechanism and a model element filtering mechanism are used to build a distributed system model operation and analysis mechanism for SysML. A distributed SysML model integration and analysis framework is realized on the basis of Restful and message middleware. The distributed SysML model integration and analysis framework includes a system modeling service service interface, an event subscription mechanism, a Python SysML API, and a SysML database service. The construction process of the distributed SysML model integration and analysis framework includes: Step 1: Define the platform-independent SysML model synchronization operation interface and the SysML-oriented database service operation interface; Step 2: Construct structured query statements based on the SysML model, generate abstract syntax trees, and establish an event management and filtering mechanism based on model element attributes; Step 3: Build an interoperability interface for SysML models for the Python programming language, and a distributed SysML model function integration and analysis framework.

2. The SysML function integration and analysis method based on message middleware as described in claim 1, characterized in that, In step one, the SysML model synchronization operation interface meets the modeling and analysis needs of model elements through an abstract operation interface. The working content of the SysML model synchronization operation interface includes: S110. Based on the SysML v2 metamodel, define a service-oriented model abstraction operation interface, and abstract SysML v2 metamodel objects into elements, types, characteristics, and relationships. S111, Define the CRUD (Create, Read, Update, Delete) interface for element operations under the model; S112. In the service-oriented control layer, the calling interface of the above abstract class is service-oriented to meet the needs of adding, deleting, modifying and querying elements. In S110, the element implements the basic functional operations of model element operations, including attribute reading and writing, meta-defined attribute reading and writing, element attribute querying, model tree acquisition, inheritance, and adding child elements. Relationships enable queries on source, target, and associated elements based on elements.

3. The SysML function integration and analysis method based on message middleware as described in claim 1, characterized in that, In step one, the SysML-oriented database service operation interface includes: Define a service name manager in the database to provide management functions related to SysML modeling services; Define the relevant fields for adding elements, reading attributes, and writing attributes, and implement the persistence of the above information.

4. The SysML function integration and analysis method based on message middleware as described in claim 1, characterized in that, In step two, the structured query statement includes: a filtering mechanism that forms SyML model elements from three levels of model element attributes and a data structure that defines the reference object; The abstract syntax tree (AST) generation is achieved by parsing key fields in the structured query language using ANTLR to express the AST.

5. The SysML function integration and analysis method based on message middleware as described in claim 1, characterized in that, In step two, the event management and filtering mechanism provides a model event data subscription function based on user ID. The system modeling service persists the above functions to the SysML database service; When a user subscribes to an event, the system parses the user-defined subscription information into a subscription ID, channel name, model element mapper, and expression abstract syntax tree; When a user interacts with the model, changes to model elements will add event data to the event manager.

6. The SysML function integration and analysis method based on message middleware as described in claim 1, characterized in that, In step three, the SysML model interoperability interface uses Python to implement the model element operation interface of the system modeling service, and builds an event subscription function for model elements based on the publish-subscribe interface of the system modeling service and the publish-subscribe interface of the message middleware. The event subscription functionality includes a subscription manager, event handlers, and subscription function interfaces; The subscription manager stores the system modeling service ID and the abstract interface of the subscription function. When the event thread receives a subscription message, it triggers the execution of the corresponding subscription function based on the system modeling service to realize the message callback. When using a Python service-oriented software architecture to service-orient Python SysML functionality, information on adding Python-extended model elements, setting model attributes, and retrieving model attributes is registered with the SysML database service in the form of operation type and operation URI. A general operation interface for adding elements, setting attributes, and retrieving attributes is provided to the outside world, thus satisfying the expansion of SysML modeling and analysis functions under a distributed framework.

7. The SysML function integration and analysis method based on message middleware as described in claim 1, characterized in that, In step three, the SysML model function integration and analysis framework includes SysML database services, system modeling services, SysML Python API, and web-based graphical modeling and visualization software; Among them, the SysML database service provides system modeling service registration and SysML-related database persistence functions; The system modeling service provides model modeling functionality, while also offering abstract operation interfaces, tree-based element filtering functionality, and system model event subscription and publishing functionality. The SysML Python API provides synchronous and asynchronous call mechanisms related to system model services in the Python environment, supporting system modeling and analysis, and allowing the above functions to be encapsulated as extension functions for models and attributes; Graphical modeling and visualization software provides application building tools for system modeling and analysis in a distributed environment.

Citation Information

Patent Citations

  • SysML modeling platform based on Web

    CN111427556A

  • Requirement manager for UML and SysML application

    US8589858B1