Simulation platform plug-in development method, device and equipment based on development wizard

Through the simulation platform plug-in development method based on the development wizard, the underlying framework code is generated and the life cycle management mechanism is used to solve the problems of low efficiency and poor maintainability in the traditional development process, and achieve efficient, flexible and stable plug-in development.

CN118444888BActive Publication Date: 2024-09-24NAT UNIV OF DEFENSE TECH
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410908852.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-09-24
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

The lack of automation tools in the traditional development process results in low plug-in development efficiency, complex dependencies and interactions between plug-ins, and the lack of effective communication and management mechanisms, which affects device stability and maintainability.

Method used

Provides a development wizard-based simulation platform plug-in development method. By obtaining the simulation training plan formulated by the user, the underlying framework code is generated, and the life cycle management mechanism is used to complete local plug-in development, simplifying the development process and improving development efficiency and code consistency.

Benefits of technology

The efficiency of plug-in development is improved. The generated underlying framework code is cross-platform and supports different environments. It enhances flexibility and maintainability, standardizes the development process, and reduces maintenance complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118444888B
    Figure CN118444888B
Patent Text Reader

Abstract

The present invention relates to a simulation platform plug-in development method, device and equipment based on a development wizard. The method comprises: obtaining a simulation training plan formulated by a user. Generate underlying framework code according to the simulation training plan and a preset business scenario customized template, and configure the interactive information of the development wizard by running the underlying framework code. Complete local plug-in development according to the interactive information and the life cycle management mechanism of the development wizard. The method can improve the efficiency, flexibility and stability of software plug-in development of the simulation platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of plug-in development based on a simulation platform, and in particular to a method, device and equipment for developing a simulation platform plug-in based on a development wizard. Background Art

[0002] The traditional development process requires manual writing of a large amount of repetitive code, especially in the generation of the basic framework code of the plug-in. The lack of automated tools leads to low development efficiency. When encapsulating specific business logic and customizing specific application scenarios, existing development practices often lack effective guidance and tools, making it difficult for developers to implement complex functions. As the number of plug-ins increases, the dependencies and interactions between plug-ins become complex, and the existing frameworks often do not provide effective communication and management mechanisms, which makes plug-in integration difficult and affects the stability of the device. In the absence of effective management and monitoring tools, it is very difficult to maintain and update multiple plug-ins, especially in large projects, which affects the maintainability and iteration speed of the software. The plug-ins written by different developers are not in a unified style, resulting in a lack of consistency and standardization in the code, which brings difficulties to later maintenance and integration. Summary of the invention

[0003] Based on this, it is necessary to provide a simulation platform plug-in development method, device and equipment based on a development wizard that can enable more efficient, flexible and stable software development in response to the above technical problems.

[0004] A simulation platform plug-in development method based on a development wizard, the method comprising:

[0005] Get the simulation training plan prepared by the user.

[0006] Generate underlying framework code based on simulation training plan and preset business scenario customized template, and configure the interactive information of the development wizard by running the underlying framework code.

[0007] Complete local plug-in development based on the lifecycle management mechanism of interactive information and development wizard.

[0008] In one of the embodiments, it also includes: generating a simulation training plan through simulation training parameters entered by the user in the operation interface of the simulation platform.

[0009] In one embodiment, it also includes: the simulation training program generates the underlying framework code of the plug-in according to the preset business scenario customization template, runs the underlying framework code through a wizard-style installation method, guides the user to set the basic functions in the business logic encapsulation interface, so that the development wizard generates the business plug-in basic code according to the basic functions. The business plug-in basic code is encapsulated to obtain a wizard file, and the developer uses the advanced functions of the development wizard to customize the scenario development of the wizard file to obtain the interaction information between the plug-ins.

[0010] In one embodiment, the interaction information includes: service interface information and communication protocol.

[0011] In one embodiment, the method further includes: encapsulating the basic code of the business plug-in to obtain a wizard file, the developer generates the plug-in communication component code by using the advanced function of the development wizard, and after running the plug-in communication component code, matching the communication mechanism according to the preset plug-in communication range. Customizing the wizard file according to the communication mechanism to obtain the interaction information between the plug-ins.

[0012] In one embodiment, the lifecycle management mechanism of the development wizard includes: plug-in initialization, plug-in loading, plug-in running and plug-in uninstallation.

[0013] In one of the embodiments, the interactive information further includes: acquiring remote plug-in information by broadcasting, comparing the remote plug-in information with the wizard file to obtain distinguished plug-in information, and storing the distinguished plug-in information in a local warehouse.

[0014] In one embodiment, the development wizard includes: a data receiving module, an interface display module, an application development wizard data processing module, a configuration information modification module, a code compilation function module and a basic plug-in generation module. The data receiving module is used to receive the simulation training parameters entered by the user in the operation interface. The interface display module is used to display the information of the operation interface of the development wizard. The configuration information modification module is used to obtain the user's configuration operation information on the business plug-in basic code. The application development wizard data processing module is used to generate the business plug-in basic code according to the simulation training parameters obtained by the data receiving module, and customize the business plug-in basic code according to the configuration operation information received by the configuration information modification module, and send the customized business plug-in basic code to the code compilation function module. The code compilation function module is used to generate a wizard file according to the received customized business plug-in basic code, and send the wizard file to the basic plug-in generation module. The basic plug-in generation module is used to generate a customized plug-in corresponding to the simulation training scheme according to the received wizard file.

[0015] A simulation platform plug-in development device based on a development wizard, the device comprising:

[0016] The simulation training program acquisition module is used to obtain the simulation training program formulated by the user.

[0017] The interactive information generation module is used to generate the underlying framework code according to the simulation training plan and the preset business scenario customized template, and configure the interactive information of the development wizard by running the underlying framework code.

[0018] The plug-in development module is used to complete local plug-in development based on the life cycle management mechanism of interactive information and development wizard.

[0019] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0020] Get the simulation training plan prepared by the user.

[0021] Generate underlying framework code based on simulation training plan and preset business scenario customized template, and configure the interactive information of the development wizard by running the underlying framework code.

[0022] Complete local plug-in development based on the lifecycle management mechanism of interactive information and development wizard.

[0023] The above-mentioned simulation platform plug-in development method, device and equipment based on the development wizard simplifies the development process and reduces a large amount of manual writing and configuration by automatically generating the underlying framework code and providing the development wizard. Then, by generating the underlying framework code and providing an interactive development wizard, developers can create simulation plug-ins that meet the preset business scenarios more quickly, improving development efficiency. The generated underlying framework code may be cross-platform and can support deployment and operation on different hardware platforms or operating systems. This increases the flexibility and portability of the solution, so that the developed simulation training solution can be more widely used in different environments. In addition, developers can create reusable modules and components that can be reused in different simulation training solutions. Finally, the lifecycle management mechanism can help developers better organize and manage the code throughout the development process, help keep the code neat and maintainable, and standardize the development process. Thereby improving the efficiency, flexibility and stability of the software plug-in development of the simulation platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 A schematic diagram of a flow chart of a simulation platform plug-in development method based on a development wizard in one embodiment;

[0025] Figure 2 A schematic diagram of a flow chart of plug-in loading and running in one embodiment;

[0026] Figure 3 A schematic diagram of a flow chart of sending plug-in data content in one embodiment;

[0027] Figure 4 A schematic diagram of a process of displaying remote plug-in information in one embodiment;

[0028] Figure 5 A schematic diagram of a process for obtaining remote plug-in information in one embodiment;

[0029] Figure 6A flowchart of a plug-in configuration option in one embodiment;

[0030] Figure 7 A flowchart of a development wizard structure of an application program in an embodiment;

[0031] Figure 8 A schematic diagram of a process of generating a plug-in file by using an application development wizard in one embodiment;

[0032] Fig. 9 A schematic diagram of a process for developing a user customized plug-in based on a development wizard in one embodiment;

[0033] Fig.10 A structural block diagram of a simulation platform plug-in development device based on a development wizard in one embodiment;

[0034] Fig.11 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0036] In one embodiment, Figure 1 As shown, a simulation platform plug-in development method based on a development wizard is provided, comprising the following steps:

[0037] Step 102, obtaining a simulation training plan formulated by a user.

[0038] Specifically, the plug-in development wizard tool set is used to obtain the plug-in requirements entered by the user on the simulation platform, and the system receives the requirements to obtain the simulation training plan. Among them, the tool set includes business basic function encapsulation and business scenario customization functions.

[0039] Step 104, generating underlying framework code according to the simulation training program and the preset business scenario customization template, and configuring the interactive information of the development wizard by running the underlying framework code.

[0040] The preset business scenario customization template refers to the template in the scenario customization function in the plug-in development wizard, which provides a standardized and consistent starting point for plug-in development.

[0041] Specifically, the development wizard automatically generates the basic framework code of the plug-in based on the template, and uses the scenario customization tool to generate the plug-in business code (i.e., plug-in basic code) for different scenarios based on the user's simulation training needs. Business scenarios are divided into: map basic code, interface basic code, background basic code, etc. The guided business logic and scenario customization development tools make it easier and more direct to implement complex business logic and specific scenarios. Developers can quickly build functions that meet specific business needs through a graphical interface or a simple instruction set, which improves the pertinence and effectiveness of software solutions.

[0042] Furthermore, by utilizing the business logic encapsulation function of the wizard, the plug-in business code is guided to the users through a wizard-style installation. The users only need to check the options in the business logic encapsulation interface according to their needs to generate a business plug-in basic code (i.e., the underlying framework code) with basic content.

[0043] Furthermore, by running the underlying framework code, developers are allowed to customize the functional characteristics of the plug-in, including but not limited to the name, version, dependencies, etc. of the plug-in, and complete the plug-in custom code configuration of the development wizard through a graphical interface or configuration file. The plug-in custom code configuration includes: plug-in name, version, information library content and other information content.

[0044] Furthermore, developers use wizard tools to encapsulate plug-in custom codes to form independent, reusable business logic plug-ins and obtain wizard files. Developers can use the advanced functions of the wizard, namely the plug-in communication component code, to obtain information communication data content for complex scenarios such as interaction between plug-ins and data sharing. This content is interconnected through topic subscription and code class. Automated code generation and guided development processes ensure the consistency and standardization of the development process, reducing errors and inconsistencies introduced by manual coding. This improves code quality and reduces the complexity and cost of later maintenance.

[0045] Step 106: Complete the local plug-in development according to the interactive information and the lifecycle management mechanism of the development wizard.

[0046] Specifically, the communication protocol configuration tool of the development wizard is used to transmit interactive information between different system platforms or plug-ins in a broadcast manner. In addition, the development wizard integrates the plug-in life cycle management function and supports plug-in installation, update, uninstallation and other operation instructions. After the system decodes the operation instructions, it monitors and optimizes the performance of interactive information during the development process to complete local plug-in development.

[0047] In the above-mentioned simulation platform plug-in development method based on the development wizard, the development process is simplified by automatically generating the underlying framework code and providing the development wizard, reducing a large amount of manual writing and configuration. Then, by generating the underlying framework code and providing an interactive development wizard, developers can create simulation plug-ins that meet the preset business scenarios more quickly, improving development efficiency. The generated underlying framework code may be cross-platform and can support deployment and operation on different hardware platforms or operating systems. This increases the flexibility and portability of the solution, so that the developed simulation training solution can be more widely used in different environments. In addition, developers can create reusable modules and components that can be reused in different simulation training solutions. Finally, the lifecycle management mechanism can help developers better organize and manage the code throughout the development process, help keep the code neat and maintainable, and standardize the development process. This improves the efficiency, flexibility and stability of software plug-in development for the simulation platform.

[0048] In one of the embodiments, a simulation training plan is generated based on simulation training parameters entered by a user in an operation interface of a simulation platform.

[0049] In one embodiment, the simulation training solution generates the underlying framework code of the plug-in according to the preset business scenario customization template, runs the underlying framework code through a wizard-style installation method, guides the user to set basic functions in the business logic encapsulation interface, so that the development wizard generates the business plug-in basic code according to the basic functions. The business plug-in basic code is encapsulated to obtain a wizard file, and the developer uses the advanced functions of the development wizard to customize the scenario development of the wizard file to obtain the interaction information between the plug-ins.

[0050] It is worth mentioning that users can package the wizard by themselves. After completing the basic code transformation, they can repackage the developed code plug-in into a wizard file according to their own needs. In addition, the wizard provides detailed configuration options, which refer to information such as the plug-in name, version, and information library content.

[0051] In one embodiment, the interaction information includes: service interface information and communication protocol.

[0052] It is worth mentioning that the development wizard supports the definition and discovery of service interfaces between plug-ins, enabling different business logic plug-ins to collaborate with each other and share data and functions, thereby improving the reusability of the plug-ins and increasing the flexibility of the system.

[0053] In one embodiment, the business plug-in basic code is encapsulated to obtain a wizard file. The developer uses the advanced functions of the development wizard to generate the plug-in communication component code. After running the plug-in communication component code, the communication mechanism is matched according to the preset plug-in communication range. The wizard file is customized according to the communication mechanism to obtain the interaction information between the plug-ins.

[0054] It is worth noting that the advanced functions of the development wizard include the plug-in communication component code, which will be generated only after the advanced functions are selected. If the advanced functions are not selected, the component code information content will not be generated. Information data content communication is carried out through broadcasting, and data interconnection is achieved through topic subscription and code class, thereby realizing complex scenarios such as interaction between plug-ins and data sharing. In order to ensure effective communication between plug-ins, the development wizard provides a configuration tool for the communication protocol and supports multiple communication mechanisms.

[0055] In one embodiment, the lifecycle management mechanism of the development wizard includes: plug-in initialization, plug-in loading, plug-in running and plug-in uninstallation.

[0056] It is worth mentioning that the development wizard integrates the plug-in life cycle management function, supports plug-in installation, update, uninstallation and other operations, and simplifies plug-in maintenance and management. It implements comprehensive plug-in management tools including plug-in life cycle management, as well as plug-in performance monitoring and optimization strategies, which simplifies plug-in maintenance and management, while ensuring the stable operation and efficient performance of the system.

[0057] In one embodiment, the interactive information obtains remote plug-in information by broadcasting, compares the remote plug-in information with the wizard file, obtains the difference plug-in information, and stores the difference plug-in information in the local warehouse.

[0058] In one embodiment, if Figure 2 As shown, a process of loading and running a plug-in is provided, which specifically includes:

[0059] Select the development wizard to select the business scenario module.

[0060] The underlying framework code refers to the underlying program code information of the framework plug-in.

[0061] Adding plug-in information interaction business logic refers to adding the interactive business logic information content between plug-in information communication functions.

[0062] Adding interface information interaction business logic refers to adding interactive information content between users and the framework system interface.

[0063] Plugin initialization refers to executing plugin initialization information, including initialization of plugin basic application memory information and clearing of dynamic variables.

[0064] Plugin loading refers to loading plugins, adding them to the running framework system for running and being managed by it.

[0065] Plugin operation refers to the operation of plugins in the framework's basic framework. Plugins are run and called according to their own needs.

[0066] Plugin uninstallation refers to the uninstallation of the plugin, which releases the various information resources and memory space occupied by the entire plugin during operation, and releases the applied variable information.

[0067] In one embodiment, if Figure 3 As shown, a process of sending plug-in data content is provided, which specifically includes:

[0068] Data content sending refers to the sending of information content between framework plug-ins.

[0069] Selecting a communication mechanism refers to the framework selecting a corresponding information communication scope according to the scope of communication usage, and selecting an appropriate communication mechanism scope between plug-ins and between frameworks and platforms.

[0070] Communication between plug-ins refers to message communication between plug-ins.

[0071] Message communication refers to the process in which a plug-in communicates information content by sending messages.

[0072] The plug-in accepts the message content, which refers to the behavior of the plug-in accepting the message after obtaining the information.

[0073] Communication between frameworks refers to the communication between frameworks using interface communication.

[0074] Interface communication refers to the plug-in realizing information content communication through interface registration, and realizing the information content process through interface registration.

[0075] The framework accepts the message content and refers to the behavior of the plug-in to accept the framework after obtaining the information.

[0076] Communication between platforms refers to the communication between platforms in the form of data distribution.

[0077] Data distribution communication refers to the framework implementing interface communication by subscribing to topics, and distributing data content by subscribing to topics. This communication method is not limited to any platform.

[0078] The platform accepts the message content, which refers to the behavior of the plug-in accepting the platform after obtaining the information.

[0079] In one embodiment, if Figure 4As shown, a process of displaying remote plug-in information is provided, which specifically includes:

[0080] Acquiring remote plug-in information refers to the framework acquiring the content of broadcast information sent by remote communication through broadcast reception.

[0081] Querying remote plug-in information content means that the framework obtains the information content of the remote plug-in through broadcasting, and displays the remote information content in the framework body.

[0082] Filtering out plug-ins that are different from local ones means that after the local framework obtains the remote information content, it compares the information content of the local plug-in and filters out the remote plug-in information content that is not contained in the local.

[0083] Displaying to the local repository means displaying the remote plug-in that has obtained information different from the local plug-in information in the local directory, so that users can query the corresponding information.

[0084] In one embodiment, if Figure 5 As shown, a process for obtaining remote plug-in information is provided, which specifically includes:

[0085] Retrieving a remote plug-in refers to downloading a remote plug-in and downloading it to the local computer for use.

[0086] Querying remote plug-in information refers to the local framework obtaining the remote plug-in information through broadcasting and displaying it locally.

[0087] Sending a remote plug-in download request refers to sending a download request to a plug-in of a specified computer framework after obtaining the remote plug-in information content to inquire whether the remote plug-in can be downloaded.

[0088] Getting a remote plug-in information reply means that after sending a download request, the remote plug-in will reply the request instruction to the computer device that sent the download application. The computer device that applied will prepare for the download work after getting the remote reply instruction.

[0089] Remote plugin download refers to downloading plugins from a remote framework.

[0090] Remote plug-in download completion means that the plug-in is successfully obtained from the remote framework and stored locally.

[0091] In one embodiment, if Figure 6 As shown, a process of plug-in configuration options is provided, which specifically includes:

[0092] Selecting a plug-in scenario refers to obtaining a plug-in mode.

[0093] Configuring the plugin name refers to adding the plugin name.

[0094] Configuring a plugin version refers to adding a plugin version.

[0095] Adding a plug-in dependency repository refers to adding a plug-in dependency information content including message communication, data subscription distribution, and framework communication content dependency repository.

[0096] Modify the plugin configuration information and modify the plugin content information according to your needs.

[0097] Compile and generate the initial plug-in refers to compile and generate the initial plug-in.

[0098] In one embodiment, if Figure 7 As shown, the application development wizard includes: a data receiving module, an interface display module, an application development wizard data processing module, a configuration information modification module, a code compilation function module and a basic plug-in generation module. The data receiving module is used to receive the simulation training parameters entered by the user in the operation interface. The interface display module is used to display the information of the operation interface of the development wizard. The configuration information modification module is used to obtain the user's configuration operation information on the business plug-in basic code. The application development wizard data processing module is used to generate the business plug-in basic code according to the simulation training parameters obtained by the data receiving module, and customize the business plug-in basic code according to the configuration operation information received by the configuration information modification module, and send the customized business plug-in basic code to the code compilation function module. The code compilation function module is used to generate a wizard file according to the received customized business plug-in basic code, and send the wizard file to the basic plug-in generation module. The basic plug-in generation module is used to generate a customized plug-in corresponding to the simulation training scheme according to the received wizard file.

[0099] It is worth noting that the data processing module sends the processing results of the plug-in basic underlying code and configuration information to the interface display module, and the interface display module can refresh the interface according to the processing information content.

[0100] In one embodiment, if Figure 8 As shown, a process of generating a plug-in file by using an application development wizard is provided, which specifically includes:

[0101] The data receiving module obtains the basic scenario information of the simulation training program entered by the user in the interface display module, extracts and processes the basic information, and obtains the scenario information, plug-in name and plug-in version information of the plug-in corresponding to the development of the program, wherein the scenario information is displayed in the plug-in version information interface and the plug-in name interface respectively, and the plug-in name is displayed in the plug-in version information interface.

[0102] Furthermore, the scene information, plug-in version and plug-in name are sent to the application development wizard data processing module to generate the plug-in basic code. After modifying the configuration file content, this code is sent to the compilation module for compilation operation to obtain the compilation information content. The compilation information content is sent to the plug-in generation module for processing to generate the corresponding plug-in file.

[0103] In one embodiment, if Fig. 9 As shown, a development process of a user customized plug-in based on a development wizard is provided, which specifically includes:

[0104] The interface module displays the basic information content of plug-in development. The user selects the basic information of the simulation training program from the basic information content. After the selection is completed, the data processing module of the development wizard obtains the basic information content selected by the user and generates the basic plug-in code. Then, the user customizes the basic plug-in code and configures the plug-in information content, which can be the plug-in name, plug-in running scenario, plug-in version, etc. The configured plug-in information content is sent to the compilation module, and the compilation file is generated by the compilation module. Finally, the compilation file is sent to the plug-in generation module to generate a basic plug-in customized according to the simulation training program.

[0105] It should be understood that although Figure 1-Figure 6 , Figure 8-Figure 9 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-Figure 6 , Figure 8-Figure 9 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0106] In one embodiment, Fig.10 As shown, a simulation platform plug-in development device based on a development wizard is provided, comprising: a simulation training program acquisition module 1002, an interaction information generation module 1004 and a plug-in development module 1006, wherein:

[0107] The simulation training plan acquisition module 1002 is used to acquire the simulation training plan formulated by the user.

[0108] The interactive information generating module 1004 is used to generate the underlying framework code according to the simulation training program and the preset business scenario customized template, and configure the interactive information of the development wizard by running the underlying framework code.

[0109] The plug-in development module 1006 is used to complete the local plug-in development according to the interactive information and the life cycle management mechanism of the development wizard.

[0110] For the specific definition of the simulation platform plug-in development device based on the development wizard, please refer to the definition of the simulation platform plug-in development method based on the development wizard above, which will not be repeated here. Each module in the above-mentioned simulation platform plug-in development device based on the development wizard can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0111] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.11 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a simulation platform plug-in development method based on a development wizard is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0112] Those skilled in the art will understand that Figure 10-11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0113] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0114] Get the simulation training plan prepared by the user.

[0115] Generate underlying framework code based on simulation training plan and preset business scenario customized template, and configure the interactive information of the development wizard by running the underlying framework code.

[0116] The local plug-in development is completed according to the interactive information and the life cycle management mechanism of the development wizard.

[0117] In one embodiment, when the processor executes the computer program, the following steps are also implemented: the simulation training program generates the underlying framework code of the plug-in according to the preset business scenario customization template, runs the underlying framework code through a wizard installation method, guides the user to set the basic functions in the business logic encapsulation interface, so that the development wizard generates the business plug-in basic code according to the basic functions. The business plug-in basic code is encapsulated to obtain a wizard file, and the developer uses the advanced functions of the development wizard to customize the scenario development of the wizard file to obtain the interaction information between the plug-ins.

[0118] In one embodiment, when the processor executes the computer program, the following steps are further implemented: encapsulating the business plug-in basic code to obtain a wizard file, the developer generates the plug-in communication component code using the advanced functions of the development wizard, and after running the plug-in communication component code, matching the communication mechanism according to the preset plug-in communication range. Customized scenario development is performed on the wizard file according to the communication mechanism to obtain the interaction information between the plug-ins.

[0119] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0120] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0121] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A simulation platform plug-in development method based on development wizard, It is characterized in that The method comprises: Obtain the simulation training plan formulated by the user; Generate the underlying framework code according to the simulation training program and the preset business scenario customization template, and configure the interactive information of the development wizard by running the underlying framework code; the simulation training program generates the underlying framework code of the plug-in according to the preset business scenario customization template, and runs the underlying framework code through a wizard-style installation method to guide the user to set basic functions in the business logic encapsulation interface, so that the development wizard generates the business plug-in basic code according to the basic functions; Encapsulate the business plug-in basic code to obtain a wizard file, and the developer uses the development wizard to generate the plug-in communication component code. After running the plug-in communication component code, the communication mechanism is matched according to the preset plug-in communication range; Customizing the scenario development of the wizard file according to the communication mechanism to obtain interaction information between plug-ins; The local plug-in development is completed according to the interactive information and the life cycle management mechanism of the development wizard; the life cycle management mechanism of the development wizard includes: plug-in initialization, plug-in loading, plug-in running and plug-in uninstallation.

2. The method according to claim 1, It is characterized in that Get the simulation training plan developed by the user, including: A simulation training plan is generated through simulation training parameters entered by the user in the operation interface of the simulation platform.

3. The method according to claim 1, It is characterized in that The interaction information includes: service interface information and communication protocol.

4. The method according to claim 3, It is characterized in that After the step of completing the local plug-in development according to the interaction information and the lifecycle management mechanism of the development wizard, the method further includes: The interactive information acquires remote plug-in information by broadcasting, compares the remote plug-in information with the wizard file, obtains distinguished plug-in information, and stores the distinguished plug-in information in a local warehouse.

5. The method according to claim 4, It is characterized in that The development wizard includes: a data receiving module, an interface display module, an application development wizard data processing module, a configuration information modification module, a code compilation function module and a basic plug-in generation module; The data receiving module is used to receive the simulation training parameters entered by the user on the operation interface; The interface display module is used to display information on the operation interface of the development wizard; The configuration information modification module is used to obtain the user's configuration operation information on the business plug-in basic code; The application development wizard data processing module is used to generate a business plug-in basic code according to the simulation training parameters obtained by the data receiving module, and customize the business plug-in basic code according to the configuration operation information received by the configuration information modification module, and send the customized business plug-in basic code to the code compilation function module; The code compilation function module is used to generate a wizard file according to the received customized business plug-in basic code, and send the wizard file to the basic plug-in generation module; The basic plug-in generation module is used to generate a customized plug-in corresponding to the simulation training program according to the received wizard file.

6. A simulation platform plug-in development device based on a development wizard, It is characterized in that The device comprises: A simulation training program acquisition module is used to acquire the simulation training program formulated by the user; An interactive information generation module is used to generate an underlying framework code according to the simulation training program and a preset business scenario customization template, and configure the interactive information of the development wizard by running the underlying framework code; the simulation training program generates the underlying framework code of the plug-in according to the preset business scenario customization template, runs the underlying framework code through a wizard-style installation method, and guides the user to set basic functions in the business logic encapsulation interface, so that the development wizard generates the business plug-in basic code according to the basic functions; Encapsulate the business plug-in basic code to obtain a wizard file, and the developer uses the development wizard to generate the plug-in communication component code. After running the plug-in communication component code, the communication mechanism is matched according to the preset plug-in communication range; Customizing the scenario development of the wizard file according to the communication mechanism to obtain interaction information between plug-ins; The plug-in development module is used to complete the local plug-in development according to the interactive information and the life cycle management mechanism of the development wizard; the life cycle management mechanism of the development wizard includes: plug-in initialization, plug-in loading, plug-in running and plug-in uninstallation.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Pervasive application code framework fast-generating method and prototype system

    CN103793226A

  • Platform-spanning simulation model development method and system

    CN104598240A

  • Ipage webpage type low-code development platform based on drag-and-drop component framework

    CN116225429A

  • Simulation model code generation system and method based on visual guide

    CN116661764A

  • Software development method, system and equipment based on scaffold tool and storage medium

    CN117667075A