A method and equipment for creating and calling universal components

A general-purpose component and component technology, applied in the computer field, can solve problems such as waste of memory resources and low running speed of components, and achieve the effects of improving running speed, reducing system resources, and reducing the number of creations

Active Publication Date: 2015-10-14
ALIBABA GRP HLDG LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The purpose of this application is to provide a method and device for creating and calling common components, so as to solve the problems in the prior art that a large amount of memory resources are wasted and the running speed of components is low due to nested creation of common components

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
  • A method and equipment for creating and calling universal components
  • A method and equipment for creating and calling universal components
  • A method and equipment for creating and calling universal components

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] Such as image 3 As shown, it is a schematic diagram of the method steps for creating a general component in Embodiment 1 of the present application, and the method includes the following steps:

[0041] Step 101: Generate a common component library when the software starts to initialize.

[0042] The solution of the embodiment of the present application is to start the operation of creating the general component when the software is initialized, and complete the process of creating the general component before the initialization ends. The purpose of doing this is: the operation of creating common components is completed before the software runs normally, so that when the software runs normally, the common components in the software can directly call the created common components according to requirements. If the operation of creating common components has not been completed at the end of software initialization, or even created when common components in the software n...

Embodiment 2

[0093] After the common component is created by adopting the scheme of Embodiment 1, the common component in the common component library can be further called, such as Figure 4 As shown, it is a schematic diagram of the method steps of calling the general component in the second embodiment of the present application, and the method includes the following steps:

[0094] Step 201: Determine the identifier of the general component to be called.

[0095] In the solution of this embodiment, the common component stores the identification of the general component that can be called, and when the common component needs to call the general component, it reads the identification of the common component stored by itself to perform the calling operation.

[0096] Step 202: According to the determined identifier, search for the generic component indicated by the identifier from a generic component library that has stored multiple generic components.

[0097] Depending on the form of th...

Embodiment 3

[0107] Embodiment 3 of the present application uses a specific example to describe the scheme of Embodiment 2 of the present application in detail.

[0108] Assumption: the common component to call the common component is the session window component, the common components that the session window component can call are the background common component and the border common component, and the background common component is identified as BackgroundID, which is used to indicate the background of the session window component The generic component is drawn; the border generic component is identified as BorderID, which is used to indicate which border generic component draws the border of the session window component. The identities of these two common components are documented in the session window component.

[0109] Such as Figure 5 As shown, it is a schematic diagram of steps for the session window component to call the corresponding general component in the general component l...

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

The invention discloses a method and equipment for creating and calling universal components. The method mainly comprises procedures of uniformly creating the universal components during an initialization process of software and uniformly storing the universal components into a universal component library; when other ordinary components need to call the universal components, the created universal components are called directly without creating the universal components respectively. According to the scheme provided by the embodiment of the invention, the universal components only need to be created once, the creating number of the universal components is reduced, so that system resources occupied to create the universal component are effectively reduced, and the running speed of other ordinary components is improved.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to a method and device for creating a general component and calling the created general component. Background technique [0002] With the continuous development of computer software technology, software is becoming more and more large and complex. In order to effectively use this large and complex software, these software can be divided into a series of software that can be realized in advance, easy to develop and understand and adjusted components. After the division, the function of each component is determined, designed separately, coded separately, and finally the multiple components are assembled together to complete the operation of the software. [0003] In the process of software development, in order to improve the reusability of software code and improve development efficiency, commonly used interface elements can be encapsulated into a group of relatively...

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 Patents(China)
IPC IPC(8): G06F9/44
Inventor 唐红兵
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products