At the problems referred to above, the object of the present invention is to provide a kind of telecom service developing method based on SIB, use this method can increase maintainability and expandability in the telecommunication system business development, and improve professional development efficiency
For achieving the above object, the technical solution used in the present invention is:
(1) design, realization SIB template, that is: parameter and the port of design Service Independent Block SIB are described it according to certain format, form SIB attribute description file; When realizing the SIB function, the grammer of parameter and port is transmitted in definition, to finish SIB functional template file;
(2) build business with SIB, that is: required database and the variable of at first definition business; Secondly at editor, reading parameter then from SIB attribute description file is SIB image parameter assignment by the different SIB class establishment SIB object of SIB class tabulation selection, and with SIB object layout; The 3rd determines SIB port line, generate the port menu by resolving SIB attribute description file system, the user connects into different branches according to service needed, and database, variable and professional flow graph behind above-mentioned definition or the editor save as service scripts as database information, variable information and SIB object information according to self-defining form respectively;
(3) service scripts is changed into database file and service code file, that is: at first read full detail, database information is translated into the database file that satisfies the database definition grammer according to the form of service scripts; Again professional flow graph information is passed through template syntax parsing, translation are formed the service code file of a standard; In above-mentioned translation process, to provide miscue to the database definition of mistake, the SIB image parameter assignment of mistake, the outlet connection of mistake, the imperfection line of professional flow graph, judge that then the mistake that occurs is template definition mistake or professional Edit Error, continue operation if the template definition mistake is returned above-mentioned steps (1), continue operation otherwise return above-mentioned steps (2);
(4) database file and service code file are compiled into executable file, that is: at first will compile the data library file; Secondly to the compiling of service code file, in above-mentioned compilation process, to provide miscue to grammer, the semanteme of mistake; Judge then whether above-mentioned compiling exists compile error, continue operation if exist compile error to return above-mentioned steps (2), otherwise continue the operation of following steps;
(5) carry out business and carry out tracking, that is: carry out SIB parameter value, the tracking of professional variate-value and the professional dynamic tracking of carrying out.
Because the present invention is described with it parameter and the port of Service Independent Block SIB according to certain format, form SIB attribute description file; And when realizing the SIB function, transmit the grammer of parameter and port by definition and describe the SIB function, form SIB functional template file, therefore, adopt above-mentioned SIB exploitation telecommunication service, can make amendment to the SIB template and expand according to the needs of business development, and needn't carry out any modification the business development product, improve the maintainability and the expandability of system, simplified the business development process; Simultaneously, carry out tracking because service debugging function of the present invention can be carried out business, the user can check the professional property value of carrying out flow process and SIB object easily, like this, can easily find SIB parameter-definition mistake or business Process Design mistake, thereby improve the efficient of business development.
The invention will be further described below in conjunction with drawings and Examples.
Telecom service developing method based on SIB provided by the invention comprises SIB template definition, professional editor, professional translation, professional compiling and service debugging five major parts.Wherein, described SIB template definition comprises that SIB parametric description and SIB function realize describing; Described professional editor comprises operation flow editor and professional desired data storehouse editor; Described professional translation comprises that service scripts translation and error reporting generate; Described professional compiling comprises grammer, the semantic error report generates and service code file, database compile; Described service debugging comprises single step tracking, SIB image parameter value and the tracking of professional variate-value.The concrete enforcement of the invention described above various piece is with reference to figure 1.
In step 1, design, realization SIB template, that is: parameter and the port of design Service Independent Block SIB are described it according to certain format, form SIB attribute description file; When realizing the SIB function, transmit the grammer of parameter and port by definition and describe the SIB function, to finish SIB functional template file;
Carrying out SIB parameter and port when describing, can adopt the mode of long name, short name definition, description comprising essential informations such as the parameter of each SIB, port, titles, in description, be defined as consolidation form, help work such as the translation of service scripts and parameter parsing are carried out in the read-write of parametric description file.
The parameter and the port that are a simple SIB are below described example:
SIB title=assignment
SIB description=variable is carried out assignment
SIB picture=picture path and title
SIB port=input port
SIB port=successfully outlet
SIB port=error exit
SIB parameter=parameter short name, parameter initial value, parameter long name.
When realizing the function of SIB, adopt the form of template file, carry out the description of SIB function with meeting the form that compiles grammar request, wherein define the parameter value that some general syntaxs solve the SIB object and import into and SIB object branch ports problem.For the SIB of complexity then carry out procedure definition and in template file, provide the invocation of procedure syntactic description, call and the statement method.To satisfy the function that different grammar requests are described SIB for different business realizing language.New object of every generation just calls process one time.The realization that is a simple SIB is below described, and wherein provides title, parameter-definition, variable-definition, procedure definition and content-defined.
[title] assignment
[variable]
[process]
[content]
<label 〉
Assignment statement
Whether comparative result successful assignment
Be: change successfully outlet over to
Not: transfer the possession of error exit
Because SIB parametric description and function realize all adopting template file and self-defined grammer,, increased the expandability of system as long as just can oneself add new SIB according to the form user of regulation.
Perfect SIB definition has been arranged, and next step just can carry out professional editor's realization.
In step 2, build business with SIB, that is: required database and the variable of at first definition business; Secondly at editor, reading parameter then from SIB attribute description file is SIB image parameter assignment by the different SIB class establishment SIB object of SIB class tabulation selection, and with SIB object layout; The 3rd determines SIB port line, generate the port menu by resolving SIB attribute description file system, the user connects into different branches according to service needed, and database, variable and professional flow graph behind above-mentioned definition or the editor save as service scripts as database information, variable information and SIB object information form respectively; Database editor 221, the interface editing of providing convenience is stored as file by given format, so utilizes translater to translate into to meet the normative document of database compiler.
When this step specific implementation, editing interface can be divided into parts such as SIB class panel, editing area, create the SIB object by dilatory SIB class at editing area.In the reality, editing area can be designed to grid configuration, and the SIB object is placed in the lattice, and the line between SIB is placed on the grid, and for two SIB objects choosing, system carries out self routing, and guarantees the not overlapping of line.Editor to the SIB parameter can adopt dynamic property window, at different SIB, generates parameter editor and port menu automatically by analytic parameter layer of structure and port definition.The key of above-mentioned realization is to have adopted the definition and the parsing of long name, short name on the describing mode of parameter, if the SIB parametric description has only one deck structure, the window that generates is also just simple, if long name has more than two-layer structure in describing, can generate the tree window behind the parsing attribute.Therefore when user's modification just need not remodify SIB parameter editor behind the SIB parametric description, the variation that system can automatic adaptation template file.
The technical support of SIB template description flexibly and dynamic parameter editing dialog window has been arranged, just can realize the expansion of SIB collection easily and can satisfy business development the modification of INAP collection, the needs of expansion.The user can define new SIB freely according to the service needed and the functional requirement of continuous development, makes professional to write and realize more quick.For example by defining the interpolation that new SIB can satisfy message set.
In step 3, service scripts is changed into database file and service code file, that is: at first read full detail according to the form of service scripts, database information is translated into the database file that satisfies the database definition grammer; Again professional flow graph information is passed through template syntax parsing, translation are formed the service code file of a standard; In above-mentioned translation process, imperfection line to the database definition of mistake, the SIB image parameter assignment of mistake, the outlet of mistake, professional flow graph will provide miscue, judge that then the mistake that occurs is template definition mistake or professional Edit Error, continue operation if the template definition mistake is returned above-mentioned steps 1, continue operation otherwise return above-mentioned steps 2;
In the reality, above-mentioned translation process can adopt syntactic definition, syntax parsing, three measures of syntax error report realize, the translation of SIB flow graph to the translation of service scripts and database definition to database definition file all is by the understanding to the template file grammer parameter to be carried out assignment, and the business that the whole functional module is built is translated into the code file of standard then.During translation when reading the SIB template file whenever to a grammer, resemble parameter value transfer syntax, port branch translation grammar etc., just from the SIB object attribute data, obtain corresponding value or variable, the syntax parsing of the unknown is become the program code that compiler is discernible and have logicality.To provide the translation error report at mistakes such as non-existent value or parameter in the grammer that can't resolve or the object, form with window shows to make things convenient for location of mistake, the user only needs to click on error row, and the professional window of editor will move to focus automatically and produce on the wrong SIB object.Give the source that makes mistake, the type and the wrong reason of mistake in the error description, in professional editing environment, also provide simultaneously and search the SIB object functionality, only need input object ID or object oriented to locate.
In step 4, database file and service code file are compiled into executable file, that is: at first to compile the data library file; Secondly the service code file is compiled.
Above-mentioned Service Database compiling is that database definition file is compiled into standard database, and can carry out the test data configuration.This requires to carry out before the compiling of service code file, because the operation flow compiling will be used database information.
Above-mentioned service code file compiling mainly is grammer, the semantic error that provides through the service code file after the translation, does not have mistake then to generate an executable file.
In above-mentioned compilation process, to provide miscue to grammer, the semanteme of mistake; Judge then whether above-mentioned compiling exists compile error, continue operation if exist compile error to return above-mentioned steps 2, otherwise continue the operation of following steps.
In step 5, carry out business and carry out tracking, that is: carry out SIB parameter value, the tracking of professional variate-value and the professional dynamic tracking of carrying out.
This step can obtain each variable in the specific implementation from process of service execution, one group of parameter value of each SIB, and be presented at observation window according to user's needs, and in professional graphic file the dynamic run location of indicating services.
In order to implement this step better, at first make the service debugging device that a close friend's graphic user interface and method of operation easily and efficiently are provided in the reality.The service debugging device mainly comprises three parts: breakpoint management, observation variable management and debug process management.Breakpoint management is interpolation on single or a plurality of SIB, deletion breakpoint sign, can change the show state of SIB object on the interface during realization earlier, writes down in the breakpoint chained list then by the ID of breaking SIB object (sign); Observation variable management can select one or a plurality of variable to observe the variation of its value, the list information of variable comes from the SIB service scripts, fill the observation variable list box by the variable chained list that reads service scripts, for on the variable object of selecteed variable in chained list sign being set, so that the correspondence of value shows; Debug process management is that single step execution or service operation are to the process of next breakpoint on the control service logic, and the implementation status of the transmission of observed traffic data, message flow and each SIB in this process is to analyze professional correctness and adaptability.
In order to realize that single-step debug needs to add debugging code and finishes the connection of transmission of messages port in the functional template of SIB, port is monitored and transmission of messages, when SIB object of each run, at first judge whether to be provided with breakpoint by inquiry breakpoint chained list, be not provided with if, directly move SIB, if be provided with the connection that breakpoint will be carried out message channel, and after the SIB function code is carried out with current parameter value, variate-value spreads out of the debug process administrative section by passage, in conjunction with the user being provided with of watch window exported specific variate-value again, can check the variation of change procedure with the variate-value that is monitored of parameter value like this at watch window.Revise the state of the SIB object of current operation simultaneously on professional flow graph, the user can follow the tracks of the dynamic implementation of SIB object.
According to single-step debug as a result the user can follow the tracks of the SIB running, just finished the exploitation of a business if the flow process of being tested is correct, turned back to for the 2nd step to revise if flow process has not right place.
In a word; above-mentioned employing template way is realized the attribute description of SIB and functional description and is carried out the method for developing telecommunication application by the detailed description of the invention according to the SIB template; therefore, being based upon the development approach of any telecommunication service on the SIB template conceptual foundation all should be within protection scope of the present invention.