ProblemDomain
Class Reservation


public class Reservation


Method Summary
 voidBookRoom()
           
 voidCheckCalendar()
           
 voidFindRoom()
           

Method Detail

BookRoom

public void BookRoom()
description Set Booked to True and make a new entry into the collection of Calendar objects.

CheckCalendar

public void CheckCalendar()
description Match the room numbers from the collection of capacity-feasible rooms with the Calendar objects where the room numbers match and the dates match.

If there are one or more capacity-feasible rooms that do not have a calendar match, use one of them for the reservation (update approriate information).

If all capacity-feasible rooms have matches, check further to see if there are time conflicts. If, after eliminating time conflicted rooms, there are rooms left, book one of them.

If no capacity-feasible rooms and time-feasible rooms exist, notify that reservation note feasible.

FindRoom

public void FindRoom()
description Get a collection of Room objects that satisfy the reservation capacity constraint.

Association Links

to Class java.lang.String

to Class ProblemDomain.Room

Client Cardinality 0..*
Supplier Cardinality 1

to Class ProblemDomain.Calendar

Client Cardinality 1
Supplier Cardinality 1