Sequence diagram (analysis)

a. Edit a room

Scenario version 2

  1. The manager enters username/password and then clicks on the Login button.
  2. The class LoginView calls the class User to process.
  3. The class User calls the method checkLogin(). The login is successful.
  4. The class User returns the results to the class LoginView.
  5. The class LoginView calls the class ManagerHomeView.
  6. The class ManagerHomeView displays itself to the manager.
  7. The manager chooses the option of manage room.
  8. The class ManagerHomeView calls the class ManageRoomView.
  9. The class ManageRoomView displays itself to the manager.
  10. The manager chooses the option of edit a room.
  11. The class ManageRoomView calls the class SearchRoomView.
  12. The class SearchRoomView displays itself to the manager.
  13. The manager enters a keyword and clicks on the search button.
  14. The class SearchRoomView calls the class Room to process.
  15. The class Room calls the method searchRoom().
  16. The class Room returns the results to the class SearchRoomView.
  17. The class SearchRoomView displays the results to the manager.
  18. The manager chooses a room to modify.
  19. The class SearchRoomView calls the class EditRoomView.
  20. The class EditRoomView displays the existent information of the selected room to the manager.
  21. The manager modifies some attributes and clicks on the save button.
  22. The class EditRoomView calls the class Room to process.
  23. The class Room calls the method updateRoom().
  24. The class Room returns to the class EditRoomView
  25. The class EditRoomView displays a successful message to the manager.
  26. The manager clicks on the OK button of the message.
  27. The class EditRoomView calls the class ManagerHomeView.
  28. The class ManagerHomeView displays itself to the manager.

b. Book room

Scenario version 2 (exclude the login period)

  1. A remote client calls to a seller to book a room.
  2. The seller chooses the option to book room on the interface SellerHomeView.
  3. The class SellerHomeView calls the class SearchFreeRoomView.
  4. The class SearchFreeRoomView displays itself to the seller.
  5. The seller asks the client the desired date of check-in and check-out.
  6. The client responds his check-in, check-out date.
  7. The seller enters the check-in, check-out date and clicks on the search button.
  8. The class SearchFreeRoomView calls the class Room to process.
  9. The class Room calls the method searchFreeRoom().
  10. The class Room returns the results to the class SearchFreeRoomView.
  11. The class SearchFreeRoomView displays the results to the seller.
  12. The seller informs the available rooms to the client and requires the client to choose some.
  13. The client says his choice.
  14. The seller choose the room(s) which satisfies the client’s requirement.
  15. The class SearchFreeRoomView calls the class SearchClientView.
  16. The class SearchClientView displays itself to the seller.
  17. The seller asks personal information about the client.
  18. The client provides them to the seller.
  19. The seller enters the client name and clicks on the search button.
  20. The class SearchClientView calls the class Client to process.
  21. The class Client calls the method searchClient().
  22. The class Client returns the results to the class SearchClientView.
  23. The class SearchClientView displays the results to the seller.
  24. The seller choose the row that corresponds to the current client.
  25. The class SearchClientView calls the class ConfirmView.
  26. The class ConfirmView displays all booking information to the seller
  27. The seller repeats these information to the client and requires the client to confirm.
  28. The client confirms them.
  29. The seller clicks of the confirm button.
  30. The class ConfirmView call the class Booking to process
  31. The class Booking calls the method addBooking().
  32. The class Booking returns to the class ConfirmView.
  33. The class ConfirmView displays a successful message to the seller.
  34. The seller clicks on the OK button of the message.
  35. The class ConfirmView calls the class SellerHomeView
  36. The class SellerHomeView displays itself to the seller
  37. The seller informs the successful booking to the client and ends the call..

c. View room statistic by income

Scenario version 2 (exclude the login period):

  1. A manager chooses the option to view the report on the interface ManagerHomeView.
  2. The class ManagerHomeView calls the class SelectStatView.
  3. The class SelectStatView displays itself to the manager.
  4. The manager chooses to view the statistic on room by the revenue.
  5. The class SelectStatView calls the class RoomStatView
  6. The class RoomStatView displays itself to the manager.
  7. The manager enters the start date, end date and clicks on the view button.
  8. The class RoomStatView calls the class RoomStat.
  9. The class RoomStat calls the method getRoomStat().
  10. The class RoomStat returns the results to the class RoomStatView.
  11. The class RoomStatView displays the results to the manager.
  12. The manager clicks on a room to view more detail.
  13. The class RoomStatView calls the class RoomDetailView.
  14. The class RoomDetailView calls the class Bill to get data.
  15. The class Bill calls the method getBillofRoom().
  16. The class Bill returns the results to the class RoomDetailView
  17. The class RoomDetailView displays the results to the manager.
  18. The manager clicks on the back button after viewing.
  19. The class RoomDetailView calls the class SelectStatView
  20. The class SelectStatView displays itself to the manager.