Unformatted text preview: repair_rooms : LIST[ROOMS] -- List of all the rooms under repair capacity : INTEGER -- Number of rooms in the hotel make (size : INTEGER) -- Build a new hotel with size rooms where all rooms are available. require ensure vacancy : BOOLEAN -- Returns true if and only if there is an unreserved room. require ensure unreserved_check_in (guest : GUEST) -- The guest has not made a reservation. Puts the guest into an unreserved room. require ensure remove_room_for_repair (room : ROOM) -- Moves an unoccupied room from the available list to the repair list. require ensure vacancy_count : INTEGER -- Returns the number of unreserved rooms. require ensure invariant end...
View Full Document
- Winter '12
- Computer Networks, The Guest, Class invariant, class invariant assertions, unreserved room, following defined class