Question

I am doing the 2 diagrams for a hotel booking service question. I did look up google and almost all diagram examples seem to have nicely linked up the actors but I just don't seem to be able to do so in my case. Also for the activiy diagram, I feel it fits best only for part of the question and not everything.

I would appreciate any feedback on my work if it is correct/ at least on the correct path and where it need working or its totally off.. Tnks for help.

Question:

A new hotel requires a website to allow potential guests to make a room reservation by specifying the type of room e.g. single, double, and the dates of booking. The hotel has many room types available, each with a room-type name, number of guests and additional facility information. Each room in the hotel has a unique room number and is of one specific type.

If the potential guest has registered with the website, in the past, their previously stored details e.g. contact number, credit car details, can be retrieved to speed up the booking process. If the potential guest has not previously registered they must create an account as a new customer before making a booking.

Each reservation at the hotel is allocated a unique reservation code. Prior to the date of the booking(s), the customer can use the web site to edit or cancel the reservation. Amendments to the booking(s) can include changing the dates of the booking, the number of guests in each room etc. During the booking process the customer can printout their reservation.

When the guest(s) arrive at the hotel the reservation number is used by the receptionist to find the reservation to check them in. At the end of their stay at the hotel, the receptionist checks the guests out. It is during this stage that the hotel system takes their payment through the credit card payment system and an invoice may be requested by the guest.

Monthly reports are prepared by the system which may be viewed on request by the Hotel Manager.

Produce a Use Case and Activity diagram for the hotel.

Answer: Use Case Diagram Link to the Use Case Diagram Picture

Use Case Diagram

Answer: Activity Diagram Activity Diagram

NEW Use Case Diagram: Link to new diagram

enter image description here

Was it helpful?

Solution

You are mixing actors and systems. Hotel is a system and is to be shown as a rectangle.

Sorts of room don't belong to the UC diag, if they don't suppose different functioning of the system.

Parameters and states are not to be shown as use cases. They are not ACTIONS.

As for the question in the title, the answer is no. Only you have SEVERAL UC diagrams, not a diagram. And it is OK. The activity diagram is simple enough, it even all is in one swimlane.

When you'll define all agents you'll be able to create more complex activity diagrams, with swimlanes.

Edit for second Use Case diagram:

  • Here you are trying to set the SEQUENCE of actions. Use case is not the place for it. Only Who and What, not Where, When, How. You are trying to put everything in the use case diagram. Postpone other questions to later diagrams. Look my answer here: https://stackoverflow.com/a/21408074/715269, a guy had made the opposite mistake - put everything in the Sequence diagram.
  • It is great that you thought about the registration. But Login and Registration are use cases and should be between agents, not between use cases
  • You have mixed two use cases here: one about reservation and one about real arriving/living in/leaving. Divide them.
  • Do not try to put the structure information here. Use case is to be done from the user's point of view, not from programmer's one. Don't try to decide inner problems NOW. You have to define the most common problems correctly, that's all.

I have added the part of use case diagram - reservation only.

And beware, it is NOT full yet even in the sense of actors and use cases - you must have the administration and the bookkeeping of the booking system provider, too. (if the system doesn't belong to the Hotel, of course)

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top