CN103353836B - A kind of function realizing method of programmable reusable control - Google Patents

A kind of function realizing method of programmable reusable control Download PDF

Info

Publication number
CN103353836B
CN103353836B CN201310110176.8A CN201310110176A CN103353836B CN 103353836 B CN103353836 B CN 103353836B CN 201310110176 A CN201310110176 A CN 201310110176A CN 103353836 B CN103353836 B CN 103353836B
Authority
CN
China
Prior art keywords
control
functional configuration
function
configuration table
mapping table
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.)
Active
Application number
CN201310110176.8A
Other languages
Chinese (zh)
Other versions
CN103353836A (en
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.)
Shenzhen East Micro Smart Polytron Technologies Inc
Original Assignee
Shenzhen East Micro Smart Polytron Technologies Inc
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 Shenzhen East Micro Smart Polytron Technologies Inc filed Critical Shenzhen East Micro Smart Polytron Technologies Inc
Priority to CN201310110176.8A priority Critical patent/CN103353836B/en
Publication of CN103353836A publication Critical patent/CN103353836A/en
Application granted granted Critical
Publication of CN103353836B publication Critical patent/CN103353836B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides the function realizing method of a kind of programmable reusable control, it is characterised in that the method includes: definition control functional configuration table, each list item includes control title and control task, and control task is made up of at least one control function;Generating control function mapping table according to control functional configuration table, each list item includes control title and control function pointer, and pointer points to the control task of corresponding control in control functional configuration table;When having listened to control and being triggered, perform corresponding control task according to corresponding control function pointer in control function mapping table.The embodiment of the present invention have employed mapping mode one by one, simplify the process of realization, greatly reduce the complexity of operation, save the operating time;Achieve able to programme, the custom feature of user level, can arbitrarily revise configuration, facilitate, save time, laborsaving;Because control functional configuration table can be relatively independent of execution program itself, execution program extensibility in different product is also made to be greatly improved.

Description

A kind of function realizing method of programmable reusable control
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of programmable reusable control function realizing method.
Background technology
Along with digital audio processing device and other various equipment function from strength to strength; for saving resource; reusable control (such as button) would generally be used, control control multiple control targets (as same switch key beats opening/closing in order to control desk lamp and curtain).As it is shown in figure 1, the function realizing method of traditional reusable control is: monitor trigger source;Often listen to control when being triggered, carry out conditional judgment, it is determined that after the control target that this control is current, perform corresponding operation.
This traditional implementation, for having the equipment of multiplexing control enormous amount, often listens to will carry out when control is triggered conditional judgment, not only takes considerable time, it is achieved complexity is high;And need when needing the attribute of control is modified to revise in whole software, considerably complicated so that user is difficult to amendment and meets different demand.Thus, it is necessary to the functional realiey scheme of this control is improved.
Summary of the invention
It is an object of the invention to provide the function realizing method of a kind of programmable reusable control, reduce implementation complexity, saving processes the time;
Another object of the present invention is to provide the function realizing method of a kind of programmable reusable control, it is achieved able to programme, the custom feature of user level, can arbitrarily revise configuration, meet the use demand of user.
It is an object of the invention to be achieved through the following technical solutions:
A kind of function realizing method of programmable reusable control, including:
Pre-defined control functional configuration table, each list item includes the control task of control title and correspondence, and this control task is made up of at least one control function;
According to control functional configuration table, generating control function mapping table, each list item includes control title and control function pointer, and each control function pointer points to the control task of corresponding control in control functional configuration table;
Monitor trigger source, when having listened to control and being triggered, perform corresponding control task according to corresponding control function pointer in control function mapping table, realize all control functions included by this control task simultaneously.
Wherein, the quantity of predefined control functional configuration table is a or many part and coexists.
Wherein, when described control functional configuration table has many parts to coexist, with whole control functional configuration tables for according to generating control function mapping table.
Wherein, also include the step that described control functional configuration table and control function mapping table are updated, including: when control kind, control function etc. have adjustment, first control functional configuration table is updated;Then, according to the control functional configuration table after updating, call current control function mapping table, it is updated.
Wherein, the method being updated control functional configuration table is: adds or deletes whole control functional configuration table, or add, the list item that control in functional configuration table is deleted or modified;Then, control functional configuration table is reloaded so that it comes into force.
Wherein, the method being updated described control function mapping table includes that update all and part update;During update all, the control functional configuration table currently come into force only portion;When part updates, the control functional configuration table currently come into force has many parts, according to the sequencing superposition loaded and covering.
Wherein, to the method for control function mapping table update all it is: the control function pointer of the whole list items in renewal control function mapping table so that it is be pointing directly at the control task of corresponding control in the control functional configuration table of new loading;If certain control does not exists in control functional configuration table, then the control function pointer in this control list item in control function mapping table is empty.
Wherein, the method updated control function mapping table part is: the control function pointer of the part list item in renewal control function mapping table;
If certain control in control function mapping table there is also in control functional configuration table, then update the control function pointer in this control list item in control function mapping table so that it is be pointing directly at the control task of corresponding control in the control functional configuration table of new loading;
If certain control in control function mapping table does not exists in control functional configuration table, then the control function pointer in this control list item in control function mapping table does not updates;
When part updates, if the function needing certain control is sky, then in functional configuration table, control task corresponding for this control is set to sky.
Wherein, the mode being updated described control function mapping table includes directly updating and trigger renewal;
Described direct update mode is particularly as follows: call control function mapping table and be updated after control functional configuration table updates;
Described triggering update mode is particularly as follows: add a control in control functional configuration table, and the control task of this control is set to the renewal of trigger control function mapping table;Listening to after this control is triggered, updating control functional configuration table and control function mapping table immediately.
Compared with prior art, the embodiment of the present invention has the advantages that
1) compared with the matrix mapping mode that prior art uses, the embodiment of the present invention have employed mapping mode one by one: pre-defined control functional configuration table and current control function mapping table, corresponding control task can be directly performed by current control function mapping table pointer when having listened to control and being triggered, when need not the most often listen to trigger source, all which kind of multiplexing function discriminatory analysis currently to perform, simplify the process of realization, greatly reduce the complexity of operation, save the operating time.
2) due in the embodiment of the present invention, control functional configuration table can multiple coexist, control functional configuration table and control function mapping table can update at any time, so when control kind and control task are varied from, only need to update the list item in two tables or directly switch, it is thus achieved that able to programme, the custom feature of user level, can arbitrarily revise configuration, facilitate, save time, laborsaving.
3) because control functional configuration table and control function mapping table can be relatively independent of execution program itself, execution program extensibility in different product is also made to be greatly improved.
Accompanying drawing explanation
Fig. 1 is the function realizing method flow chart of reusable control in prior art.
Fig. 2 is the function realizing method flow chart of reusable control in the embodiment of the present invention.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Referring to shown in Fig. 2, in the present embodiment, the function realizing method of reusable control comprises the following steps:
201, definition control functional configuration table, each list item includes control title and control task, and control task is made up of function number and function array.Wherein, function array includes one or more control functions, and function number refers to the quantity of the control function included in function array.
In actual applications, control functional configuration table can only have portion, it is possibility to have many parts coexist.Can comprise different control kinds in different control functional configuration tables, it is possible to comprise the identical control kind of corresponding different control task, each allocation list is renewable, can use, also can switch over the most as required simultaneously.If there being control the most inoperative, control functional configuration table can arrange its control task for sky.
Shown in the following Tables 1 and 2 of structure of control functional configuration table, in the present embodiment, this two table coexists.
Table 1
Control title 1 Control task 1.1<function number, function array>
Control title 2 Control task 2.1<function number, function array>
Control title 3 Control task 3.1<function number, function array>
Control title 4 Control task 4.1<function number, function array>
Table 2
Control title 1 Control task 1.2<function number, function array>
Control title 2 Control task 2.2<function number, function array>
Control title 5 Control task 5.1<function number, function array>
Control title 6 Control task 6.1<function number, function array>
202, generating current control function mapping table according to control functional configuration table, each list item includes control title and control function pointer thereof.Control function pointer points to the control task that this control is corresponding in control functional configuration table, all control functions representing this control to be currently used in simultaneously to realize in the control task pointed by pointer.
With Tables 1 and 2 as reference, in the present embodiment, the structure of control function mapping table is as shown in table 3 below.
Table 3
Control title 1 * p-> control task 1.2
Control title 2 * p-> control task 2.1
Control title 3 * p-> control task 3.1
Control title 4 * p-> control task 4.1
Control title 5 * p-> control task 5.1
Control title 6 * p-> control task 6.1
203, monitor trigger source, when there being control to be triggered, perform corresponding control task according to pointer corresponding in current control function mapping table, realize all control functions included in control task simultaneously.As a example by table 1, table 2, table 3, when control 1 is triggered, perform the control task 1.2 in table 2;When control 2 is triggered, perform the control task 2.1 in table 1;When control 3 is triggered, perform the control task 3.1 in table 1;When control 5 is triggered, perform the control task 5.1 in table 2.
204, as required control functional configuration table and control function mapping table are updated.
Control set during control function maps necessarily is equal to control set in all control control functional configuration tables, thus concrete update method is: when control kind, control function etc. have adjustment, be first updated control functional configuration table;Then, according to the control functional configuration table after updating, call current control function mapping table, it is updated.
The method being updated control functional configuration table is particularly as follows: load control functional configuration table.Control functional configuration table to add, delete;List item in control functional configuration table also can add, deletes and revise.
The update method of control function mapping table also has update all and part to update;During update all, the control functional configuration table currently come into force only portion;When part updates, the control functional configuration table currently come into force has many parts, according to the sequencing superposition loaded and covering.
During to control function mapping table update all, the control function pointer of the whole list items in renewal control function mapping table.The control function pointer of the control list item in control function mapping table, is pointing directly at the control task of corresponding control in the control functional configuration table of new loading;If certain control does not exists in control functional configuration table, then the control function pointer in this control list item in control function mapping table is empty (NULL).
When control function mapping table part is updated, the control function pointer of the part list item in renewal control function mapping table.If certain control exists in control functional configuration table, then the control function pointer in this control list item in control function mapping table, it is pointing directly at the control task of corresponding control in the control functional configuration table of new loading;If certain control does not exists in control functional configuration table, then the control function pointer in this control list item in control function mapping table does not updates.If the control set in the new control functional configuration table loaded is equal to the control set in the mapping of control function, then effect is equivalent to update all.When part updates, if it is desired to the function of certain control is empty, then in functional configuration table, control task corresponding for this control is set to sky (actually the function number in control task being set to zero, control function array is empty).
The update mode of control function mapping table has direct update mode and triggers update mode.Directly update mode is particularly as follows: call control function mapping table and be updated after control functional configuration table updates.Triggering update mode is particularly as follows: add a control in control functional configuration table, and the control task of this control is the renewal of trigger control function mapping table;Listening to after this control is triggered, updating control functional configuration table and control function mapping table immediately.
Above-mentioned update method achieves the able to programme of user level and custom feature, and user can be adjusted the most as required, the most simple and convenient and also quick and precisely, be particularly suitable for the equipment that there is more control, control functional type is many.
As a example by 16 railway digital sound consoles, its control Mute is for the dumb sound of 16 passages of control simultaneously.In the prior art, after control Mute is triggered would generally first according to current conditional judgment, it now controls the dumb sound of which passage, then control to control accordingly function according to judged result.And after using the present invention, it is only used for controlling the dumb sound of dedicated tunnel owing to having been defined for control Mute in current control function mapping table, so listening to directly control after control Mute is triggered the dumb sound of dedicated tunnel, eliminate the conditional judgment link of centre.From the point of view of the digital sound console the most to control kind, control function is relatively more, it is greatly saved the intermediate treatment time, reduces the complexity of operation.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all any amendment, equivalent and improvement etc. made within the spirit and principles in the present invention, should be included within the scope of the present invention.

Claims (5)

1. the function realizing method of a programmable reusable control, it is characterised in that the method includes:
Pre-defined control functional configuration table, each list item includes the control task of control title and correspondence, should Control task is made up of at least one control function;
According to control functional configuration table, generating control function mapping table, each list item includes control title and control Part function pointer, each control function pointer points to the control task of corresponding control in control functional configuration table;
Monitor trigger source, when having listened to control and being triggered, according to control corresponding in control function mapping table Function pointer performs corresponding control task, realizes all control functions included by this control task simultaneously.
In the method, the quantity of predefined control functional configuration table is a or many part and coexists;
When described control functional configuration table has many parts to coexist, with whole control functional configuration tables for according to generating Control function mapping table;
The method also includes the step being updated described control functional configuration table and control function mapping table, Including:
When control kind, control function have adjustment, first control functional configuration table is updated;Then, root According to the control functional configuration table after updating, call current control function mapping table, it is updated.
The method being updated control functional configuration table is: adds or deletes whole control functional configuration table, Or add, the list item that control in functional configuration table is deleted or modified;Then, reload control function to join Put table so that it comes into force.
The function realizing method of programmable reusable control the most as claimed in claim 1, it is characterised in that The method being updated described control function mapping table includes that update all and part update;During update all, The control functional configuration table currently come into force only portion;When part updates, the control functional configuration currently come into force Table has many parts, according to the sequencing superposition loaded and covering.
The function realizing method of programmable reusable control the most as claimed in claim 2, it is characterised in that To the method for control function mapping table update all it is: the control of the whole list items in renewal control function mapping table Part function pointer so that it is be pointing directly at the control task of corresponding control in the control functional configuration table of new loading; If certain control does not exists in control functional configuration table, then this control list item in control function mapping table In control function pointer be empty.
The function realizing method of programmable reusable control the most as claimed in claim 2, it is characterised in that The method updating control function mapping table part is: the control of the part list item in renewal control function mapping table Part function pointer;
If certain control in control function mapping table there is also in control functional configuration table, then update control The control function pointer in this control list item in part function mapping table so that it is be pointing directly at the control of new loading The control task of corresponding control in functional configuration table;
If certain control in control function mapping table does not exists in control functional configuration table, then control merit The control function pointer in this control list item in energy mapping table does not updates;
When part updates, if needing the function of certain control is sky, then handle in control functional configuration table The control task that this control is corresponding is set to sky.
The function realizing method of programmable reusable control the most as claimed in claim 1, it is characterised in that In the method, the mode being updated described control function mapping table includes directly updating and trigger renewal;
Described direct update mode is particularly as follows: call control function mapping table after control functional configuration table updates It is updated;
Described triggering update mode particularly as follows: add a control in control functional configuration table, the control of this control Task processed is set to the renewal of trigger control function mapping table;Listening to after this control is triggered, updating immediately Control functional configuration table and control function mapping table.
CN201310110176.8A 2013-04-01 2013-04-01 A kind of function realizing method of programmable reusable control Active CN103353836B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310110176.8A CN103353836B (en) 2013-04-01 2013-04-01 A kind of function realizing method of programmable reusable control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310110176.8A CN103353836B (en) 2013-04-01 2013-04-01 A kind of function realizing method of programmable reusable control

Publications (2)

Publication Number Publication Date
CN103353836A CN103353836A (en) 2013-10-16
CN103353836B true CN103353836B (en) 2016-12-28

Family

ID=49310210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310110176.8A Active CN103353836B (en) 2013-04-01 2013-04-01 A kind of function realizing method of programmable reusable control

Country Status (1)

Country Link
CN (1) CN103353836B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105611427B (en) * 2016-02-16 2019-04-16 青岛海信电器股份有限公司 The control method for playing back and device of audio-video
CN107544820A (en) * 2016-06-29 2018-01-05 平安科技(深圳)有限公司 Diagrammatic representation method and device
CN106201030B (en) * 2016-07-07 2019-02-01 徐文波 A kind of multimedia controlled plate can customize control
CN108733444B (en) * 2018-05-14 2021-08-24 北京五八信息技术有限公司 Page refreshing method and device, storage medium and mobile terminal
CN108874466B (en) * 2018-06-08 2021-10-29 Oppo(重庆)智能科技有限公司 Control calling method, electronic device and computer readable storage medium
CN109656780A (en) * 2018-12-17 2019-04-19 深圳市丰巢科技有限公司 Control data monitor method, device, server-side, equipment and medium
CN112804618B (en) * 2021-01-06 2022-07-29 昆腾微电子股份有限公司 Audio output method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102110143A (en) * 2011-02-09 2011-06-29 浪潮集团山东通用软件有限公司 Assembly facing various controls in desktop application program
CN102520947A (en) * 2011-12-09 2012-06-27 中兴通讯股份有限公司 Method and device for automatically removing codes

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8578307B2 (en) * 2009-09-16 2013-11-05 Viasat, Inc. Control/monitor automation for ASICs and programmable logic

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102110143A (en) * 2011-02-09 2011-06-29 浪潮集团山东通用软件有限公司 Assembly facing various controls in desktop application program
CN102520947A (en) * 2011-12-09 2012-06-27 中兴通讯股份有限公司 Method and device for automatically removing codes

Also Published As

Publication number Publication date
CN103353836A (en) 2013-10-16

Similar Documents

Publication Publication Date Title
CN103353836B (en) A kind of function realizing method of programmable reusable control
CN106201241A (en) The multi-screen display method of terminal screen, device and terminal
CN106202367B (en) A kind of processing method and processing device of object information
US9515627B2 (en) Devices and methods for audio volume adjustment
CN105549888B (en) Control combing generation method and device
CN102841682A (en) Terminal and gesture manipulation method
DE102011001409A1 (en) A method of controlling a device operated in the environment as well as a communication device and computer-readable medium using same
CN106201167A (en) The multi-screen display method of terminal screen, device and terminal
CN110768877B (en) Voice control instruction processing method and device, electronic equipment and readable storage medium
US20180150308A1 (en) Method for Communication between Views in Android System
CN104571868A (en) Mobile terminal and icon adjusting method and device thereof
CN104486389A (en) Communication channel establishing method and system between window management services and APP (Application)
CN105323643A (en) Control device for realizing fast switching of television channels and television applications
CN105227984B (en) Remote controller key distribution method and device
CN102682020B (en) File management system and method
CN104133638A (en) Interactive method and device of collected radio stations
CN112817582A (en) Code processing method and device, computer equipment and storage medium
CN104793889A (en) Folder creating or dismissing method and system applying to touching screen
CN104516481A (en) Information processing method and electronic equipment
CN104424173B (en) Typesetting quick interface arrangement method and device
US20190303092A1 (en) Sound Processing Apparatus and Method
CN104408081B (en) A kind of mobile terminal and its quick method and apparatus for checking file
CN106648289A (en) Method for switching application program, switching device and terminal
CN106375190B (en) instant messaging software interface splitting and merging display method and system
CN110266529A (en) Extensive individualized intelligent service customization method based on Internet of Things

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 518107, Hua Han Innovation Park office building, 16 Lang Shan Road, Shenzhen, Guangdong, Nanshan District D403

Applicant after: Shenzhen East micro smart Polytron Technologies Inc

Address before: 518107, Hua Han Innovation Park office building, 16 Lang Shan Road, Shenzhen, Guangdong, Nanshan District D403

Applicant before: Shenzhen Tendzone Intelligent Technology Co., Ltd.

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: Room 401, Block D, Huahan Innovation Park, 16 Longshan Road, North District, Xili Street, Nanshan District, Shenzhen City, Guangdong Province, 518000

Patentee after: Shenzhen East micro smart Polytron Technologies Inc

Address before: 518107 Huahan Innovation Park Office Building D403, 16 Langshan Road, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: Shenzhen East micro smart Polytron Technologies Inc

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 518000 R & D building 1601, block a, building 7, Wanke Yuncheng phase I, Xili community, Xili street, Nanshan District, Shenzhen City, Guangdong Province (16 / F, block a, building 1, international innovation Valley)

Patentee after: SHENZHEN TENDZONE INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: Room 401, Block D, Huahan Innovation Park, 16 Longshan Road, North District, Xili Street, Nanshan District, Shenzhen City, Guangdong Province, 518000

Patentee before: SHENZHEN TENDZONE INTELLIGENT TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder