Computing interface construction method and device, computer equipment and readable storage medium
A construction method and interface technology, which is applied in the computer field, can solve the problems of complex calculation process of calculation interface, slow calculation result acquisition speed, low efficiency of calculation interface use, etc., to achieve rapid call of automatic calculation, improve convenience, and reduce redundancy Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] see figure 1 , a computing interface construction method in this embodiment, comprising:
[0043] S101: Obtain a function set and disassemble to obtain at least one calculation function, construct a virtual class of the calculation function to obtain a calculation parent class;
[0044] S102: Inherit at least one computing parent class to obtain a computing subclass and save it in a preset cache module;
[0045] S105: Enter the obtained basic data into a preset table in the cache module, and obtain a matrix table storing each character string in the basic data in the form of a table;
[0046] S107: Set a trigger thread in the cache module, the trigger thread is used to call the calculation subclass and matrix table to obtain the calculation result according to the call request sent by the client; encapsulate the cache module to obtain the calculation interface, and use the The name of the calculation subclass and character table is set as the label of the calculation ...
Embodiment 2
[0052] This embodiment is a specific application scenario of the first embodiment above. Through this embodiment, the method provided by the present invention can be described more clearly and specifically.
[0053] Next, in the server running the calculation interface construction method, the virtual class for constructing the calculation function is obtained from the calculation parent class and inherited, so as to obtain the calculation subclass and load it into the cache module, and enter the basic data into the cache module The matrix table is obtained from the preset table in and loaded into the cache module, and the trigger thread is set in the cache module and encapsulated to obtain a computing interface as an example to describe the method provided in this embodiment in detail. It should be noted that this embodiment is only exemplary, and does not limit the protection scope of the embodiment of the present invention.
[0054] figure 2 A schematic diagram of an envi...
Embodiment 3
[0106] see Figure 4 , a computing interface construction device 1 of the present embodiment, comprising:
[0107] The parent class building module 11 is used to obtain a function set and disassemble to obtain at least one calculation function, and construct a virtual class of the calculation function to obtain a calculation parent class;
[0108] A subclass building module 12, configured to inherit at least one computing parent class to obtain a computing subclass and store it in a preset cache module;
[0109] The data entry module 15 is used to enter the obtained basic data into the preset table in the cache module, and obtain a matrix table for storing each character string in the basic data in tabular form;
[0110] The interface creation module 17 is used to set the trigger thread in the cache module, and the trigger thread is used to call the calculation subclass and the matrix table to obtain the calculation result according to the call request sent by the client; enc...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com