Disclosure of Invention
Aiming at the problems that the semantics of the graphic primitives of the SysML language are incomplete and the support for safety and reliability modeling and analysis is lacked, the invention provides a safe and reliable semantic extension and modeling method of the SysML language, which supports the integration of safety analysis in a system engineering method based on the SysML.
The purpose of the invention is realized by the following technical scheme:
a safe and reliable semantic extension and modeling method of SysML language comprises the following steps:
step S1: expanding the demand graph by defining safety level and redundancy attributes;
step S2: constructing a redundancy semantic model by defining an assembly construction type with redundancy attributes, an output voting assembly construction type and a degradation and failure state construction type;
step S3: establishing a failure mode and an influence analysis semantic model by defining a function construction type and a failure mode construction type;
step S4: establishing a fault tree semantic model by defining an event constructor and a logic gate constructor;
step S5: constructing an expanded demand graph, a redundant graph and a fault tree graph model, and establishing association between the graph model and the semantic model;
step S6: XML metadata exchange (XMI) files generated based on the extended SysML model are analyzed, an analysis tree for organizing data in a tree structure is constructed, and on the basis, the analysis and the update of each model are realized, and the integration of system engineering and safety analysis is supported.
Compared with the prior art, the invention has the following advantages:
the invention is characterized in that the safe and reliable semantics of SysML language are expanded: (1) by expanding the requirement graph, defining safety level and redundant fault-tolerant attributes to effectively support safety consistency check of requirements and design; (2) the design of a redundant fault-tolerant system architecture is supported by constructing a redundant semantic model; (3) the integration of failure modes and influence analysis with a system design process is supported by constructing an FMEA semantic model; (4) by constructing a fault tree semantic model, the generation of a fault tree by a SysML model is supported, and the causal relationship of a failure mode is qualitatively or quantitatively inferred; (5) by constructing the extended demand graph, the redundant graph and the fault tree graph model and establishing the association between the graph model and the semantic model, the visual modeling, analysis and verification of safe and reliable semantics are supported. Therefore, the safety and reliability analysis is organically integrated into the system engineering process, the consistency between the safety analysis and the system design is ensured, the error is avoided as soon as possible, and the system development time is shortened.
Detailed Description
The technical solution of the present invention is further described below with reference to the accompanying drawings, but not limited thereto, and any modification or equivalent replacement of the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention shall be covered by the protection scope of the present invention.
The invention provides a safe and reliable semantic expansion and modeling method of SysML, which expands the safe and reliable semantics of a demand graph, increases redundant semantics, failure modes, influences analysis semantics and fault tree semantics, and constructs a visual model, so that the SysML supports the automatic extraction of safe and reliable analysis related information from a system model and the further improvement of the system model by utilizing safe and reliable analysis, thereby effectively fusing the model-based system engineering and safe and reliable analysis processes, being beneficial to ensuring the consistency between safe analysis and system design, and solving the problem of designing a complex safety key system at present. As shown in fig. 1, the method comprises the following steps:
step S1: the demand graph is extended by defining security levels and redundancy attributes. As shown in fig. 3, the specific steps are as follows:
step S101: a Non-Functional Requirement (Non-Functional Requirement) constructor inherits from a Requirement (Requirement) constructor;
step S102: the security Requirement (Safety Requirement) construction type is inherited from a Non-Functional Requirement (Non-Functional Requirement) construction type, and Level, Risk and Description fields are added to an attribute domain of the security Requirement (Safety Requirement) construction type and are respectively used for representing the Level (system Level or block Level), Risk Level (high, medium and low) and Risk Description to which the security Requirement belongs;
step S103: expanding a Functional Requirement (Functional Requirement) construction type from the Requirement construction type, adding a Level field in the Functional Requirement construction type for describing a Requirement Level to which the Functional Requirement construction type belongs, and adding a reduce field to indicate whether Redundant design is required or not;
step S104: finally, the Safety-related Requirement (functional Requirement) constructor inherits from the functional Requirement constructor.
Step S2: and constructing a redundancy semantic model by defining a component construction type with redundancy attributes, an output voting component construction type and a degradation and failure state construction type. As shown in fig. 4, the specific steps are as follows:
step S201: the method comprises the steps of extending a Class meta-Class definition Component (Component) constructor, wherein the attributes of the Component comprise input and output ports, configuration and the like of the Component, and defining a redundancy attribute label in the Component constructor to support modeling redundancy fault-tolerant components;
step S202: the method comprises the steps of expanding a Class meta Class to define a Port structure type (Port), deriving a component Port migration relationship Pipe structure type from an Association meta Class, wherein an attribute source of the Port structure type represents an output source, a value of the Port structure type is a component name and an output Port name, a target of the Port structure type represents an input target, and a value of the target is a component name and an input Port name;
step S203: by expanding the Class meta Class, defining an output voting component (VoteComponent), wherein the attribute vote of the output voting component represents a voting mechanism;
step S204: by extending the State meta-class, a Degraded State constructor (Degraded) and a fault State constructor (Failed) are defined, and the redundant mechanism and the behavior information of the functional disorder, such as the Degraded State and the fault State, are simulated.
Step S3: and establishing a failure mode and an influence analysis semantic model by defining a function construction type and a failure mode construction type. As shown in fig. 5, the specific steps are as follows:
step S301: deriving a functional construct (Function) from the Activity element class;
step S302: a failure mode constructor (FailureMode) is derived from the Parameter and attribute meta-class, the failure mode having attributes of severity, frequency, risk priority RPN, cause of failure, direct impact, system impact, suggested measures, and the like. Each function can have a plurality of different failure modes, and a failure mode and influence analysis data table can be constructed through the failure modes and the influence analysis semantic model.
Step S4: and constructing a fault tree semantic model by defining an event constructor and a logic gate constructor. As shown in fig. 6, the specific steps are as follows:
step S401: deriving an Event (Event) constructor from a Class meta-Class, the attribute field Type of which represents the Type of the Event, such as top Event, base Event, middle Event, unexpanded Event, switch Event, conditional Event, etc.;
step S402: and deriving a logic gate structure Type from the Class meta-Class, wherein the attribute field Type of the logic gate structure Type represents the Type, input events, output events and the like of the logic gate, and the Type of the logic gate comprises one or more of an AND gate, an OR gate, a NOT gate, an XOR gate, a sequential AND gate, a disable gate, a voting gate and the like. The input event of a logic gate is the "cause" of the output event and the output event of the logic gate is the "effect" of the input event.
Step S5: and constructing an expanded demand graph, a redundant graph and a fault tree graph model, and establishing association between the graph model and the semantic model. The method comprises the following specific steps:
step S501: establishing an extended requirement graph model by constructing primitive identifications such as safety requirements, safety related requirements and the like;
step S502: establishing a redundant graph model by constructing primitive identifications such as components, ports, pipeline connecting lines, voting components, degradation states, fault states and the like, and associating the graph model with a semantic model;
step S503: constructing event symbols (basic events, unexpanded events, top events, intermediate events, switch events, conditional events) of a fault tree, logic gate symbols (AND gate, OR gate, NOT gate, XOR gate, sequential AND gate, forbidden gate, voting gate), transfer symbols, connecting lines and other graphic element identifications, creating a fault tree graphic model, and associating the graphic model with a semantic model.
Step S6: XML metadata exchange (XMI) files generated based on the extended SysML model are analyzed, an analysis tree for organizing data in a tree structure is constructed, and on the basis, the analysis and the update of each model are realized, and the integration of system engineering and safety analysis is supported.
For example, an expanded demand graph is utilized to enable two-way traceability between the safety requirements of a safety critical system and the design artifact. And analyzing the activity diagram information to generate a functional FMEA data table, executing functional FMEA analysis on the basis, and further updating and perfecting the SysML model. And analyzing the module definition diagram and the internal module diagram information to generate a module FMEA data table, and performing module FMEA analysis on the basis. Analyzing the internal module diagram information, automatically generating a fault tree, and carrying out qualitative analysis on the fault tree to obtain information such as a minimum cut set, a minimum diameter set, structural importance and the like of the fault tree; or carrying out quantitative analysis, calculating information such as the occurrence probability of the top event and the like, and visually displaying safe and reliable analysis and system engineering results in a chart form.
The invention expands the safe and reliable semantics of SysML, supports the automatic extraction of safe and reliable analysis related information from the system model, and also supports the further improvement of the system model by utilizing safe and reliable analysis, thereby effectively fusing the system engineering based on the model and the safe and reliable analysis process, being beneficial to ensuring the consistency between the safe analysis and the system design and solving the problem of designing a complex safe key system at present.