General simulation model construction method for crosslinking equipment of military equipment software system
By establishing a four-dimensional universal conceptual model and XML association aggregation model of cross-linking equipment, and using Velocity template engine technology to automatically generate simulation model code, the problem of lack of versatility and scalability of simulation models in the existing technology is solved, and rapid construction and reduction are achieved. Cost-effective system-level testing support.
Patent Information
- Application Number
- CN202410749341.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-10
AI Technical Summary
The cross-linking equipment simulation model of existing military equipment software systems lacks versatility and scalability, resulting in customized development that consumes a lot of manpower and resources and cannot quickly adapt to changes in new cross-linking equipment or interface forms.
By establishing a four-dimensional universal conceptual model of cross-linked equipment, including classification, decomposition, and association aggregation of equipment behavior, interfaces, and messages, XML description language and Velocity template engine technology are used to automatically generate simulation model codes to achieve rapid construction of cross-linked equipment simulation models. .
It realizes the construction of a universal simulation model of cross-linked equipment in military equipment software systems, supports system-level testing, reduces testing costs, and has applicability and scalability.
Smart Images

Figure CN118626058A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of equipment digital simulation, and in particular to a method for constructing a universal simulation model of cross-linked equipment of a military equipment software system. Background Art
[0002] The military equipment software system is a complex giant system involving various arms and multiple professional fields. With the development of equipment systematization and digitalization, the military equipment software system is becoming more and more complex, and its external cross-linking equipment is complex and diverse. The system needs to coordinate with the external cross-linking equipment reliably to perform its mission. System-level testing is an important technical means to ensure the mission capability of the military equipment software system. The system-level test environment needs to connect various external cross-linking equipment to build an operating environment similar to the actual military information equipment system to verify the reliability of the system mission. However, the physical conditions of external cross-linking equipment are generally not available during system-level testing, and a simulation model of the cross-linking equipment needs to be built.
[0003] A simulation model is a method of using a computer to simulate the characteristics and behaviors of the simulated object. At present, the simulation model of the cross-linked equipment of the military equipment software system generally adopts a customized development method, using computer programs to simulate the characteristics and behaviors of specific equipment, such as equipment behavior, interface, data and data processing, and the resulting simulation model is bound to the specific cross-linked equipment.
[0004] The external cross-linking devices of military equipment software systems are complex and diverse. Once the interface form, interactive message or interactive mode of the customized simulation model changes, it needs to be customized and developed again, which consumes a lot of manpower and resource costs and is not applicable and universal. In addition, with the emergence of new cross-linking devices or new interface forms in the system, new simulation models need to be built, which is not scalable. Based on the above analysis, there is currently a lack of a universal simulation model construction method for cross-linking devices that can quickly generate various cross-linking device simulation models to support system-level testing of military equipment software. Summary of the invention
[0005] In view of the fact that the existing military equipment software system cross-linking equipment simulation model is not universal and extensible, this application proposes a method for constructing a universal simulation model of military equipment software system cross-linking equipment, including the following steps:
[0006] Establish a general concept model of cross-linking equipment. By analyzing the common characteristics of cross-linking equipment, establish a four-dimensional general concept model of cross-linking equipment Emod = (A, I, M, R), where A represents device behavior, I represents device interface, M represents interface message, and R represents association aggregation;
[0007] The device behavior dimension of the general concept model is classified and decomposed to establish a four-layer device behavior tree model A; the second-layer node of tree A is the device behavior type set {A i}, the third-layer node is the action rule set {A ij}, the fourth-layer node is the action attribute set {A ijk};
[0008] The device interface dimension of the general conceptual model is classified and decomposed to establish a four-layer device interface tree model I. The second-layer node of tree I is the device interface type set {I i}, the third-layer node is the interface protocol set {I ij}, the fourth-layer node is the interface protocol specification set {I ijk};
[0009] The interface message dimension of the general conceptual model is classified and decomposed to establish a four-layer interface message tree model M. The second-layer nodes of the tree M are the device interface type set and the message type set {M i}, the third-layer node is a specific message set {M ij}, the fourth-layer node is the message protocol specification {M ijk};
[0010] Based on the device behavior tree model A, the device interface tree model I, and the interface message tree model M, the specific characteristics and behaviors of the cross-linked devices are analyzed, and the three tree models are associated and aggregated layer by layer from top to bottom;
[0011] Use XML as the model description language, define the XML tags of each element in the tree model, model the fusion association aggregation results of the third and fourth layer nodes of the tree model, and form an XML association aggregation model;
[0012] The Velocity template engine technology is adopted, and the mapping rules for converting the key elements of the XML model into code provided by the Velocity template designed according to the semantics and syntax of the programming language are used to map the elements of the XML association aggregation model into the Velocity template, so as to realize the automatic generation of the cross-linked equipment simulation model code and thus build a cross-linked equipment simulation model.
[0013] Furthermore, the establishment of a general conceptual model of cross-linking equipment specifically includes:
[0014] Select cross-linking devices of multiple military equipment software systems with different architectures and types for analysis, summarize, refine and analyze device behaviors, interface forms and interface messages, and extract common features of cross-linking devices;
[0015] The common characteristics can be summarized into three key elements: device behavior, device interface, and interface message, as well as the behavior pattern of "device behavior associated with device interface and interface message".
[0016] Furthermore, establishing a device behavior tree model specifically includes:
[0017] According to the analysis of the common characteristics of cross-linked equipment in military equipment software systems, the equipment behavior dimension of the general concept model is classified and decomposed, and a 4-layer equipment behavior tree model A is established;
[0018] The second-level nodes of tree A are the device behavior type set {A i}, including 4 basic behaviors: motivational behavior, display behavior, feedback behavior, and forwarding behavior;
[0019] The third-level nodes of tree A are action rule sets {A ij}, mainly including generate message -> send message, receive message -> display message, receive message -> display message -> generate message -> feedback message, receive message -> display message -> forward message;
[0020] The fourth-level nodes of tree A are action attribute sets {A ijk}, including source node, destination node, and sending / receiving cycle, where a cycle of 0 indicates a single time.
[0021] Furthermore, establishing the device interface tree model specifically includes:
[0022] According to the analysis of the common characteristics of military equipment software system cross-linking equipment, the equipment interface dimension of the general concept model is classified and decomposed, and a 4-layer equipment interface tree model I is established;
[0023] The second-level nodes of tree I are interface type sets {I i}, including network port, serial port, and CAN port;
[0024] The third-layer nodes of tree I are interface protocol sets {I ij}, including TCP, UDP, DDS, HTTP, RS232, RS422, RS485;
[0025] The fourth-level nodes of tree I are interface protocol specifications {I ijk}, including interface functions and interface parameters.
[0026] Furthermore, establishing the interface message tree model specifically includes:
[0027] According to the analysis of the common characteristics of military equipment software system cross-linking equipment, the interface message dimension of the general concept model is classified and decomposed, and a 4-layer interface message tree model M is established;
[0028] The second-layer node of tree M is the message type set {M i}, including data messages and control messages;
[0029] The third-layer nodes of tree M are specific messages {M ij}, where data messages include navigation, weather, target track, and equipment status messages, and control messages include control instructions and command orders;
[0030] The fourth-layer node of tree M is the message protocol specification {M ijk}, mainly describes the message field type definition, including field type, length, and constraints.
[0031] Furthermore, the association aggregation based on the tree model specifically includes:
[0032] Determine the device behavior type based on the cross-linking device characteristics and behaviors of the specific military equipment software system. According to the device behavior type, in accordance with the principle of "device behavior associated with device interface and interface message", select behaviors, interfaces, and messages in the device behavior tree, device interface tree, and interface message tree for association aggregation.
[0033] Furthermore, the process of association aggregation includes:
[0034] Perform tree model second-layer node association aggregation, and select behavior type A in device behavior tree A according to the specific cross-linked device behavior type determined. i ; According to the principle of "behavior type associated with interface type and message type", according to A i Behavior, determine the associated interface type I in the device interface tree I and interface message tree M j and message type M k , perform association aggregation on the second-layer nodes of the tree model, and the association aggregation result can be expressed as {A i , I j , M k};
[0035] Perform the tree model three-layer node association aggregation, based on the second-layer node association aggregation results, A i The subtree searches down to the third-level node and determines the action rule A of the third-level node ix , respectively according to A ix Action, according to the principle that "the action "generate message" is only associated with "interface protocol", and the actions "send message" and "receive message" are associated with "interface protocol" and "message protocol", in I j Determine the associated interface protocol I in the next layer of nodes in the subtree jy , determine the associated message protocol M in the next layer of nodes in the Mk subtree kz , perform three-layer node association aggregation of the tree model, and the association aggregation can be expressed as { ix ,I jy 、M kz >, iy 、M ky >, <…>};
[0036] The third and fourth layer nodes of the tree model are fused and associated. Based on the results of the third layer node association and aggregation, the Aix action subtree is integrated with the action attribute Aix1 of the next layer, the Ijy interface protocol subtree is integrated with the interface protocol specification Ijy of the next layer, and the Mkz message protocol subtree is integrated with the message protocol specification Mkz of the first layer. The third and fourth layer nodes of the tree model are fused and associated. The fusion association and aggregation can be expressed as {<Aix(Aix1)、Ijy(Ijy1)、Mkz(Mkz1)> ,<Aiy(Aiy1)、Mky(Mky1)> , <…>}.
[0037] Furthermore, the basic mapping rules for converting the key elements of the XML association aggregation model into code include:
[0038] The cross-linking device behavior and action rule elements are converted into the cross-linking device behavior logic code;
[0039] The device interface and interface protocol elements associated with the action are converted into codes for establishing a connection between the cross-linked device and the system;
[0040] The interface message and message protocol elements associated with the action are converted into the message data code operated by the action.
[0041] The method for constructing a universal simulation model of cross-linking equipment of a military equipment software system provided by the present invention has the following beneficial effects compared with the prior art:
[0042] The present invention proposes a universal simulation model suitable for constructing cross-linking equipment of a military equipment software system. This model can be used to quickly construct simulation models of various cross-linking equipment of the system, effectively support system-level testing, and reduce testing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A diagram showing the construction process of a general simulation model for cross-linking equipment of a military equipment software system of the present invention;
[0044] Figure 2 A device behavior tree model diagram of a universal simulation model of a cross-linking device of the present invention;
[0045] Figure 3 It is a device interface tree model diagram of the universal simulation model of the cross-linking device of the present invention;
[0046] Figure 4 This is an interface message tree model diagram of the universal simulation model of the cross-linking device of the present invention. DETAILED DESCRIPTION
[0047] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention is further described below in conjunction with the accompanying drawings and specific implementation methods.
[0048] Attached Figure 1A process diagram of building a universal simulation model for cross-linked equipment is given. The method for building a universal simulation model for cross-linked equipment in a military equipment software system proposed in this application includes the following steps:
[0049] The first step is to establish a general conceptual model of cross-linking equipment
[0050] Select multiple cross-linked devices of different architectures and different types of military equipment software systems for analysis, summarize, refine, and analyze them from aspects such as device behavior, interface form, and interface message, and extract the common characteristics of cross-linked devices. Specifically, the common characteristics can be summarized into three key elements: device behavior, device interface, and interface message, as well as the behavior mode of "device behavior associated with device interface and interface message". Establish a general conceptual model E based on the common characteristics of cross-linked devices mod , as shown below:
[0051] E mod =(A, I, M, R)
[0052] In the formula: A represents the device behavior set, I represents the device interface set, M represents the interface message set, and R represents the association mapping. The device behavior, device interface, and interface message are parameters, and the association mapping is an aggregation method.
[0053] Step 2: Build a device behavior tree model
[0054] According to the analysis of the common characteristics of military equipment software system cross-linking equipment, the equipment behavior dimension of the general concept model is classified and decomposed, and a 4-layer equipment behavior tree model A is established. The equipment behavior tree model A is shown in the attached figure. Figure 2 As shown. The second-level nodes of tree A are the device behavior type set {A i}, including 4 basic behaviors: incentive behavior, display behavior, feedback behavior, and forwarding behavior; the three-layer nodes of tree A are action rule sets {A ij}, mainly including generating message -> sending message, receiving message -> displaying message, receiving message -> displaying message -> generating message -> feedback message, receiving message -> displaying message -> forwarding message, etc.; the four-layer node of tree A is the behavior action attribute set {A ijk}, including source node, destination node, sending / receiving cycle, etc., where a cycle of 0 means single time.
[0055] The third step is to establish the device interface tree model
[0056] According to the analysis of the common characteristics of military equipment software system cross-linking equipment, the equipment interface dimension of the general concept model is classified and decomposed, and a 4-layer equipment interface tree model I is established. The equipment interface tree model I is shown in the attached figure. Figure 3 As shown. The second-layer node of tree I is the interface type set {I i}, including network port, serial port, CAN port, etc.; the three-layer node of tree I is the interface protocol set {I ij}, including TCP, UDP, DDS, HTTP, RS232, RS422, RS485, etc.; the four-layer node of tree I is the interface protocol specification {I ijk}, including interface functions, interface parameters, etc.
[0057] Step 4: Establish the interface message tree model
[0058] According to the analysis of the common characteristics of military equipment software system cross-linking equipment, the interface message dimension of the general concept model is classified and decomposed, and a 4-layer interface message tree model M is established. The interface message tree model M is as shown in the attached figure. Figure 2 The second-layer nodes of tree M are the message type set {M i}, including data messages, control messages, etc.; the third-layer nodes of the tree M are specific messages {M ij}, where data messages include navigation, weather, target track, equipment status messages, etc., and control messages include control instructions, command commands, etc.; the four-layer node of tree M is the message protocol specification {M ijk}, mainly describes the message field type definition, including field type, length, constraints, etc.
[0059] Step 5: Perform association aggregation based on the tree model
[0060] Determine the device behavior type based on the cross-linking device characteristics and behaviors of the specific military equipment software system. According to the device behavior type, in accordance with the principle of "device behavior associated with device interface and interface message", select behaviors, interfaces, and messages in the device behavior tree, device interface tree, and interface message tree for association aggregation. The specific association aggregation process is as follows:
[0061] Step 1: Perform tree model second-layer node association aggregation. According to the specific cross-linking device behavior type determined, select the behavior type A in the device behavior tree A. i ; According to the principle of "behavior type associated with interface type and message type", according to A i Behavior, determine the associated interface type I in the device interface tree I and interface message tree M j and message type M k , perform association aggregation on the second-layer nodes of the tree model, and the association aggregation result can be expressed as {A i , I j , M k}.
[0062] For example, the device behavior type is "feedback behavior", the associated interface type is "network port", the message type is "data message", and the second-layer node association result is {A3, I1, M1}.
[0063] Step 2: Perform the association aggregation of the third-layer nodes in the tree model. Based on the results of the association aggregation of the second-layer nodes, A i The subtree searches down to the third-level node and determines the action rule A of the third-level node ix , respectively according to A ix Action, according to the principle that "the action "generate message" is only associated with "interface protocol", and the actions "send message" and "receive message" are associated with "interface protocol" and "message protocol", in I j Determine the associated interface protocol I in the next layer of nodes in the subtree jy , determine the associated message protocol M in the next layer of nodes in the Mk subtree kz , perform three-layer node association aggregation of the tree model, and the association aggregation can be expressed as { ix ,I jy 、M kz >, iy 、M ky >, <…>}.
[0064] For example, based on the device behavior type of "feedback behavior" and the second-layer node association result of {A3, I1, M1}, the interface protocol associated with the action "receive message" is "UDP", and the associated specific message is "status request"; the specific message associated with the action "generate message" is "status feedback"; the interface protocol associated with the action "feedback message" is "UDP", and the associated specific message is "status feedback". The three-layer node association aggregation result is { 31 ,I 12 、M 14 >, 32 、M 15 >, 33 ,I 12 、M 15 >}.
[0065] Step 3: Perform fusion association aggregation of the third and fourth layer nodes of the tree model. Based on the results of the third layer node association aggregation, the Aix action subtree integrates the action attribute Aix1 of the next layer, the Ijy interface protocol subtree integrates the interface protocol specification Ijy of the next layer, and the Mkz message protocol subtree integrates the message protocol specification Mkz of the first layer, and performs fusion association aggregation of the third and fourth layer nodes of the tree model. The fusion association aggregation can be expressed as {<Aix(Aix1)、Ijy(Ijy1)、Mkz(Mkz1)> ,<Aiy(Aiy1)、Mky(Mky1)> , <…>}.
[0066] For example, the device behavior type is "feedback behavior" and the three-layer association result is {<A31、I12、M14> ,<A32、M15> ,<A33、I12、M15>}, the three- and four-layer fusion association aggregation results are {<A31(A311)、I12(I121)、M14(M141)> ,<A32(A321)、M15(M151)> ,<A33(A331)、I12(I121)、M15(M151)>}.
[0067] The sixth step is to use XML as the model description language, define the XML tags of each element in the tree model, model the fusion association aggregation results of the third and fourth layer nodes of the tree model, and form an XML association aggregation model.
[0068] For example, if the device behavior type is "feedback behavior", the three-layer and four-layer fusion association aggregation results are {<A31(A311)、I12(I121)、M14(M141)> ,<A32(A321)、M15(M151)> ,<A33(A331)、I12(I121)、M15(M151)> The XML description of the association aggregation model is as follows:
[0069] <? xml verion="1.0"? >
[0070] <digitalmodel>
[0071] <ActionType name="Feedback Behavior">
[0072] <ActionRule name="Receive Message">
[0073] <acionattr>
[0074] <sourceip> sip< / sourceip>
[0075] <sourceport>sport
[0076] <periodvar> t< / periodvar>
[0077] <datavar> msg< / datavar>
[0078] < / sourceport> < / acionattr>
[0079] <RelITFProtocol name="UDP">
[0080] <relitfattr>
[0081] <funname>connect <funname>
[0082] <FunPara sip=”192.168.0.1”sport=”1234”>
[0083] <funname>recv <funname>
[0084] <FunPara msg="Status request">
[0085] < / funname> < / funname> < / funname> < / funname> < / relitfattr>
[0086]
[0087] <RelMSGProtocol name="Status Request">>
[0088] <relmsgattr>
[0089] <Field name="Field 1", type="integer", length="4", constraint="">
[0090] <Field name="Field 2", type="char", length="1", constraint="">
[0091] …
[0092] < / relmsgattr>
[0093]
[0094]
[0095] <ActionRule name="Generate Message">
[0096] <RelMSGProtocol name="Status Feedback">
[0097] <relmsgattr>
[0098] <Field name="Field 1", type="integer", length="4", constraint="">
[0099] <Field name="Field 2", type="bool", length="1", constraint="">
[0100] …
[0101] < / relmsgattr>
[0102]
[0103]
[0104] <ActionRule name="Send Message">
[0105] <RelITFProtocol name="UDP"
[0106] <relitfattr>
[0107] <funname>connect <funname>
[0108] <FunPara sip=”192.168.0.2”sport=”1234”>
[0109] <funname>send <funname>
[0110] <FunPara msg="Status feedback">
[0111] < / funname> < / funname> < / funname> < / funname> < / relitfattr>
[0112]
[0113] <RelMSGProtocol name="Status Feedback"
[0114] <relmsgattr>
[0115] <Field name="Field 1", type="integer", length="4", constraint="">
[0116] <Field name="Field 2", type="bool", length="1", constraint="">
[0117] …
[0118] < / relmsgattr>
[0119]
[0120]
[0121]
[0122] <ActionType name="Incentive Behavior">
[0123] …
[0124]
[0125] < / digitalmodel>
[0126] In the seventh step, the Velocity template engine technology is used to convert the key elements of the XML model into code using the mapping rules provided by the Velocity template designed according to the semantics and syntax of the programming language. The elements of the XML association aggregation model are mapped to the Velocity template to achieve automatic generation of the cross-linked equipment simulation model code, thereby constructing a cross-linked equipment simulation model.
[0127] The basic mapping rules for converting the key elements of the XML association aggregation model into code are as follows:
[0128] The cross-linked device behavior and action rule elements are converted into cross-linked device behavior logic codes; the device interface and interface protocol elements associated with the action are converted into codes for establishing connections between the cross-linked device and the system; the interface messages and message protocol elements associated with the action are converted into message data codes operated by the action.
[0129] In the eighth step, for the new cross-linking devices or the extended features and behaviors of the system, the simulation model of the new cross-linking devices can be quickly constructed by extending the new device behavior types, interface types, and message types in the device behavior tree model A, the device interface tree model I, and the interface message tree model M.
[0130] In summary, the above are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited thereto. All equivalent changes and modifications made according to the patent scope of the present invention and the contents of the specification are within the scope covered by the patent of the present invention.
Claims
1. A method for constructing a general simulation model for cross-linking equipment in a military equipment software system. It is characterized in that The following steps are involved: Establish a general concept model of cross-linking equipment. By analyzing the common characteristics of cross-linking equipment, establish a four-dimensional general concept model of cross-linking equipment Emod = (A, I, M, R), where A represents device behavior, I represents device interface, M represents interface message, and R represents association aggregation; The device behavior dimension of the general concept model is classified and decomposed to establish a four-layer device behavior tree model A; the second-layer node of tree A is the device behavior type set {A i }, the third-layer node is the action rule set {A ij }, the fourth-layer node is the action attribute set {A ijk }; The device interface dimension of the general conceptual model is classified and decomposed to establish a four-layer device interface tree model I; the second-layer node of tree I is the device interface type set {I i }, the third-layer node is the interface protocol set {I ij }, the fourth-layer node is the interface protocol specification set {I ijk }; The interface message dimension of the general conceptual model is classified and decomposed to establish a four-layer interface message tree model M; the second-layer nodes of the tree M are the device interface type set message type set {M i }, the third-layer node is a specific message set {M ij }, the fourth-layer node is the message protocol specification {M ijk }; Based on the device behavior tree model A, the device interface tree model I, and the interface message tree model M, the specific characteristics and behaviors of the cross-linked devices are analyzed, and the three tree models are associated and aggregated layer by layer from top to bottom; Use XML as the model description language, define the XML tags of each element in the tree model, model the fusion association aggregation results of the third and fourth layer nodes of the tree model, and form an XML association aggregation model; The Velocity template engine technology is adopted, and the mapping rules for converting the key elements of the XML model into code provided by the Velocity template designed according to the semantics and syntax of the programming language are used to map the elements of the XML association aggregation model into the Velocity template, so as to realize the automatic generation of the cross-linked equipment simulation model code and thus build a cross-linked equipment simulation model.
2. The method according to claim 1, It is characterized in that The establishment of a general conceptual model of cross-linking equipment specifically includes: Select cross-linking devices of multiple military equipment software systems with different architectures and types for analysis, summarize, refine and analyze device behaviors, interface forms and interface messages, and extract common features of cross-linking devices; The common characteristics can be summarized into three key elements: device behavior, device interface, and interface message, as well as the behavior pattern of "device behavior associated with device interface and interface message".
3. The method according to claim 2, It is characterized in that Building a device behavior tree model specifically includes: According to the analysis of the common characteristics of military equipment software system cross-linking equipment, the equipment behavior dimension of the general concept model is classified and decomposed, and a 4-layer equipment behavior tree model A is established; The second-level nodes of tree A are the device behavior type set {A i }, including 4 basic behaviors: motivational behavior, display behavior, feedback behavior, and forwarding behavior; The third-level nodes of tree A are action rule sets {A ij }, mainly including generate message -> send message, receive message -> display message, receive message -> display message -> generate message -> feedback message, receive message -> display message -> forward message; The fourth-level nodes of tree A are action attribute sets {A ijk }, including source node, destination node, and sending / receiving cycle, where a cycle of 0 indicates a single time.
4. The method according to claim 3, It is characterized in that Establishing the device interface tree model specifically includes: According to the analysis of the common characteristics of military equipment software system cross-linking equipment, the equipment interface dimension of the general concept model is classified and decomposed, and a 4-layer equipment interface tree model I is established; The second-level nodes of tree I are interface type sets {I i }, including network port, serial port, and CAN port; The third-layer nodes of tree I are interface protocol sets {I ij }, including TCP, UDP, DDS, HTTP, RS232, RS422, RS485; The fourth-level nodes of tree I are interface protocol specifications {I ijk }, including interface functions and interface parameters.
5. The method according to claim 4, It is characterized in that Establishing the interface message tree model specifically includes: According to the analysis of the common characteristics of military equipment software system cross-linking equipment, the interface message dimension of the general concept model is classified and decomposed, and a 4-layer interface message tree model M is established; The second-layer node of tree M is the message type set {M i }, including data messages and control messages; The third-layer nodes of the tree M are specific messages {M ij }, where data messages include navigation, weather, target track, and equipment status messages, and control messages include control instructions and command orders; The fourth-layer node of tree M is the message protocol specification {M ijk }, mainly describes the message field type definition, including field type, length, and constraints.
6. The method according to claim 5, It is characterized in that The association aggregation based on the tree model specifically includes: Determine the device behavior type based on the cross-linking device characteristics and behaviors of the specific military equipment software system. According to the device behavior type, in accordance with the principle of "device behavior associated with device interface and interface message", select behaviors, interfaces, and messages in the device behavior tree, device interface tree, and interface message tree for association aggregation.
7. The method according to claim 6, It is characterized in that The process of association aggregation includes: Perform tree model second-layer node association aggregation, and select behavior type A in device behavior tree A according to the specific cross-linked device behavior type determined. i ; According to the principle of "associating behavior type with interface type and message type", according to A i Behavior, determine the associated interface type I in the device interface tree I and interface message tree M j and message type M k , perform association aggregation on the second-layer nodes of the tree model, and the association aggregation result can be expressed as {A i , I j , M k }; Perform the tree model three-layer node association aggregation, based on the second-layer node association aggregation results, A i The subtree searches down to the third-level node and determines the action rule A of the third-level node ix , respectively according to A ix Action, according to the principle that "action" generates message" is only associated with "interface protocol", and actions "send message" and "receive message" are associated with "interface protocol" and "message protocol", in I j Determine the associated interface protocol I in the next layer of nodes in the subtree jy , determine the associated message protocol M in the next layer of nodes in the Mk subtree kz , perform three-layer node association aggregation of the tree model, and the association aggregation can be expressed as { ix ,I jy 、M kz >, iy 、M ky >, <…>}; The third and fourth layer nodes of the tree model are fused and associated. Based on the results of the third layer node association and aggregation, the Aix action subtree is integrated with the action attribute Aix1 of the next layer, the Ijy interface protocol subtree is integrated with the interface protocol specification Ijy of the next layer, and the Mkz message protocol subtree is integrated with the message protocol specification Mkz of the first layer. The third and fourth layer nodes of the tree model are fused and associated. The fusion association and aggregation can be expressed as {<Aix(Aix1)、Ijy(Ijy1)、Mkz(Mkz1)> ,<Aiy(Aiy1)、Mky(Mky1)> , <…>}.
8. The method according to claim 7, It is characterized in that The basic mapping rules for converting the key elements of the XML association aggregation model into code include: The cross-linking device behavior and action rule elements are converted into the cross-linking device behavior logic code; The device interface and interface protocol elements associated with the action are converted into codes for establishing a connection between the cross-linked device and the system; The interface message and message protocol elements associated with the action are converted into the message data code operated by the action.
