You are on page 1of 5

ISB41203 : Reused and component-based development

Case Study 1

SALESPOINT Application Framework

SALESPOINT application framework provides core functionality for developing point-of-sale


applications; applications that support any type of sale activity. All SALESPOINT applications
offer goods or services listed in catalogs. Depending on the type of application, business
may include selling goods(products), buying goods, hiring out equipment, accepting orders,
handling complaints or refunds, taking on goods for sale or return, repairing or cleaning
things. Behind the scenes, shop management’s responsibilities include accounting, regularly
checking the supplies, refilling stocks and cash registers, ordering goods in time, adding new
items to the catalog, removing slow-moving items, and adapting the retail prices. Examples
of applications built on top of SALESPOINT range from video rental machines to restaurant
management and airline ticketing systems.

The core functionality provided by the framework can be divided into three general areas:

Area 1: Application control as shown at Figure 2.0. This provides fundamental classes for
structuring point-of-sale applications.

Figure 2.0 : Core classes of the application control part of SALESPOINT


Area 2: Data management.

This provides fundamental classes for structuring and managing data.

Key concepts are:

 Catalog: Similarly to catalogs in on-line shops


 Stock: A Stock provides a container for actual instances of objects described in a
corresponding Catalog.
 Databasket: These have been designed in analogy to the ‘Shopping Basket’ notion of
on-line shops.
Area 3: GUI components.

SALESPOINT provides a number of domain-specific GUI components

In addition, the framework provides some further optional, but also useful functionality:

 User management.
 Time management.
 Save and load.

[Source: Zschaler, S., Demuth, B., Schmitz, L., 2014. Salespoint: A Java framework for

teaching object-oriented software development. Sci. Comput. Program.


79, 189–203. doi:10.1016/j.scico.2012.04.005]

Kindly refers to the case study before answering the questions.

(a) This case study can be categorized to an Application framework or Web(6


Application framework. Differentiate between Application Framework and
Web Application Framework.
(6 marks)
(b) Suggest MVC Web Application Framework that is suitable to develop the
E-commerce application.
(4 marks)

(c) The Salespoint Application Framework is categorized as Development for


reuse OR Development with reuse? Discuss both answer with examples.
(10 marks)
(d) Describe the relevant Web Application Framework Feature from the case
study.
(10 marks)

END OF QUESTION

Case Study 2

Systematic Reuse of Web Services through Software Product Line Engineering

This case study is about reusing Web services and composite web services from web
service compositions for Vacation Planner in order to derive particular products. The
Vacation Planners are intended to be used by Web and mobile applications to allow user to
book flights, book hotel rooms, enjoy additional services such as car rental or booking
activities (e.g. climbing, fishing, etc.), check the vacation package costs in user ‘s country
currency, and pay for the services by credit card. This service composition is represented by
Business Process Model and Notation(BPMN) model (see Figure 1.0)

Figure 1.0 : Vacation Planner BPMN model

In this BPMN model, the Vacation Planner BPMN subprocess represents the service
composition, BPMN tasks represent Web services (e.g. Currency Converter), and BPMN
subprocesses represent composite Web Services(e.g. Hotel Booking).

Figure 2 shows two examples of composite Web Service.

 The Flight Booking composite Web service is built in terms of its constituent Web
services that are basically involved in flight booking.
 The Credit Card Payment composite Web service contains the Web service that is
required for validating and charging credit card payments. Either the High Security
Monitor or the Normal Security Monitor can be used to keep the transaction secure.
The BPMN models in Figure 1.0 and Figure 2.0 are useful to understand which Web
services and composite Web services can be reused.

Figure 2.0: BPMN models for the flight booking and credit card payment composite Web
services.

[Adapted from: Alferez H, German and Pelechano, Vicente (2011). Systematic Reuse of
Web Services through Software Product Line Engineering. Ninth IEEE European Conference
on Web Services, 192-199. doi: 10.1109/ECOWS.2011.13 ]

From the case study, answer following the questions.

a. This case study is about reusing Web service. Describe what is (6


Web service, SOAP and WSDL.
(6 marks )
b. Web service component interface consists of Provides and

Requires. Explain.
( 4 marks)
c. Web service and composite web service are categorized as
Development for reuse OR Development with reuse? Discuss both
answer with examples.
(10 marks )

d. Describe the fix (commonality) and variable (variability) part/feature.


Based on Figure 1.0 and 2.0, identify the fix and variable feature.
(10 marks)

END OF QUESTION

You might also like