Applying GoF and GoV Patterns for Dynamic Interfaces in Complex Systems, Exercises of Software Engineering

An assignment from the patterns in software engineering course at sharif university of technology's department of computer engineering. Students are required to use gof (gang of four) and gov (gang of patterns) patterns to achieve dynamic interface composition, adapt interaction algorithms in complex subsystems, and provide location transparency in distributed systems. The assignment includes a brief discussion on potential deficiencies of the proposed solutions.

Typology: Exercises

2011/2012

Uploaded on 02/19/2012

hester
hester 🇮🇷

4.5

(13)

84 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Patterns in Software Engineering
Assignment 2
Assignment
2
1. In each of the following situations, use combinations of GoF and GoV patterns to
achieve the goals stated In each case provide a brief discussion on the potential
achieve
the
goals
stated
.
In
each
case
,
provide
a
brief
discussion
on
the
potential
deficiencies of your proposed solution:
A complex system should provide various interfaces to different clients. Some of
th it f bi ti f i l it f Th li t d i th
th
ese
i
n
t
er
f
aces are com
bi
na
ti
ons o
f
s
i
mp
l
er
i
n
t
er
f
aces.
Th
e goa
l
i
s
t
o
d
es
i
gn
th
e
system so that interfaces may be dynamically composed and changed at runtime;
i.e., it should be possible to switch a client’s interfaces, change the composition of
the interfaces and even compose new interfaces from existing ones
the
interfaces
,
and
even
compose
new
interfaces
from
existing
ones
.
A number of subsystems interact in a complex fashion. The interaction algorithm
varies de
p
endin
g
on the states of the subs
y
stems. The
g
oal is to desi
g
n the s
y
stem
pg y g g y
so that the interaction algorithm can be easily changed at runtime.
In a distributed system, system constituents work with a common set of
subsystems The goal is to design the system so that location transparency is
subsystems
.
The
goal
is
to
design
the
system
so
that
location
transparency
is
provided and the common subsystems can be changed and extended at runtime.
2. Stud
y
Cha
p
ter 4 of the POSA book
(
available on the course web
p
a
g
e
)
:
y p ( pg)
Go to http://c2.com/ppr/wiki/JavaIdioms/JavaIdioms.html; briefly introduce two
Java idioms that you have used in programming without knowing that they are
actually idioms.
Department of Computer Engineering 1Sharif University of Technology
actually
idioms.

Partial preview of the text

Download Applying GoF and GoV Patterns for Dynamic Interfaces in Complex Systems and more Exercises Software Engineering in PDF only on Docsity!

Patterns in Software Engineering Assignment 2Assignment

1. In each of the following situations, use combinations of GoF and GoV patterns toachieve the goals stated

In each case

provide a brief discussion on the potential

achieve the goals stated. In each case, provide a brief discussion on the potentialdeficiencies of your proposed solution:

^ A complex system should provide various interfaces to different clients. Some ofth^

i t^ f^

bi^ ti^

f^ i^ l

i t^

f^ Th

l i

t^ d^

i^ th

these interfaces are combinations of simpler interfaces. The goal is to design thesystem so that interfaces may be dynamically composed and changed at runtime;i.e., it should be possible to switch a client’s interfaces, change the composition ofthe interfaces

and even compose new interfaces from existing ones the interfaces, and even compose new interfaces from existing ones. A number of subsystems interact in a complex fashion. The interaction algorithmvaries depending on the states of the subsystems. The goal is to design the system

p^

g^

y^

g^

g^

y

so that the interaction algorithm can be easily changed at runtime. In a distributed system, system constituents work with a common set ofsubsystems

The goal is to design the system so that location transparency is

subsystems. The goal is to design the system so that location transparency isprovided and the common subsystems can be changed and extended at runtime.2. Study Chapter 4 of the POSA book (available on the course webpage):y^

p^

(^

p g )

^ Go to http://c2.com/ppr/wiki/JavaIdioms/JavaIdioms.html; briefly introduce twoJava idioms that you have used in programming without knowing that they areactually idioms.Department of Computer Engineering

Sharif University of Technology

actually

idioms.