CN103019723A - Construction method of software framework - Google Patents

Construction method of software framework Download PDF

Info

Publication number
CN103019723A
CN103019723A CN2012105478858A CN201210547885A CN103019723A CN 103019723 A CN103019723 A CN 103019723A CN 2012105478858 A CN2012105478858 A CN 2012105478858A CN 201210547885 A CN201210547885 A CN 201210547885A CN 103019723 A CN103019723 A CN 103019723A
Authority
CN
China
Prior art keywords
interface
software
interfaces
function
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012105478858A
Other languages
Chinese (zh)
Inventor
蒋庆洲
张雷鸣
陈杰
孟玉雪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN2012105478858A priority Critical patent/CN103019723A/en
Publication of CN103019723A publication Critical patent/CN103019723A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a construction method of a software framework. The method comprises the following steps of: a, classifying interfaces, and setting corresponding interface IDs (Identities) for various interfaces; b, setting interface ports in a program into five types, i.e. an initializing port, a drawing port, a direction key control port, a time slice processing port and a terminating port, and realizing the ports through functions respectively; c, according to the interface IDs, splicing the ports into a pointer array in each interface through a pointer function respectively; and d, calling the pointer arrays of different interfaces through different function parameters by using a uniform control type function. According to the construction method of the software framework disclosed by the invention, the style codes and control codes of interfaces are separated into independent modules, so that the change of a control module during every update of the interface style is avoided, the software development period is effectively shortened, the software quality is effectively improved, labor investment of software development is lowered, and the workload of the software development is lowered remarkably in multi-client derived and subsequent products of software products.

Description

The framework method of software frame
Technical field
The present invention relates to the framework method of software frame.
Background technology
In the software development of embedded product, all need the interface of man-machine interaction is designed.In present Software for Design, often all the code of drawing and control is programmed in together.Such benefit is that exploitation time ratio is easier to, but the many clients that are unfavorable for product derive and the exploitation of subsequent product.
In a lot of situations, the exploitation of software frame all is to add the content that some are new in basic function.In the deriving of subsequent product or many clients product, be not need to change control like this, only need style, the element at some interfaces of change just much of that.And drawing and the code of control just combines so that when the change interface, also will control routine be changed, and because the control mode of itself does not change, so just wasted a large amount of working times and human cost, reduced work efficiency.This just needs the framework method of a good software frame, thereby reaches high-level efficiency, high-quality, the low purpose that drops into.
Summary of the invention
The invention provides a kind of framework method of software frame, style code and the control routine at interface are split up into independently module, avoid upgrading look ﹠ feel at every turn and all will change control module, to shorten software development cycle and to improve software quality, reduce the artificial input of software development.
The framework method of software frame of the present invention comprises:
A. classified in the interface, and all kinds of interfaces are arranged corresponding interface I D;
B. the interface in the program is made as initialization, drawing, directionkeys control, timeslice processing and stops five kinds of interface types, and described five kinds of interfaces are realized by function respectively;
C. according to described interface I D, in each interface, by pointer function described five kinds of interface types are pieced together array of pointers respectively;
D. the array of pointers at different interfaces is called by different function parameters with unified control type of functions.
Wherein initialization interface is carried out initialization, its global variable that uses of initialization, internal memory pointer etc. for user interface.Drawing interface is drawn user interface according to parameter, reaches the display effect that needs.The directionkeys control interface is controlled the directionkeys of user interface, thereby reaches the effect of control and interfacial separation.Motion graphics in the timeslice Processing Interface process user interface is such as functions such as the time redraw.Stop interface this user interface is stopped, the internal memory pointer that release uses etc.For the directionkeys control interface, the interface of different-style definition may be different, and the button that has is from top to bottom, the button that has be from left and by, use this interface after, can in the function of interface, define fully, and need not change control function.Make thus look ﹠ feel code and interface control code be split up into independently interface module and control, by the interface in the middle of interface module and the control module to this two-layer carry out abstract, the code of docking port is also separated fully, thereby avoided each renewal look ﹠ feel all will change control module.
Further, described interface I D is fixing constant, and this can unify when function call, can be not chaotic.
Further, the function that only increases look ﹠ feel when software frame median surface style is increased is realized, does not change the control function at interface.If style and control mode to the interface have increase simultaneously, then need change the control function at interface.
Preferably, the array of pointers of described five kinds of interface types is the global variable array of pointers, makes things convenient for calling between function.
The framework method of software frame of the present invention, style code and the control routine at interface are split up into independently module, avoided each renewal look ﹠ feel all will change control module, effectively shorten software development cycle and improved software quality, reduced the artificial input of software development, many clients of software product derive and subsequent product in significantly reduced the workload of software development.
Below in conjunction with the embodiment of embodiment, foregoing of the present invention is described in further detail again.But this should be interpreted as that the scope of the above-mentioned theme of the present invention only limits to following example.Do not breaking away from the above-mentioned technological thought situation of the present invention, various replacements or change according to ordinary skill knowledge and customary means are made all should comprise within the scope of the invention.
Embodiment
The framework method of software frame of the present invention comprises:
A. classified in the interface, and all kinds of interfaces are arranged the interface I D of corresponding constant type;
B. the interface in the program is made as initialization, drawing, directionkeys control, timeslice and processes and stop the interface type of five kinds of global variables, and described five kinds of interfaces are realized by function respectively;
C. according to described interface I D, in each interface, by pointer function described five kinds of interface types are pieced together array of pointers respectively;
D. the array of pointers at different interfaces is called by different function parameters with unified control type of functions.
The function that only increases look ﹠ feel when software frame median surface style is increased is realized, need not change the control function at interface.Wherein initialization interface is carried out initialization, its global variable that uses of initialization, internal memory pointer etc. for user interface.Drawing interface is drawn user interface according to parameter, reaches the display effect that needs.The directionkeys control interface is controlled the directionkeys of user interface, thereby reaches the effect of control and interfacial separation.Motion graphics in the timeslice Processing Interface process user interface is such as functions such as the time redraw.Stop interface this user interface is stopped, the internal memory pointer that release uses etc.For the directionkeys control interface, the interface of different-style definition may be different, and the button that has is from top to bottom, the button that has be from left and by, use this interface after, can in the function of interface, define fully, and need not change control function.
Owing to make look ﹠ feel code and interface control code be split up into independently interface module and control, by the interface in the middle of interface module and the control module to this two-layer carry out abstract, so that the also fully separation of the code of docking port, thereby avoided each renewal look ﹠ feel all will change control module.

Claims (4)

1. the framework method of software frame, its feature comprises:
A. classified in the interface, and all kinds of interfaces are arranged corresponding interface I D;
B. the interface in the program is made as initialization, drawing, directionkeys control, timeslice processing and stops five kinds of interface types, and described five kinds of interfaces are realized by function respectively;
C. according to described interface I D, in each interface, by pointer function described five kinds of interface types are pieced together array of pointers respectively;
D. the array of pointers at different interfaces is called by different function parameters with unified control type of functions.
2. the framework method of software frame as claimed in claim 1 is characterized by: the constant of described interface I D for fixing.
3. the framework method of software frame as claimed in claim 1 is characterized by: only increase the function realization of look ﹠ feel when software frame median surface style is increased, do not change the control function at interface.
4. such as the framework method of the described software frame of one of claims 1 to 3, it is characterized by: the array of pointers of described five kinds of interface types is the global variable array of pointers.
CN2012105478858A 2012-12-17 2012-12-17 Construction method of software framework Pending CN103019723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012105478858A CN103019723A (en) 2012-12-17 2012-12-17 Construction method of software framework

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012105478858A CN103019723A (en) 2012-12-17 2012-12-17 Construction method of software framework

Publications (1)

Publication Number Publication Date
CN103019723A true CN103019723A (en) 2013-04-03

Family

ID=47968361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012105478858A Pending CN103019723A (en) 2012-12-17 2012-12-17 Construction method of software framework

Country Status (1)

Country Link
CN (1) CN103019723A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107046650A (en) * 2017-02-07 2017-08-15 北京吉视汇通科技有限责任公司 The control method for playing back and device at interface

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414259A (en) * 2008-11-27 2009-04-22 青岛海信电子产业控股股份有限公司 Method and apparatus for setting graphical user interface
CN101685392A (en) * 2008-09-27 2010-03-31 盛乐信息技术(上海)有限公司 Device for separating user interface form service logic
CN101685396A (en) * 2008-09-26 2010-03-31 鸿富锦精密工业(深圳)有限公司 System and method for controlling function icon

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101685396A (en) * 2008-09-26 2010-03-31 鸿富锦精密工业(深圳)有限公司 System and method for controlling function icon
CN101685392A (en) * 2008-09-27 2010-03-31 盛乐信息技术(上海)有限公司 Device for separating user interface form service logic
CN101414259A (en) * 2008-11-27 2009-04-22 青岛海信电子产业控股股份有限公司 Method and apparatus for setting graphical user interface

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107046650A (en) * 2017-02-07 2017-08-15 北京吉视汇通科技有限责任公司 The control method for playing back and device at interface

Similar Documents

Publication Publication Date Title
CN103064690B (en) A kind of Development Framework based on Android operation system and the method for execution thereof
CN103116508B (en) A kind of general-purpose interface of SAP system and its implementation
IN2014DN07582A (en)
CN105183352A (en) Method and device for realizing more hand gesture recognition at blank screen state of terminal
CN101276296A (en) Method for realizing message response mechanism on embedded computer system
WO2006084845A3 (en) Processor-simulation method using a model comprising a set of objects
CN103019766A (en) Android equipment-based dynamic wallpaper arrangement method, android equipment-based dynamic wallpaper arrangement device and terminal
CN107861458A (en) It is a kind of can autonomous configuration hardware resource PLC fast construction methods
CN103019723A (en) Construction method of software framework
US8364288B2 (en) Apparatus and method of synchronizing and interpolating axes of multi-system
CN107305363A (en) Multi-axis motion controller
CN105279598A (en) Brother procedure grouping integrated dispatching method based on dynamic critical path method
CN104907157B (en) A kind of crusher cluster Chinese style intelligence control system
US10401802B2 (en) Scalable architecture for a human machine interface device
CN202394076U (en) Multipath constant-current source communication controller based on FPGA (field programmable gate array)
CN102591206B (en) For the method and system of flow characteristic analysis time
CN104021041B (en) Method for scheduling computer in multi-task operation environment state
CN101973114B (en) Plastic injection moulding servo multi-pump compound action system
CN103365712A (en) Thread-controllable device and operating method thereof
CN103699271B (en) Method and system for setting parameters of touch screen
WO2007016360A3 (en) Look-across system
CN103164265A (en) Input event processing method and system based on Linux system
US20050171743A1 (en) Method for developing a machine
CN104932316A (en) Component change control method
CN109840075B (en) Control panel based on layered design and design method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130403