A remote procedure call implementation method for LVC-DE distributed synthesis environment
By introducing the remote procedure call mechanism in the LVC-DE distributed environment and using DDS topics to transfer method calls and return values, the problem that a single publish/subscribe communication method cannot meet the interaction needs of large-scale distributed experiments is solved, and request-response communication is realized. , expanding the application fields.
Patent Information
- Application Number
- CN202210911875.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-29
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-07-29
AI Technical Summary
In the LVC-DE distributed environment, a single publish/subscribe communication method cannot meet the interaction needs of large-scale distributed experiments. Especially when request/response tightly coupled communication is required, remote procedure calls cannot be effectively implemented.
By introducing the remote procedure call mechanism in the LVC-DE distributed synthesis environment, using the TENA object model description file to parse the methods and parameters of the remote procedure call, and using the DDS topic to transfer method calls and return values between the client and the server, it is achieved Request/reply communication.
It implements the request response communication mechanism between the client and the server, meets the needs of multiple communication methods, and expands the application fields of the LVC-DE distributed environment.
Smart Images

Figure CN115442350B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of distributed communication, and in particular to a remote procedure call implementation method of an LVC-DE distributed synthesis environment. Background Art
[0002] The LVC-DE distributed environment is used to interconnect various real SL, virtual SV or constructed SC test resources distributed in different areas and belonging to different units. It supports information sharing, resource sharing and reuse, as well as interconnection and interoperability between systems. It can also combine various resources according to the requirements of the test tasks to quickly build a large-scale distributed test system.
[0003] With the application of LVC-DE distributed environment, the large-scale, decentralized control and dynamic change characteristics of distributed test systems require the use of flexible communication and interaction mechanisms with dynamic and loose coupling characteristics between test participants. At present, the LVC-DE distributed environment adopts the data distribution service SData Distribution Service, DDS specification of the object management organization SObject Manage Group, OMG, and realizes multi-point data communication based on publish / subscribe SPublish / Subscribe, P / S. However, a single communication method cannot meet the interaction needs of large-scale distributed experiments, that is, during the test process, the test resources need not only loosely coupled communication of publish / subscribe type, but also tightly coupled communication of request / response type. For example, in the process of equipment control, the remote test equipment is sent control instructions and waits for the equipment to return status. At this time, the use of publish / subscribe communication method cannot well realize the request / response semantics. Remote procedure call SRemote ProcedureCall, RPC adopts the client / server SClient / Server mode to realize the synchronization mechanism between processes, which can provide a request / response communication method. Therefore, in order to expand the application field of the LVC-DE distributed environment, it is necessary to expand the request / response communication mechanism based on the existing publish / subscribe communication mechanism to meet the needs of the experimental field for multiple communication methods. Therefore, we make improvements to this and propose a remote procedure call implementation method for the LVC-DE distributed synthetic environment. Summary of the invention
[0004] The purpose of the present invention is to: aim at the problems raised by the existing background technology, in order to achieve the above invention purpose, the present invention provides the following technical solutions: a remote procedure call implementation method of LVC-DE distributed synthesis environment, comprising the following steps: S1 object model method and parameter parsing, the remote method call of LVC-DE distributed synthesis environment is based on the method in TENA object model, by parsing the "${module name}.tdl" TENA object model description file and its example pseudo code to obtain the TENA object model method and its parameters describing the remote procedure call;
[0005] The S2 client calls the object instance method. The client uses the invokeObjectInstanceMethod function of the LVC-DE distributed synthesis environment middleware to complete the call to the object instance method to start the remote procedure call;
[0006] S3 server-side object instance method callback, when the server receives a method call notification through the DDS topic, the LVC-DE distributed synthesis environment middleware uses the objectInstanceMethodCallback function to pass the object instance method call to the upper-layer application to complete the remote procedure call;
[0007] The data structure of S4 remote procedure call, in the process of implementing remote procedure call in LVC-DE distributed synthesis environment, the client and the server use DDS topic to transfer method calls and return values;
[0008] In the S5 interface design, the client uses the object instance method call function to push a message that it wants to call a method of a certain object instance to the LVC-DE distributed synthesis environment middleware. The middleware provides the remote method call information to the server.
[0009] As a preferred technical solution of the present invention, S1 object model method and parameter parsing, S1-1 selects a TENA object model description file and saves the path address of the object model description file;
[0010] S1-2 opens the TENA object model description file according to the path address and reads all the contents of the file;
[0011] S1-3 determines the structure identifier of each line of the TENA object model description file according to the line;
[0012] S1-4-1 If the structure is identified as a local class, class, message, etc., go to step S1-5;
[0013] S1-4-2 If the structure is identified as an enumeration type, save the enumeration name and enumeration content, store them in the data structure, and go to step S1-3;
[0014] S1-4-3 If the structure identifier is an end character, go to step S1-7;
[0015] S1-5 in the class / local class / message structure processing branch, determines the type identifier of each line of content in the structure;
[0016] S1-6-1 If the content is identified as data, store the type and name of the data in the data structure and go to step S1-5;
[0017] S1-6-2 If the content is identified as a method, store the method return type, name, parameter input and output types, parameter data types, parameter names, error value types and error value names in the data structure, and go to step S1-5;
[0018] S1-6-3 If the content is marked as an end character, go to step S1-3;
[0019] S1-7 reorganizes the data structure according to inheritance and aggregation relationships to form a TENA object model list.
[0020] As a preferred technical solution of the present invention, the S2 client calls the object instance method, including the following steps:
[0021] S2-1 Input parameter input object instance ID, object instance method name and method input parameter name and current value;
[0022] S2-2 determines whether the object instance exists. If it exists, execute S2-3-1. If it does not exist, execute S2-3-2.
[0023] S2-3-1 determines whether the object instance has the called method name. If yes, execute S2-4-1. If not, execute S2-4-2.
[0024] S2-3-2 The object instance does not exist and an exception is thrown;
[0025] S2-4-1 sends a method call notification to the server where the object instance is located through the DDS topic. The notification content includes the object instance ID, the object instance method name, the name and current value of the method input parameter, and the method call mode;
[0026] S2-4-2 The method name does not exist in the object instance, and an exception is thrown;
[0027] S2-5 waits for feedback information. If a feedback signal is received, execute S2-6-1. If no feedback signal is received after 10 seconds, execute S2-6-2.
[0028] S2-6-1 Output the method output parameter name and current value pair set, output method return value, output exception parameter name and current value pair set, and complete the call to the instance method;
[0029] S2-6-2 The method call times out and an exception is thrown.
[0030] As a preferred technical solution of the present invention, the S3 server object instance method is called back, and the S3-1LVC-DE distributed synthesis environment middleware receives the method call notification through the DDS topic;
[0031] S3-2 parses the method call notification content in the DDS topic to obtain the following object instance method call information: object instance ID, object instance method name, method input parameter name and current value, and method call mode;
[0032] S3-3 determines the method calling mode, if it is single mode, executes step (3-4-1), if it is normal mode, executes step (3-4-2);
[0033] S3-4-1 Call the server method implementation interface function objectInstanceMethodCallback() to pass the object instance method call to the upper layer application, and go to step S3-5;
[0034] S3-4-2 Call the server-side method implementation interface function objectInstanceMethodCallback() to pass the object instance method call to the upper-layer application, and go to step S3-6;
[0035] S3-5 does not need to wait for the interface function to be executed, and returns the object instance method callback completion to the client that initiated the method call through the DDS topic;
[0036] After S3-6 waits for the interface function to be executed, it feeds back the completion of the object instance method callback to the client that initiated the method call through the DDS topic, outputs the method return value, the method output parameter name and current value pair set, and the exception parameter name and current value set.
[0037] As the preferred technical solution of the present invention, the S5 interface design provides the following parameters:
[0038] S5a-1 object instance ID;
[0039] S5a-2 Object instance method name;
[0040] S5a-3 method inputs a set of parameter name and current value pairs;
[0041] Returned variables:
[0042] The S5b-1 method outputs a set of parameter name and current value pairs;
[0043] S5b-2 Method return value;
[0044] S5b-3 abnormal parameter name combined with current value pair;
[0045] Prerequisites:
[0046] S5c-1 Task system already exists
[0047] Postconditions: None.
[0048] As the preferred technical solution of the present invention, the S5 interface design provides the following parameters:
[0049] S5d-1 The client has not joined the task system;
[0050] S5d-2 The object instance does not exist;
[0051] S5d-3 The client did not order the object instance;
[0052] S5d-4 Method not defined in object class;
[0053] S5d-5 Invalid method parameter;
[0054] S5d-6 Middleware internal error.
[0055] As a preferred technical solution of the present invention, S5 interface design, object instance method callback, the object instance method callback function is actively called by the LVC-DE distributed synthesis environment middleware, and is used to provide a call instruction from other clients to the server;
[0056] Provided parameters:
[0057] S5e-1 object instance ID;
[0058] S5e-2 object instance method name;
[0059] The S5e-3 method inputs a set of parameter name and current value pairs;
[0060] S5e-4 method oneway type;
[0061] S5e-5 timestamp.
[0062] As a preferred technical solution of the present invention,
[0063] S5 interface design, object instance method callback:
[0064] Returned variables:
[0065] The S5f-1 method outputs a set of parameter name and current value pairs;
[0066] S5f-2 method return value;
[0067] S5f-3 Exception parameter name combined with current value pair.
[0068] As the preferred technical solution of the present invention, S5 interface design, object instance method callback:
[0069] Prerequisites:
[0070] The S5g-1 mission system already exists;
[0071] The S5g-2 server has been added to the task system;
[0072] S5g-3 The object instance already exists;
[0073] S5g-4 methods are defined in object classes.
[0074] As the preferred technical solution of the present invention, S5 interface design, object instance method callback: postcondition: none
[0075] Exception: S5h-1 Internal error on the server.
[0076] Compared with the prior art, the present invention has the following beneficial effects:
[0077] In the scheme of the present invention: the addition operation is implemented through remote procedure call, the client program sends the operation of calculating the addition and two addends, the server receives the remote procedure call notification and locally calculates the addition result of the two addends and returns it to the client program, and the client program receives the calculation result. The remote method call is used to obtain the speed: the client program caller sends the operation of obtaining the speed, the server receives the remote procedure call and locally obtains the speed value and returns it to the client program, and the client program receives the speed value. Therefore, the LVC-DE distributed synthesis environment remote procedure call mechanism proposed by the present invention can realize the request response communication mechanism between the client and the server. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] Figure 1 A basic flow chart of the process of parsing a DDS object model file provided by the present invention;
[0079] Figure 2 A flow chart of the method for a client to call an object instance provided by the present invention;
[0080] Figure 3 The service object instance method callback flow chart provided by the present invention;
[0081] Figure 4The content of the remote procedure call DDS topic provided by the present invention;
[0082] Figure 5 This is a graph of the result of the addition operation call implementation provided by the present invention. DETAILED DESCRIPTION
[0083] To make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiment is a specific implementation of the present invention and is not limited to all embodiments.
[0084] Therefore, the following detailed description of the embodiments of the present invention is not intended to limit the scope of the invention claimed for protection, but merely represents some embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0085] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features and technical solutions therein can be combined with each other. It should be noted that similar numbers and letters represent similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.
[0086] Example: See Figure 1-5 , a remote procedure call implementation method of an LVC-DE distributed synthesis environment, including a remote procedure call implementation method of an LVC-DE distributed synthesis environment, including the following steps: S1 object model method and parameter parsing, the remote method call of the LVC-DE distributed synthesis environment is based on the method in the TENA object model, the present invention obtains the TENA object model method and its parameters describing the remote procedure call by parsing the "${module name}.tdl" TENA object model description file and its example pseudo code;
[0087] The S2 client calls the object instance method. The client uses the invokeObjectInstanceMethod function of the LVC-DE distributed synthesis environment middleware to complete the call to the object instance method to start the remote procedure call;
[0088] S3 server-side object instance method callback, when the server receives a method call notification through the DDS topic, the LVC-DE distributed synthesis environment middleware uses the objectInstanceMethodCallback function to pass the object instance method call to the upper-layer application to complete the remote procedure call;
[0089] The data structure of S4 remote procedure call, in the process of implementing remote procedure call in LVC-DE distributed synthesis environment, the client and the server use DDS topic to transfer method calls and return values;
[0090] In the S5 interface design, the client uses the object instance method call function to push a message that it wants to call a method of a certain object instance to the LVC-DE distributed synthesis environment middleware. The middleware provides the remote method call information to the server.
[0091] S1 object model method and parameter analysis, S1-1 select TENA object model description file and save the object model description file path address;
[0092] S1-2 opens the TENA object model description file according to the path address and reads all the contents of the file;
[0093] S1-3 determines the structure identifier of each line of the TENA object model description file according to the line;
[0094] S1-4-1 If the structure is identified as a local class, class, message, etc., go to step S1-5;
[0095] S1-4-2 If the structure is identified as an enumeration type, save the enumeration name and enumeration content, store them in the data structure, and go to step S1-3;
[0096] S1-4-3 If the structure identifier is an end character, go to step S1-7;
[0097] S1-5 in the class / local class / message structure processing branch, determines the type identifier of each line of content in the structure;
[0098] S1-6-1 If the content is identified as data, store the type and name of the data in the data structure and go to step S1-5;
[0099] S1-6-2 If the content is identified as a method, store the method return type, name, parameter input and output types, parameter data types, parameter names, error value types and error value names in the data structure, and go to step S1-5;
[0100] S1-6-3 If the content is marked as an end character, go to step S1-3;
[0101] S1-7 reorganizes the data structure according to inheritance and aggregation relationships to form a TENA object model list.
[0102] The "${module name}.tdl" file definition format, package moduleName
[0103] {
[0104] class interfaceName
[0105] {
[0106] float func(out float param);
[0107] float func(in float param, in float param, out float param);
[0108] };
[0109] };
[0110] The S2 client calls an object instance method, including the following steps:
[0111] S2-1 Input parameter input object instance ID, object instance method name and method input parameter name and current value;
[0112] S2-2 determines whether the object instance exists. If it exists, execute S2-3-1. If it does not exist, execute S2-3-2.
[0113] S2-3-1 determines whether the object instance has the called method name. If yes, execute S2-4-1. If not, execute S2-4-2.
[0114] S2-3-2 The object instance does not exist and an exception is thrown;
[0115] S2-4-1 sends a method call notification to the server where the object instance is located through the DDS topic. The notification content includes the object instance ID, the object instance method name, the name and current value of the method input parameter, and the method call mode;
[0116] S2-4-2 The method name does not exist in the object instance, and an exception is thrown;
[0117] S2-5 waits for feedback information. If a feedback signal is received, execute S2-6-1. If no feedback signal is received after 10 seconds, execute S2-6-2.
[0118] S2-6-1 Output the method output parameter name and current value pair set, output method return value, output exception parameter name and current value pair set, and complete the call to the instance method;
[0119] S2-6-2 The method call times out and an exception is thrown.
[0120] S3 server object instance method callback, the S3-1LVC-DE distributed synthesis environment middleware receives the method call notification through the DDS topic;
[0121] S3-2 parses the method call notification content in the DDS topic to obtain the following object instance method call information: object instance ID, object instance method name, method input parameter name and current value, and method call mode;
[0122] S3-3 determines the method calling mode, if it is single mode, executes step (3-4-1), if it is normal mode, executes step (3-4-2);
[0123] S3-4-1 Call the server method implementation interface function objectInstanceMethodCallback() to pass the object instance method call to the upper layer application, and go to step S3-5;
[0124] S3-4-2 Call the server-side method implementation interface function objectInstanceMethodCallback() to pass the object instance method call to the upper-layer application, and go to step S3-6;
[0125] S3-5 does not need to wait for the interface function to be executed, and returns the object instance method callback completion to the client that initiated the method call through the DDS topic;
[0126] After S3-6 waits for the interface function to be executed, it feeds back the completion of the object instance method callback to the client that initiated the method call through the DDS topic, outputs the method return value, the method output parameter name and current value pair set, and the exception parameter name and current value set.
[0127] S5 interface design, providing parameters:
[0128] S5a-1 object instance ID;
[0129] S5a-2 Object instance method name;
[0130] S5a-3 method inputs a set of parameter name and current value pairs;
[0131] Returned variables:
[0132] The S5b-1 method outputs a set of parameter name and current value pairs;
[0133] S5b-2 Method return value;
[0134] S5b-3 abnormal parameter name combined with current value pair;
[0135] Prerequisites:
[0136] S5c-1 Task system already exists
[0137] Postconditions: None.
[0138] S5 interface design, provided parameters: Exception:
[0139] S5d-1 The client has not joined the task system;
[0140] S5d-2 The object instance does not exist;
[0141] S5d-3 The client did not order the object instance;
[0142] S5d-4 Method not defined in object class;
[0143] S5d-5 Invalid method parameter;
[0144] S5d-6 Middleware internal error.
[0145] S5 interface design, object instance method callback, the object instance method callback function is actively called by the LVC-DE distributed synthesis environment middleware to provide a call instruction from other clients to the server;
[0146] Provided parameters:
[0147] S5e-1 object instance ID;
[0148] S5e-2 object instance method name;
[0149] The S5e-3 method inputs a set of parameter name and current value pairs;
[0150] S5e-4 method oneway type;
[0151] S5e-5 timestamp.
[0152] S5 interface design, object instance method callback:
[0153] Returned variables:
[0154] The S5f-1 method outputs a set of parameter name and current value pairs;
[0155] S5f-2 method return value;
[0156] S5f-3 Exception parameter name combined with current value pair.
[0157] S5 interface design, object instance method callback:
[0158] Prerequisites:
[0159] The S5g-1 mission system already exists;
[0160] The S5g-2 server has been added to the task system;
[0161] S5g-3 The object instance already exists;
[0162] S5g-4 methods are defined in object classes.
[0163] S5 interface design, object instance method callback: postcondition: none
[0164] Exception: S5h-1 Internal error on the server.
[0165] Working principle: During the use of the present invention, S1 object model method and parameter parsing, the remote method call of the LVC-DE distributed synthesis environment is based on the method in the TENA object model. The present invention obtains the TENA object model method and its parameters describing the remote procedure call by parsing the "${module name}.tdl" TENA object model description file and its example pseudo code; S2 the client calls the object instance method, and the client uses the invokeObjectInstanceMethod function of the LVC-DE distributed synthesis environment middleware to complete the call to the object instance method to start the remote procedure call; S3 server-side object instance method Callback, when the server receives the method call notification through the DDS topic, the LVC-DE distributed synthesis environment middleware uses the objectInstanceMethodCallback function to pass the object instance method call to the upper-level application to complete the remote procedure call; S4 remote procedure call data structure, in the LVC-DE distributed synthesis environment to implement the remote procedure call process, the client and the server use the DDS topic to pass the method call and return value; S5 interface design, the client uses the call object instance method function to push a message that it wants to call a method of a certain object instance to the LVC-DE distributed synthesis environment middleware. The middleware provides the remote method call information to the server. S1 object model method and parameter analysis, S1-1 select TENA object model description file, save the path address of the object model description file; S1-2 open the TENA object model description file according to the path address, and read the entire content of the file; S1-3 judge the structure identifier of each line of the TENA object model description file according to the line; S1-4-1 if the structure identifier is a local class, class, message or other type, go to step S1-5; S1-4-2 if the structure identifier is an enumeration type, save the enumeration name and enumeration content, store in the data structure, and go to step S1-3; S1-4-3 if the structure identifier is a terminator, go to step S1- 7; S1-5 In the class / local class / message structure processing branch, the type identifier of each line of content in the structure is judged; S1-6-1 If the content is identified as data, the type and name of the data are stored in the data structure, and go to step S1-5; S1-6-2 If the content is identified as a method, the method return type, name, parameter input and output types, parameter data types, parameter names, error value types and error value names are stored in the data structure, and go to step S1-5; S1-6-3 If the content is identified as a terminator, go to step S1-3; S1-7 Reorganize the data structure according to the inheritance and aggregation relationships to form a TENA object model list.The S2 client calls the object instance method, including the following steps: S2-1 inputs the object instance ID, the object instance method name, and the name and current value of the method input parameter; S2-2 determines whether the object instance exists, if so, execute S2-3-1, otherwise execute S2-3-2; S2-3-1 determines whether the object instance has the called method name, if so, execute S2-4-1, otherwise execute S2-4-2; S2-3-2 The object instance does not exist, and an exception is thrown; S2-4-1 sends the method call to the server where the object instance is located through the DDS topic. Notification, the notification content includes the object instance ID, object instance method name, method input parameter name and current value and method calling mode; S2-4-2 The method name does not exist in the object instance and an exception is thrown; S2-5 Wait for feedback information, execute S2-6-1 after receiving the feedback signal, and execute S2-6-2 if no feedback signal is received within 10s; S2-6-1 Output the set of method output parameter name and current value pairs, output method return value, output the set of exception parameter name and current value pairs to complete the call to the instance method; S2-6-2 The method call times out and an exception is thrown. S3 server-side object instance method callback, S3-1 LVC-DE distributed synthesis environment middleware receives method call notification through DDS topic; S3-2 parses the method call notification content in the DDS topic to obtain the following object instance method call information: object instance ID, object instance method name, method input parameter name and current value and method call mode; S3-3 determines the method call mode, if it is single mode, execute step (3-4-1), if it is normal mode, execute step (3-4-2); S3-4-1 calls the server-side method implementation interface function objectInstanceMethodCallback() to pass it to the upper-level application Object instance method call, go to step S3-5; S3-4-2 call the server method to implement the interface function objectInstanceMethodCallback() to pass the object instance method call to the upper-level application, go to step S3-6; S3-5 does not need to wait for the interface function to be executed, and feedback the completion of the object instance method callback to the client that initiated this method call through the DDS topic; S3-6 waits for the interface function to be executed, and feedbacks the completion of this object instance method callback to the client that initiated this method call through the DDS topic, outputs the method return value, the method output parameter name and the current value pair set, and the abnormal parameter name and the current value set. S5 interface design, provided parameters: S5a-1 object instance ID; S5a-2 object instance method name; S5a-3 method input parameter name and current value pair set; returned variables: S5b-1 method output parameter name and current value pair set; S5b-2 method return value; S5b-3 abnormal parameter name and current value pair combination; precondition: S5c-1 task system already exists postcondition: none.S5 interface design, provided parameters: exception: S5d-1 The client has not joined the task system; S5d-2 The object instance does not exist; S5d-3 The client has not ordered the object instance; S5d-4 The method is not defined in the object class; S5d-5 Invalid method parameters; S5d-6 Internal error in the middleware. S5 interface design, object instance method callback, the object instance method callback function is actively called by the LVC-DE distributed synthesis environment middleware to provide a call instruction from other clients to the server; provided parameters: S5e-1 Object instance ID; S5e-2 Object instance method name; S5e-3 Method input parameter name and current value pair set; S5e-4 Method oneway type; S5e-5 Timestamp. S5 interface design, object instance method callback: Returned variables: S5f-1 Method output parameter name and current value pair set; S5f-2 Method return value; S5f-3 Exception parameter name and current value pair combination. S5 interface design, object instance method callback: Precondition: S5g-1 The task system already exists; S5g-2 The server has been added to the task system; S5g-3 The object instance already exists; S5g-4 The method is defined in the object class. S5 interface design, object instance method callback: Postcondition: No exception: S5h-1 Internal error on the server.
[0166] The above embodiments are only used to illustrate the present invention and are not intended to limit the technical solutions described in the present invention. Although the present invention has been described in detail with reference to the above embodiments, the present invention is not limited to the above specific implementation methods. Therefore, any modification or equivalent replacement of the present invention; and all technical solutions and improvements thereof that do not depart from the spirit and scope of the invention are included in the scope of the claims of the present invention.
Claims
1. A remote procedure call implementation method for LVC-DE distributed synthesis environment, characterized in that: The following steps are involved: S1 Object model method and parameter parsing, the remote method call of LVC-DE distributed synthesis environment is based on the method in TENA object model, and the TENA object model method and its parameters describing the remote procedure call are obtained by parsing the "${module name}.tdl" TENA object model description file and its sample pseudo code; S2 client calls the object instance method. The client uses the invokeObjectInstanceMethod function of the LVC-DE distributed synthesis environment middleware to complete the call to the object instance method to start the remote procedure call; S3 server-side object instance method callback, when the server receives a method call notification through the DDS topic, the LVC-DE distributed synthesis environment middleware uses the objectInstanceMethodCallback function to pass the object instance method call to the upper-layer application to complete the remote procedure call; S3 server object instance method callback, the S3-1LVC-DE distributed synthesis environment middleware receives the method call notification through the DDS topic; S3-2 parses the method call notification content in the DDS topic to obtain the following object instance method call information: object instance ID, object instance method name, method input parameter name and current value, and method call mode; S3-3 determines the method calling mode, if it is single mode, executes step (3-4-1), if it is normal mode, executes step (3-4-2); S3-4-1 Call the server-side method implementation interface function objectInstanceMethodCallback() to pass the object instance method call to the upper-layer application, and go to step S3-5; S3-4-2 Call the server-side method implementation interface function objectInstanceMethodCallback() to pass the object instance method call to the upper-layer application, and go to step S3-6; S3-5 does not need to wait for the interface function to be executed, and returns the object instance method callback completion to the client that initiated the method call through the DDS topic; S3-6 After the interface function is executed, feedback is given to the client that initiated the method call through the DDS topic that the object instance method callback is complete, and the method return value, the method output parameter name and current value pair set, and the exception parameter name and current value set are output; The data structure of S4 remote procedure call, in the process of implementing remote procedure call in LVC-DE distributed synthesis environment, DDS topics are used between the client and the server to transfer method calls and return values; In the S5 interface design, the client uses the object instance method call function to push a message that it wants to call a method of an object instance to the LVC-DE distributed synthesis environment middleware, and the middleware provides the remote method call information to the server.
2. The remote procedure call implementation method of the LVC-DE distributed synthesis environment according to claim 1 is characterized in that: S1 object model method and parameter analysis, S1-1 select TENA object model description file and save the object model description file path address; S1-2 opens the TENA object model description file according to the path address and reads all the contents of the file; S1-3 determines the structure identifier of each line of the TENA object model description file according to the line; S1-4-1 If the structure is identified as a local class, class, message, etc., go to step S1-5; S1-4-2 If the structure is identified as an enumeration type, save the enumeration name and enumeration content, store them in the data structure, and go to step S1-3; S1-4-3 If the structure identifier is an end character, go to step S1-7; S1-5 in the class / local class / message structure processing branch, determines the type identifier of each line of content in the structure; S1-6-1 If the content is identified as data, store the type and name of the data in the data structure and go to step S1-5; S1-6-2 If the content is identified as a method, store the method return type, name, parameter input and output types, parameter data types, parameter names, error value types and error value names in the data structure, and go to step S1-5; S1-6-3 If the content is marked as an end character, go to step S1-3; S1-7 reorganizes the data structure according to inheritance and aggregation relationships to form a TENA object model list.
3. The remote procedure call implementation method of the LVC-DE distributed synthesis environment according to claim 1 is characterized in that: The S2 client calls an object instance method, including the following steps: S2-1 Input parameter input object instance ID, object instance method name and method input parameter name and current value; S2-2 determines whether the object instance exists. If it exists, execute S2-3-1. If it does not exist, execute S2-3-2. S2-3-1 determines whether the object instance has the called method name. If yes, execute S2-4-1. If not, execute S2-4-2. S2-3-2 The object instance does not exist and an exception is thrown; S2-4-1 sends a method call notification to the server where the object instance is located through the DDS topic. The notification content includes the object instance ID, the object instance method name, the name and current value of the method input parameter, and the method call mode; S2-4-2 The method name does not exist in the object instance, and an exception is thrown; S2-5 waits for feedback information. If a feedback signal is received, execute S2-6-1. If no feedback signal is received after 10 seconds, execute S2-6-2. S2-6-1 Output the method output parameter name and current value pair set, output method return value, output exception parameter name and current value pair set, and complete the call to the instance method; S2-6-2 The method call times out and an exception is thrown.
4. The remote procedure call implementation method of the LVC-DE distributed synthesis environment according to claim 1 is characterized in that: S5 interface design, providing parameters: S5a-1 object instance ID; S5a-2 Object instance method name; S5a-3 method inputs a set of parameter name and current value pairs; Returned variables: The S5b-1 method outputs a set of parameter name and current value pairs; S5b-2 Method return value; S5b-3 abnormal parameter name combined with current value pair; Prerequisites: S5c-1 Task system already exists Postconditions: None.
5. The remote procedure call implementation method of the LVC-DE distributed synthesis environment according to claim 1 is characterized in that: S5 interface design, provided parameters: Exception: S5d-1 The client has not joined the task system; S5d-2 The object instance does not exist; S5d-3 The client did not order the object instance; S5d-4 Method not defined in object class; S5d-5 Invalid method parameter; S5d-6 Middleware internal error.
6. The remote procedure call implementation method of the LVC-DE distributed synthesis environment according to claim 1 is characterized in that: S5 interface design, object instance method callback, the object instance method callback function is actively called by the LVC-DE distributed synthesis environment middleware to provide a call instruction from other clients to the server; Provided parameters: S5e-1 object instance ID; S5e-2 object instance method name; The S5e-3 method inputs a set of parameter name and current value pairs; S5e-4 method oneway type; S5e-5 timestamp.
7. The remote procedure call implementation method of the LVC-DE distributed synthesis environment according to claim 1 is characterized in that: S5 interface design, object instance method callback: Returned variables: The S5f-1 method outputs a set of parameter name and current value pairs; S5f-2 method return value; S5f-3 combines an exception parameter name with a current value pair.
8. The remote procedure call implementation method of the LVC-DE distributed synthesis environment according to claim 1 is characterized in that: S5 interface design, object instance method callback: Prerequisites: The S5g-1 mission system already exists; The S5g-2 server has been added to the task system; S5g-3 The object instance already exists; S5g-4 methods are defined in object classes.
9. The method for implementing remote procedure call in LVC-DE distributed synthesis environment according to claim 1, characterized in that: S5 interface design, object instance method callback: postcondition: none Exception: S5h-1 Internal error on the server.
