I have to design and implement a reservation system for a hotel. I have
EDIT -- on second thought, why not just let each
Room have a list of
Reservation instances, which in turn have start/end properties that tell you when the reservation occurs?
That way, to tell if a room has a reservation for a certain time, you just loop thru the reservations for the room and see if the time in question is within the start/end range of any of the reservations...granted that code is not too easy (nor too hard) to implement, but that's the basic idea.