e1 - CS3SAD/CSMDAS:SoftwareArchitectureandDesign...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
CS3SAD/CSMDAS: Software Architecture and Design Exercise sheet 1: Four Questions 1. Recall the expedia-style hotel reservation system discussed in lectures.  HolidayReservationSession  is a component that provides all the  functionality required to book a holiday. It exposes this functionality via  the provided interface  IHolidayRes.  It requires three components that  implement the interfaces  ICarRes, IAirRes  and  IHotelRes .   HotelRes  is a component that provides the functionality for booking a  hotel from a selection of possible hotels (of the same hotel chain). It  implements the  IHotelRes  interface, consisting of operations relating to  hotel-booking. It requires two components that implement the  ILoyaltyProgram  and  IBilling. CreditCarBilling  is a component that implements the  IBilling  interface,  providing operations related to charging a credit card. LoyaltyProgram  is a component that implements the  ILoyaltyProgram  interface, providing operations related to a loyalty program for guests use  the hotel chain CarRes  implements  ICarRes , providing functionality related to booking a  car AirRes  implements  IAirRes,  provding functionality related to booking an  airplane.  Question :   Define  detailed interface descriptions  in UML 2 for the  HolidayReservationSession  component, the  HotelRes  component and the  LoyaltyProgram  component. Make the interfaces as realistic as possible.  
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Answer:  A correct answer is any UML 2 interface description that is cohesive and  clearly performs the functions of the component. Methods are clearly related to each  other and to the purpose of the component. 3 or 4 methods per interface is “realistic”.  Half marks for getting the UML 2 interface written – full marks for making an attempt to  describe the  semantics  of the methods in the interface (in English). HotelRes Holiday Reservation Session CreditCardBilling LoyaltyProgram AirRes CarRes ILoyaltyProgram IBilling IAirRes IHotelRess ICarRes IHolidayRes
Background image of page 2
2. Consider the following specification of an exam marking component,  ExamMarking.  This component is to be used within the Department of Computer  Science’s new student administration system (not depicted here). Users of the  system will be academics, administrators and students.  The component exposes one provided interface,  IExam ,   defining  functionality for entering marks for students, performing standardization,  and viewing marks in various kinds of presentation.  The component also has one required interface,  IDiskUtil,  defining  functions relating to storing marks on disk and emailing marks. Here is how the component is represented in UML 2 – with an interface specification 
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/09/2011 for the course ECE 750-T11 taught by Professor Ladan during the Fall '11 term at Waterloo.

Page1 / 10

e1 - CS3SAD/CSMDAS:SoftwareArchitectureandDesign...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online