Docstoc

object oriented anaylsis design_solutions

Document Sample
object oriented anaylsis design_solutions Powered By Docstoc
					      Class Exercise 1 Solutions Standard Solution: Use Cases
1. Identify at least 4 primary use cases and related actors. Draw the results in a UML use case
   diagram.




                                            Query For
                                             Videos



                                            Pay Fines




                                          Rent Videos



                                           Manage
                                          Memberships
                Clerk                                               Customer

                                            Log In



                                         Manage Videos
                                                                         Admin-
                Manager                                                  istrator
                                         Manage Users
2. Write the Rent Videos use case in expanded, essential, conversational style. Include both a typical
   course of events, and an alternatives section. In the alternatives section, list exactly two frequent
   alternatives. Do not write an elaborate heading section for the use case (i.e., ignore Purpose,
   Overview, …); rather, start immediately with the typical course of events.


Use Case:                   Rent Videos

Essential, Expanded, Conversational Style

Typical Course of Events

                    Actor Actions                                            System Response

1.   This use case begins when a Customer arrives
     at a checkout with videos to rent.
2.   The Customer presents their membership                3.   Presents membership information, and status of
     identification to the Clerk, who enters it into the        loans (usually nothing on loan, and no
     system.                                                    outstanding fines).
4.   For each video, the Clerk records the item            5.   Presents accumulating list of rental video titles,
     identification into the system.                            due dates, and total rental fee.
6.   Clerk informs Customer of total rental fee, and
     asks for payment.
7.   Customer pays cash to Clerk.
8.   Clerk records payment into system.                    9.   Generates receipt and loan report.
10. Clerk gives receipt and loan report to
    Customer, who then leaves with the rental
    items.

Alternatives

    Step 3: Customer has unpaid fines. Customer must pay them before proceeding with the loan.
    Step 6. Customer has insufficient cash. Cancel transaction or deduct rental items until transaction can be paid for.




                                                                                                                            2
                          Standard Solution: Conceptual Modeling
3. Bounded by the provided Rent Videos use case, create a conceptual model and illustrate it in UML
   notation. Show concepts, associations, and attributes.
                                                                           
                                                       Pays-for-overdue-charges


                                                                                                              VideoRental
            CashPay ment                                RentalTransaction
                                               
                                        Pays-for       1                                                 dueDate
          amount : Quantity         1            1     date                           1                  returnDate
                                                                   1                          1..*
                                                                                                         returnTime
                                                        *                    *
                                          Initiates
              1      1
                                                                  Rents
                                                                                                                        1..*
                   Customer                                       VideoStore
                                                                                                                Video                       
                                                                                                                               Is-recorded-in
            address                      Rents-f rom address                             Stocks
            name
                                           *        1
                                                      name                                1
                                                                                               *         ID                    *
            phoneNumber                               phoneNumber
                                                                                                                *        *
                                                              1
                                                                          1
                                          Membership                           
                                                                          Owns-a
                                                                                                                                       1
                                                                                          1
                                    ID
                                                                                                                                   StorageMedium
                                    startDate                                    Catalog
                                                                                                                               description
                                     
                  Identif ies-renter-of            1                              1
                                                                                                         
                                                                                                Described-by                           1

                                                                                 1..*

                          LoanPolicy                                        VideoDescription
                                                        
                                                 Def ines                                            1
                   perDay RentalCharge                                     title
                   perDay LateCharge            1..*                       subjectCategory

                   1..*         1
                                                                                     
                                                                  Determines-rental-charge

                                                                                        
                                                                       Inf luences-charge




                                                                                                                                                   3
                       Standard Solution: System Events
4. Bounded by the provided Rent Videos use case, create a system sequence diagram in the UML
   notation. Show actors and system events.

                                               Rent Videos



                            Clerk                                   :Sy stem




                                    conf irmMembership(memberID)



                                      recordVideoRental(v ideoID)



                                        makePay ment(amount)




                                                                                               4

				
DOCUMENT INFO
Shared By:
Stats:
views:281
posted:3/2/2011
language:English
pages:4
Description: object oriented anaylsis design_solutions project documents,