/* Hotel - sample system Last updated: May 26, 2008 */ //Namespace for facade class. namespace hotel //Namespace for core of the system. namespace hotel.core class HotelCompany { name; 1 -- * Hotel owns; } class Hotel { name; address; 1 -- * RentableSpace; } class ItemOnBill { description; charge; } class Booking { startDate; endDate; startTime; endTime; bedroomsRequired; creditCardToBill; 1 -- * ItemOnBill; 1 -- * Booking subsidiaryBooking; } class RentableSpace { costPerDay; floorArea; * -- * Booking; } class HotelBedroom { isA RentableSpace; roomNumber; qualityLevel; isSmoking; } class MeetingRoom { isA RentableSpace; name; maxSeatingCapacity; } class Suite{ 1 -- * RentableSpace; } class Event{ description; isA Booking; } class Person { name; address; 1 -- * Booking; }