Docsity

Software Architecture: Principles, Design, and the UML, Study notes of Software Engineering

Partial preview of the text

Download Software Architecture: Principles, Design, and the UML and more Study notes Software Engineering in PDF only on Docsity!

1. Introduction2. IEEE Recommended Practice for Architecture

Modeling

3. Architecture Description Language: the UML4. The Rational Unified Process (RUP)

Chap 1. Introduction to Software

Architecture

1. Introduction Preamble

“Conventional wisdom has been to use terms like

‘software architecture’

,

‘software architectural design’, or ‘coarse-grained design’ for the high-levelstructural subdivision of a system, and ‘design’ or ‘detailed design’ for moredetailed planning… we denote the whole activity of constructing a softwaresystem as ‘

software design’

and the resulting artifacts as ‘software architecture’.”

“Many developers nowadays prefer the term ‘software architecture’ to ‘softwaredesign’ for denoting all the artifacts that result from design activities.”“In doing so, they want to express the fact that they do not just decompose thefunctionality of a system into a set of cooperating components, but rather thatthey

construct

a software architecture… They no longer agree that high-level

design decisions can be made independently of lower-level decisions.”

From “Pattern-Oriented Software Architecture, A System of Patterns”By F. Buschmann, R. Meunier, H. Rohnert, P. Sommerlad, M. Stal

Domain Analysis,

Requirements Analysis,

Risk Analysis

Software

Architecture

Design

Hardware Architecture

Design

Detailed Design,

Coding,

Integration,

Testing

requirements,desired qualities modifications torequirements

softwarearchitecture

implementationconstraints

hardwarearchitecturemodifications tohardware architecture

feed forward

feedback

Key inputs to software architecture design:

•The requirements produced by the analysis tasks•The hardware architecture (the software architect in turn provides

requirements to the system architect, who configures the hardwarearchitecture)

Comes after the domain analysis, requirements analysis, and riskanalysis, and before detailed design, coding, integration and testing.

2. IEEE Recommended Practice

Unfortunately, software architecture is still an emerging disciplinewithin software engineering;

limitations

•lack of standardized ways to represent architecture•lack of analysis methods to predict whether an architecture will

result in an implementation that meets the requirements.

So far, the most advanced efforts towards the development ofa standard have been made by the

IEEE Working Group on

Software Architecture

, giving rise to the

IEEE Recommended

Practice for Software Architecture Development

The

IEEE Recommended practice for Software Architecture

Development: á

Define a conceptual framework for architecture development.

á

Goal: evolve into a standard

Examples:

á

Viewpoints and Views in Structured Analysis (SA)

á

Viewpoints and Views in Object-Oriented Analysis (OOA)

Note:-DFD: Data Flow Diagram-ERD: Entity-Relation Diagram-STD: State Transition Diagram

Conceptual Model

of Architectural Description

Booch method

OMT

Unified Method 0.

OOPSLA ´

OOSE

Other methods

UML 0.

Web - June ´

public

feedback

Final submission to OMG, Sep ‘97First submission to OMG, Jan ´

UML 1.

OMG Acceptance, Nov 1997

UML 1.

UML 1.

UML partners

Creating the UML

The UML

is a language for

visualizing

,

specifying

,

constructing

and

documenting

the artifacts of a software-intensive system.

3. Architect. Description Language: the UML

UML 1.

UML 2.

Views, Models, and Diagrams -A diagram is a model in a view; a view consists of one or more models-A view is an instance of a viewpoint for a particular system:

•presented from the aspect of particular stakeholders•provides a partial representation of the system•is semantically consistent with other views

-In the UML, there are

thirteen standard diagrams

Structure diagrams

: class, object, component, deployment, composite structure, package diagrams

Behavior diagrams:

activity, state machine, use case, and interaction diagrams

Interaction diagrams

: sequence, communication, interaction overview, and timing diagrams

Use CaseDiagrams

Use CaseDiagrams

Timing

Diagrams

Use CaseDiagrams

Use CaseDiagrams

Package Diagrams

ScenarioDiagrams

ScenarioDiagrams

Use CaseDiagrams

State

Diagrams

State

Diagrams

Component

Diagrams

Component

Diagrams

Component

Diagrams Deployment

Diagrams

State

Diagrams

State

Diagrams

Object

Diagrams

ScenarioDiagrams

ScenarioDiagrams

StatechartDiagrams

Use CaseDiagrams

Use CaseDiagrams

SequenceDiagrams

State

Diagrams

State

Diagrams

Class

Diagrams

Activity Diagrams

Use CaseDiagrams

Use CaseDiagrams

Composite Structure

Diagrams

Use CaseDiagrams

Use CaseDiagrams

Communication

Diagrams

Use CaseDiagrams

Use CaseDiagrams

Interaction Overview

Diagrams

Models

Iteration N

Define iteration to addressthe highest risks

Plan and develop theiteration

Assess the iteration

Risks eliminated

Revise risk assessment

Revise projectplan

Initial risksInitial project scope

•Risk-mitigating process: technical risks are assessed and prioritized

early in the life cycle and are revised during each iteration.

•Releases are scheduled to ensure that the highest risks are tackled first.

Phases of the Rational Unified Process

-Structured along two dimensions:

•time division of the life cycle into phases and iterations•process components consisting of the production of a specific set

of artifacts with well-defined activities

-Each activity of the process component dimension typically is

applied to each phase of time-based dimension, but at a varyingdegree dependent upon the specific phase.

16

Arch

Iteration

...

Dev

Iteration

Dev

Iteration

...

Trans Iteration

...

Release

Release

Release

Release

Release

Release

Release

Release

Prelim Iteration

...

Inception

Elaboration

Construction

Transition

The process component dimension includes:

Requirements capture

: a narration of

what

the system should do

Analysis and design

: a description of

how

the system will be realized

in the implementation phase

Implementation

: the production of the code that will result in an

executable system

Test

: the verification of the entire system

Phases and Iterations (Process Component Dimension)

ManagementEnvironment

Business Modeling

Implementation

Test

Analysis & Design

Preliminary

Iteration(s)

Iter.#

Phases

Process Workflows

Iterations

Supporting Workflows

Iter.#

Iter.#n

Iter. #n+

Iter. #n+

Iter.#m

Iter. #m+

Deployment

Configuration Mgmt

Requirements

Elaboration

Transition

Inception

Construction

Unified Process Structure

Use case view

á

consists of a set of key use cases or scenarios, which guide the design of the architectureduring the inception and elaboration phases and are used later to validate the other views.

Logical view

á

addresses the functional requirements of the system; provides an abstraction of the designmodel and defines main design subsystems and classes.-

Process view

á

defines the system’s concurrency and synchronization mechanisms atrun-time (tasks, threads, processes etc.).

Deployment view

á

defines the hardware topology on which the system is executed.

Implementation view

á

defines the parts used to assemble and release the physical system (source code, data files, executables etc.).

Simple Monolithic App.

Use Case View

•Use case diagrams

Logical View

•Class diagrams•Interaction diagrams

Process View

•None required

Implementation View

•None required

Deployment View

•None required

Complex Distributed App.

Use Case View

•Use case diagrams•Activity diagrams

Logical View

•Class diagrams•Interaction diagrams•Statechart diagrams

Process View

•Class diagrams•Interaction diagrams

Implementation View

•Component diagrams

Deployment View

•Deployment diagrams