Virtual information flow bus interface unit and data processing method thereofTechnical field
The present invention relates to field of information processing in the computer system, specifically, relate to a kind of in the universal interaction system virtual information flow bus interface unit and data processing method thereof.
Background technology
Along with being on the increase of personalization, hommization and intelligent demand, the application of all kinds of business need realize by the guiding of navigation interactive system.Because the difference of field and the function that had under all kinds of business, the interactive system that causes navigating preservation and transmission inner and the non-business information that business is not directly related closely depend on each professional process, promptly, in order to supporting business and realize that information transmission is scattered in the different concrete Business Stream processing procedures fully with the processing of the non-Business Stream of sharing, and can't separate non-Business Stream with Business Stream.
A kind of virtual information flow bus framework has been proposed at present, as shown in Figure 1.The virtual information flow bus framework is made of jointly navigation administration and supervision authorities, navigation service layer, power function layer, data bus layer four class functional layer; Also be included as the background data base that provides support of realization of navigation interactive system, as configuration database, scene configuration database, User Information Database, miscellaneous service database etc.Among the figure, the filled arrows of black is represented the data message of data bus layer and other each layer contacts, two-way three-dimensional arrow presentation function function layer the quoting of white to background data base, the unidirectional three-dimensional arrow of white is represented superstructure to the quoting of understructure, the three-dimensional four-headed arrow of the black navigation interactive mode that administration and supervision authorities and peripheral interactive system can be carried out of representing to navigate.Transmission by certain parameter and information between layer and the layer and quoting is to realize that angle from the angle of Business Entity and system to the unified description of interactive system, satisfies the needs that miscellaneous service is adjusted.
Above-mentioned virtual information flow bus framework only as an overall applicability in the navigation interactive system, a certain functional layer wherein is not applied in the interactive system of same or similar framework independently according to concrete service environment.
Summary of the invention
The object of the present invention is to provide a kind of virtual information flow bus interface unit, in the interactive system that is applied to same or similar framework independently, realize the synchronous renewal and the transmission of data message inside, satisfy the demand of navigation interactive system, realize navigation interaction logic, system data information and power function processing three's real separation the various function treatment of data message.
Another object of the present invention is to provide a kind of data processing method, so that the file module that can directly quote to be provided based on the virtual information flow bus interface unit.
Virtual information flow bus interface provided by the present invention unit is achieved through the following technical solutions:
A kind of virtual information flow bus interface unit is applied to comprise the power function layer in the navigation interactive system of navigation administration and supervision authorities, navigation service layer, power function layer and data bus layer, and this interface unit comprises:
Professional function interface unit is used for generating the corresponding business function according to business, and quotes for the navigation service layer;
The general purpose function interface unit is used to generate the system's general purpose function that comprises system initialization function and systemic-function function at least, and quotes for navigation administration and supervision authorities and navigation service layer respectively;
The variable interface unit, be used to the navigation service layer provide with the data bus layer in control information and the variable that changes synchronously of status information;
Wherein, system's general purpose function that professional function interface unit is generated by the general purpose function interface unit according to business generation corresponding business function is that the base class succession obtains professional function class, this business function class derives from as base class and obtains service logic, and is packaged into and professional corresponding instance object.
Described general purpose function interface unit comprises:
System initialization function interface unit is used for quoting for the navigation administration and supervision authorities when the navigation interactive system starts, and carries out initial configuration for the non-service data information of data bus layer;
Systemic-function function interface unit is used to the navigation service layer to provide and the professional handling function that has nothing to do itself;
The tool function interface unit is used for for professional function interface cell refernce, and realizes and the professional conversion processing that has nothing to do itself;
Business function function interface unit is used for for professional function interface cell refernce, and realizes each professional total operation.
Described professional function interface unit further comprises:
Professional total interface unit is used for realizing and the irrelevant function of business itself by the tool function interface unit;
The professional interface unit that rewrites is used for realizing each professional total function by business function function interface unit;
Professional proprietary interface unit is used to realize each professional specific interactive function.
Described virtual information flow bus interface unit further comprises debarkation authentication business interface unit and the business interface unit that logs off, and is used to guarantee the default interface unit of navigational system safe operation.
Variable in the described variable interface unit is not as calculated or conversion or encapsulation, and the variable that can share for the navigation service layer.
The data processing method of virtual information flow bus interface provided by the present invention unit is achieved through the following technical solutions:
The data processing method of a kind of virtual information flow bus interface unit, the general purpose function interface unit that is used for the generation system general purpose function and quotes for navigate administration and supervision authorities and navigation service layer, with, be used for generating the professional function interface unit that the corresponding business function is also quoted for the navigation service layer according to business, is base class according to service needed by the general purpose function in the general purpose function interface unit, succession obtains the professional function class in the professional function interface unit, be that the base class derivation obtains service logic with professional function class then, and be packaged into and professional corresponding instance object.
This method can further comprise, define the sub-interface of each professional function interface unit, and by the corresponding sub-interface function of function packaging structure, be that the base class succession obtains corresponding file sub-interface by sub-interface respectively then, by the sub-interface function is that the base class succession obtains corresponding file sub-interface function, quotes for corresponding instance object.
This method also can further comprise, quotes primary data information (pdi) from the data bus layer by the variable interface unit.
This method also can further comprise, by general purpose function interface unit accessing database, to carry out background process.
The present invention provides a kind of virtual information flow bus interface unit from attainable function of interactive system and available state angle, and it not only provides unique passage of system information exchange, and it has realized unified processing and processing to information.Virtual information flow bus interface provided by the present invention unit has following characteristics:
(1) by function interface unit and variable interface unit, the function call in the information flow is separated with variable, realized sharing of variable information stream;
(2) by general purpose function interface unit and professional function interface unit, make separating of Business Stream in the information flow and non-Business Stream, realized according to concrete professional needs additions and deletions flexibly specifically professional;
(3) by system initialization function interface unit, systemic-function function interface unit, tool function interface unit, business function function interface unit and professional total interface unit, professional interface unit, the professional proprietary interface unit of rewriteeing, make the information flow own relevant and separate, realized the structuring of system with the professional system information flows that has nothing to do itself with business;
(4), can fully ensure and realize the free access of information state on the basis of data security in system by the debarkation authentication business interface unit and the business interface unit that logs off.
Therefore, multiplexing and whole between different business that the present invention fundamentally solves and the system and problem, a kind of Versatile Interface Unit is provided, promoted the utilization factor of software.
A kind of virtual information flow bus interface cell data disposal route provided by the invention, by being that base class is inherited, derives from, encapsulated by general purpose function, for navigate administration and supervision authorities and navigation service layer provide instance object that can directly quote, corresponding with business, and the interface unit module that can be used as standard uses, and realized that a kind of OO information flow handles.In the virtual information flow framework, for the correlated variables of power function layer and data bus layer provides a kind of structurized encapsulation to realize synchronous renewal and the transmission of data message in inside.
Description of drawings
Fig. 1 is a virtual information flow bus framework synoptic diagram;
Fig. 2 is the composition of virtual information Bus Interface Unit and the synoptic diagram of application thereof;
Fig. 3 is the institutional framework synoptic diagram of the virtual information flow bus interface unit of one embodiment of the invention.
Embodiment
Virtual information flow bus interface provided by the invention unit is formed by the correlated variables development of power function layer in the virtual information flow bus framework and data bus layer, and the composition of virtual information Bus Interface Unit and the synoptic diagram of application thereof are as shown in Figure 2.
The virtual information Bus Interface Unit is applied to the power function layer, from can comprise function interface unit and variable interface unit in form.Wherein, the function interface unit is concrete functional function, comprise general purpose function interface unit and professional function interface unit, the general purpose function interface unit is the general purpose function with independent of service, and professional function interface unit each has a whole set of complete function with professional corresponding at different concrete navigation services.The variable interface unit is some the concrete correlated variables (not shown) in the data bus layer, these correlated variabless are control and the status data information that directly is present in the data bus layer, this type of information is not owing to need to calculate usually, processing such as conversion and encapsulation, but need in the navigation service layer, realize sharing, therefore, in order to ensure the easy and dirigibility of use, above-mentioned correlated variables in the virtual information flow bus interface unit without any processing, it is not carried out the function encapsulation, and when quoting and the data bus layer keep fully synchronously, constitute the part of virtual information flow bus interface unit, the and function interface unit provides the transmission and the processing of information together for navigation service layer and data bus layer.
Above-mentioned general purpose function interface unit comprises system initialization function interface unit, systemic-function function interface unit, tool function interface unit, business function function interface unit.Below introduce each function interface Elementary Function respectively.
System initialization function interface unit is used for quoting for the navigation administration and supervision authorities when the navigation interactive system starts, realize establishment system and user job path, obtain all scene identity (ID) tabulation, obtain scene ID traversal lists, obtain all scene configuration parameters, obtain login user information, obtain the system initialization work such as follow-up scene ID of processing and identification, the navigation administration and supervision authorities are the function of system initialization function interface unit by reference, not only for the user has created the navigation interactive space, and realized initial configuration to non-service data information in the data bus layer.
Systemic-function function interface unit is used to the navigation service layer that a kind of interface unit general, that can directly quote is provided, this systemic-function function interface unit has embodied the operation that itself has nothing to do with business in the navigation service layer, as: obtain scene ID corresponding informance record position, initialization scene configuration information, upgrade functions such as interaction scenarios writes down, parsing signal language template, configuration scene information, these functions all are some indispensable in navigation service layer feature operations, can determine the opportunity that it is quoted according to different business demands.
The tool function interface unit belongs to a kind of intrinsic function interface unit of power function layer, is used for the total function interface cell refernce for professional function interface unit.The tool function interface unit has strong independence, the support that it even not need to realize the data bus layer, be generally used for realizing such as: Chinese character be converted into phonetic, phonetic be converted into Chinese character, extract keyword, absolute time the relativization conversion, obtain a series of and professional irrelevant fully conversion processing processes such as current system time.Also can be for other any general purpose function interface unit and professional function interface cell refernce.
Business function function interface unit belongs to a kind of intrinsic function interface unit of power function layer, is used for rewriteeing the function interface cell refernce for the business of professional function.Business function function interface unit is a part that realizes the operation of same type business function, and this part is the total operation of miscellaneous service, and have nothing to do with the particular content that the navigation service layer relates to the opportunity of at every turn quoting.So by after business function function interface unit is inherited, the business in the professional function rewrites the function interface unit and only needs carry out operational processes to specific business information again, just can realize complete business function processing.Business function function interface unit generally comprises following operation: initialization receives information, initialization sends information, obtains reception information, disposes transmission information.
Said system initialization function interface unit, systemic-function function interface unit, tool function interface unit and business function function interface unit also can be quoted for the data bus layer.
According to no business demand, professional function interface unit comprises various concrete business interfaces unit, as mail service interface unit, news interface unit etc.But which kind of business interface unit no matter, its interface unit all comprises professional total interface unit, professional three kinds of interface unit, the professional proprietary interface units that rewrite, these three kinds of interface units all directly use for the navigation service layer.Wherein, professional total interface unit needs by reference, realizes professional by the tool function interface unit in the general purpose function interface unit; The professional interface unit that rewrites need be realized professional by rewriteeing by the business function function interface unit in the general purpose function interface unit; And professional proprietary interface unit then is each professional peculiar business interface unit, and it has realized each professional specific interactive function.
It is that each interface unit type, the layer of example quoted attribute, interface unit function name that table 1 shows with the navigation mail service.
| The interface unit attribute | The interface unit type | Layer is quoted attribute | The interface function name |
| The general purpose function interface | The tool function interface unit | The power function layer | Chinese character is converted into phonetic phonetic and is converted into the relativization conversion that Chinese character extraction keyword obtains current system time absolute time ... |
| Business function function interface unit | The power function layer | Initialization receives information initializing transmission information and obtains the information configuration transmission information that receives ... |
| Systemic-function function interface unit | The navigation service layer | Obtain scene ID corresponding informance record position and initialize scene configuration information renewal interaction scenarios record parsing signal language template configuration scene information ... |
| System initialization function interface unit | The navigation administration and supervision authorities | Establishment system and user job path obtain all scene ID tables and obtain the follow-up scene ID that scene ID transfer table obtains all scene configuration parameter acquiring login user information acquisition process identifications ... |
| Professional function interface | The professional interface unit that rewrites | The navigation service layer | Initialization mail service reception information is obtained mail service and is received information initializing mail service transmission information configuration mail service transmission information ... |
| Professional total interface unit | The navigation service layer | Extract the mail keyword with mail dynamic syntax speech alphabetizing configuration mail scene configuration information configuration mail interaction mode information ... |
| Professional proprietary interface unit | The navigation service layer | Creating mail Socket connects to initialize and obtains the mail resource information and obtain mail resource information initialization operation mail resource information transmit operation mail resource information and obtain in the address list certain condition user profile and obtain the mailbox that sends mail and obtain the mail statistical information and obtain the relative program request mail of condition program request mail position acquisition position initialization mail program request tabulation ... |
Table 1
Because different business interface unit is only handled this business information, and finish professional interior all functions and operate, the general purpose function interface unit is handled non-traffic data, therefore the virtual information flow bus interface unit adopts OO succession to quote institutional framework, with general purpose function as base class, inherit by this base class according to service needed then and obtain professional function class, be base class with professional function class then, carry out the derivation of service logic on its basis, and encapsulate out the navigation service layer original shape of different business correspondence, thereby use for reciprocal process generating unique instance object.
As shown in Figure 3, Fig. 3 is the institutional framework of the virtual information flow bus interface unit of one embodiment of the invention, and wherein, dotted arrow is represented adduction relationship.Each interface unit has defined sub-interface from functional perspective, and pass through the corresponding sub-interface function of function packaging structure to realize function corresponding, thereby the interface unit as standard uses for the navigation service layer, realizes connection, transmission and the processing of data message stream between data bus layer and navigation service layer.For example, business function interface unit and inherited the general purpose function interface unit as system initialization interface unit, debarkation authentication business interface unit, three the default interface unit, business interface unit that log off of ensureing the safe operation of navigation interactive system, make business function interface unit, system initialization interface unit, debarkation authentication business interface unit, the business interface unit that logs off obtain association attributeses all in the general purpose function interface unit and method naturally, and also have own exclusive attribute and method own; The sub-interface of debarkation authentication service scripts module and sub-interface function have been inherited the sub-interface function of defined sub-interface in debarkation authentication business interface unit and structure respectively, the sub-interface of the service scripts module that logs off and sub-interface function have been inherited the sub-interface function of log off defined sub-interface in business interface unit and structure respectively, the sub-interface of service scripts module and sub-interface function have been inherited the sub-interface function of defined sub-interface in corresponding business functional interface unit and structure respectively, to supply the debarkation authentication srvice instance object in the navigation management document module respectively, the srvice instance object logs off, concrete srvice instance object reference, thus encapsulate out the navigation service layer original shape of different business correspondence.
Because the system initialization interface unit directly uses in the administration and supervision authorities of navigating, therefore need direct formation object and use, that is, among the figure, the direct cited system initialization interface of system initialization sub-interface in the navigation management document module; Business interfaces such as business function interface such as mail service and other business all can freely increase and decrease according to service needed, and only need increase and decrease professional corresponding service bus file group, business function interface document and professional virtual information flow unit file simultaneously gets final product, and need not carry out the repeatability coding, thereby the height of having realized design and code is multiplexing.
The virtual information flow bus interface unit can carry out message exchange with background data base, and a kind of is that the primary data information (pdi) in the background data base is loaded in the data bus layer in advance, to quote for navigation administration and supervision authorities, navigation service layer by the variable interface unit.Another kind is very big or do not need the frequent information of using in user interaction process for those data volumes, does not need to be loaded in advance in the data bus layer, but carries out when needed by general purpose function interface unit visit corresponding database.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.