uc 13 - yshehab/SchoolRoomBooking GitHub Wiki
Collection<Booking> getBookings(Permit aPermit)
Given: The Permit object, permit6
- Access the collection of Booking objects linked to permit6, which in this case is {booking7, booking45, booking4}.
- Return {booking7, booking45, booking4}
None
Collection<Booking> bookings
Collection<Booking> getBookings()
- Post-condition: returns a collection of all linked Booking objects
- None
Collection<Booking> getBookings(Permit aPermit)
- Post-condition: returns a collection of all Booking objects linked to aPermit
None
- Not specified what details are required to be displayed about the permit. This may change the specification?
- Should
Collection<Booking> bookings
be implemented as a HashSet?