Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Generating tool of function module

A technology of functional modules and tools, applied in the computer field, can solve problems such as cumbersome development process, increased development cost, and inconvenience, and achieve the effect of simplifying the development process, reducing development cost, and reducing the degree of tediousness

Inactive Publication Date: 2012-10-24
HUAYA MICROELECTRONICS (SHANGHAI) INC
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The work efficiency of engineers who develop each functional module is different, and the workload of the functional modules is also different. Specifically, taking a project including A module, B module, C module, and D module as an example, if A module and C module , D module must call B module, and A module also calls C module, then once B module is not completed, then C module, D module cannot be completed, and A module needs to call both B module and C module, so A module can not be completed
In the end, due to the blocking of calls between function modules, the task cannot be completed as expected
When the system becomes more and more complex and there are more and more collaborators, the blocking problem will become more and more serious
[0006] Second: Due to the split version of the called function module, the source code of the function module needs to be rewritten, which is time-consuming and labor-intensive, and the development process is cumbersome, causing inconvenience to developers and increasing development costs
[0007] Third: In a complex system, the number of codes and documents is quite large. It takes a certain amount of time for developers of different functional modules to find the API of the functional module they want to call, and it takes a certain amount of time to learn and understand the API. usage
For a functional module, there are often more users (callers) of the functional module than developers, so for the users of the functional module, each user has to spend time looking for and learning the API, brought a lot of inconvenience to users
[0008] Fourth: For developers of function modules, they know the usage of function modules best. If they miss some information when writing the documentation of function module usage, such as: some interfaces of the function module must match the call , then in the process of calling the function module, there will be a bug
In addition, when the called function module is upgraded, such as: upgrading the software development kit (SDK, Software Development Kit) for developing the called function module, the function module calling the function module must also be modified accordingly, and the function calling Module developers also need to re-learn the API of the called function module, which brings inconvenience to the developers and increases the development cost of the function module

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Generating tool of function module
  • Generating tool of function module

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0097] In this example, the broadcast channel module is stored in the resource library, and its module information is as follows:

[0098] API name: Play_Channel;

[0099] Functions implemented by API: play channel;

[0100] API formal parameter information: char*ch_name (parameter type and parameter name); channel name to be played (parameter meaning);

[0101] The function information stored in the resource library is as follows:

[0102] function name: play channel string;

[0103] Functions implemented by API: play channel;

[0104] The corresponding relationship between the formal parameter name of the API and the function name: the formal parameter parameter name "ch_name" corresponds to "string";

[0105] In this example, the acquisition unit acquires the demand information "broadcast channel CCTV" of the functional module, the matching unit matches the demand information "broadcast channel CCTV" with the function name stored in the resource library, and searches fo...

example 2

[0108] In this example, take Notepad, a text editing tool developed based on a file system such as FAT32 or NTFS, as an example for illustration. During the development of Notepad, it is necessary to read the content of the text file into the memory buffer. For the convenience of explanation, here, reading the content of the text file into the memory buffer is called the ReadTextFile module. The module information of this module includes the following steps:

[0109] Define data: the name is file_length, the type is int;

[0110] Define the pointer: the name is p_buffer, the type is char;

[0111] Get the size file_length of the file file_path; / / requirement information, where the parameter file_path is the file path

[0112] Apply for a memory size of file_length for p_buffer;

[0113] Read the data whose size is file_length in the file file_path into p_buffer;

[0114] return p_buffer;

[0115] The file size acquisition module is stored in the resource library, and its m...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A generating tool of a function module comprises a resource library, an acquisition unit, a matching unit, a searching unit and a generating unit, wherein the resource library is used for storing function information, a called module and called module information, the function information comprises function names and correspondingly achieved functions, the called module information comprises functions which are achieved by the called module, the acquisition unit is used for acquiring at least one piece of demanding information of the function module, the matching unit is used for acquiring the function names which are matched with the demanding information of the function module in the resource library, the searching unit is used for searching the called module information in the resource library to determine one called module to be called based on the achieved functions corresponding to the function names which are matched with the matching unit, and the generating unit is used for calling the called module which is searched by the searching unit to generate the function module. According to the generating tool of the function module, during the developing process of the function module, blocking phenomena and development cost increasing can be prevented, and conveniences are brought for developers.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a generating tool for functional modules. Background technique [0002] At present, for most of the program design, it is usually to divide a large program (project) into several functional modules according to the function, and write and debug each functional module by different personnel so as to write each functional module into a structure with clear structure, simple interface, An easy-to-understand program segment, namely a function. This programming method is called a modular programming method. Adopting modular program design method can improve program development efficiency, design efficiency, shorten program development cycle, avoid repetitive labor of program development, and adopt modular program design to facilitate module debugging and troubleshooting, and The modules are easy to maintain and the functions are easy to expand. [0003] For each funct...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
Inventor 董琦李知伟王岩峰靳文辉付晶
Owner HUAYA MICROELECTRONICS (SHANGHAI) INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products