5 System presents total with taxes calculated 6 Cashier tells Customer the

5 system presents total with taxes calculated 6

This preview shows page 17 - 28 out of 36 pages.

5. System presents total with taxes calculated. 6. Cashier tells Customer the total, and asks for payment . 7. Customer pays and System handles payment. 17
Image of page 17
8. System logs completed sale and sends sale and payment information to the external accounting system (for accounting and commissions) and Inventory system (to update inventory). 9. System presents receipt . 10. Customer leaves with receipt and goods (if any). Extensions (or alternative Flows) 7a. Paying by cash: 1. Cashier enters the cash amount tendered. 2. System presents the balance due , and releases the cash drawer . 3. Cashier deposits cash tendered and returns balance in cash to Customer. 4. System records the cash payment . 18
Image of page 18
Method2 : By Category List ( read p 140-141 ) Common Candidates for classes include: Descriptions , Roles , Places , Transactions Containers , Systems , abstract nouns , Rules Organizations, Events, Processes, catalogs , Records , services . 19
Image of page 19
POS example You can create a list, or you can use a set of class diagrams, per the table below Store Register Sale Item Payment Sales LineItem Cashier Customer Manager Product Catalog Product Specification 20
Image of page 20
Monopoly Game Domain Model 21
Image of page 21
Maintaining the Model Usually the model is a guideline to thinking, not an end in itself. Thus it will change as you learn more Who will use the updated model? 22
Image of page 22
Report Objects Including reports in a domain model usually isn’t useful because the information is derived from other objects. There are special cases, such as receipts, that should be in the model. 23
Image of page 23
Mapmaker (domain terms) Strategy Use existing names so far as possible. Learn the terms your users use. Exclude out-of-scope features. If a feature is not in the current iteration, don’t use it. Model the “unreal” world (i. e. Telecom) by listening carefully to the vocabulary of experts. “Port” means two different things in telecom and shipping. 24
Image of page 24
Attributes vs. Classes Common mistake: representing something as an attribute when it should have been a class. “If we do not think of some conceptual class X as a number or text in the real world, it should probably be a class, not an attribute.” Should “store” be an attribute of Sale or should it be a class? 25
Image of page 25
Description Classes A description class contains information that describes something else E. g. Product Description records the price, picture, text description (and what else?) of an item 26
Image of page 26
Why Use Them? If we keep all the information in, say, a sales line item, once all of that item are sold, there is no record of what the item was How does this relate to database design?
Image of page 27
Image of page 28

You've reached the end of your free preview.

Want to read all 36 pages?

  • Fall '19

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes