a. Edit a room
Scenario version 2
- The manager enters username/password and then clicks on the Login button.
- The class LoginView calls the class User to process.
- The class User calls the method checkLogin(). The login is successful.
- The class User returns the results to the class LoginView.
- The class LoginView calls the class ManagerHomeView.
- The class ManagerHomeView displays itself to the manager.
- The manager chooses the option of manage room.
- The class ManagerHomeView calls the class ManageRoomView.
- The class ManageRoomView displays itself to the manager.
- The manager chooses the option of edit a room.
- The class ManageRoomView calls the class SearchRoomView.
- The class SearchRoomView displays itself to the manager.
- The manager enters a keyword and clicks on the search button.
- The class SearchRoomView calls the class Room to process.
- The class Room calls the method searchRoom().
- The class Room returns the results to the class SearchRoomView.
- The class SearchRoomView displays the results to the manager.
- The manager chooses a room to modify.
- The class SearchRoomView calls the class EditRoomView.
- The class EditRoomView displays the existent information of the selected room to the manager.
- The manager modifies some attributes and clicks on the save button.
- The class EditRoomView calls the class Room to process.
- The class Room calls the method updateRoom().
- The class Room returns to the class EditRoomView
- The class EditRoomView displays a successful message to the manager.
- The manager clicks on the OK button of the message.
- The class EditRoomView calls the class ManagerHomeView.
- The class ManagerHomeView displays itself to the manager.

b. Book room
Scenario version 2 (exclude the login period)
- A remote client calls to a seller to book a room.
- The seller chooses the option to book room on the interface SellerHomeView.
- The class SellerHomeView calls the class SearchFreeRoomView.
- The class SearchFreeRoomView displays itself to the seller.
- The seller asks the client the desired date of check-in and check-out.
- The client responds his check-in, check-out date.
- The seller enters the check-in, check-out date and clicks on the search button.
- The class SearchFreeRoomView calls the class Room to process.
- The class Room calls the method searchFreeRoom().
- The class Room returns the results to the class SearchFreeRoomView.
- The class SearchFreeRoomView displays the results to the seller.
- The seller informs the available rooms to the client and requires the client to choose some.
- The client says his choice.
- The seller choose the room(s) which satisfies the client’s requirement.
- The class SearchFreeRoomView calls the class SearchClientView.
- The class SearchClientView displays itself to the seller.
- The seller asks personal information about the client.
- The client provides them to the seller.
- The seller enters the client name and clicks on the search button.
- The class SearchClientView calls the class Client to process.
- The class Client calls the method searchClient().
- The class Client returns the results to the class SearchClientView.
- The class SearchClientView displays the results to the seller.
- The seller choose the row that corresponds to the current client.
- The class SearchClientView calls the class ConfirmView.
- The class ConfirmView displays all booking information to the seller
- The seller repeats these information to the client and requires the client to confirm.
- The client confirms them.
- The seller clicks of the confirm button.
- The class ConfirmView call the class Booking to process
- The class Booking calls the method addBooking().
- The class Booking returns to the class ConfirmView.
- The class ConfirmView displays a successful message to the seller.
- The seller clicks on the OK button of the message.
- The class ConfirmView calls the class SellerHomeView
- The class SellerHomeView displays itself to the seller
- 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):
- A manager chooses the option to view the report on the interface ManagerHomeView.
- The class ManagerHomeView calls the class SelectStatView.
- The class SelectStatView displays itself to the manager.
- The manager chooses to view the statistic on room by the revenue.
- The class SelectStatView calls the class RoomStatView
- The class RoomStatView displays itself to the manager.
- The manager enters the start date, end date and clicks on the view button.
- The class RoomStatView calls the class RoomStat.
- The class RoomStat calls the method getRoomStat().
- The class RoomStat returns the results to the class RoomStatView.
- The class RoomStatView displays the results to the manager.
- The manager clicks on a room to view more detail.
- The class RoomStatView calls the class RoomDetailView.
- The class RoomDetailView calls the class Bill to get data.
- The class Bill calls the method getBillofRoom().
- The class Bill returns the results to the class RoomDetailView
- The class RoomDetailView displays the results to the manager.
- The manager clicks on the back button after viewing.
- The class RoomDetailView calls the class SelectStatView
- The class SelectStatView displays itself to the manager.
