Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in qualification the present invention.
Method embodiment
Fig. 1 is embodiment one flow chart that the communication resource of the present invention is shared method.As shown in Figure 1, present embodiment comprises:
Step S102: shared communication resource is distributed to all users that orders; Concrete operations are referring to the explaining to step S203 of the step S201 among Fig. 2;
Step S104:, the ticket of ordering the user is chargeed according to the charge information of ordering consumer premise; Specifically referring to explaining to step S301 to S304 among Fig. 3;
Step S106:, upgrade the cumulative amount that is used to characterize shared communication resource according to charging result; Specifically referring to explaining to step S305 to S309 among Fig. 3.
Present embodiment is by distributing to shared communication resource all users that orders, and upgrade the cumulative amount of shared communication resource according to the charging result that each orders the user, realized that a plurality of user concurrents of ordering obtain the communication resources and share preferential, avoided the existing communication resource to share monitoring module, the handover module that generally adopts in the preferential technology, reduce cost, realize unconditional shared communication resource or complete equality shared communication resource.
Fig. 2 is embodiment two flow charts that the communication resource of the present invention is shared method.Fig. 2 is mainly used in the preferred implementation of step S102 in the key diagram 1, when specifically understanding, also should understand in conjunction with step S104 among Fig. 1 and step S106.As shown in Figure 2, present embodiment comprises:
Step S201: generate shared communication resource corresponding virtual user;
Step S202: set up Virtual User and each orders user's corresponding relation;
Step S203:, shared communication resource is distributed to all users that orders according to corresponding relation;
Wherein, step S201-step S203 is the preferred implementation of step S 102 among Fig. 1, be mainly used in explanation and by the mode that makes up Virtual User shared communication resource distributed to all users that orders, specific operation process can explaining referring to step S401 among Fig. 4;
Step S204: when receiving the request that countermands shared communication resource, cancellation sends the corresponding relation of ordering user and Virtual User of this request;
Step S205: when Virtual User and all corresponding relation of ordering the user are all cancelled, the deletion shared communication resource.
Present embodiment is by distributing to shared communication resource all users that orders, and upgrade the cumulative amount of shared communication resource according to the charging result that each orders the user, realized that a plurality of user concurrents of ordering obtain the communication resources and share preferential, avoided the existing communication resource to share monitoring module, the handover module that generally adopts in the preferential technology, reduce cost, realize unconditional shared communication resource or complete equality shared communication resource; Simultaneously, trigger by the relation of ordering user and Virtual User, the order products data allocations of Virtual User is ordered the user to each, realized that flexibly the communication resource shares, also the corresponding relation of ordering the user by control Virtual User and each has been realized the life cycle management of shared communication resource flexibly.
Fig. 3 is embodiment three flow charts that the communication resource of the present invention is shared method.Below mainly in conjunction with the explain preferred implementation of step S104 and step S106 among Fig. 1 of each performance element among Fig. 4, when specifically understanding, also should understand in conjunction with each step among step S102 or Fig. 2 among Fig. 1.As shown in Figure 3, present embodiment comprises:
Step S301: the ticketing unit obtains the ticket of ordering the user from the ticket input unit, and obtains the default charge information of ordering the user and shared communication resource etc. according to the charge number in the ticket from the data center unit;
During concrete operations, also can directly from the ticket input unit, obtain the various charging key elements of ordering user's ticket, as the duration of call and charge number etc., wherein, default charge information can be used as the mill run of ordering the user, shared communication resource can be used as the shared product of ordering the user, mill run and shared product the two all as order products to form unified tabulation (referring to explaining of step S401 among Fig. 4);
Step S302: whether the ticketing unit judges also has order products to handle, if having, then execution in step S303 if do not have, then finishes;
Step S303: whether the current order products of ticketing unit judges has shared product marking, if do not have, is illustrated as mill run, i.e. Yu She charge information, and execution in step S304 then, as if having, execution in step S305 then;
Need to prove, the decision operation of step S303 is based under the charge information and the situation of shared communication resource with tabulation or the storage of other orderly fashion as shared product as mill run, the just operation of Xu Yaoing is not if then want above-mentioned decision operation with charge information and shared communication resource separate storage;
Step S304: the ticketing unit then charges to ticket according to the default charge information of ordering the user, promptly carries out the preferential of mill run, afterwards execution in step S302 again;
Above-mentioned steps S301 to S304 is the preferred implementation of step S104 among Fig. 1, wherein main is to be exactly the operation of step S301 and S304, promptly obtain ticket and charge information, and according to this charge information to ticketing, step S301 and S304 are selectable auxiliary operation;
Step S305: the ticketing unit is according to ordering the corresponding relation of user and Virtual User or directly according to described shared communication resource, searching from the data center unit and order the pairing Virtual User of user;
Step S306: the accumulative total sign that is used to characterize the shared communication resource cumulative amount corresponding to this Virtual User is searched according to Virtual User in the ticketing unit from the data center unit, if do not have, then set up the accumulative total sign; Concrete operations can explaining referring to step S405 among Fig. 4;
Step S307: the ticketing unit locks this accumulative total sign, shares cumulative amount to realize the concurrent consumption communication resource; Wherein, the implication of locking is that this accumulative total sign is considered as critical resource, the same time only allows a visitor to make amendment, before entering the critical zone, must lock to avoid other visitor to enter, must release when withdrawing from the critical zone so that other visitor enters, as, the value that accumulative total identifies the S001 correspondence is 10, if existing two users need concurrently this accumulative total sign to be added up (one of them totally 5 in operation, another accumulative total 8), if do not locked, the respective value that adds up sign so may be 15, also may be 18 (looking sequencing), and locked, the respective value that adds up sign so is 23, has guaranteed concurrent processing result's correctness thus;
Step S308: the ticketing unit relatively adds up the cumulative amount and the sharable communication resource value of sign, shares the preferential of product according to the charging key element, recomputates and stores the value of accumulative total sign, and write back in the data center unit; Concrete operations can explaining referring to step S405 and S406 among Fig. 4;
Step S309: the accumulative total sign is carried out release, turn back to step S302.
Present embodiment is by distributing to shared communication resource all users that orders, and upgrade the cumulative amount of shared communication resource according to the charging result that each orders the user, realized that a plurality of user concurrents of ordering obtain the communication resources and share preferential, avoided the existing communication resource to share monitoring module, the handover module that generally adopts in the preferential technology, reduce cost, realize unconditional shared communication resource or complete equality shared communication resource; Simultaneously, trigger by the relation of ordering user and Virtual User, the order products data allocations of Virtual User is ordered the user to each, realized that flexibly the communication resource shares, also the corresponding relation of ordering the user by control Virtual User and each has been realized the life cycle management of shared communication resource flexibly; In addition, realized concurrent shared communication resource by the aggregate-value locking means.
Fig. 4 is embodiment four signaling diagrams that the communication resource of the present invention is shared method.Fig. 4 mainly explains in conjunction with each performance element and instantiation.At first instantiation is described below:
This shared product S is that 50 yuan of communication costs are shared in householder's mobile phone and the family broadband in the family.Wherein householder's mobile phone (being assumed to be 13900000001) has been ordered a product A, and being local caller expense is 0.20 yuan/minute, and is local called free; A product B has also been ordered in family broadband (being assumed to be HF0001), is to give after 10 hours online duration 0.01 yuan/minute of per minute; 50 yuan of both common share communication expenses.Wherein, product A, B are user's predetermined charge information (being mill run), and product S is shared communication resource (promptly sharing product).As shown in Figure 4, present embodiment comprises:
Step 401: order generation unit and at first generate Virtual User and share product, set up the relation of ordering user and Virtual User, and the relation of each user and each product; During concrete operations, various relations can adopt the form statement of tabulation, shown in table 1 and table 2, can certainly adopt other form statement, as, user and the product represented with list separator concern: 13900000001, and householder's mobile phone, A; HF0001, family broadband, B; V00001, Virtual User, S;
The initial relation table of table 1. user and product
The user |
User type |
Product |
13900000001 |
Householder's mobile phone |
A |
HF0001 |
The family broadband |
B |
V00001 |
Virtual User |
S |
Table 2. is ordered the relation table of user and Virtual User
Virtual User |
Order the user |
Effective date |
Expiration Date |
V00001 |
13900000001 |
20090520000001 |
20991231235959 |
V00001 |
HF0001 |
20090520000001 |
20991231235959 |
Secondly, order the priority that generation unit preestablishes product A, B, S, as, the priority of product A, B, S is respectively 30,30,40, and promptly the priority of product A and B is the same, and the priority of sharing product S is lower;
Step 402: the data load unit will be ordered the data that generation unit passes over and load, when concerning of user and Virtual User ordered in loading, the shared product (being shared communication resource) of Virtual User correspondence is assigned to each orders on the user, as table 3; During concrete operations, can also be provided with and share product mark S, by explaining as can be known of step S303 among above-mentioned Fig. 3, in some situation,, as will share the situation of product and mill run separate storage the time, do not need to be provided with shared product mark;
The final relation table of table 3. user and product
The user |
User type |
Product |
13900000001 |
Householder's mobile phone |
A、S |
HF0001 |
The family broadband |
B、S |
V00001 |
Virtual User |
S |
Because it is low to share product S priority, thus in the tabulation to deposit order be A/B, S, be convenient to handle;
Step 403: the data load unit all is loaded into the data center unit with all data, as, Virtual User and each are ordered the accumulative total sign, shared communication resource of cumulative amount, the cumulative amount of user's corresponding relation, the charge information of ordering consumer premise, shared communication resource and priority relationship of the charge information that each orders consumer premise etc.;
Step 404: the ticket input unit reads user 13900000001 and dials the ticket (duration of call is 2 minutes) that a local call produces, and analyzes the ticketing key element;
Step 405: the ticketing unit charges to user's ticket, and according to charging result, upgrades the cumulative amount of described shared communication resource; During concrete operations, can may further comprise the steps:
At first, from the ticket input unit, obtain user's various charging key elements, and obtain the product tabulation (A, S) that the user orders from the data center unit according to 13900000001;
Secondly, judge whether product A has shared product marking, because product A does not have this sign, therefore according to product A, ticket is carried out wholesale price by 0.20 yuan/minute, preferential back expense is 0.40 yuan;
Once more, judge whether S has shared product marking because S has this sign, therefore from the data center unit according to the corresponding relation of ordering user and Virtual User, found Virtual User V00001;
Then, search the accumulative total sign,, do not have this sign, therefore set up this sign, suppose that the accumulative total of setting up is designated S_share owing to be to share for the first time according to Virtual User V00001;
At last, lock this sign S_share, and shared with the value 50 of comparison S_share=0 and product S, because this ticket wholesale price is 0.40 yuan, so resetting S_share is 0.40 yuan, it is 0 yuan that thereby ticket is handled the back expense according to shared communication resource, S_share is write back data center, and S_share is carried out release;
Step 406: the user's ticket after writing out the unit and will handling is written in the physical file, and the accumulative total in data center unit sign and cumulative amount data be written in the physical file, wherein, the cumulative amount of Virtual User V00001 is: V00001, S_share, 0.40; The cumulative amount record of ordering CU is: 13900000001, V00001|S_share, 0.40.
It will be appreciated by those skilled in the art that: by the priority of mill run and shared product (being shared communication resource) is set, the charge information that is higher than this shared product according to priority obtains charging result, and upgrade the cumulative amount of this shared communication resource according to this result of calculation, then can realize ordering the user and use a plurality of shared products simultaneously, promptly sharing product and mill run can superpose arbitrarily, two kinds of stacks have been avoided to realize, promptly do the processing of mill run earlier, after do the processing of sharing product; Or handle and share product, handle mill run again.
Present embodiment is by distributing to shared communication resource all users that orders, and upgrade the cumulative amount of shared communication resource according to the charging result that each orders the user, realized that a plurality of user concurrents of ordering obtain the communication resource and share preferentially, reduced cost, realized unconditional shared communication resource; Simultaneously, trigger by the relation of ordering user and Virtual User, the order products data allocations of Virtual User is ordered the user to each, realized that flexibly the communication resource shares, also the corresponding relation of ordering the user by control Virtual User and each has been realized the life cycle management of shared communication resource flexibly; In addition, realized concurrent shared communication resource, and realized ordering the user by the priority that order products is set and used a plurality of shared products simultaneously, promptly shared the stack of product and mill run flexibly by the aggregate-value locking means.
Device embodiment
Fig. 5 is the example structure figure of communication resource sharing means of the present invention.Each embodiment of above-mentioned Fig. 1-Fig. 4 method invention all can realize in the device of structure shown in Fig. 5 structure chart.As shown in Figure 5, this device comprises: data load unit 52 is used for shared communication resource is distributed to all users that orders; Ticketing unit 55 is used for according to the charge information of ordering consumer premise the ticket of ordering the user being chargeed, and according to charging result, upgrades the cumulative amount of shared communication resource.
Wherein, the loading of the shared product data that user profile, user's order products data, the relation of ordering user and Virtual User, Virtual User order also is responsible for finishing in data load unit 52, also is responsible for finishing the loading of accumulative total sign and cumulative amount etc.The order that loads can be set as required, preferentially selects for use to load the shared product data that Virtual User is ordered earlier, reloads user's order products data, loads the relation of ordering user and Virtual User at last.
Communication resource sharing means also comprises:
Order generation unit 51, be used to generate shared communication resource corresponding virtual user; Set up Virtual User and each orders user's corresponding relation; And data such as corresponding relation are sent to data load unit 52; That is, its major function is that the shared communication resource of being responsible for the user is ordered is packaged into product, and generates user's product ordering data;
Data center unit 53, be used for obtaining and storing virtual user and each are ordered the accumulative total sign, shared communication resource of cumulative amount, the cumulative amount of user's corresponding relation, the charge information of ordering consumer premise, shared communication resource and the priority relationship of the charge information that each orders consumer premise etc., and canned data is sent to ticketing unit 55 from data load unit 52;
Ticket input unit 54 is used to obtain the ticket of ordering the user, and analyzes various charging key elements, and the charging key element of ordering user's ticket is sent to the ticketing unit;
Write out unit 56, be used for obtaining accumulative total sign and cumulative amount, and will totally identify and cumulative amount is written in the physical file from data center unit 53.
Ordering generation unit 51 can comprise:
Control sub unit 511, be used for when receiving the request that countermands shared communication resource, cancellation sends the corresponding relation of ordering user and Virtual User of request, and when Virtual User and all corresponding relation of ordering the user are all cancelled, deletes shared communication resource; Wherein, the deletion shared communication resource can be presented as the cancellation Virtual User, and the Expiration Date of product also becomes inefficacy simultaneously; Generation subelement 512 is used to set shared communication resource and each orders the priority relationship of the charge information of consumer premise; Generate shared communication resource corresponding virtual user; Set up Virtual User and each orders user's corresponding relation; And corresponding relation is sent to data load unit 52.
By foregoing description as can be known, control sub unit 511 has realized sharing flexibly the life cycle management of product by the mode of Virtual User.If there is not Virtual User, each user has shared product, then be difficult to solve shares the product problem of unpacking.That is, if colony has quit the subscription of shared product, can't learn which user is the shared product of ordering by colony really, therefore the shared product of still ordering voluntarily just can't quit the subscription of shared product for the user.
Ticketing unit 55 can comprise: charging subelement 551 is used for according to the charge information of ordering consumer premise the ticket of ordering the user being chargeed; Judgment sub-unit 552 is used to judge whether exist the accumulative total sign; Set up subelement 553, be used for when accumulative total sign does not exist, set up the accumulative total sign, and identify initialize for accumulative total; Obtain subelement 554, be used for obtaining Virtual User according to ordering user's shared communication resource; And, obtain the accumulative total sign that is used to characterize cumulative amount according to Virtual User; Locking and release subelement 555 are used for locking and release accumulative total sign; Upgrade subelement 556, be used for being higher than the charging result of the charge information correspondence of shared communication resource, upgrade the cumulative amount of shared communication resource according to priority.
It will be understood by those skilled in the art that communication resource sharing means comprises that data load unit 52 and ticketing unit 55 get final product, other the subelement that unit and each unit comprised is preferred embodiment.
Present embodiment utilizes data load unit 52 to trigger by the relation of ordering user and Virtual User, the order products data allocations of Virtual User is ordered the user to each, and the cumulative amount of user's charging result renewal shared communication resource is ordered according to each in ticketing unit 55, realized that a plurality of user concurrents of ordering obtain the communication resources and share preferential, reduce cost, realize unconditional shared communication resource or complete equality shared communication resource; Control sub unit 511 has realized the life cycle management of shared communication resource flexibly by the corresponding relation that control Virtual User and each are ordered the user; Concurrent shared communication resource has been realized by the aggregate-value locking means in ticketing unit 55, and generates subelement 512 and realized ordering the user by the priority that order products is set and use a plurality of shared products simultaneously.
It should be noted that at last: above only is the preferred embodiments of the present invention, be not limited to the present invention, although the present invention is had been described in detail with reference to previous embodiment, for a person skilled in the art, it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.