Project:
|
![]() Figure U.08 - Resource Service Product Usage - as different states of the same Usage class : Class diagram
The following Figure describes the model that resource, service and product usage as state of the same ContextUsage class.<br/>The usageState attribute can take on one of the values "resource usage", "service usage" or "product usage".<br/>Usage could be still modeled in one of the two approaches described in the Modeling Alternatives subchapter that located inside the "The Usage Information Model" subchapter.<br/><b>Implementation option</b><br/>In practice there is one usage entity that changes its state according to its progress in the rating process (resource usage guided to service usage that eventually guided to product usage). Actually, in most cases it starts its life as service usage (such as voice call CDR which already has the phone number in the record so there it is created in the state of service (phone line) usage) and moves to become in product usage state after guiding to customer and subscriber.<br/>The Resource, Service and Product usage can be implemented in many ways. It could be implemented as-is (each of the entities inherit directly from Usage class and with no real association to the other entity) but this means quite a bit of extra data. But it also can be implemented in many other ways.<br/>Most rating systems implement this usage state transition by simply adding new set of characteristics along the guiding process. For example, a VoIP service usage (usage record in "service state") might contains the call initiator, the call target and the fact that the service is VoIP (as well as other service characteristics) The guiding process will change the usage record state to be "product state" and simply will add the user information characteristics to this usage record.<br/>
|