Thursday, October 26, 2006

Identifying interactions











[Time 5:50 mins]


In this section we will identify collaborations among the classes as they enact each use case. In this phase we may discover new classes that we had not thought of earlier, as well as new responsibilities for existing classes. We may also discard some initial classes. The process of determining the collaborations as each use case is enacted helps in refining and validating the design.


CUSTOMER DETERMINES THE PRICE OF A GROUP OF ITEMS:

  1. Customer enters item codes at the UserTerminal
  2. UserTerminal creates Item objects for each item and finds out their individual prices
  3. The UserTerminal finds out all the schemes these items belong to
  4. The UserTerminal determines the Scheme price of all items belonging to a Scheme and adds the individual price of the remaining items
  5. The UserTerminal displays all the above information to the Customer

 

CUSTOMER CHECKS OUT ITEMS:

  1. Customer takes items to the checkout system
  2. Checkout assistant adds item codes in the CheckoutSystem
  3. Checkout system determines the price of all the items, taking into account discounts and schemes
  4. Checkout system generates a bill for the customer
  5. Checkout system accepts the customers payment

 

STOREMANAGER DETERMINES THE SHOP INVENTORY VALUATION

  1. The StoreManager uses the ControlPanel to get inventory vauation
  2. The ControlPanel uses the CurrentStock to get the valuation
  3. The CurrentStock object determines the price of every individual item and the price of items and represents it as the maximum price in the PriceRange
  4. The CurrentStock determines the minimum price by associating items into schemes and assuming that they are sold such
  5. The CurrentStock returns the PriceRange object back to the ControlPanel which displays the details to the StoreManager

New classes identified:

  • UserTerminal
  • CheckoutSystem
  • PriceCalculator
  • ControlPanel
  • PriceRange


Note: This post was originally posted on my blog at http://www.adaptivelearningonline.net

No comments: