logo

Crowdly

Browser

Add to Chrome

Draw a UML sequence diagram using the class diagram above and the following ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Draw a UML sequence diagram using the class diagram above and the following use case. The specifications below describe the interaction among system objects when performing one of the system’s use cases. This use case explains a customer (company) booking a service.

Preconditions of this use case: The customer already logged-in and several objects already exist in the system. Some of these objects are: GUI (an object representing the graphical user interface of the system), company (instance of Company), manager (instance of GarageObjectManager), and garage (instance of Garage).

Note that despite the similarities, the system depicted above in Figure 1 is a different system than the one described in Question 1.

  1. The customer selects the option to book service from the GUI.
  2. GUI calls the company object and the company object calls the manager object to find garages with the requested service.
  3. For all garages, the manager object gets provided services.
  4. The manager object returns a list of garages offering the selected service and the company object passes the list to the GUI.
  5. If the list is empty GUI displays no available garages.
  6. Otherwise, GUI displays available garages to the customer.
  7. The customer selects a garage.
  8. GUI gets the available dates from the selected garage.
  9. GUI gets the list of vehicles from the customer object.
  10. GUI displays vehicles and available dates to the customer
  11. The customer selects the date and vehicle.
  12. GUI calls the company object to make booking.
  13. The company object calls the manager object to create booking.
  14. The manager object creates a booking with the given date, garage and vehicle.

[20 Marks]

HINTS:

  • All input parameters are omitted from class methods to simplify the diagram. No need to add any parameters.
  • A service can be offered by many garages.
  • You can use List<ClassName> notation for your return messages where a lifeline returns of a list of objects.

Please use the names below for the actor name, guards and messages in your diagram.

Company, book service, display no available garages, display available garages, select garage, display vehicles and available dates, select date and vehicle

More questions like this

Want instant access to all verified answers on qmplus.qmul.ac.uk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome