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
This note was uploaded on 02/14/2012 for the course CSE 3214 taught by Professor Ross during the Winter '12 term at York University.
- Winter '12
- Computer Networks