Sie sind auf Seite 1von 9

PETRONAS

FINAL EXAMINATION
SEPTEMBER 201 4 SEMESTER
COURSE

TCB3313

SOFTWARE DESIGN AND

ARCHITECTURE
DATE

8rH JANUARY 2015 (THURSDAY)

TIME

9.00 AM

12.00 NOON (3 HOURS)

INSTRUCTIONS TO CANDIDATES

1.

Answer ALL questions from the Question Booklet.

2.

Begin EACH answers on a new page in the Answer Booklet.

3.

lndicate clearly answers that are cancelled, if any.

4.

where applicable, show clearly steps taken in arriving at the solutions and
indicate all assumptions.

5.

Do not open this Question Booklet until instructed.

Note

There are NINE (9) pages in this Question Booklet including the
cover page.

Universiti

Teknologi

pETRoNAs

TCB 3313

1. a. i.

Describe the product line paradigm.


[2 marks]

using

diagram, explain how this paradigm

will produce an

architecture that supports the testability quality attribute.


[3 marks]

b. i.

Describe the proxy design pattern.


[2 marks]

ii.

using

diagram, explain how this design pattern

is used in

achieving the security quality attribute.


[3 marks]

c. i.

Describe the pipe and filter architecture pattern,


[2 marks]

ii.

using a diagram, explain how this architecture pattern is used in


achieving the performance quality attribute.
[3 marks]

d. i.

Describe the heartbeat tactic.


[2 marks]

i.

using a diagram, explain how this tactic is used in achieving the


avalability quality attributes.
[3 marks]

TCB 3313
2.

ct.

FIGURE Q2a is a class diagram for a software that create a graphical


simulation of data structures such as linked-list, binary trees, rings and
bidirectional linked-list. The Darastrucrurecrearor class and its
subclasses are used to create objects for different data structures.

FIGURE Q2a

i.

State the design pattern being used in FTGURE e2a.


[2 marks]

i.

Propose a situation to demonstrate the maintainability tactics being


applied by the design pattern.
[8 marks]

TCB 3313

FIGURE Q2b is a class diagram for systems such as Google Maps. The

b.

ActualGraphic class represents the map section that is viewed by the


user and will be generated as soon as the map section is opened. The
GrayReplacement is the temporary image being displayed while waiting
for the system to produce the actual map images,

FIGURE Q2b
I

State the design pattern being used in Figure Q2b,


[2 marks]

ii.

Propose

a situation to demonstrate the performance tactics

being

applied by the design pattern.


[8 marks]

TCB 3313
3.

Create a scenario for the following case studies and state which quality attribute
being demonstrated by the scenario.

a.

When a railway ticket buying machine receives unacceptable coins under


normal operating condition, the system shall return the coins and continue
its operation without downtime.
[6 marks]

b.

When a digital camera user clicks the 'take picture' button to take a picture
in a low lighting environment and the camera setting is set to automatic, the
camera shall modify the aperture and/or shutter speed automatically without

users needing some time to manually adjust the aperture and shutter
speed.
[7 marks] -

c.

ln a normal operating environment of a social networking system,

the

system shall allow the system administrator to monitor the network traffic
and detect unethical use of the networking site within

hour.

[7 marks]

TCB 3313
4.

You are appointed as an architect for a project to develop self-service registration


machine for the local hospital. At the local hospital, several machines will be

installed

at various departments. The patients use the system to

register

themselves by entering their lC number. The machine will then produce queueing
number. Once registered, the patient's name is entered into a waiting list and the

doctors and hospital's patient registration staff can view this list. The doctors can
then select the patient's name from the list and see the patient's medical history.

The doctors are also allowed to amend the medical history, lf the patient is
fonrarded to another department, the patient's case is fonrvarded to the new
department and the patient

is put under the

in-patient waiting list, which is

different than the out-patient waiting list. A patient's case being transferred to

another department must be received by the receiving department within 5


minutes. The patient in the in-patient list is given the advantage over the patients
in the out-patient list. Once the patient has arrived at the new department, the
patient still needs to register using the machine by entering his/her lC number but

this is only to notify the system that the patient has arrived at the

new

department. Note that the system must follow the existing general business
process for patient registration.

a.

Create a scenario for the situation when a patient is forwarded to another


department.
[6 marks]

TCB 3313
b.

The self-service registration machine is connected to the patient database,


which is stored in the storage seryer, and the centralized patient health
monitoring system, which resides in an application server. The availability
of the storage server is very critical and the downtime must be no longer
than 2 seconds. The availability of the application server is a major
concern and the downtime must be within 10 minutes.
Design the system architecture to show the connection between the selfservice registration machine, the application server and storage server.

(NorE: The architecture must also show the application of

active

redundancy and passive redundancy tactics.)


[6 marks]
c.

Design the system architecture showing an application of the command


design pattern using the UML class diagram notation.
[8 marks]

TCB 3313

5.

FIGURE Q5 shows the architecture for a code editor and compiler. The main
functions of a code editor are compile, build, execute, debug and refactor. Other

than these functions, the code editor also provides basic text editor functions
such as copy, paste, undo, open file and create new file.

FIGURE Q5

a.

Discuss the problems and the quality attribute being achieved when using

the design pattern shown in FIGURE e5.


[4 marks]

b.

Modify the FIGURE Q5

to include the Model-View-Controller

(MVC)

architecture pattern.
[6 marks]
Design the system using the layered architecture pattern as a support for

the MVC architecture pattern.


[4 marks]

TCB 33I3
d

Modify the FIGURE Q5 to include the event-driven architecture pattern.


[6 marks]

-END OF PAPER-

Das könnte Ihnen auch gefallen