A kind of resource allocation methods, device, equipment and medium
Technical field
This application involves field of computer technology more particularly to a kind of resource allocation methods, device, equipment and media.
Background technique
Today's society, data, movable property, real estate etc. all can serve as assignable resource.In the prior art, point of resource
It generally requires to be accomplished manually with process, inefficiency.
In view of this, needing more effective and efficient Resource Allocation Formula.
Summary of the invention
This specification embodiment provides a kind of resource allocation methods, device, equipment and medium, how more effective to solve
The technical issues of more efficiently distributing resource.
In order to solve the above technical problems, this specification embodiment is achieved in that
This specification embodiment provides a kind of resource allocation methods, comprising:
Determine the characteristic value of the first category feature in the feature set and the feature set of resource allocation event;
The characteristic value of the second category feature in the feature set is determined according to the characteristic value of first category feature;
Resource allocation rule is determined according to the characteristic value of first category feature and the second category feature;
Resource is distributed according to the allocation rule.
This specification embodiment provides a kind of resource allocation device, comprising:
Characteristic determination module, the first category feature in the feature set and the feature set for determining resource allocation event
Characteristic value;
It is worth determining module, for determining the second category feature in the feature set according to the characteristic value of first category feature
Characteristic value;
Regular determining module, for determining that resource allocation is advised according to the characteristic value of first category feature and the second category feature
Then;
Distribution module, for distributing resource according to the allocation rule.
This specification embodiment provides a kind of resource allocation apparatus, comprising:
At least one processor;
And
The memory being connect at least one described processor communication;
Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one
A processor executes so that at least one described processor can:
Determine the characteristic value of the first category feature in the feature set and the feature set of resource allocation event;
The characteristic value of the second category feature in the feature set is determined according to the characteristic value of first category feature;
Resource allocation rule is determined according to the characteristic value of first category feature and the second category feature;
Resource is distributed according to the allocation rule.
This specification embodiment provides a kind of computer readable storage medium, and the computer-readable recording medium storage has
Computer executable instructions, the computer executable instructions realize following step when being executed by processor:
Determine the characteristic value of the first category feature in the feature set and the feature set of resource allocation event;
The characteristic value of the second category feature in the feature set is determined according to the characteristic value of first category feature;
Resource allocation rule is determined according to the characteristic value of first category feature and the second category feature;
Resource is distributed according to the allocation rule.
This specification embodiment use at least one above-mentioned technical solution can reach it is following the utility model has the advantages that
On the basis of determining feature set, the first category feature can be automatically determined, automatically determines according to the first category feature
Two category features automatically determine the value of the second category feature according to the value of the first category feature, so as to obtain resource allocation event
The determination of required feature, feature is more efficient;Due to being the value for automatically determining the second category feature and the second category feature, feature
Determine that accuracy is higher, feature definitive result is more effective;In the first category feature and its characteristic value and the second category feature and its feature
Value can be automatically determined by the first category feature and the second category feature wait divide on the basis of accurate and effective and efficient determination
Allocation rule with resource, and then resource is distributed according to allocation rule automatically, allocation efficiency of resource is higher, resource allocation result
It is more acurrate, more effectively.
Detailed description of the invention
It, below will be to this specification in order to illustrate more clearly of this specification embodiment or technical solution in the prior art
Drawings that need to be used in the embodiment or the prior art description is briefly described, it should be apparent that, be described below in it is attached
Figure is only that some embodiments recorded in this specification are not paying creativeness for those of ordinary skill in the art
Under the premise of laborious, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow diagram of the resource allocation methods in second embodiment of this specification.
Fig. 2 is the resource allocation process schematic diagram in second embodiment of this specification.
Fig. 3 is one of second embodiment of this specification resource allocation event schematic diagram.
Fig. 4 is another resource allocation event schematic diagram in second embodiment of this specification.
Fig. 5 is one of the 4th embodiment of this specification resource allocation device structural schematic diagram.
Fig. 6 is another resource allocation device structural schematic diagram in the 4th embodiment of this specification.
Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with this explanation
Attached drawing in book embodiment is clearly and completely described the technical solution in this specification embodiment, it is clear that described
Embodiment be merely a part but not all of the embodiments of the present application.Based on this specification embodiment, this field
Those of ordinary skill's every other embodiment obtained without making creative work, all should belong to the application
The range of protection.
Embodiment one:
This specification one embodiment provides a kind of task execution system, specifically, task execution system determines money
The characteristic value of the first category feature in the feature set and the feature set of event is distributed in source;Resource allocation system is according to described first
The characteristic value of category feature determines the characteristic value of the second category feature in the feature set;Resource allocation system is special according to the first kind
Seek peace the second category feature characteristic value determine resource allocation rule;Resource allocation system distributes resource according to the allocation rule.
In the present embodiment, on the basis of determining feature set, the first category feature can be automatically determined, according to first kind spy
Sign automatically determines the second category feature, automatically determines the value of the second category feature, according to the value of the first category feature so as to be used
To determine the required feature of resource allocation event, the determination of feature is more efficient;Due to be automatically determine the second category feature and
The value of second category feature, feature fix that exactness is higher, and feature definitive result is more effective really;In the first category feature and its characteristic value
The first category feature and the second class can be passed through on the basis of accurate and effective and efficient determination with the second category feature and its characteristic value
Feature can automatically determine the allocation rule of resource to be allocated, and then distribute resource, resource allocation effect according to allocation rule automatically
Rate is higher, and resource allocation result is also more acurrate, more effectively.
For program angle, the executing subject of above-mentioned process can be computer or server or corresponding resource
Distribution system etc..Alternatively, it is also possible to assist the executing subject to execute above-mentioned process by third-party application client.
Embodiment two:
Fig. 1 is the flow diagram of the resource allocation methods in second embodiment of this specification, and Fig. 2 is in the present embodiment
Resource allocation process schematic diagram, combined with Figure 1 and Figure 2, the resource allocation methods in the present embodiment include:
S101: the characteristic value of the first category feature in the feature set and the feature set of resource allocation event is determined.
In the present embodiment, the type of " resource " or form can be set as needed, including but not limited to
Data or assets.Resource has the feature (attribute in other words) of itself, such as the type of resource can be used as type feature, provides
Perhaps resource value can be used as the formation time of quantative attribute resource to source total amount or duration can be used as temporal characteristics.
As it can be seen that the feature of resource can be diversified, feature possessed by the resource under variety classes or different situation can also be with
It is different.
To complete the distribution of resource, the feature for grasping resource allocation event, such as the class of resource to be allocated are also needed
Type (type feature), the total amount (quantative attribute) of resource to be allocated, the distribution number (quantative attribute) of resource, when the distribution of resource
Between (temporal characteristics) etc..As it can be seen that the feature of resource allocation event can be it is diversified, for variety classes or different situation
For lower or arbitrary resource allocation event twice, the feature of the resource allocation event of required determination is also possible to different.
For example, if resource to be allocated is data in certain resource allocation event, required for the feature of resource allocation event that determines can
To include the data type to be distributed (type feature), data volume (quantative attribute), distribution number (quantative attribute) etc.;If certain
Resource to be allocated is assets in resource allocation event, then required for the feature of resource allocation event that determines may include distributing
Asset Type (type feature), total assets (quantative attribute), distribution number (quantative attribute) and assets duration
(temporal characteristics) etc..
The feature and resource characteristic of resource allocation event can have corresponding relationship, such as " resource of resource allocation event
Type feature " and " type feature " of resource can be it is corresponding and identical, in resource allocation event " when the distribution of resource
Between " " duration " feature of feature and resource can be corresponding, and " the distribution time of resource " is typically included in resource
In " duration ".
In certain resource allocation event, can first determining feature required for the secondary resource allocation event, (feature can be with
It is one or more, hereinafter referred to as " resource allocation affair character "), identified resource allocation affair character forms the secondary resource
The feature set (hereinafter referred to as feature set) of distribution event.Correspondingly, the feature of resource is known as " resource characteristic ".Determine resource allocation
Affair character can be by the way of following 1.1 (the present embodiment be not limited to 1.1 mode):
1.1, establish the corresponding relationship of resource type feature Yu resource allocation time feature, i.e., in resource allocation event,
The resource type and resource allocation affair character distributed establish corresponding relationship.For example, if resource type is data, and it is corresponding
Resource allocation affair character be type feature, quantative attribute (quantative attribute can there are many, such as data volume and distribution number
Can be different types of quantative attribute), if then certain resource to be distributed of resource allocation event is data, then this resource
Distribution event resource event feature to be determined includes data volume (quantative attribute), distribution number (quantative attribute);If resource
Type is assets, and corresponding resource allocation affair character be quantative attribute (quantative attribute can there are many, such as assets are total
Volume and distribution number can be different types of quantative attribute), temporal characteristics, if then certain money to be distributed of resource allocation event
Source is assets, then this resource allocation event resource event feature to be determined includes total assets (quantative attribute), divides
Duration (temporal characteristics) with number (quantative attribute) and assets.
After the feature set of resource allocation time has been determined, it may be determined that the resource allocation affair character in feature set is first
Category feature or the second category feature.In the present embodiment, determine that the first category feature and the second category feature in feature set can be adopted
With mode (the present embodiment is not limited to mode any in 2.1 to 2.4) any in following 2.1 to 2.4:
2.1, the method for weighting
For each resource allocation affair character in feature set, its weighted value to resource allocation event can be determined,
And then determine that it belongs to the first category feature or the second category feature according to weighted value.Wherein it is possible to which it is corresponding to set the first category feature
Weighted value range, the resource allocation affair character that all weighted values fall into this range is the first category feature, remaining resource allocation thing
Part feature is the second category feature;Or the corresponding weighted value range of the second category feature can be set, all weighted values fall into this range
Resource allocation affair character be the second category feature, remaining resource allocation affair character be the first category feature;Or it can divide
The first category feature and the corresponding weighted value range of the second category feature are not set, and all weighted values fall into the corresponding weight of the first category feature
The resource allocation affair character for being worth range is the first category feature, and all weighted values fall into the corresponding weighted value range of the second category feature
Resource allocation affair character is the second category feature.
2.2, list method
It can establish the first category feature list, for each resource allocation affair character in feature set, belong to the first kind
The resource allocation affair character of feature list is the first category feature, remaining resource allocation affair character is the second category feature;Or
Person can establish the second category feature list, for each resource allocation affair character in feature set, belong to the second category feature name
Single resource allocation affair character is the second category feature, remaining resource allocation affair character is the first category feature;Or it can be with
The first category feature list and the second category feature list are established respectively, for each resource allocation affair character in feature set, are belonged to
It is the first category feature in the resource allocation affair character of the first category feature list, belongs to the resource allocation thing of the second category feature list
Part feature is the second category feature.
2.3, really it is worth difficulty or ease method
For any one resource allocation affair character in feature set, the feature of the resource allocation affair character can be determined
(wherein numerical value can be used to represent in the acquisition complexity of characteristic value to the acquisition complexity of value, is denoted as characteristic value and obtains hardly possible
Easily value), and then difficulty or ease value is obtained according to characteristic value and determines that the resource allocation affair character belongs to the first category feature or the second class is special
Sign.Wherein it is possible to which setting the corresponding characteristic value of the first category feature obtains difficulty or ease value range, all characteristic values obtain difficulty or ease value and fall into this
The resource allocation affair character of range is the first category feature, remaining resource allocation affair character is the second category feature;Or it can
Difficulty or ease value range is obtained to set the corresponding characteristic value of the second category feature, all characteristic values obtain the resource that difficulty or ease value falls into this range
Distribution affair character is the second category feature, remaining resource allocation affair character is the first category feature;Or it can be set separately
First category feature and the corresponding characteristic value of the second category feature obtain difficulty or ease value range, and all characteristic values obtain difficulty or ease value and fall into the first kind
The resource allocation affair character that the corresponding characteristic value of feature obtains difficulty or ease value range is the first category feature, and all characteristic values obtain difficulty or ease
It is the second category feature that value, which falls into the corresponding characteristic value of the second category feature and obtains the resource allocation affair character of difficulty or ease value range,.
In above-mentioned 2.1 and 2.3, the corresponding weighted value of each resource allocation affair character or characteristic value obtain difficulty or ease value can
To be previously set.
2.4, feature correspondent method
It can determine the corresponding relationship of feature.For feature set, it can first determine that the first category feature in feature set is (specific
The first category feature can be determined by the way of 2.1 or 2.2 or 2.3), then according to features described above corresponding relationship from feature set
In other resource allocation affair characters, feature corresponding with the first category feature fixed in feature set is determined, and as second
Category feature;Or for feature set, can first determine in feature set the second category feature (specifically can using 2.1 or 2.2 or
2.3 mode determine the second category feature), then other resource allocations events according to features described above corresponding relationship from feature set are special
In sign, feature corresponding with the second category feature fixed in feature set is determined, and as the first category feature.
In 2.4, the feature in feature corresponding relationship is not necessarily limited to the resource allocation affair character in feature set, i.e. feature
Feature involved in corresponding relationship can be more than the resource allocation affair character in feature set, but should ensure that in feature set
Resource allocation feature can be found from the feature that feature corresponding relationship is related to.Feature can be determined that before feature set determines
Corresponding relationship.
According to the above, in the present embodiment, after the resource type in resource allocation event has been determined, so that it may from
The dynamic feature set for determining resource allocation event, feature set determines that speed is fast, high-efficient, and accuracy is high;After feature set has been determined,
Through the above, can automatically, quickly and efficiently determine the first category feature and the second category feature, the first category feature and second
Category feature is the required feature of resource allocation event, can be to resource allocation thing by the first category feature and the second category feature
Part is described, it is seen then that the determination of the first category feature and the second category feature, which has, determines that speed is fast, high-efficient, accuracy is good
Feature.
In the present embodiment, after the first category feature has been determined, the characteristic value of the first category feature can be determined.For example, if to
Distribution resource is data, has this feature of data volume in the first category feature, then can be by the data volume of actual data to be distributed
Characteristic value as this feature.
S102: the characteristic value of the second category feature in the feature set is determined according to the characteristic value of first category feature.
After the characteristic value that the first category feature has been determined, it can be determined according to the characteristic value of the first category feature in feature set
The characteristic value of two category features.Specifically, determining the characteristic value of the second category feature in feature set according to the characteristic value of the first category feature
It can be by the way of following 3.1 or 3.2 (the present embodiment is not limited to 3.1 or 3.2 following modes):
3.1, according to storage medium
After the characteristic value that the first category feature has been determined, it can be determined according to the characteristic value of the first category feature in feature set
Then the storage medium of two category features determines the characteristic value of the second category feature according to the data on storage medium.For example, false
It include this feature of data code, the feature of this feature of data code in the first category feature if resource to be allocated is data
Value is XXYY, and corresponding second category feature of this feature of data code is this second category feature of data volume, and XXYY is corresponding to be deposited
Storage media is server A, i.e., the storage medium of the characteristic value of this second category feature of data volume is server A, then can basis
Data in server A determine the characteristic value of this feature of data volume, such as can be with the data on traversal server A, to look for
To actual data volume.Above only for example, being also applicable to other features.
Certainly, the corresponding storage medium of the characteristic value of the first category feature can be more accurate, for example corresponds to some point
Qu Shang.The corresponding relationship of characteristic value and storage medium can be determined in advance.
3.2, according to feature corresponding relationship
The characteristic value corresponding relationship that can determine the first category feature and the second category feature is determining the spy of the first category feature
After value indicative, the characteristic value of the second category feature corresponding with the first category feature is determined according to characteristic value corresponding relationship.For example, false
If resource to be allocated is data, this feature of data volume is contained in the first category feature, the characteristic value of data measure feature is 1TB,
Corresponding second category feature of this feature of data volume is this feature of data duration, and when data measure feature and data survival
Between the characteristic value corresponding relationship of feature be 24 hours in 1TB corresponding data duration in data volume, then according to characteristic value
Corresponding relationship can determine that the characteristic value of data duration feature corresponding with data measure feature is 24 hours.It only illustrates above
Illustrate, is also applicable to other features.
For Mr. Yu's first kind feature P, with characteristic value p, and the first category feature P and certain Q pairs of second category feature
Answer, second category feature have characteristic value q, feature P and feature Q be it is corresponding, characteristic value p is corresponding with characteristic value q, then
Characteristic value p and feature Q is it is also assumed that have corresponding relationship.
In the present embodiment, the first category feature and the second category feature can be one-to-one relationship, be also possible to a pair
More or many-to-one relationship.If some first category feature A correspond to multiple second category feature A1, A2 ... ..., Ai (i >=2, here
I can change, such as under different resource allocation scenes, or not in the resource allocation process of homogeneous, and i may be different), then
Based on above content, its corresponding this multiple second category feature A1, A2 ... ..., Ai can be determined by first category feature A;If
Multiple first category feature B1, B2 ... ..., Bj (j >=2, j here can change, such as under different resource allocation scenes,
Or not in the resource allocation process of homogeneous, j may be different) correspond to a second category feature B, then it is based on above content, according to
This multiple first category feature of first category feature B1, B2 ... ..., each of Bj can determine that its this corresponding second class is special
Levy B.
Correspondingly, the characteristic value of the first category feature and the characteristic value of the second category feature can be one-to-one relationship,
It can be one-to-many or many-to-one relationship.If the characteristic value c of some the first category feature C corresponds to multiple characteristic value c1,
C2 ... ..., cm, characteristic value c1, c2 ... ..., cm adhere to one or more second category feature values separately, are then based on above content, according to
Characteristic value c can determine characteristic value c1, c2 ... ..., cm;If multiple characteristic value d1, d2 ... ..., dn adhere to one or more the separately
One category feature, and d1, d2 ... ..., dn equal corresponding eigenvalue d, characteristic value d belong to the second category feature D, then are based on above content,
According to this multiple characteristic value d1, d2 ... ..., each of dn characteristic value can determine its corresponding this characteristic value d.
According to the above, the characteristic value of the first category feature and the second category feature and the first category feature can be determined
With the characteristic value of the second category feature.
S103: resource allocation rule is determined according to the characteristic value of first category feature and the second category feature.
It, can be according to the first category feature and second after the first category feature and the second category feature that resource allocation event has been determined
Category feature determines the allocation rule of resource to be allocated.For example, if certain resource allocation event it needs to be determined that feature include resource
(code or coding characteristic can be navigated to specific by resource language or coding for type (type feature), resource language or coding
Resource content), stock number (quantative attribute), distribution time (temporal characteristics), distribution number (quantative attribute) and distribution
It receives object (characteristics of objects), these features can form feature set;Wherein resource type feature and resource language or coding
Feature is the first category feature, and it is second that resource measure feature, distribution number feature, distribution temporal characteristics and distribution, which receive characteristics of objects,
Category feature;Specifically, the characteristic value of resource type feature is I class data resource, the characteristic value of resource language or coding characteristic is
ABC123, the characteristic value of resource measure feature are 1TB, when the characteristic value for distributing temporal characteristics is one day 12, distribution number feature
Characteristic value is 5, and the characteristic value that distribution receives characteristics of objects is server F1 to F5, then can determine allocation rule are as follows: will be above-mentioned
Type be I class, code or be encoded to ABC123, the data that total amount is 1TB are divided into 5 parts at one day 12, and by be divided into 5 parts
It is respectively allocated to server F1 to F5, as shown in Figure 3.
For another example, if certain resource allocation event it needs to be determined that feature include resource type (type feature), resource generation
(time is special for code or coding (ibid), stock number (quantative attribute), resource generation time (temporal characteristics), resource duration
Sign), resource allocation time (temporal characteristics), distribution number (quantative attribute) and distribution reception object (characteristics of objects), this
A little features can form feature set;Wherein resource language or coding characteristic are the first category feature, remaining feature is that the second class is special
Sign;Specifically, the characteristic value of resource type feature is II class asset source, the characteristic value of resource language or coding characteristic is XYZ,
The characteristic value of resource measure feature is 100 yuan, when the characteristic value of resource generation time feature is one day 9, resource duration feature
Characteristic value be after assets generate in 24 hours effectively, the characteristic value of resource allocation time feature is after assets generate in 24 hours
It is allocated, the characteristic value of distribution number feature is 10, and distribution receives the characteristic value of characteristics of objects as 10 notes on certain platform
Volume account, then can determine allocation rule are as follows: be II class, code by the above-mentioned type or be encoded to XYZ, the money that total value is 100 yuan
It is divided into 10 parts, and the note that be divided into 10 parts are respectively allocated on above-mentioned 10 certain platforms in 24 hours from producing at one day 9
Volume account, as shown in Figure 4.
The above is only for example, the feature and characteristic value that determine required for specific resource allocation event can become
Change.For example, it is also possible to there is allocation algorithm feature, that is, which type of allocation algorithm is used, to can at least determine each distribution
The resource that object can or should obtain, for example, the data obtained how much, the assets of the data content of acquisition or acquisition are how much
Deng.
It should be noted that for resource allocation event, the feature of different features or different characteristic value can be with
Belong to same type, for example above-mentioned assets generation time, assets duration, asset allocation time are that have respective feature
The feature of value, but be all to belong to this type of temporal characteristics;Above-mentioned data volume and distribution number is considered as being different
Feature, but be all to belong to this type of quantative attribute.Furthermore it is possible to the case where characteristic value for feature occur is zero.
S104: resource is distributed according to the allocation rule.
After resource allocation rule has been determined, so that it may carry out resource allocation according to identified resource allocation rule.Edge
With example, however, it is determined that resource allocation rule are as follows: be I class, code by type or be encoded to ABC123, the data that total amount is 1TB
It is divided into 5 parts at one day 12, and is respectively allocated to server F1 to F5 for be divided into 5 parts, then at day 12, by above-mentioned number
According to being divided into 5 parts, and server F1 to F5 is respectively allocated to by be divided into 5 parts;If it is determined that resource allocation rule are as follows: by type
It for II class, code or is encoded to XYZ, is divided into 10 parts in 24 hours from assets that total value is 100 yuan are at one day 9, and will divide
At 10 parts of register account numbers being respectively allocated on above-mentioned 10 certain platforms, then can at day 9 from 24 hours, will be above-mentioned
Assets are divided into 10 parts, and the register account number that be divided into 10 parts are respectively allocated on above-mentioned 10 certain platforms.
In the present embodiment, the trigger condition that can also set resource allocation event is then opened after trigger condition is triggered
Begin the resource allocation process of above-mentioned S101 to S104.For example, the generation of resource to be allocated can be set into trigger condition, then when
After resource to be allocated generates, that is, trigger trigger condition.Can actively or whether timing actively monitoring trigger condition is triggered, it is real
The automatic sensing of existing trigger condition, can be improved timeliness, the accuracy and efficiency of resource allocation.
In the present embodiment, on the basis of determining resource allocation affair character collection, the first category feature can be automatically determined,
The second category feature is automatically determined according to the first category feature, the value of the second category feature is automatically determined according to the value of the first category feature, i.e.,
It only needs to determine all required features and spy that the first category feature and its characteristic value can be obtained to determine resource allocation event
The determination of value indicative, feature is more efficient;Due to being the value for automatically determining the second category feature and the second category feature, the determination of feature
Accuracy is higher, and feature definitive result is more effective;In the first category feature and its characteristic value and the second category feature and its characteristic value energy
On the basis of enough accurate and effective and efficient determinations, money to be allocated can be automatically determined by the first category feature and the second category feature
The allocation rule in source, and then resource is distributed according to allocation rule automatically, allocation efficiency of resource is higher, and resource allocation result is also more quasi-
Really, more effectively.
Embodiment three:
This specification embodiment three provides the resource allocation methods under a kind of specific situation, in the present embodiment by should
The amortization of method completion productive assets.Amortization is a kind of behavior, is referred to in addition to fixed assets, what other can be used for a long time
Productive assets share the accounting method of acquisition cost according to its service life every year, thus in the present embodiment, it
The resource of distribution is productive assets.
In the present embodiment, to carry out resource allocation, it is thus necessary to determine that feature include resource type, resource language or volume
Code, stock number distribute number, this is also formed the feature set of resource allocation event;Specifically, can determine resource language or
It is encoded to the first category feature, then determines that resource is special for the second class come emerging, stock number, distribution number by feature corresponding relationship
Sign;From after the characteristic value that resource language or coding characteristic has been determined, the characteristic value of the second category feature, practical scene can be determined
In, the characteristic value of resource type feature is the actual type of above-mentioned productive assets, and the characteristic value of resource measure feature is to pass through
The total amount of battalion's property assets, the characteristic value for distributing number are to amortize number of days, such as calendar year or 365 days or 360 days, thus
It can determine resource allocation rule are as follows: spread out the productive assets with the above-mentioned type and total amount according to amortization number of days
Pin, being formulated is exactly total amount/amortization number of days.
Specifically, in the present embodiment, can determine triggering item due to may all there is various business daily
Part, trigger condition can be set as resource language or coding white list;Can actively or timing actively screening has occurred or
The business of generation is touched after being related to resource language in certain business or having encoded the resource language or coding in white list
Trigger condition has been sent out, has illustrated that this business needs to carry out resource allocation and (actively perceive of resource allocation has been achieved, and will money
Source has been distributed corresponding with business and has got up), it may thereby determine that feature set (may include service code feature in feature set, with money
Source code or coding correspond to), and by resource language or it is encoded to the first category feature, specific related resource language or coding
It as the characteristic value of the first category feature, and then can determine the characteristic value of the second category feature and the second category feature, and determine distribution
Rule can then carry out resource allocation.Certainly, it other than it can set resource language or coding white list, can also determine
The white list of other types feature.
In the present embodiment, it on the one hand realizes the automatic sensing of resource allocation and corresponds in specific business, it can
Improve timeliness, the accuracy and efficiency of resource allocation;On the other hand, the first category feature can be automatically determined in the present embodiment,
The second category feature is automatically determined according to the first category feature, the value of the second category feature is automatically determined according to the value of the first category feature, i.e.,
It only needs to determine all required features and spy that the first category feature and its characteristic value can be obtained to determine resource allocation event
The determination of value indicative, feature is more efficient;Due to being the value for automatically determining the second category feature and the second category feature, the determination of feature
Accuracy is higher, and feature definitive result is more effective;In the first category feature and its characteristic value and the second category feature and its characteristic value energy
On the basis of enough accurate and effective and efficient determinations, money to be allocated can be automatically determined by the first category feature and the second category feature
The allocation rule in source, and then resource is distributed according to allocation rule automatically, allocation efficiency of resource is higher, and resource allocation result is also more quasi-
Really, more effectively.
Further, for a business, although being related to amortizing, the effective time of this business may be with booth
It is not fully identical to sell the time, for example the amortization time is 365 days, business effective time may be 30 days, therefore can also determine
The feature of resource allocation event includes business effective time, and the characteristic value of business effective time feature is the actually active of business
Time, to further limit the life cycle of amortization on the basis of above-mentioned allocation rule, life cycle is having for business
Imitate the time.
Example IV
As shown in figure 5, the 4th embodiment of this specification provides a kind of resource allocation device, comprising:
Characteristic determination module 201, the first kind is special in the feature set and the feature set for determining resource allocation event
The characteristic value of sign;
It is worth determining module 202, for determining that the second class is special in the feature set according to the characteristic value of first category feature
The characteristic value of sign;
Regular determining module 203, for determining resource point according to the characteristic value of first category feature and the second category feature
With rule;
Distribution module 204, for distributing resource according to the allocation rule.
Optionally, the characteristic determination module 201 is also used to:
After determining the feature set, the first category feature and the second category feature in the feature set are determined.
Optionally, determine that the first category feature and the second category feature in the feature set include:
To any feature in the feature set, the weighted value of this feature is determined;
Determine that this feature belongs to the first category feature or the second category feature according to the weighted value;
Or,
It determines the first category feature list and the second category feature list, whether belongs to first according to the feature in the feature set
Category feature list or the second category feature list determine if to belong to the first category feature or the second category feature.
Optionally, determine that the second category feature in the feature set includes:
Determine the first category feature in feature corresponding relationship and the feature set;
The second category feature corresponding with its interior first category feature in the feature set is determined according to the feature corresponding relationship.
Optionally, determine that the first category feature in the feature set includes:
It determines the first category feature list, determines it according to whether the feature in the feature set belongs to the first category feature list
Whether first category feature is belonged to.
Optionally, the characteristic value packet of the second category feature in the feature set is determined according to the characteristic value of first category feature
It includes:
The storage medium of the second category feature in the feature set is determined according to the characteristic value of first category feature;
The characteristic value of the second category feature is determined according to the data on the storage medium;
Or,
Determine the characteristic value corresponding relationship of the first category feature and the second category feature;
The characteristic value of the second category feature corresponding with first category feature is determined according to the characteristic value corresponding relationship.
Optionally, as shown in fig. 6, described device further include:
Trigger module 205, for the first category feature in the feature set and the feature set for determining resource allocation event
Characteristic value before, determine whether resource allocation condition is triggered;
If so, characteristic determination module 201 determines the first kind in the feature set and the feature set of resource allocation event
The characteristic value of feature.
Optionally, first category feature or the second category feature include value tag or temporal characteristics.
Embodiment five
The 5th embodiment of this specification provides a kind of resource allocation apparatus, comprising:
At least one processor;
And
The memory being connect at least one described processor communication;
Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one
A processor executes so that at least one described processor can:
Determine the characteristic value of the first category feature in the feature set and the feature set of resource allocation event;
The characteristic value of the second category feature in the feature set is determined according to the characteristic value of first category feature;
Resource allocation rule is determined according to the characteristic value of first category feature and the second category feature;
Resource is distributed according to the allocation rule.
Embodiment six
The 6th embodiment of this specification provides a kind of computer readable storage medium, the computer-readable storage medium
Matter is stored with computer executable instructions, and the computer executable instructions realize following step when being executed by processor:
Determine the characteristic value of the first category feature in the feature set and the feature set of resource allocation event;
The characteristic value of the second category feature in the feature set is determined according to the characteristic value of first category feature;
Resource allocation rule is determined according to the characteristic value of first category feature and the second category feature;
Resource is distributed according to the allocation rule.
The various embodiments described above can be used in combination.
Above-mentioned that this specification specific embodiment is described, other embodiments are in the scope of the appended claims
It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment
It executes and desired result still may be implemented.In addition, the process described in attached drawing not necessarily must be specific according to what is shown
Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also
Can with or may be advantageous.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device,
For equipment, non-volatile computer readable storage medium storing program for executing embodiment, since it is substantially similar to the method embodiment, so description
It is fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
Device that this specification embodiment provides, equipment, non-volatile computer readable storage medium storing program for executing with method are corresponding
, therefore, device, equipment, nonvolatile computer storage media also have the advantageous effects similar with corresponding method, by
The advantageous effects of method are described in detail in above, therefore, which is not described herein again corresponding intrument, equipment,
The advantageous effects of nonvolatile computer storage media.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(address Hardware DescrIP tion Language, HDL), and HDL is also not only a kind of, but there are many kinds, such as
ABEL (Advanced Boolean Expression Language), (address Altera Hardware DescrIP AHDL
tion Language)、Confluence、CUPL(Cornell University Programming Language)、
HDCal, JHDL (Java Hardware DescrIP address tion Language), Lava, Lola, MyHDL, PALASM,
RHDL (Ruby Hardware DescrIP address tion Language) etc., most generally uses VHDL (Very- at present
High-Speed Integrated Circuit Hardware DescrIP address tion Language) and Verilog.This
Field technical staff, which also will be apparent to the skilled artisan that, only to need with above-mentioned several hardware description languages slightly programming in logic and to compile method flow
Journey is into integrated circuit, so that it may be readily available the hardware circuit for realizing the logical method process.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can
Read medium, logic gate, switch, specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and insertion microcontroller, the example of controller includes but is not limited to following microcontroller
Device: ARC 625D, Atmel AT91SAM, the address MicrochIP PIC18F26K20 and Silicone Labs
C8051F320, Memory Controller are also implemented as a part of the control logic of memory.Those skilled in the art
Know, it, completely can be by the way that method and step be carried out other than realizing controller in a manner of pure computer readable program code
Programming in logic comes so that controller is with logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and insertion microcontroller
Deng form realize identical function.Therefore this controller is considered a kind of hardware component, and includes in it
The structure in hardware component can also be considered as realizing the device of various functions.It or even, can will be for realizing various
The device of function is considered as either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit can be realized in the same or multiple software and or hardware when specification.
It should be understood by those skilled in the art that, this specification embodiment can provide as method, system or computer program
Product.Therefore, this specification embodiment can be used complete hardware embodiment, complete software embodiment or combine software and hardware
The form of the embodiment of aspect.Moreover, it wherein includes that computer is available that this specification embodiment, which can be used in one or more,
It is real in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form for the computer program product applied.
This specification is referring to the method, equipment (system) and computer program product according to this specification embodiment
Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram
The combination of process and/or box in one process and/or box and flowchart and/or the block diagram.It can provide these computers
Processor of the program instruction to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices
To generate a machine, so that generating use by the instruction that computer or the processor of other programmable data processing devices execute
In the dress for realizing the function of specifying in one or more flows of the flowchart and/or one or more blocks of the block diagram
It sets.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
This specification can describe in the general context of computer-executable instructions executed by a computer, such as journey
Sequence module.Generally, program module include routines performing specific tasks or implementing specific abstract data types, programs, objects,
Component, data structure etc..This specification can also be practiced in a distributed computing environment, in these distributed computing environment
In, by executing task by the connected remote processing devices of communication network.In a distributed computing environment, program module
It can be located in the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely this specification embodiments, are not intended to limit this application.For those skilled in the art
For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal
Replacement, improvement etc., should be included within the scope of the claims of this application.