Upload
sergio-zn
View
214
Download
0
Embed Size (px)
Citation preview
8/16/2019 Example of CBSE
1/3
1
Component-Based Software EngineeringDr R Bahsoon
1
Unit 1. Sample Solution for Exercise 1
Component-Based Software
Dr. Rami BahsoonSchool of Computer Science
The University Of [email protected]/~rzb
Office 112 Y9- Computer Science
Component-Based Software EngineeringDr R Bahsoon
2
Exercise 1
FlightBookingservice
Hotel Promotional Service
Car HirePromotionalService
Sketch thecomponents andinterfacescorresponding to thegiven services
Component-Based Software EngineeringDr R Bahsoon
3
Exercise 1
• Assume that Bob wants to book a holiday– Bob will book his holiday, where
• He provides the following data: His origin airport, hisdestination, his dates of departure/return, and any otherpreference information (e.g., budget, luxury, etc)
– Bob is interested in promotional offers for the period ofhis holiday
• He wants to rent a car at his destination.• He wants to get good hotel deals during his stay.
8/16/2019 Example of CBSE
2/3
2
Component-Based Software EngineeringDr R Bahsoon
4
Software Systems Requirements
• After you book a holiday , the company shall provide theholidaymaker with promotional services , which includehotel deals and car rent promotional service at thedestination and for the duration of her/his stay
Component-Based Software EngineeringDr R Bahsoon
5
Flight Booking
ProvidesRequires
Flight Booking
Flight InformationCustomerPreferenceInformation
Customer data
Component-Based Software EngineeringDr R Bahsoon
6
Promotional Hotel Booking Service..
ProvidesRequires
PromotionalHotel BookingService
List of availableHotels
Flight Information
Customer PreferenceInformation
8/16/2019 Example of CBSE
3/3
3
Component-Based Software EngineeringDr R Bahsoon
7
You can even provide more services..
ProvidesRequires
PromotionalHotel BookingService
List of availableHotelsList of BudgetHotel
List of Five stars
List of B&BList of 3 stars
Flight Information
Customer PreferenceInformation
Component-Based Software EngineeringDr R Bahsoon
8
Car Hire Promotional Service
ProvidesRequires
Car HirePromotionalService
List of availableCar agents
Flight Information
Customer PreferenceInformation
List of cars deals
Component-Based Software EngineeringDr R Bahsoon
9
Gluing the components
ProvidesRequires
FlightBooking
Flight InformationCustomerPreferenceInformationCustomer
data
ProvidesRequires
Car HirePromotionalService
List ofavailableCar agentsFlight
Information
CustomerPreferenceInformation
List ofcarsdeals
ProvidesRequires
PromotionalHotelBookingService
List of availableHotelsList of BudgetHotel
List of Five starList of B&BList of 3 stars
FlightInformation
CustomerPreferenceInformation