CSC/ECE 517 Summer 2008/wiki3 7 SHOP PAT: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
Line 8: Line 8:
* Consumer :provide a list of items and user is allowed to choose item among them.Then the price is scanned and placed in the shopping bag.
* Consumer :provide a list of items and user is allowed to choose item among them.Then the price is scanned and placed in the shopping bag.


* [http://www.answers.com/topic/shopper Shopper]: Choose the item from the shopping list and search for the muliple provider for that particular item.Shopper may search the item on diffent basis ex: Brand name, lowest  price.highest price etc.
* [http://www.answers.com/topic/shopper Shopper]: Browse through the item from the shopping list and search for the muliple provider for that particular item.Shopper may search the item on diffent basis ex: Brand name, lowest  price.highest price etc.


* [http://www.google.com/search?hl=en&rlz=1T4SUNA_enUS281US281&defl=en&q=define:Provider&sa=X&oi=glossary_definition&ct=title Provider]:It keeps multiple items and make it available to shopper. At the same time assist the shopper in locating the other providers.
* [http://www.google.com/search?hl=en&rlz=1T4SUNA_enUS281US281&defl=en&q=define:Provider&sa=X&oi=glossary_definition&ct=title Provider]:It keeps multiple items and make it available to shopper. At the same time assist the shopper in locating the other providers.

Revision as of 03:29, 23 July 2008

Problem Definition

Shopper pattern. The idea of a "shopping cart" is ubiquitous in e-commerce. This idea lends itself to abstraction in the form of a Shopper pattern. Find examples and descriptions that are suitable for teaching this pattern, if possible, including some non-obvious applications. Write up your findings in the form of a narrative.

Introduction

The main purpose of Shopper Pattern is to provide as a means to assist people or consumers to obtain a collection of items from a set of shops or the providers. And the goal is achieved without introducing coupling between the consumer and the provider.

Participants

  • Consumer :provide a list of items and user is allowed to choose item among them.Then the price is scanned and placed in the shopping bag.
  • Shopper: Browse through the item from the shopping list and search for the muliple provider for that particular item.Shopper may search the item on diffent basis ex: Brand name, lowest price.highest price etc.
  • Provider:It keeps multiple items and make it available to shopper. At the same time assist the shopper in locating the other providers.
  • Item:The things that are a provider owns,described by an item request,a consumer request, and a shopper obtains.

Consequences

  • Shopper pattern helps in decoupling the requesting object from the object that provide the requested items.
  • The responsibilities can be moved for provider objects.the requesting application will not nee dto be modified.
  • The provider objects can be rearranged without modyfying the requesting application.
  • Optional items can be optimized in such a way so that the processing time will be required only if th eitem is present in the list.