Visual futures trading software architecture design and configuration file generation method
By using visual architecture design and JavaScript API methods in futures trading software, configuration file generation is simplified, time and energy consumption problems during deployment of distributed trading systems are solved, and fast and accurate configuration file generation is achieved.
Patent Information
- Application Number
- CN202411571465.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-01-10
AI Technical Summary
The existing distributed futures trading software system requires a lot of time and energy for operation and maintenance personnel when deploying, and is prone to errors, mainly due to the lack of a unified allocation control mechanism between configuration files and the errors caused by relying on manual writing.
Using a visual futures trading software architecture design method, the back-end rendering of browser pages is realized through the back-end programming language, uploading and parsing the business.h header files of C++ language, generating business virtual machine models, and using the JavaScript API to enter the browser interface. Drag and drop and connect, generate JSON format configuration files, simplify the representation of data flow relationships and configuration file generation.
The configuration operation is simplified through the graphical interface, reducing the configuration time, shortening the original configuration of more than ten hours to a few minutes, and reducing the error rate, and the generated configuration files are intuitive and accurate.
Smart Images

Figure HDA0005120565250000011
Abstract
Description
Technical Field
[0001] The present method relates to the field of business processing model design for futures financial software systems, and specifically to a design method for freely combining and assembling a "business virtual machine model" (hereinafter referred to as the virtual machine model) that abstracts system processes, threads, and specific business functions by configuring business upstream and downstream and data flow directions. Background Art
[0002] In the current field of distributed futures trading software systems, due to the flexible and non-fixed requirements of internal structure design and system performance and functional indicators, the number of configuration files of the entire trading system is large, the configuration items are complicated, and the data flow direction of many internal modules, network port configuration and other issues are involved. The traditional method is to manually write configuration files and manually check them. The trading system often requires more time and energy for operation and maintenance personnel when deploying, and it is prone to errors. The reason for these problems is that the configuration files are isolated from each other and there is no unified deployment control mechanism. In addition, the configuration items and contents of the configuration files can only rely on simple text recognition. The futures trading software involved in this method is a software designed by the method described in the two patents "A reliable multicast automatic ID allocation method and system (CN201911287501.1)" and "A reliable multicast software implementation method (CN202010694628.1)". If there is no special explanation, the "futures software" appearing in the subsequent content refers to the software, and the futures trading software contains the .h suffix header file of the present invention. Summary of the invention
[0003] The purpose of the present invention is to solve the problem that the deployment of a trading system often requires operation and maintenance personnel to spend a lot of time and energy, and is prone to errors.
[0004] In order to solve the above problems, the present invention provides a visual futures trading software architecture design and configuration file generation method, the specific steps are as follows:
[0005] S1. Business document analysis;
[0006] S1-1: Use any backend programming language to implement a background program, the background program provides backend rendering support for browser pages with a file upload function, upload the business .h suffix header file in the C++ language required by the futures software system in the opened browser page, the .h suffix header file will be uploaded to the background program, after uploading, the background program reads the processing function and its input and output parameter data in the .h suffix header file in plain text, and renders the data visually on the browser interface through the JavaScript language API, clicks the browser interface button, and renders the business virtual machine model on the browser interface through the JavaScript language API, clicks the virtual machine model and the processing function rendered in the above steps respectively, and binds each virtual machine model to the processing function;
[0007] S2. Business architecture setup;
[0008] S2-1: Drag the business virtual machine model generated in step S1 to a blank space in the browser, enter the virtual machine name through the browser interface, and drag the virtual machine model to change the size. Multiple business virtual machine models can be dragged. Each time you drag or change the position, the position and pixel size information is obtained through the JavaScript language API, and the information is saved in the JavaScript language memory in the form of an object;
[0009] S2-2: Click on a business virtual machine model with the mouse and hold it, move to another business virtual machine model and release it, and generate a line between the two business virtual machines through JavaScript's Cavans canvas technology, indicating that there is business data flow between the two. Then, obtain the starting position of the line, the direction of the arrow, the position and size information of each virtual machine model through the JavaScript language API, and save them in the memory in real time. The above operation can be repeated multiple times, and multiple operations generate a mesh data flow relationship diagram;
[0010] S2-3: Click the Save button on the browser page to trigger the configuration file generation operation, use JavaScript's Download API to generate a JSON format file from the data in the memory, and provide it for download.
[0011] Preferably, the method is implemented by means of a PC browser.
[0012] In a preferred embodiment, step S1 displays a list of service virtual machines on a browser interface.
[0013] In a preferred manner, the .h suffix header file contains the futures trading software business processing functions and the output parameters and input parameters of each function.
[0014] The beneficial effects of the present invention are as follows: the present invention utilizes the graphical characteristics to intuitively represent the combined nested relationships of different levels in the futures software and the data flow methods between upstream and downstream through graphics, which is convenient, fast and not prone to errors. The original configuration operation of more than ten hours can be shortened to a few minutes, and the corresponding JSON format configuration file is generated according to the logical relationship between the graphical interfaces. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a specific flow chart of the present invention. DETAILED DESCRIPTION
[0016] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0017] Embodiment 1:
[0018] See also Figure 1 The present invention provides a technical solution: a visual futures trading software architecture design and configuration file generation method. The implementation of this method needs to be implemented with the help of a PC browser and is divided into two parts. The specific steps are as follows:
[0019] S1. Business file parsing: Upload the C++ language business .h header file required by the "futures software" system in the browser. The data in the file can be read through the background program to extract the "business virtual machine" and display the "business virtual machine" list in the browser interface;
[0020] S2, business architecture setting, this step is to assemble the business virtual machines.
[0021] S2-1: Drag the "business virtual machine" generated in step 1 to a blank space in the browser, and perform operations such as naming and resizing through the interface. Multiple "business virtual machines" can be dragged. Each time a drag or position change operation is performed, the position and pixel size information is obtained through the JavaScript language API, and the information is saved in the JavaScript language memory in the form of an object;
[0022] S2-2: Click on a certain "business virtual machine" with the mouse and hold it, move it to another "business virtual machine" and release it, and use JavaScript's Cavans canvas technology to generate a line between the two "business virtual machines", indicating that there is business data flow between the two. Then, use the JavaScript language API to obtain information such as the starting position of the line and the direction of the arrow, and save it in the memory in real time. The above operation can be repeated multiple times, and after multiple operations, a meshed data flow relationship diagram will be generated;
[0023] S2-3: Click the page button to trigger the configuration file generation operation, use JavaScript's Download API to generate a JSON format file from the data in the memory, and provide it for download.
[0024] Embodiment 2:
[0025] S1. Business document analysis;
[0026] S1-1: Use any backend programming language to implement a background program, the background program provides backend rendering support for browser pages with a file upload function, upload the business .h suffix header file in the C++ language required by the futures software system in the opened browser page, the .h suffix header file will be uploaded to the background program, after uploading, the background program reads the processing function and its input and output parameter data in the .h suffix header file in plain text, and renders the data visually on the browser interface through the JavaScript language API, clicks the browser interface button, and renders the business virtual machine model on the browser interface through the JavaScript language API, clicks the virtual machine model and the processing function rendered in the above steps respectively, and binds each virtual machine model to the processing function;
[0027] S2. Business architecture setup;
[0028] S2-1: Drag the business virtual machine model generated in step S1 to a blank space in the browser, enter the virtual machine name through the browser interface, and drag the virtual machine model to change the size. Multiple business virtual machine models can be dragged. Each time you drag or change the position, the position and pixel size information is obtained through the JavaScript language API, and the information is saved in the JavaScript language memory in the form of an object;
[0029] S2-2: Click on a business virtual machine model with the mouse and hold it, move to another business virtual machine model and release it, and generate a line between the two business virtual machines through JavaScript's Cavans canvas technology, indicating that there is business data flow between the two. Then, obtain the starting position of the line, the direction of the arrow, the position and size information of each virtual machine model through the JavaScript language API, and save them in the memory in real time. The above operation can be repeated multiple times, and multiple operations generate a mesh data flow relationship diagram;
[0030] S2-3: Click the Save button on the browser page to trigger the configuration file generation operation, use JavaScript's Download API to generate a JSON format file from the data in the memory, and provide it for download.
[0031] The method is implemented by means of a PC browser.
[0032] Step S1 displays a list of business virtual machines on the browser interface.
[0033] The .h suffix header file contains the futures trading software business processing functions and the output parameters and input parameters of each function.
[0034] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A visual futures trading software architecture design and configuration file generation method, characterized in that: The specific steps are as follows: S1. Business document analysis; S1-1: Use any backend programming language to implement a background program, the background program provides backend rendering support for browser pages with a file upload function, upload the business .h suffix header file in the C++ language required by the futures software system in the opened browser page, the .h suffix header file will be uploaded to the background program, after uploading, the background program reads the processing function and its input and output parameter data in the .h suffix header file in plain text, and renders the data visually on the browser interface through the JavaScript language API, clicks the browser interface button, and renders the business virtual machine model on the browser interface through the JavaScript language API, clicks the virtual machine model and the processing function rendered in the above steps respectively, and binds each virtual machine model to the processing function; S2. Business architecture setup; S2-1: Drag the business virtual machine model generated in step S1 to a blank space in the browser, enter the virtual machine name through the browser interface, and drag the virtual machine model to change the size. Multiple business virtual machine models can be dragged. Each time you drag or change the position, the position and pixel size information is obtained through the JavaScript language API, and the information is saved in the JavaScript language memory in the form of an object; S2-2: Click on a business virtual machine model with the mouse and hold it, move to another business virtual machine model and release it, and generate a line between the two business virtual machines through JavaScript's Cavans canvas technology, indicating that there is business data flow between the two. Then, obtain the starting position of the line, the direction of the arrow, the position and size information of each virtual machine model through the JavaScript language API, and save them in the memory in real time. The above operation can be repeated multiple times, and multiple operations generate a mesh data flow relationship diagram; S2-3: Click the Save button on the browser page to trigger the configuration file generation operation, use JavaScript's Download API to generate a JSON format file from the data in the memory, and provide it for download.
2. The visual futures trading software architecture design and configuration file generation method according to claim 1 is characterized in that: The method is implemented by means of a PC browser.
3. According to the visual futures trading software architecture design and configuration file generation method of claim 1, it is characterized in that: Step S1 displays a list of business virtual machines on the browser interface.
4. The visual futures trading software architecture design and configuration file generation method according to claim 1 is characterized in that: The .h suffix header file contains the futures trading software business processing functions and the output parameters and input parameters of each function.
Citation Information
Patent Citations
Reliable multicast automatic id allocation method and system
CN111083248A
Reliable multicast software implementation method
CN111865625A