Background technology
Interactive interface is the passage that people and computing machine carry out message exchange, user by interactive interface to computer input information, operate, computing machine provides information by interactive interface to user, for read, analyze and judgement.Present stage, interactive interface was widely used in a lot of aspects such as science and technology, military affairs, education, safety and consumer electronics.Interactive interface is mainly divided into: command language user interface, graphic user interface, direct control user interface, multimedia user interface, MultiModal User Interface etc., wherein graphic user interface is the main flow of active user's interface, and the core technology that this type of interface adopts is time Driving technique.
User identifies by figure and controls interactive elements, carry out purposive operation, but due to the mistaken ideas of cultural difference and pattern understand, a lot of operations are evolved into trial, the participation that graphic user interface and interactive process greatly depend on vision and manually control.Just because of this type of interface of these features, often specific aim is very strong, for developer, particularly for the interactive interface developer towards monitoring inquiry, configuration management, system detection, fault diagnosis and information early warning, although this class interface operation steps is simple, with clearly defined objective, but function difference is large, development platform is many, this has all brought very burden to developer, tends to occur again developing for different product needed the interactive interface of new function.Taking the monitoring management system of the server product of certain company as example, there is a set of monitoring management system of having applied for rack-mount server, but while exploitation for blade server, because having occurred to change, architecture causes need to again developing when the monitoring management interface for similar function, simultaneously, because the regular renewal of server hardware platform has also caused modifying to existing function, or in original functional module, increase new function, this all needs again to develop interactive interface.Be not only like this waste to financial resources, material resources, manpower, resource, be also the waste that can not make full use of the existing fruit of labour, and can extend product development cycle, postpone time to market (TTM).
Therefore, how can accurately make full use of the development of existing interactive interface, can improve again the actual development speed of interactive interface, further realize the modular design standard criterion with reusable storehouse and just become to need badly the problem of solution.
summary of the invention
For how realizing rapidly and accurately interactive interface, reduce the various costs in performance history, the present invention proposes a kind of interactive interface Fast implementation based on reusable storehouse.
Interactive interface Fast implementation based on reusable storehouse of the present invention, the technical scheme that solve the technical problem employing is as follows: the main contents of the described interactive interface Fast implementation based on reusable storehouse comprise: the modular design of interactive interface, the Component in reusable storehouse, the quick performing step of interactive interface based on reusable storehouse;
The modular design method of described interactive interface, refers to based on OO method for designing, carries out common point extraction separate with otherness by interactive interface by functional module;
The construction method in described reusable storehouse, its content mainly comprises: obtain interactive interface module, database design and realization, structure active data/view model, binding interface and the database module of arrangement, by classification encapsulation function storehouse;
The quick performing step of the described interactive interface based on reusable storehouse mainly comprises: clear and definite user's request, inquiry reusable function storehouse, normative reference realize accommodation function module, customization function list, configuration reusable function storehouse, generate target interactive interface.
Further, in the construction method in described reusable storehouse, reusable storehouse mainly comprises infrastructure elements storehouse, utility function storehouse and special function storehouse, and specific interactive interface module is all bound in every kind of function storehouse; Wherein, infrastructure elements storehouse mainly comprises the basis that forms interface for form, list, scale map, edit box, button etc.; Utility function storehouse be by object-oriented method analyze abstract out there is common, functional module repeatably, special function storehouse be by object-oriented method Analyze & separate out there is special, special functional module.
Further, the design of described active data/view model, it is the design of data-oriented binding figure, how user shows without relation data under view, user will be as long as need to show that by image conversion method view elements arranges in place, then by the specific data cell of database binding, be that view can upgrade automatically when data change;
Described active data/view model is made up of data source, logical source and view source, and wherein data source is responsible for collecting the data from underlying database, and logical source is resolved the data from data source, receive logic source, view source data after treatment.
Further, in the construction method in described reusable storehouse, also comprise that reusable library standard specification is model standard of entering refirigeration specification, described reusable library standard specification is need to increase and expand for follow-up interactive interface time, and unified standard interface, configuration path, database table simple form formula, data/view model binding specification are provided.
The interactive interface Fast implementation based on reusable storehouse that the present invention proposes, by the design of active data/view model, data and interface element to be associated, after realizing infrastructure elements storehouse, general utility functions storehouse and the special function storehouse of reusable character according to the feature of interactive interface again, set up into reusable storehouse, finally propose model standard of entering refirigeration specification unified standard interface, configuration path, database table simple form formula, data/view model binding specification are provided.
The beneficial effect of a kind of interactive interface Fast implementation based on reusable storehouse disclosed by the invention is:
The described interactive interface Fast implementation based on reusable storehouse, can realize fast the mutual interface of various types of needs based on reusable storehouse, not only can make full use of the development of existing interactive interface, can improve again the actual development speed of interactive interface.In addition, the present invention also relates to have the modular design standard criterion in reusable storehouse, this specification is the basis that ensures that reusable storehouse can effectively be expanded and apply, and can further improve the validity in reusable storehouse and the availability of interactive interface by the improvement to reusable library standard specification and optimization.
The features such as this method is suitable for the development platform at the remote access based on WEB and the local interaction interface based on the instrument such as QT, VS, possesses function storehouse design rule simple, and reusability is high, and interface moulding is quick.
Embodiment
Below by accompanying drawing, the interactive interface Fast implementation based on reusable storehouse of the present invention is further described, be not construed as limiting the invention.
Interactive interface Fast implementation based on reusable storehouse of the present invention, the content being mainly concerned with while design comprises: the construction method in the modular design method of interactive interface, the reusable storehouse of Function-oriented, the quick performing step of interactive interface based on reusable storehouse.
Respectively above-mentioned several aspects are elaborated below:
In the modular design of described interactive interface, described modular design is based on OO method for designing, carries out common point extraction separate with otherness by interactive interface by functional module; Described interactive interface is mainly towards comprising application scenarios such as monitoring inquiry, configuration management, system detection, fault diagnosis and information early warning, but is not limited only to them; The access mode of described interactive interface comprises: WEB remote access, local sign-on access and local installation and operation etc., but be not limited only to them.
In the construction method in described reusable storehouse, reusable storehouse mainly comprises infrastructure elements storehouse, general utility functions storehouse and special function storehouse, and specific interactive interface module is all bound in every kind of function storehouse; Wherein, infrastructure elements storehouse mainly comprises the basis that forms interface for form, list, scale map, edit box, button etc.; General utility functions storehouse be by object-oriented method analyze abstract out there is common, functional module repeatably, conventionally this part function all can exist in basic interactive interface, and function is basic identical, as log information demonstration, user management, time configuration etc.; Special function storehouse be by object-oriented method Analyze & separate out there is special, special functional module, conventionally this part function is due to its specificity, whether will according to actual conditions concrete configuration, as firmware upgrades and synchronous, power supply control etc. if specifically in interactive interface, occurring;
The construction method in described reusable storehouse, its content mainly comprises: obtain interactive interface module, database design and realization, structure active data/view model, binding interface and the database module of arrangement, by classification encapsulation function storehouse; The design of described active data/view model, it is the design of data-oriented binding figure, user need not be concerned about how data show under view, user will be as long as need to show that by image conversion method view elements arranges in place, then by the specific data cell of database binding, when the data view that changes can upgrade automatically;
In the construction method in described reusable storehouse, also comprise that reusable library standard specification is model standard of entering refirigeration specification, it is the standard rule based on reusable storehouse, it is the standard that Design and implementation is formulated at interaction interface, in the face of scenes such as demand change and amendments, need to increase and expand for follow-up interactive interface time, provide unified standard interface, configuration path, database table simple form formula, data/view model binding specification.The object of the construction method in described reusable storehouse, is for existing development platform provides infrastructural support, and provides standard rule for following platform.
The quick performing step of described interactive interface mainly comprises: clear and definite user's request, inquiry reusable function storehouse, normative reference realize accommodation function module, customization function list, configuration reusable function storehouse, generate target interactive interface; In the time of inquiry reusable function storehouse, need to check actual demand after the feature list with reference to existing function storehouse; Described normative reference realizes accommodation function module, refers to that the module of realization will meet reusable library standard rule, otherwise cannot carry out next step; Determine whether need to realize specific function as the case may be, and functional module after realizing can be added in reusable function storehouse to; Described configuration reusable functional module refers to, by offering user's configuration file, is XML configuration file specifically, and user can enable by this file, module in forbidden energy, increase, deletion, amendment concrete function storehouse.
Interactive interface Fast implementation based on reusable storehouse of the present invention, first, extract actual interaction page platform feature common point, separate, dedicated according to function, and by OO method, each function interface is designed to independently class, in interface, there is the element of general character, can extract basis of formation element database; Then, according to module characteristic design interface function interactive database, and articulating based on active model/view approach fulfillment database and interface; Again then, realize infrastructure elements storehouse, general utility functions storehouse and special function storehouse in conjunction with interactive interface platform development instrument; Finally, realize the storehouse configuration tool of user oriented reusable and standard criterion, unlatching by functional module, close and the action such as adjustment realizes interactive interface application rapidly.
Accompanying drawing 1 is active data/view model of the present invention, as shown in Figure 1, block diagram is made up of data source, logical source (Logical processing unit) and view source, data source is responsible for collecting the data from underlying database, process by data, after increase view display properties, be submitted to logical source (Logical processing unit); Logical processing unit is resolved from the data of data source, and selects the processing rule of (element) storehouse, basis interior element to data in reusable storehouse, then to data processing so that view show; Data after the receive logic processing unit processes of view source, and select suitable reusable storehouse view elements to show data message.
The present invention has improved the realization flow in traditional reusable component storehouse, and traditional flow process mainly comprises: partition functionality module, extract function module, realize versatility module, realize specificity module, composition component base.The present invention has improved above-mentioned flow process, increase articulating of functional module and back-end data base, while making functional module represent content, need not consider again data-interface, only need build according to basic module, interface display and data content upgrade based on active data/view model to be realized, and has so greatly improved the actual implementation efficiency of interactive interface.
Accompanying drawing 2 is reusable of the present invention storehouse block diagram, as shown in Figure 2, mainly comprise storehouse, basis (element), general (function) storehouse, special (function) storehouse, described base library, general-purpose library, private library basis of formation layer, general layer, special layer respectively, basal layer comprises the infrastructure elements of various formation interactive interfaces, special layer comprises the accommodation function module in various interactive interfaces, general layer above-mentioned two-layer between, the principle that presses same differentiation is processed demand, first extract versatility and add general layer to, then add special layer to according to singularity; The standard of entering refirigeration specification (reusable library standard specification) of reusable storehouse model comprises above-mentioned three layers in the vertical.
Accompanying drawing 3 is the process flow diagram in structure reusable of the present invention storehouse, and as shown in Figure 3, detailed process is described below:
Step 1: interactive interface demand analysis;
Step 2: based on OO method, interface demand is carried out to common point extraction and separate with otherness;
Step 3: the interactive interface module of obtaining arrangement;
Step 4: the database design of interaction interface function also realizes;
Step 5: build active data/view model according to the demand of decomposing;
Step 6: binding interface and database module;
Step 7: by classification encapsulation function storehouse, and upgrade reusable function storehouse.
Accompanying drawing 4 is the quick realization flow figure of interactive interface of the present invention, and as shown in Figure 4, detailed process is described below:
Step 1: interactive interface demand analysis, it is the monitoring management system of service-oriented device that this example is implemented;
Step 2: with reference to reusable function storehouse model standard of entering refirigeration specification (reusable library standard specification), whether analysis monitoring administration interface comprises the special module that reusable storehouse does not comprise;
Step 3: if need to increase new special module, build accommodation function module with reference to step 2 to the step 7 of Fig. 3;
Step 4: upgrade reusable storehouse, increase special module to reusable storehouse;
Step 5: upgrade reusable storehouse model standard of entering refirigeration specification;
Step 6: if need to increase without special module, directly call the module fast assembling monitoring management system interface in reusable storehouse.
In summary, the described interactive interface Fast implementation based on reusable storehouse, first, extract actual interaction page platform feature common point, separate, dedicated according to function, and by OO method, each function interface is designed to independently class, in interface, there is the element of general character, can extract basis of formation element database; Then, according to module characteristic design interface function interactive database, and articulating based on active model/view approach fulfillment database and interface; Again then, realize infrastructure elements storehouse, utility function storehouse and special function storehouse in conjunction with interactive interface platform development instrument; Finally, realize the storehouse configuration tool of user oriented reusable and standard criterion, unlatching by functional module, close and the action such as adjustment realizes interactive interface application rapidly.
Utilize the interactive interface Fast implementation based on reusable storehouse of the present invention, can realize fast the mutual interface of various types of needs based on reusable storehouse, not only can make full use of the development of existing interactive interface, can improve again the actual development speed of interactive interface, further realize the problem of needing solution badly that solved.In addition, the present invention also relates to have the modular design standard criterion in reusable storehouse, this specification is the basis that ensures that reusable storehouse can effectively be expanded and apply, and can further improve the validity in reusable storehouse and the availability of interactive interface by the improvement to design standards specification and optimization.
The foregoing is only embodiments of the invention, within the spirit and principles in the present invention all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.