Figure Pr.18 - Product Offer Price Action and Policy Statement : Class diagram
Created: |
3/28/2022 3:51:09 PM |
Modified: |
5/19/2022 3:45:27 AM |
Project: |
|
Author: |
broth |
Version: |
22.0 |
Advanced: |
|
ID: |
{FD134F02-D6DE-462a-BF26-C6F2E0706ACF} |
The complete PolicyStatement for this condition is: The ProdOfferPolicyVariable is the quantity ordered for the cell phone instance of ProductOffering. The PolicyOperator is “equals”. The PolicyValue is 1. The condition is interpreted as “if one instance of the cell phone is ordered” then some action will be taken. The power of representing a PolicyStatement in this way is that each part of the PolicyCondition is object-oriented and reusable. This sets the stage for representing more complex pricing rule conditions.<br/>Satisfying a condition may govern the entire price of an offering or one or more of the components of the offering. In this example, it governs the entire price of the offering for the accessories. That is, two can be chosen for free.<br/>The action to take is defined by ProdOfferPriceAction, which is a subclass of PolicyAction. These entities are shown in the figure below, along with the association between PolicyAction and PolicyStatement.<br/>