Illustration Pr.25 – I01 - Pricing Logic Algorithm : Object diagram
Created: |
5/3/2022 11:44:17 AM |
Modified: |
5/19/2022 4:08:41 AM |
Project: |
|
Author: |
Giu Platania |
Version: |
1.0 |
Advanced: |
|
ID: |
{445F98AD-A39D-4f2d-8C27-C92B1A291BA3} |
<font color="#29313b">The PricingLogicAlgorithm (PLA) entity is designed to support the link to a “black box” that is used for rating events. This is the common case for usage rating but this scenario exists also for rating recurring and one-time charges. In such cases the price is not kept in the catalog nor the rules used to determine the price, only the interface to the black box algorithm is modelled and prices are determined by sending the relevant information using the interface, and getting the rate for the event from this black box algorithm. The PricingLogicAlgorithm and its related entities (especially PricingLogicAlgorithmSpec) are designed to model flexible interface definition in order to provide maximal reuse for existing rating algorithms.</font><br/><font color="#29313b"><b>Use Case 1: Linear Call Rating</b></font><br/><font color="#29313b">This use case describes one of the simplest possible rating algorithms for call usage events – a linear rating according to call duration. Such an algorithm may require two parameters in order to be instantiated (just an example):</font><br/><font color="#29313b">Rate for a minute</font><br/><font color="#29313b">Interval for calculating the rate</font><br/><font color="#29313b">This algorithm is charging the call based on call duration in intervals according to the second parameter, so if the interval is 5 seconds, a call between 1 and 5 seconds would be charged for 5 seconds, between 6 and 10 seconds would be charged for 10 seconds and so on. In any case the charge will be for a whole number multiplication of 5 seconds.</font><br/><font color="#29313b">The following table illustrates such an algorithm – in all cases the rate is $0.30/minute</font><br/><font color="#29313b">Using such an algorithm, instantiation of $.12/minute and interval of 5 seconds will always yield a whole number (in cents) and so $.10/minute and 6 seconds interval. On the other hand, a rate of $.07/minute and 1 second interval will almost always yield charges with fractions of cents. </font><br/><font color="#29313b">Note that in order to calculate the rate you need to set the rate and interval (which is something that is communicated to the customer and typically done during the customer order), and also pass the Usage event details (Usage class in SID) to the rating algorithm (in order to get event relates data, in our use case only the call duration is important). </font><br/><font color="#29313b"><br/></font><br/>