CN101650723A - Tariff template tree setting method in charging account engine - Google Patents

Tariff template tree setting method in charging account engine Download PDF

Info

Publication number
CN101650723A
CN101650723A CN200910034966A CN200910034966A CN101650723A CN 101650723 A CN101650723 A CN 101650723A CN 200910034966 A CN200910034966 A CN 200910034966A CN 200910034966 A CN200910034966 A CN 200910034966A CN 101650723 A CN101650723 A CN 101650723A
Authority
CN
China
Prior art keywords
node
rate
tariff
tree
action
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN200910034966A
Other languages
Chinese (zh)
Inventor
赵广成
张晓乐
张家荣
张有根
梁斌
李华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NANJING CITY LINKAGE SYSTEM INTEGRATION CO Ltd
Original Assignee
NANJING CITY LINKAGE SYSTEM INTEGRATION CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NANJING CITY LINKAGE SYSTEM INTEGRATION CO Ltd filed Critical NANJING CITY LINKAGE SYSTEM INTEGRATION CO Ltd
Priority to CN200910034966A priority Critical patent/CN101650723A/en
Publication of CN101650723A publication Critical patent/CN101650723A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a tariff template tree setting method in a charging account engine: (1) a tariff constituent table is arranged, the tariff is described by a tree structure, every tariff is defined into a tariff tree, each tariff rule in the tariff is called into one node on the tariff tree; (2) a node action table is arranged, the tariff constituent table defines which actions form the tariff, and defines the execution sequence of the actions. The special actions related in the tariff constituent table are defined in the node action table; (3) a tariff instantiation parameter table isarranged; a tariff template is selected: suitable tariff template identification is chosen from the tariff constituent table; the parameters of the tariff template are instantiated; when determiningthe tariff template, firstly, determining which action values are likely to change; the process of the parameter instantiation of the tariff template is dynamically carried out in the ergodic processof the tariff tree.

Description

Tariff template tree setting method in the charging account engine
One, technical field
The present invention relates to template tree setting method in the charging account engine, especially the method for " rate calculating " in the telecommunication service.
Two, background technology
Rate are Codes and Standards that telecom operators charge to the client.In telecommunication service, rate rule often are complicated, and huge being difficult to of quantity safeguards.Rate in the telecommunication service are at present got in conjunction with various restrictive condition combinations by many tariff rules often, and complexity, flexibility ratio are very high, and quantity is very huge.So the formation of tariff rule template is comparatively complicated.
Because tariff rule complexity height, a tariff rule often will relate to many tables and could dispose realization.Wholesale price originally and preferential algorithm remove to describe rate with a kind of mode of complanation, for some complicated rate, it is more painstaking to describe, and promptly enables inadequate realization, and configuration is got up also very complicated, occupying system resources is also many during execution, have in addition can't describe.In order to improve wholesale price and preferential efficient, tariff rule all is to be loaded in the internal memory.The rate of One's name is legion load in the internal memory, have taken a large amount of memory headrooms.Because quantity is very big, when loading rate and carrying out rate, efficient is all lower, and is more to system resource (cup and internal memory) consumption rate.Pour in or cpu resource when in short supply when data stream is instantaneous, the response speed of operation support system can be affected.
Charging account engine, promptly the preferential module of wholesale price and rate is the core of telecom charging software.Wholesale price and preferential process, the process that fees policy (rate) is stored, visited and carries out exactly.Along with the continuous development of telecommunication service, the rule of telecom charging is also increasingly sophisticated, and quantity is also more and more, how to handle rate efficiently, improves wholesale price and preferential efficient, has become the focus that telecom operators and software supplier pay close attention to.
The present invention has realized a kind of Efficient and Flexible wholesale price and preferential algorithm in the telecom charging software field.And under this background, the present invention has realized the technology of " tariff template tree ", with solve occur in wholesale price and the preferential process " 1) the tariff rule complexity, be difficult to describe, it is low to carry out efficient; 2) rate One's name is legion, a large amount of consume system resources " problem.
Three, summary of the invention
The present invention seeks to: propose tariff template tree setting method in a kind of charging account engine, can realize the service tariff of high complexity flexibly; 2) tackle increasing service tariff.Pour in or cpu resource when in short supply when data stream is instantaneous, can promote the response speed of operation support system.
Technical scheme of the present invention is: tariff template tree setting method in the charging account engine, and step is as follows:
Rate are by (1) rate definition list, (2) tariff template definition list, (3) node action table, the setting of (4) rate instantiation parameter list complete definition: wherein (1) rate definition list sign concrete rate be by which tariff template instantiation; (2) tariff template definition list is described the institutional framework of tariff template by tree structure, and each tariff template all is defined as one " rate tree "; Each bar tariff rule in the tariff template is referred to as " node " on the rate tree; A plurality of " child nodes " or adjacent " brotgher of node " can be arranged below each node; Set up pointer association between node and child node, the brotgher of node, form the hierarchical relationship of tariff template, constitute a rate tree; To each rate tree, according to visiting present node earlier, visit again child node, visit the order of the brotgher of node then, from the rate tree access, can have access to all nodes on the whole rate tree;
Each bar tariff rule in the tariff template is referred to as a node on " rate tree "; Each node can have a plurality of child nodes, is used for describing the sub-rule under this tariff rule, and node is counted as the father node of child node below it, and a plurality of child nodes of oneself can be arranged again below each child node, forms tree structure between the child node of multilayer; The node that father node is identical is called the brotgher of node mutually.Node can not have father node yet, this category node be the highest node of level, that node that priority wherein is the highest is called root node, is the access entrance of " rate tree ";
" tariff template definition list " identified by tariff template, node identification, father node sign, the node action type, the node action sign, fields such as node sequence are formed: the tariff template sign is used for distinguishing the rate tree, the just corresponding rate tree of tariff template sign; Which rate tree the node that this field is used for dividing in " tariff template constitutes table " all belongs to; The mode of returning has been used in the definition of rate trees; Node identification is used for distinguishing a node under the rate tree; It is whom that father node sign is used for the even higher level of node of identification nodes.If father node is designated 0, represent this node not have father node; If the father node sign is not 0, then the father node sign must be a node label that has existed, and is used for illustrating that present node is the child node of which node;
The node action type is used for illustrating the type of present node.The node action type is divided into two kinds, and a kind of is " condition ", and a kind of is " effect "; If the node action type is " condition ", then the storage of node action sign is a conditional compilation; If the node action type is not " condition ", then the storage of node action sign is an effect coding;
The node action table is set:
The tariff template definition list has defined rate and which " action " has been made of, and the execution sequence between these " actions ".Concrete " action " that relate in the tariff template definition list then is defined in the node action table.The node action table is divided into two classes: " condition " table and " effect " table, and represent a class table: basic tariff rule can simply reduce " if satisfy condition A, execution effect B " so, perhaps " execution B effect (unconditionally) ";
For different operation systems, because the business scenario difference, " condition " and " effect " of use also are not quite similar." tariff template tree " technology is in order to adapt to different operation systems, when realizing, " condition " and " effect " is abstracted into base class, Virtual Function " condition judgment method " and " action method " in base class, have been stated respectively, each operation system is as long as derive subclass from base class, realize " condition judgment method " and " action method " in the native system, can realize the rate tree in the native system; For the charging account model in the telecommunication service, " condition judgment method " realized the judgement to conditions such as customer charge, user properties; According to different rate demands, by the rate traversal of tree is realized:
If the node action type is " condition ", then the storage of node action sign is a conditional compilation, and rate traversal of tree program can arrive the detail of searching this conditional compilation in the condition table, and this condition is made judgement, if satisfy condition, just can continue the child node of present node is traveled through; If the node action type is not " condition ", then the storage of node action sign is an effect coding, the method of rate tree can be according to type of action, in corresponding effect table, search the detail that this effect is encoded, find concrete effective object, call the method in this effective object, carry out this effect;
To a rate tree, visit root node earlier, according to the root node type of action, the manner of execution of call action object is carried out the action of " node action sign " action object pointed; Visit again the child node of root node; During the visit child node, in rate tree definition list, search the node that the father node sign equals the node label of present node, these nodes are exactly the child node of present node; If also have child node under the child node, then continue the child node of this child node of visit, till not having child node; Visit child node, according to priority visited " brotgher of node " of root node then successively.From " root node ", traverse all nodes on whole " rate tree "; The rate traversal of tree has been used the reduction method: 1) from root node; 2) action of execution present node; 3) carry out front nodal point child node (the return traversal); 4) make the brotgher of node of present node become present node; 5) execution in step 2) there is not the brotgher of node until present node;
Rate instantiation parameter list is provided with:
The instantiation process of concrete rate was divided into for two steps:
1) selected tariff template
Be provided with " rate definition list ", select a suitable tariff template to rate;
2) to the parameter instantiation of tariff template
Be provided with " tariff template definition list ", realize the complete definition of a tariff template.When determining tariff template, the threshold that at first needs to consider which parameter may change; In configuration during these thresholds, its value is initialized to the form of "? parameter coding "; "? " be that parameter need be by the sign of instantiation; The process of the parameter instantiation of tariff template is dynamically finished in rate tree ergodic process; When rate trees traversal method find threshold first character is "? " just think that this threshold is need be by instantiation, take out "? " then " parameter coding " of back, search the occurrence of this parameter in " rate instantiation parameter list ", the value of finding is exactly the threshold that need be replaced;
" rate instantiation parameter list " has four fields: rate sign, tariff template sign, parameter identification, threshold; The rate sign is used for identifying the rate in the real reality; Searching threshold from " rate instantiation parameter list " needs the rate sign, tariff template sign, three values of parameter identification; After obtaining the rate sign, need to determine the tariff template of this rate employing, search " rate definition list " according to the rate sign and can obtain the template that these rate are selected for use; When the traversal tariff template, obtain dynamically needing the instantiation parameter coding, arrive " rate instantiation parameter list " then according to the rate sign, the tariff template sign, three values of parameter identification find real threshold, finish the process of rate instantiation.
The present invention solves the huge problem that is difficult to safeguard of rate quantity by the mechanism of template.Find in numerous rate, to have very big repeatability by analyzing.A lot of rate, primitive rule is identical, is concrete threshold difference.As " reducing or remitting 100 yuan " to the user, " reducing or remitting 200 yuan " to the user, " reducing or remitting 300 yuan " three rate to the user, its mode of action is just the same, just the threshold difference.Can take out tariff template, as the rate parameter, the effect framework of rate obtains from tariff template threshold, only write down the threshold of rate, form the mode of " rate=tariff template+rate parameter ", can simplify configuration greatly like this, make rate be easy to administer and maintain.
Beneficial effect of the present invention:
" tariff template tree " is a kind of with the rate implementation method tree structure description, that support template.It is embedded in the charging account engine of telecom operation software, is the core of charging account engine.Use tree structure to describe tariff information in " tariff template tree ", and provide the unified method that " tariff template tree " conducted interviews, can travel through whole rate tree easily, carry out each the bar tariff rule on the rate tree, can support the various configurations of rate flexibly.Introduced the mechanism of template in " tariff template tree ", the rate that type is identical can use same template, so only configure a spot of " tariff template ", just can support a large amount of rate, simplify the process of rate configurations greatly, reduced the occupancy of system's run-time memory.Pour in or cpu resource when in short supply when data stream is instantaneous, can promote the response speed of operation support system.Under the constant situation of system resource, the EMS memory occupation of rate part reduces 60% than in the past, and wholesale price speed is brought up to 1000 ticket/seconds from 300 ticket/seconds.
Four, description of drawings
Fig. 1 rate tree-model
Five, embodiment
Configuration instruction: rate are related to 4 class parameter lists by complete definition, are respectively: rate definition list, tariff template definition list, node action table, rate instantiation parameter list.
● the rate definition list
By the rate sign, fields such as tariff template sign are formed " rate definition list ", and which tariff template instantiation has defined concrete rate is by.
● the tariff template definition list
A tariff template can be defined as a rate tree, and the organization definition of rate tree is in " tariff template definition list ".Each bar tariff rule in the tariff template is referred to as a node on " rate tree ".Below each node a plurality of child nodes can be arranged, be used for describing the sub-rule under these rate rule.Node is counted as the father node of child node below it.The a plurality of child nodes of oneself can be arranged again below each child node, form tree structure between the child node of multilayer.The node that father node is identical is called the brotgher of node mutually.Node can not have father node yet, this category node be the highest node of level, that node that priority wherein is the highest is called root node, is the access entrance of " rate tree ".
" tariff template table " identified by tariff template, node identification, and the father node sign, the node action type, the node action sign, fields such as node sequence are formed.As shown in Figure 1.
The tariff template sign is used for distinguishing the rate tree, the just corresponding rate tree of tariff template sign.Which rate the node that this field is used for dividing in " tariff template table " all belongs to.The mode of returning has been used in the definition of rate trees.Node identification is used for distinguishing a node under the rate tree.It is whom that father node sign is used for the father node of identification nodes.If father node is designated 0, represent this node not have father node; If the father node sign is not 0, then the father node sign must be a node label that has existed, and is used for illustrating that present node is the child node of which node.
The node action type is used for illustrating the type of present node.The node action type can be divided into two kinds, and a kind of is " condition ", and a kind of is " effect ".If the node action type is " condition ", then the storage of node action sign is a conditional compilation; If the node action type is not " condition ", then the storage of node action sign is an effect coding.
● the node action table
The tariff template definition list has defined rate and which " action " has been made of, and the execution sequence between these " actions ".Concrete " action " that relate in the tariff template definition list then is defined in the node action table.The node action table is not a concrete table, but represents a class table.Article one, basic tariff rule can simply reduce " if satisfy condition A, execution effect B " so, perhaps " carry out B effect (unconditionally) ", so the node action table can be divided into two classes: " condition table " and " act on and showing ".
For different operation systems, because the business scenario difference, " condition " and " effect " of use also are not quite similar." tariff template tree " technology is in order to adapt to different operation systems, when realizing, " condition " and " effect " is abstracted into base class, Virtual Function " condition judgment method " and " action method " in base class, have been stated respectively, each operation system is as long as derive subclass from base class, realize " condition judgment method " and " action method " in the native system, can realize the rate tree in the native system.For the charging account model in the telecommunication service, " condition judgment method " realized the judgement to conditions such as customer charge, user properties; Rate demand according to different has realized multiple action method: wholesale price and preferential.Implementation as shown in Figure 1.
● the rate traversal of tree
If the node action type is " condition ", then the storage of node action sign is a conditional compilation, and rate traversal of tree program can arrive the detail of searching this conditional compilation in the condition table, and this condition is made judgement, if satisfy condition, just can continue the child node of present node is traveled through; If the node action type is not " condition ", then the storage of node action sign is an effect coding, the method of rate tree can be according to type of action (being the node action type), in corresponding effect table, search the detail that this effect is encoded, find concrete effective object, call the method in this effective object, carry out this effect.To a rate tree, visit root node earlier, according to the root node type of action, the manner of execution of call action object is carried out the action of " node action sign " action object pointed; Visit again the child node of root node.During the visit child node, in rate tree definition list, search the node that the father node sign equals the node label of present node, these nodes are exactly the child node of present node.If also have child node under the child node, then continue the child node of this child node of visit, till not having child node.Visit child node, according to priority visited " brotgher of node " of root node then successively.From " root node ", can traverse all nodes on whole " rate tree ".The rate traversal of tree has been used the reduction method: 1) from root node; 2) action of execution present node; 3) carry out front nodal point child node (the return traversal); 4) make the brotgher of node of present node become present node; 5) carry out 2) there is not the brotgher of node until present node.
During specific implementation, can take out the class (being the tariff template definition class among Fig. 1) of a rate tree,, in class, realize " rate tree traversal method " according to aforementioned algorithm; Each node all is an object instance in internal memory.Same rate tree according to father node object and child node relation between objects, set up single-track link table down in internal memory, father node points to first child node (its priority is the highest in the money node) below it; According to the relation between the brotgher of node, in internal memory, set up the single-track link table of object according to the priority of the brotgher of node.When carrying out rate, find the root node object of rate tree, call the traversal method of root node object,, can realize the rate traversal of tree from root node.
● rate instantiation parameter list
The step of the configuration of rate can be divided into for two steps:
1) selected tariff template
Need be from " rate definition list " select a suitable template identification of taking to rate;
2) to the parameter instantiation of tariff template
When determining tariff template, need at first to determine which threshold may change.During the configuration of these thresholds, its value is initialized to the form of "? parameter coding "."? " be that parameter need be by the sign of instantiation.The process of the parameter instantiation of tariff template is dynamically finished in rate tree ergodic process.When rate trees traversal method find threshold first character is "? " just think that this threshold is need be by instantiation, take out "? " then " parameter coding " of back, search the occurrence of this parameter in " rate instantiation parameter list ", the value of finding is exactly the threshold that need be replaced.
" rate instantiation parameter list " has four fields: rate sign, tariff template sign, parameter identification, threshold.The rate sign is used for identifying rate in the real reality; The tariff template sign has indicated the present tariff template of these rate, and on behalf of which threshold in this template, parameter identification need be replaced; Threshold then is the real threshold that needs.Searching threshold from " rate instantiation parameter list " needs the rate sign, tariff template sign, three values of parameter identification.When carrying out these rate, nature can be known the rate sign; After obtaining the rate sign, need to determine the tariff template of this rate employing, search " rate instantiation parameter list " according to the rate sign and can obtain the template that these rate are selected for use; When the traversal tariff template, can needing obtain the instantiation parameter coding dynamically, arrive " rate instantiation parameter list " then according to the rate sign, the tariff template sign, three values of parameter identification find real threshold, finish the process of rate instantiation.
Going through of concrete rate all over process:
Tariff rule A:1) reduces or remits all Monthly Fees; 2) if user brand is a Global Link, 10 yuan of deduction and exemption city telephone rates.3) if user brand is a M-ZONE, the deduction and exemption note is taken 5 yuan.
Tariff rule B:1) reduces or remits all Monthly Fees; 2) if user brand is a Global Link, 20 yuan of deduction and exemption city telephone rates.3) if user brand is a M-ZONE, the deduction and exemption note is taken 10 yuan.
Analyze: rate A, the B rule is quite similar, can take out a template M, reduces the configuration amount of rate:
1) reduces or remits all Monthly Fees; 2) if user brand is a Global Link, deduction and exemption city telephone rate X unit 3) if user brand is a M-ZONE, the deduction and exemption note is taken Y unit;
Template M finishes by configuration tariff template definition list.
The configuration of rate definition list:
Rate sign tariff template sign
A M
B M
The configuration of tariff template definition list:
Tariff template identification nodes sign father node identification nodes type of action node action identification nodes order
M 1,001 0 preferential effects 2,001 0
M 1,002 0 conditions 3,001 1
M 1,003 1002 preferential effects 2,002 0
M 1,004 0 conditions 3,002 2
M 1,005 1004 preferential effects 2,003 0
The configuration of node action table:
The condition table configuration of node action:
Condition identification condition content
If 3001 user brand are Global Link
If 3002 user brand are M-ZONE
The preferential effect table configuration of node action:
Preferential effect sign effect account mode of action threshold
2001 Monthly Fees deduction and exemption 100%
The deduction and exemption of 2002 city telephone rates? 4001 (rate need instantiation, with? beginning)
Are 2003 notes taken deduction and exemption? 4002 (rate need instantiation, with? beginning)
The configuration of rate instantiation parameter list:
Rate sign tariff template identification parameter sign threshold
4,001 10 yuan of A M
4,002 5 yuan of A M
4,001 20 yuan of B M
4,002 10 yuan of B M
The rate tree construction of rate A is as follows:
Rate A
The preferential effect of 1001:|-----(2001): deduction and exemption Monthly Fee 100%
1002:|-----condition (3001): if brand is Global Link (if satisfies condition, the child node of ability executive condition)
1003:| |------preferential effect (2002): 10 yuan of (parameter identifications: 4001) of deduction and exemption city telephone rate
1004:|-----condition (3002): if brand is Global Link (if satisfies condition, the child node of ability executive condition)
The preferential effect of 1005:|------(2003): the deduction and exemption note is taken 5 yuan of (parameter identifications: 4002)
The ergodic process of rate A (the current brand of supposition user is a M-ZONE):
1) according to rate coding A, in " rate definition list ", searches the template M of the rate A correspondence that gets;
2) data that dispose in " tariff template definition list " according to template M, M travels through to template.At first find the root node of M, search principle and be " father node be 0 and that node of node sequence minimum ", promptly node 1001;
3) node action of XM 1001: deduction and exemption Monthly Fee 100%;
4) execute node action after, the child node of searching node 1001 does not find; Search the brotgher of node of node 1001, find node 1002;
5) node action of XM 1002: judge whether user brand is Global Link.Judged result is false, does not carry out the work of searching child node; Search the brotgher of node of node 1002, find node 1004;
6) node action of XM 1004: judge whether user brand is M-ZONE.Judged result is true, and the child node of then searching node 1004 finds node 1005;
7) node action of XM 1005: the deduction and exemption note is taken.In the process of carrying out deduction and exemption, find that the deduction and exemption value be "? 4002 ", according to " rate sign+tariff template sign+parameter identification " (A+M+4002), search to " rate instantiation parameter list ", finding threshold is 5 yuan, execution is reduced or remitted 5 yuan of notes and is taken;
8) search the child node of node 1005, do not find; Search the brotgher of node of node 1005, do not find, node 1005 is finished, and then returns father node 1004;
9) search the brotgher of node of node 1004, do not find, turn back to the father node 0 of node 1004, whole rate ergodic process finishes.

Claims (1)

1, tariff template tree setting method in the charging account engine is characterized in that step is as follows:
Rate constitute table by (1) rate, (2) node action table, and the setting of (3) rate instantiation parameter list complete definition:
(1) rate formation table is set, describes rate by tree structure, each rate all is defined as one " rate tree "; Each bar tariff rule in the rate is referred to as " node " on the rate tree; A plurality of " child nodes " or adjacent " brotgher of node " can be arranged below each node; Set up pointer association between node and child node, the brotgher of node, form the hierarchical relationship of rate, constitute a rate tree; To each rate tree, according to visiting present node earlier, visit again child node, visit the order of the brotgher of node then, from the rate tree access, can have access to all nodes on the whole rate tree;
Each bar tariff rule in the rate is referred to as a node on " rate tree "; A plurality of child nodes are arranged below each node, be used for describing the sub-rule under these rate rule, node is counted as the father node of child node below it, and a plurality of child nodes of oneself can be arranged again below each child node, forms tree structure between the child node of multilayer; The node that father node is identical is called the brotgher of node mutually.Node can not have father node yet, this category node be the highest node of level, that node that priority wherein is the highest is called root node, is the access entrance of " rate tree ";
" rate constitute table " all identified by tariff template, node identification, and the father node sign, the node action type, the node action sign, fields such as node sequence are formed: the tariff template sign is used for distinguishing rate and sets, the just corresponding rate tree of tariff template sign; Which rate the node that this field is used for dividing in " rate constitute table " all belongs to; The mode of returning has been used in the definition of rate trees; Node identification is used for distinguishing a node under the rate tree; It is whom that father node sign is used for the father node of identification nodes.If father node is designated 0, represent this node not have father node; If the father node sign is not 0, then the father node sign must be a node label that has existed, and is used for illustrating that present node is the child node of which node;
The node action type is used for illustrating the type of present node.The node action type is divided into two kinds, and a kind of is " condition ", and a kind of is " effect "; If the node action type is " condition ", then the storage of node action sign is a conditional compilation; If the node action type is not " condition ", then the storage of node action sign is an effect coding;
(2) the node action table is set
Rate constitute table definition rate by which " action " formation, and the execution sequence between these " actions ".Concrete " action " that relate in the rate formation table then is defined in the node action table; The node action table is divided into two classes: " condition " and " effect ", and represent a class table: basic tariff rule can simply reduce " if satisfy condition A, execution effect B " so, perhaps " carries out B effect (unconditionally) ";
For different operation systems, because the business scenario difference, " condition " and " effect " of use also are not quite similar." tariff template tree " technology is in order to adapt to different operation systems, when realizing, " condition " and " effect " is abstracted into base class, Virtual Function " condition judgment method " and " action method " in base class, have been stated respectively, each operation system is as long as derive subclass from base class, realize " condition judgment method " and " action method " in the native system, can realize the rate tree in the native system;
For the charging account model in the telecommunication service, " condition judgment method " realized the judgement to conditions such as customer charge, user properties; According to different rate demands, by the rate traversal of tree is realized:
If the node action type is " condition ", then the storage of node action sign is a conditional compilation, and rate traversal of tree program can arrive the detail of searching this conditional compilation in the condition table, and this condition is made judgement, if satisfy condition, just can continue the child node of present node is traveled through; If the node action type is not " condition ", then the storage of node action sign is an effect coding, the method of rate tree can be according to type of action, in corresponding effect table, search the detail that this effect is encoded, find concrete effective object, call the method in this effective object, carry out this effect;
To a rate tree, visit root node earlier, according to the root node type of action, the manner of execution of call action object is carried out the action of " node action sign " action object pointed; Visit again the child node of root node; During the visit child node, in rate tree definition list, search the node that the father node sign equals the node label of present node, these nodes are exactly the child node of present node; If also have child node under the child node, then continue the child node of this child node of visit, till not having child node; Visit child node, according to priority visited " brotgher of node " of root node then successively.From " root node ", traverse all nodes on whole " rate tree "; The rate traversal of tree has been used the reduction method: 1) from root node; 2) action of execution present node; 3) carry out front nodal point child node (the return traversal); 4) make the brotgher of node of present node become present node; 5) execution in step 2) there is not the brotgher of node until present node;
(3) rate instantiation parameter list is provided with
The step of the configuration of a rate instantiation parameter list was divided into for two steps:
1) selected tariff template
Need be from " rate constitute table " one of selection suitable take template identification;
2) to the parameter instantiation of tariff template
When determining tariff template, need at first to determine which threshold may change; During the configuration of these thresholds, its value is initialized to "? parameter coding "; "? " be that parameter need be by the sign of instantiation; The process of the parameter instantiation of tariff template is dynamically finished in rate tree ergodic process; When rate trees traversal method find threshold first character is "? " just think that this threshold is need be by instantiation, take out "? " then " parameter coding " of back, search the occurrence of this parameter in " rate instantiation parameter list ", the value of finding is exactly the threshold that need be replaced;
" rate instantiation parameter list " has four fields: rate sign, tariff template sign, parameter identification, threshold; The rate sign is used for identifying rate in the real reality; Searching threshold from " rate instantiation parameter list " needs the rate sign, tariff template sign, three values of parameter identification; After obtaining the rate sign, need to determine the tariff template of this rate employing, search " rate instantiation parameter list " according to the rate sign and can obtain the template that these rate are selected for use; When the traversal tariff template, obtain dynamically needing the instantiation parameter coding, arrive " rate instantiation parameter list " then according to the rate sign, the tariff template sign, three values of parameter identification find real threshold, finish the process of rate instantiation.
CN200910034966A 2009-09-16 2009-09-16 Tariff template tree setting method in charging account engine Pending CN101650723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910034966A CN101650723A (en) 2009-09-16 2009-09-16 Tariff template tree setting method in charging account engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910034966A CN101650723A (en) 2009-09-16 2009-09-16 Tariff template tree setting method in charging account engine

Publications (1)

Publication Number Publication Date
CN101650723A true CN101650723A (en) 2010-02-17

Family

ID=41672962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910034966A Pending CN101650723A (en) 2009-09-16 2009-09-16 Tariff template tree setting method in charging account engine

Country Status (1)

Country Link
CN (1) CN101650723A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810150A (en) * 2012-11-09 2014-05-21 中国银联股份有限公司 Automatic relation nestable questionnaire generating method and device
CN108959636A (en) * 2018-07-25 2018-12-07 北京京东金融科技控股有限公司 Data processing method, device, system, computer-readable medium
CN108984618A (en) * 2018-06-13 2018-12-11 深圳市商汤科技有限公司 Data processing method and device, electronic equipment and computer readable storage medium
CN114760604A (en) * 2022-04-07 2022-07-15 中国联合网络通信集团有限公司 Method, device, equipment and storage medium for processing package tariff
CN116015991A (en) * 2022-12-30 2023-04-25 中国联合网络通信集团有限公司 Method, device and equipment for testing charging result of charging system
CN116050956A (en) * 2022-06-17 2023-05-02 南京云次方信息技术有限公司 Cross-border E-commerce logistics freight calculation system
CN116015991B (en) * 2022-12-30 2024-04-30 中国联合网络通信集团有限公司 Method, device and equipment for testing charging result of charging system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810150A (en) * 2012-11-09 2014-05-21 中国银联股份有限公司 Automatic relation nestable questionnaire generating method and device
CN108984618A (en) * 2018-06-13 2018-12-11 深圳市商汤科技有限公司 Data processing method and device, electronic equipment and computer readable storage medium
CN108984618B (en) * 2018-06-13 2021-02-02 深圳市商汤科技有限公司 Data processing method and device, electronic equipment and computer readable storage medium
CN108959636A (en) * 2018-07-25 2018-12-07 北京京东金融科技控股有限公司 Data processing method, device, system, computer-readable medium
CN108959636B (en) * 2018-07-25 2020-11-03 京东数字科技控股有限公司 Data processing method, device, system and computer readable medium
CN114760604A (en) * 2022-04-07 2022-07-15 中国联合网络通信集团有限公司 Method, device, equipment and storage medium for processing package tariff
CN114760604B (en) * 2022-04-07 2023-05-12 中国联合网络通信集团有限公司 Package tariff processing method, apparatus, device and storage medium
CN116050956A (en) * 2022-06-17 2023-05-02 南京云次方信息技术有限公司 Cross-border E-commerce logistics freight calculation system
CN116050956B (en) * 2022-06-17 2023-09-26 南京云次方信息技术有限公司 Cross-border E-commerce logistics freight calculation system
CN116015991A (en) * 2022-12-30 2023-04-25 中国联合网络通信集团有限公司 Method, device and equipment for testing charging result of charging system
CN116015991B (en) * 2022-12-30 2024-04-30 中国联合网络通信集团有限公司 Method, device and equipment for testing charging result of charging system

Similar Documents

Publication Publication Date Title
Kong et al. Shared subway shuttle bus route planning based on transport data analytics
CN107844879A (en) Order allocation method and device
US20100145814A1 (en) Access modeling in a communication domain
CN101650723A (en) Tariff template tree setting method in charging account engine
CN110503534A (en) Cloud computing service resource dynamic dispatching method and system based on price expectation
CN108683692A (en) A kind of service request processing method and device
CN110096498A (en) A kind of data cleaning method and device
Gordijn et al. Value based requirements creation for electronic commerce applications
CN108628672A (en) Method for scheduling task, system, terminal device and storage medium
JP2022508280A (en) Methods and systems for automatic generation of multimodal cargo services
CN105897864A (en) Scheduling method for cloud workflow
Lodefalk Servicification of manufacturing firms makes divides in trade policymaking antiquated
CN107247763A (en) Business datum statistical method, device, system, storage medium and electronic equipment
Jia et al. An analysis of multisided platform research over the past three decades: Framework and discussion
CN112990941A (en) Vulnerability detection method and system for Pompe frauds in intelligent contracts
Menychtas et al. A marketplace framework for trading cloud-based services
CN115130811A (en) Method and device for establishing power user portrait and electronic equipment
CN110009124A (en) A kind of data processing method, server and the system of determining bus station
CN107909400A (en) System and method based on commodity price configuration
CN103229485B (en) The implementation method that professional ability is shared and platform
Wu et al. Dynamic parcel pick-up routing problem with prioritized customers and constrained capacity via lower-bound-based rollout approach
Wang et al. A full service model for vehicle scheduling in one-way electric vehicle car-sharing systems
Koźlak et al. Mobility-as-a-Service for improving mobility in smart cities–a comparative analysis of selected cities
CN110008386A (en) A kind of data generation, processing, evaluation method, device, equipment and medium
Li et al. Learning to bundle proactively for on-demand meal delivery

Legal Events

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

Open date: 20100217