0% found this document useful (0 votes)
66 views3 pages

SA Lab Work5

The document discusses the model-centered architectural style and its application to a book cataloging project. It analyzes diagrams of the OSGI framework architecture and the Linux operating system architecture. Both are determined to follow a layered architectural style based on how their modules/components are grouped into horizontal levels that serve distinct purposes and pass information between layers through defined interfaces and protocols.

Uploaded by

Aiya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views3 pages

SA Lab Work5

The document discusses the model-centered architectural style and its application to a book cataloging project. It analyzes diagrams of the OSGI framework architecture and the Linux operating system architecture. Both are determined to follow a layered architectural style based on how their modules/components are grouped into horizontal levels that serve distinct purposes and pass information between layers through defined interfaces and protocols.

Uploaded by

Aiya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Software Architecture

Assignment 5. Patterns and Styles


Name: Aiya Zeinulla

Part 1
PURPOSE
In this exercise, you will gain experience applying the model-center style of design
ACTIVITIES
1 Discuss the key characteristics of the model-centered style.
All of system's independent components interact with central element\model - which called data
store and repository, where data is stored, and different frameworks are used to ease the storage.
Use of well known language as UML is characterizable for this style , it always include legend
which may contain information about specific symbols.
2 Discuss how this pattern applies to the your project design. Give an argument for why
this is a good choice.
It applies to my project design because data storage can act as centralized unit, from which all
component get needed data and can independently interact with each other. Catalogue of books
and user's list is stored in the database , and starting from the beginning, user sign up/ log in, so
that process goes from the data storage and then goes further to interact with other elements. One
of a characteristic of the style is making the whole process modifiable and that goes with visitor
pattern, which requires to make changes inside smaller classes without modifying the outer
object.

Part 2
PURPOSE
In this exercise, you will gain experience in recognizing aspects of an architectural diagram that
cause it to be a poor communication vehicle.
ACTIVITIES
1 Study the diagram of the OSGI architecture below then write a short paragraph
describing the architecture depicted by the diagram
OSGI Framework
(250px-Osgi_framework.svg.png from en.wikipedia.org)

• Bundles – Bundles are the OSGi components made by the developers.


• Services – The services layer connects bundles in a dynamic way by offering a
publish-find-bind model for plain old Java objects.
• Service registry – The application programming interface for management services.
• Life-Cycle – The API to install, start, stop, update, and uninstall bundles.
• Modules – The layer that defines how a bundle can import and export code.
• Security – The layer that handles the security aspects.
• Execution Environment – Defines what methods and classes are available in a specific
platform.
2 Discuss each of the following questions, come to consensus, and then provide one
answer.
a What is the architectural style depicted in the diagram?
Layered-architectural style
The most popular architectural style is layered architecture. Modules or components with
comparable functionalities are grouped into horizontal layers, and each layer serves a distinct
purpose inside the application.
The number of layers in an application is not defined by the layered architecture style. While
developing an application, architects, designers, and developers can have as many levels as they
wish.
The layered architecture style abstracts the overall picture of the system while still providing
enough detail to understand the various levels' roles and responsibilities, as well as the
relationships between them.
Services, protocols, and interfaces are the fundamental components of layered architecture.
A layer's service is a set of activities that it delivers to a higher layer.
Protocol: It is a collection of rules that a layer follows when exchanging data with a peer entity.
The contents and order of the messages used are primarily addressed by these guidelines.
Interface: This is the method by which information is passed from one layer to the next.
b What is it about the diagram that gives you that impression?
Because of the following, I consider this to be a layered architectural style:
Every process is layered or happens in layers, when the hardware is allocated for choosing the
operating system , and then the environment, which is JVM, and then layer 3 and above which is
with security concerns of the app.
3 Go online and find a textual description of the OSGI architecture relevant to the style
you have identified for this diagram. Study the description then copy and paste it into
your document.
The core OSGi Service Platform has a layered architecture, and is designed to run on a variety of
standard Java profiles. OSGi introduces the notion of a bundle as a modular unit, and the
platform architecture is based upon bundles as the unit of deployment.
4 Repeat Steps 2-5 for the following diagram of the Linux operating system architecture.

Linux Operating System Architecture


(linux_kernel2.png from knowstuffs.wordpress.com)

5 Discuss each of the following questions, come to consensus, and then provide one
answer.
a) What is the architectural style depicted in the diagram?
Layered style
b) What is it about the diagram that gives you that impression?
Because, after system call happens from system call interface all nodes/components
functionalities of Linux OS in Kernel subsystem is called, and each is layered with other
sections, components on which happens in deeper level, for example for broad task as memory
management, in the diagram it is clearly shown that in Linux, virtual memory acts like storage
unlike other OS, and the downer level we have memory(memory) where the memory manager
task goes.

You might also like