Docsity

Architectural Documentation - Lecture Notes | CS 6300, Study notes of Computer Science

Partial preview of the text

Download Architectural Documentation - Lecture Notes | CS 6300 and more Study notes Computer Science in PDF only on Docsity!

Architectural Documentation

• Kruchten's 4+1 Views

– Philippe B. Kruchten. "The 4+1 View Model of

Architecture." IEEE Software, 12(6):42-50, November

– Logical, developmental, process, physical,

use case

– Features, non-functional requirements, bug

reporting, context, utility

Logical View

• Structural breakdown of computational,

communicational and behavioral

responsibilities

• Diagrams:

– Box and arrow

– Components and connectors (ADLs)

– UML Class model diagram

– UML Interaction Overview diagram

– UML Collaboration diagram

Example Class Diagram with

Packages

Package Diagram

Process View

• Processes and threads into which

execution is divided

• Diagrams

– UML Deployment diagram

Example

Deployment

Diagram

server : HostMachine : Scheduler meetingsDB reservations clientMachine : PC : Planner <>

Example

Sequence

Diagram

: Transaction c : Client p : ODBCProxy <> setActions(a, d, o) committed <> setValues(d, 3.4) setValues(a, "CO") {transient}

Use Case View

• Important execution sequences from the

external actors' points of view

• Diagrams

– UML Use Case diagram

– UML Communication (Collaboration) diagram

– UML Sequence diagram

– UML Activity diagram

– Structured text

c : Client

: Transaction p : ODBCProxy

2.1: setValues(d, 3.4)

2.2: setValues(a,"CO")

«global »

:^

c re a te

:^

c o m m it te d

s e t

A

c t io n

a

,^

d

,^

o

:^

d e s tr o y

lo c a l^

Equivalent

Collaboration

Diagram

Example

Activity

Diagram

Set up order Assign seats Assign seats Charge credit card Award member bonus Debit account Mail packet [single order] [subscription] [member?] BoxOffice::ReceiveOrder

Example

Car Car Body Transmission Engine Pulls Trailer Automatic Manual Electric Gasoline

• Mandatory features:

• Optional features:

• Alternative features:

– Choose exactly one

• Or features:

– Choose a subset

Notation

Bug Reporting

• Units to which bugs are allocated

– Consequences with respect to Developmental

view

– Consequences with respect to Feature view

• Bugzilla components

Context View

• Relationship of a system to its

environment

– External actors, events and percepts

• (Data flow) Context diagram