Simulation processing method and device, equipment, medium and product

By using a virtual terminal connected via TCP protocol to transmit information between the programming environment and the simulation environment, the problem of secondary development of simulation software being limited by specific programming languages ​​is solved, and efficient communication and stable development independent of language are achieved.

CN118778929APending Publication Date: 2024-10-15HUNAN SANY PETROLEUM TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410828525.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

The secondary development of simulation software is limited by specific programming languages, which restricts the choices and flexibility of developers.

Method used

By receiving user operation information in the programming environment, using the TCP protocol communication connection between the first virtual terminal and the second virtual terminal, the information is transmitted to the simulation environment, and the simulation action instructions are parsed and executed in the simulation environment, thus realizing communication between the programming environment and the simulation environment.

Benefits of technology

It enables communication between any programming language and simulation software, ensuring language independence for secondary development, high efficiency and stability of communication, and enhancing the flexibility of developers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778929A_ABST
    Figure CN118778929A_ABST
Patent Text Reader

Abstract

The invention discloses a simulation processing method and device, equipment, a medium and a product, and relates to the technical field of cross-language development, and the disclosed simulation processing method comprises the steps that in a programming environment, input information of current user operation is received; transmitting the input information from the programming environment to a first virtual terminal; sending the input information to a second virtual terminal through the first virtual terminal; sending the input information from the second virtual terminal to a simulation environment; and in the simulation environment, analyzing the input information to obtain a current simulation action execution instruction, and executing the simulation action execution instruction. According to the method and the device, language independence of secondary development of simulation software is realized, and meanwhile, high efficiency and stability of communication are ensured, so that developers can perform secondary development work more flexibly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cross-language development technology, and in particular to simulation processing methods, devices, equipment, media and products. Background Art

[0002] With the widespread application of simulation software in various fields, the demand for secondary development of simulation software is growing.

[0003] However, in the related art, the secondary development of simulation software generally requires the use of a specific programming language to realize the development of the user interface and the encapsulation of the simulation function. For developers, the specific programming language greatly limits their selectivity and flexibility. Summary of the invention

[0004] The main purpose of this application is to provide a simulation processing method, device, equipment, medium and product, aiming to solve the technical problem that the secondary development of simulation software is limited to a specific programming language.

[0005] To achieve the above purpose, the present application proposes a simulation processing method, comprising:

[0006] Receive input information of current user operation in the programming environment;

[0007] passing the input information from the programming environment to a first virtual terminal;

[0008] The input information is sent to the second virtual terminal through the first virtual terminal; wherein the first virtual terminal and the second virtual terminal are connected via a transmission control protocol TCP (Transmission Control Protocol) communication connection;

[0009] sending the input information from the second virtual terminal to the simulation environment;

[0010] In the simulation environment, the input information is parsed to obtain a current simulation action execution instruction, and the simulation action execution instruction is executed.

[0011] In one embodiment, the step before receiving input information input in the programming environment further includes:

[0012] Initiate a thread in the programming environment to build the first virtual terminal;

[0013] Starting the simulation environment through the programming environment;

[0014] When the simulation environment is started, a thread is started simultaneously to build the second virtual terminal.

[0015] In one embodiment, the step of receiving input information of the current user operation in the programming environment includes:

[0016] Receive the current user operation instruction input in the programming environment;

[0017] The current user operation instruction is parsed to obtain the input information.

[0018] In one embodiment, before transmitting the input information from the programming environment to the first virtual terminal, the method further comprises:

[0019] In case of detecting that a command is sent in the programming environment, starting the first virtual terminal;

[0020] When the simulation environment is started, the second virtual terminal is started.

[0021] In one embodiment, the step of parsing the input information, obtaining a simulation action execution instruction, and executing the simulation action execution instruction in the simulation environment includes:

[0022] In the simulation environment, the input information is parsed using a specific protocol to obtain a current simulation action execution instruction; the specific protocol includes a corresponding relationship between the input information and the simulation action execution instruction;

[0023] Execute the current simulation action execution instruction.

[0024] In one embodiment, the step of parsing the input information, obtaining the current simulation action execution instruction, and executing the simulation action execution instruction in the simulation environment further includes:

[0025] When the simulation process executes the simulation action execution instruction, obtaining return information generated by the simulation environment;

[0026] Sending the return information to the second virtual terminal through the simulation environment;

[0027] Sending the return information to the first virtual terminal through the second virtual terminal;

[0028] sending the return information from the first virtual terminal to a programming environment;

[0029] The returned information is output through a user interface.

[0030] In addition, to achieve the above purpose, the present application also proposes a simulation processing device, the simulation processing device comprising:

[0031] An information receiving module, used for receiving input information of current user operation in a programming environment;

[0032] An information transmission module, used for transmitting the input information from the programming environment to the first virtual terminal;

[0033] An information sending module, used for sending the input information to the second virtual terminal through the first virtual terminal; wherein the first virtual terminal and the second virtual terminal are connected via a transmission control protocol TCP protocol;

[0034] An information transmission module, used for sending the input information from the second virtual terminal to the simulation environment;

[0035] The simulation execution module is used to analyze the input information in the simulation environment, obtain the current simulation action execution instruction, and execute the simulation action execution instruction.

[0036] In addition, to achieve the above objectives, the present application also proposes a simulation processing device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the simulation processing method as described above.

[0037] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the simulation processing method as described above are implemented.

[0038] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the simulation processing method as described above are implemented.

[0039] One or more technical solutions proposed in this application have at least the following technical effects:

[0040] Compared with the prior art, the technical solution provided by the present application has a first virtual terminal for mutually transmitting information with the programming environment, and a second virtual terminal for mutually transmitting information with the simulation environment, and the first virtual terminal and the second virtual terminal are connected through the transmission control protocol TCP communication, so that the programming environment and the simulation environment can communicate, so that any programming language can communicate with the simulation software, solving the technical problem that the secondary development of the simulation software is limited to a specific programming language. The present application not only realizes the language independence of the secondary development of the simulation software, but also ensures the efficiency and stability of the communication, so that developers can carry out secondary development work more flexibly. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0043] Figure 1 This is a flow chart of the first embodiment of the simulation processing method of the present application;

[0044] Figure 2 A brief flowchart of the simulation processing method of this application;

[0045] Figure 3 This is a schematic diagram of the module structure of the simulation processing device according to an embodiment of the present application;

[0046] Figure 4 Schematic diagram of the device structure of the hardware operating environment involved in the simulation processing method in the embodiment of the present application.

[0047] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0048] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0049] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0050] The main solution of the embodiment of the present application is: receiving input information of the current user operation in a programming environment; transmitting the input information from the programming environment to a first virtual terminal; sending the input information to a second virtual terminal through the first virtual terminal; wherein the first virtual terminal and the second virtual terminal are connected via a transmission control protocol TCP communication; sending the input information from the second virtual terminal to a simulation environment; in the simulation environment, parsing the input information, obtaining a current simulation action execution instruction, and executing the simulation action execution instruction.

[0051] Since the secondary development of simulation software by related technologies requires the use of specific programming languages, it greatly limits the choices and flexibility of developers.

[0052] This application provides a solution that enables any programming language to communicate with simulation software, allowing developers to perform secondary development work more flexibly; in addition, it also ensures the efficiency and stability of communication.

[0053] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, etc. The following takes the simulation processing device as an example to illustrate this embodiment and the following embodiments.

[0054] Based on this, the embodiment of the present application provides a simulation processing method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the simulation processing method of the present application.

[0055] In this embodiment, the simulation processing method includes steps S10 to S50:

[0056] Step S10, receiving input information of the current user operation in the programming environment.

[0057] It should be noted that the programming environment is the environment in which the programming software used for the secondary development of the simulation software runs, and the programming environment runs the programming software, so that the user's operation information instructions can be received and analyzed. It can be understood that the programming software can be any programming software, so that the user's operation information instructions can be written in any programming language.

[0058] In a feasible implementation, step S10 may include steps A11 to A12:

[0059] Step A11, receiving the current user operation instruction input in the programming environment.

[0060] Step A12 parses the current user operation instruction to obtain the input information.

[0061] It should be noted that the input information is obtained by parsing the current user operation instruction through the specific rules configured by the currently used programming software. It is understandable that the input information contains key information converted by the current user operation instruction. In addition, in order to be able to use the TCP protocol for subsequent transmission, it is also necessary to encapsulate it into a specific format according to the relevant provisions of the TCP protocol for subsequent transmission.

[0062] In a feasible implementation manner, before step S10, steps S01 to S03 are also included:

[0063] Step S01, starting a thread in the programming environment to build the first virtual terminal.

[0064] It should be noted that starting a thread to build the first virtual terminal refers to creating and running a virtual terminal program using multi-threading technology; for example, creating and running a client program, wherein a thread is the smallest unit scheduled by an operating system and is responsible for executing specific tasks; a client is a program running on a device that is used to monitor operation information from a user and provide corresponding feedback.

[0065] The client program is the first virtual terminal.

[0066] Step S02, starting the simulation environment through the programming environment.

[0067] It should be noted that the simulation environment is the environment in which the simulation software runs.

[0068] Step S03, when the simulation environment is started, simultaneously start a thread to build the second virtual terminal.

[0069] It should be noted that starting a thread to build the second virtual terminal refers to creating and running a virtual terminal program using multi-threading technology; for example, creating and running a server program, wherein the server is a program running on the network for listening to connection requests from clients and providing corresponding services.

[0070] The server program is the second virtual terminal.

[0071] Step S20: transmitting the input information from the programming environment to the first virtual terminal.

[0072] It should be noted that the input information needs to be directly transmitted to the first virtual terminal in the programming environment.

[0073] In a feasible implementation manner, before step S20, steps S04 to S05 are also included:

[0074] Step S04, when it is detected that the simulation process control is started in the programming environment, the first virtual terminal is started.

[0075] It should be noted that, when performing secondary development of simulation software, the interface of the programming software provides a simulation process control control, and in response to the user triggering the simulation process control control, the programming software starts the simulation process control function, and the first virtual terminal starts. After the first virtual terminal is started, the first virtual terminal can receive input information transmitted in the programming environment.

[0076] Step S05: when the simulation environment is started, start the second virtual terminal.

[0077] It is understandable that when the programming software starts the simulation process control function, the simulation environment also starts to start. After the simulation environment starts, it will automatically start a thread to build a second virtual terminal.

[0078] Step S30: sending the input information to the second virtual terminal via the first virtual terminal; wherein the first virtual terminal and the second virtual terminal are connected via a transmission control protocol TCP protocol.

[0079] It should be noted that the TCP protocol refers to a communication protocol. Only when the first virtual terminal and the second virtual terminal establish a connection through the communication protocol can they transmit and receive signals to each other. It can be understood that the communication protocol mainly includes the TCP port, the format of sending information, and the method of parsing information; in addition, the TCP protocol has a mechanism for information confirmation and retransmission, which can effectively ensure the reliable transmission of data.

[0080] Step S40: sending the input information from the second virtual terminal to the simulation environment.

[0081] Step S50: in the simulation environment, parse the input information, obtain the current simulation action execution instruction, and execute the simulation action execution instruction.

[0082] It should be noted that the current simulation action instruction refers to the instruction that the simulation software needs to execute. It can be understood that the simulation software will execute the instruction after receiving the simulation action instruction to generate simulation results or information.

[0083] In a feasible implementation manner, step S50 may include B11-B12:

[0084] Step B11, in the simulation environment, the input information is parsed using a specific protocol to obtain a current simulation action execution instruction.

[0085] The specific protocol includes a correspondence between user operation information and simulation action execution instructions.

[0086] It should be noted that parsing the input information refers to extracting key information from the received user operation information. It is understandable that a specific protocol can be used when parsing the input information, which includes a mapping relationship between the input information and the simulation action execution instruction. That is, the input information can be parsed using a specific protocol to obtain the corresponding current simulation action execution instruction.

[0087] Step B12, executing the current simulation action execution instruction.

[0088] It should be noted that executing the current simulation action execution instruction in the simulation environment can obtain corresponding simulation results and other information as return information.

[0089] In a feasible implementation manner, step S50 further includes steps S60 to S100:

[0090] Step S60, when the simulation process executes the simulation action execution instruction, obtaining the return information generated by the simulation environment.

[0091] It should be noted that the return information refers to the information generated by the simulation software after executing the simulation action execution instruction.

[0092] Step S70: sending the return information to the second virtual terminal through the simulation environment.

[0093] Step S80: Send the return information to the first virtual terminal through the second virtual terminal.

[0094] Step S90: sending the return information from the first virtual terminal to the programming environment.

[0095] Step S100: outputting the returned information through a user interface.

[0096] It should be noted that the returned information includes information such as simulation results required by the user, and is displayed to the user through the user interface.

[0097] It can be seen that in this embodiment, the processing result of the simulation environment is also returned to the programming environment through the TCP connection between the first virtual terminal and the second virtual terminal. That is, the information exchange between the simulation environment and the programming environment is carried out through the TCP connection.

[0098] Compared with the prior art, the technical solution provided in this embodiment has a first virtual terminal for transmitting information with the programming environment, and a second virtual terminal for transmitting information with the simulation environment, and the first virtual terminal and the second virtual terminal are connected through the transmission control protocol TCP communication, so that the programming environment and the simulation environment can communicate, so that any programming language can communicate with the simulation software, solving the technical problem that the secondary development of the simulation software is limited to a specific programming language. This embodiment not only realizes the language independence of the secondary development of the simulation software, but also ensures the efficiency and stability of the communication, so that developers can carry out secondary development work more flexibly.

[0099] For example, in order to help understand the implementation process of the simulation processing method obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 2 , Figure 2 A brief flow chart of a simulation processing method is provided, specifically:

[0100] In the first step, after starting the main program in the programming environment, the simulation environment will be started; the user triggers the simulation process control control, and the programming software starts the simulation process control to start the thread to build the client in the programming environment and the server in the simulation environment; in addition, the client will establish a connection with the server through the TCP protocol.

[0101] In the second step, after the user operates in the user interface, the main program will parse the user operation signal into a keyword signal and transmit it to the client; the client transmits the keyword signal to the server through the connection established with the server.

[0102] In the third step, after receiving the keyword signal, the server transmits the signal to the simulation environment and parses it using a specific protocol to obtain an execution action instruction; after receiving the execution action instruction, the simulation software executes the corresponding action to obtain a return signal and feeds it back to the server.

[0103] In the fourth step, after receiving the return signal, the server sends the return signal to the client again through the connection with the client; after receiving the return signal, the client feeds it back to the user interface to show the user the corresponding simulation results.

[0104] The entire process will loop through steps 2 to 4 until the user completes the operation.

[0105] This application also provides a simulation processing device, please refer to Figure 3 , the simulation processing device comprises:

[0106] The information receiving module 10 is used to receive the input information of the current user operation in the programming environment;

[0107] An information transmission module 20, used for transmitting the input information from the programming environment to the first virtual terminal;

[0108] The information sending module 30 is used to send the input information to the second virtual terminal through the first virtual terminal; wherein the first virtual terminal and the second virtual terminal are connected via the transmission control protocol TCP protocol;

[0109] An information transmission module 40, configured to send the input information from the second virtual terminal to the simulation environment;

[0110] The simulation execution module 50 is used to analyze the input information in the simulation environment, obtain the current simulation action execution instruction, and execute the simulation action execution instruction.

[0111] The simulation processing device provided by the present application adopts the simulation processing method in the above embodiment, which can solve the technical problem that the secondary development of simulation software is limited to a specific programming language. Compared with the related art, the beneficial effects of the simulation processing device provided by the present application are the same as the beneficial effects of the simulation processing method provided by the above embodiment, and the other technical features in the simulation processing device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0112] The present application provides a simulation processing device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the simulation processing method in the above-mentioned embodiment one.

[0113] Reference below Figure 4 , which shows a schematic diagram of the structure of a simulation processing device suitable for implementing the embodiment of the present application. The simulation processing device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The simulation processing device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0114] like Figure 4As shown, the simulation processing device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the simulation processing device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the simulation processing device to communicate with other devices wirelessly or by wire to exchange data. Although the simulation processing device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0115] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0116] The simulation processing device provided by the present application adopts the simulation processing method in the above embodiment, which can solve the technical problem that the secondary development of simulation software is limited to a specific programming language. Compared with the related art, the beneficial effects of the simulation processing device provided by the present application are the same as the beneficial effects of the simulation processing method provided by the above embodiment, and the other technical features in the simulation processing device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0117] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0118] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0119] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the simulation processing method in the above-mentioned embodiment.

[0120] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0121] The computer-readable storage medium may be included in the simulation processing device; or may exist independently without being assembled into the simulation processing device.

[0122] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the simulation processing device, the simulation processing device can meet the requirements of any programming language to communicate with the simulation software.

[0123] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0124] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0125] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0126] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned simulation processing method, and can solve the technical problem that the secondary development of simulation software is limited to a specific programming language. Compared with the related art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the simulation processing method provided by the above-mentioned embodiment, and will not be repeated here.

[0127] The present application also provides a computer program product, including a computer program, which implements the steps of the simulation processing method as described above when executed by a processor.

[0128] The computer program product provided by this application can solve the technical problem that the secondary development of simulation software is limited to a specific programming language. Compared with the related art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the simulation processing method provided by the above embodiment, which will not be repeated here.

[0129] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A simulation processing method, characterized in that: The method comprises: Receive input information of current user operation in the programming environment; passing the input information from the programming environment to a first virtual terminal; Sending the input information to the second virtual terminal through the first virtual terminal; wherein the first virtual terminal and the second virtual terminal are connected via a transmission control protocol TCP communication; sending the input information from the second virtual terminal to the simulation environment; In the simulation environment, the input information is parsed to obtain a current simulation action execution instruction, and the simulation action execution instruction is executed.

2. The method according to claim 1, characterized in that The step before receiving the input information of the current user in the programming environment also includes: Initiate a thread in the programming environment to build the first virtual terminal; Starting the simulation environment through the programming environment; When the simulation environment is started, a thread is started simultaneously to build the second virtual terminal.

3. The method according to claim 1, characterized in that The step of receiving the input information of the current user in the programming environment comprises: Receive the current user operation instruction input in the programming environment; The current user operation instruction is parsed to obtain the input information.

4. The method according to claim 1, characterized in that The step before transferring the input information from the programming environment to the first virtual terminal also includes: In case of detecting that a command is sent in the programming environment, starting the first virtual terminal; When the simulation environment is started, the second virtual terminal is started.

5. The method according to claim 1, characterized in that The step of parsing the input information in the simulation environment, obtaining a simulation action execution instruction, and executing the simulation action execution instruction comprises: In the simulation environment, the input information is parsed using a specific protocol to obtain a current simulation action execution instruction; the specific protocol includes a corresponding relationship between the input information and the simulation action execution instruction; Execute the current simulation action execution instruction.

6. The method according to claim 1, characterized in that After the step of parsing the input information, obtaining the current simulation action execution instruction, and executing the simulation action execution instruction in the simulation environment, the following steps are further included: When the simulation process executes the simulation action execution instruction, obtaining return information generated by the simulation environment; Sending the return information to the second virtual terminal through the simulation environment; Sending the return information to the first virtual terminal through the second virtual terminal; sending the return information from the first virtual terminal to a programming environment; The returned information is output through a user interface.

7. A simulation processing device, characterized in that: The device comprises: An information receiving module, used for receiving input information of current user operation in a programming environment; An information transmission module, used for transmitting the input information from the programming environment to the first virtual terminal; An information sending module, used for sending the input information to the second virtual terminal through the first virtual terminal; wherein the first virtual terminal and the second virtual terminal are connected via a transmission control protocol TCP protocol; An information transmission module, used for sending the input information from the second virtual terminal to the simulation environment; The simulation execution module is used to analyze the input information in the simulation environment, obtain the current simulation action execution instruction, and execute the simulation action execution instruction.

8. A simulation processing device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the simulation software development method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the simulation processing method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed by a processor, implements the steps of the simulation software development process according to any one of claims 1 to 6.