Resort Reservation System

Classes

Client
‡ Attributes -name -age -credit_crad_info -phone_no ‡ Methods +getName() +getAge() +getCrdtCrdinfo() +getPhoneNo() ‡ Collaborators None : : : : : : : : String int String String String int String String

BookableItem
‡ Attributes: -rate : float -capacity : int -type : int ‡ Methods + All accessor methods ‡ Collaborators None

MeetingRoom
‡ Attributes: -meetingRoomNo : ‡ Methods: +Accessor Method ‡ Collaborators None int

Cottage
‡ Attributes: -cottageNo : int ‡ Methods: +Accessor Method ‡ Collaborators None

FileofBookableItems
‡ Attributes: ‡ Methods: +addBookableItem(BookableItem b) : void +retriveMeetingRoomDetails(int meetingRoomNo): MeetingRoom +retriveCottageDetails(int cottageNo) : Cottage ‡ Collaborators None

Booking
‡ Attributes: -bookingDate -clientInfo -isCancelled -administrativeCharge -bookingAmount -bookingNo ‡ Method +computeAmount() +Accessor Methods ‡ Collaborators FileOfBookableItems BookableItem : : : : : : : Date Client boolean double double int abstract float

MeetingRoomBooking
‡ Attributes -meetingRoomNo : int -noofhours : int -from : Time -to : Time ‡ Methods +retriveMeetingRoom(int meetingRoomNo): MeetingRoom +computeAmount() : float ‡ Collaborators FileOfBookableItems BookableItem

CottageBooking
‡ Attributes -cottageNo : int -noofNights : int -from : Date -to : Date ‡ Methods +retriveCottage(int cottageNo): Cottage +computeAmount() : float ‡ Collaborators FileOfBookableItems BookableItem

FileofBookings
‡ Methods: +addBooking(Booking b) +retrieveBooking(int bookingNo) +updateBooking(int bookingNo, Booking b) +removeBooking(int bookingNo) +retrieveBookings(Date d) ‡ Collaborators None :void :Booking :void :boolean :Booking[]

MeetingRoomAvalability
‡ Attributes: -date -meetingRoomNo -slots ‡ Methods :Date :int :Boolean[]

+isAvailable(int slotNo) :Boolean +isAvailable(int fromSlotNo, int toSlotNo) :Boolean +updateStatus(int slotNo, Boolean flag) :void +updateStatus(int fromSlotNo, int toSlotNo, boolean flag) :void

FileofMRAvailability
‡ Methods +retrieveMRAvailability(Date d, int mno) : MeetingRoomAvalability +addMeetingRoomAvalability( MeetingRoomAvalability mr):void +deleteAvalability(int mno, Date d) : void +updateAvalability(int mno, Date d, MeetingRoomAvalability mr) :void

CottageAvalability
‡ Attributes: -date -CottageNo -status ‡ Methods :Date :int :Boolean
:Boolean :void

+isAvailable() +updateStatus(Boolean flag) ‡ Collaborators None

FileofCTAvailability
‡ Methods +retrieveCTAvailability(Date d, int ctno) : CottageAvalability +addCTAvalability( CottageAvalability ct):void +deleteCT(int ctno, Date d) : void +updateAvalability(int ctno, Date d, CottageAvalability ct) :void +isAvalilable(int ctno, Date from, Date to) : Boolean Collaborators None

‡

ReportPrinting
‡ Methods +printBookingReport(Date d):void +printBookingDeatils(Booking b) : void +printCleaningReport(Date d):void ‡ Collaborators FileofBookings

UI
‡ Methods +cancel() +bookCottage() +bookMeetingRoom() +search() +main() ‡ Collaborators Booking ReportPrinting All classes : void : void : void : void : void

Sign up to vote on this title
UsefulNot useful