Architecture Representation Outline o Goals of Architecture Representation

  • Slides: 28
Download presentation
Architecture Representation

Architecture Representation

Outline o Goals of Architecture Representation o Foundations of Software Architecture Representation o Architecture

Outline o Goals of Architecture Representation o Foundations of Software Architecture Representation o Architecture Description Languages n n Design language elements First-class connectors Modules and Components Applying ADLs o Summary

Outline (Cont’d) o Modeling the problem and the solution domains n Problem domain models

Outline (Cont’d) o Modeling the problem and the solution domains n Problem domain models n Solution domain models o Views n Objectives and purpose models n Behavioral/functional models n Information/data models n Models of form n Nonfunctional/performance models o Summary

A Model for Representing a Software Architecture o Goals of architecture representation – a

A Model for Representing a Software Architecture o Goals of architecture representation – a representation of a system that can be used to: n n n Design a system Analyze a design Generate a system o Foundations of software architecture representation – the elements for describing an architecture are: n n n Components Connectors Architectural constraints

A Model for Representing a Software Architecture (Cont’d) o Architectural description languages – ADLs

A Model for Representing a Software Architecture (Cont’d) o Architectural description languages – ADLs are (machine readable) design languages used to describe a system that possess design language properties like: n n n Composition Abstraction Reusability Configuration Heterogeneity Analysis

Foundations of Software Architecture o Three types of constructs are necessary in representing software

Foundations of Software Architecture o Three types of constructs are necessary in representing software architectures: n n n Elements Form Rationale o Their elements are classified as: n Data n Processing n Connecting

Foundations of Software Architecture (Cont’d) o The architectural form is composed of weighted (by

Foundations of Software Architecture (Cont’d) o The architectural form is composed of weighted (by importance or necessity) properties and relationships. o Properties may be used to define constraints. o Relationships may be used to show different architectural elements interact. o Rationales capture the motivation behind various decisions; they are inferences that can be structured as an argument with the design decision being the conclusion.

Fundamental Software Design Views (Cont’d) o Architectural styles can be sequential or parallel n

Fundamental Software Design Views (Cont’d) o Architectural styles can be sequential or parallel n n In the sequential style the connecting elements are procedure calls and parameters In the parallel style the connecting element is a shared representation of the data (a repositiory)

Architecture Description Languages o Programming language structures are inadequate for describing architectural elements. o

Architecture Description Languages o Programming language structures are inadequate for describing architectural elements. o Furthermore, they provide no way to model a strict separation of concerns between architectural-level design issues and detail design issues. o Languages in general serve the purpose of describing complex relationships among primitive elements and element combinations.

Architecture Description Languages (Cont’d) o Having identified semantic constructs it makes sense to define

Architecture Description Languages (Cont’d) o Having identified semantic constructs it makes sense to define a language around them. o Common architectural description elements include: n n n (Pure) computation (processing elements) – simple input/output relations with no retained state Memory (data elements) – shared collections of persistent structured data Manager – manage state and closely related operations Controller – governs the sequence of operations Link – transmit information between elements

Common Component Interactions o Procedure call o Data flow o Implicit invocation o Message

Common Component Interactions o Procedure call o Data flow o Implicit invocation o Message passing o Shared data o Instantiation

Design Language Elements -Albin o Components – the primitive semantic elements o Operators –

Design Language Elements -Albin o Components – the primitive semantic elements o Operators – functions that combine components o Abstraction rules – allow for the definition of named expressions of components and operators o Closure rules – determines which abstractions can be added to the classes of primitive components and operators o Specification – associates semantics to syntactic forms

Design Language Elements – Shaw and Garlan o Components – the modules that compose

Design Language Elements – Shaw and Garlan o Components – the modules that compose the o o architectural level of design Operators – the inter-component connection mechanisms Patterns – design templates that solve a particular set of problems (a framework) Closure – defines the conditions under which a particular assembly of components and operators may also be used as an atomic component Specification – associates semantics such as functionality and other quality attributes to the syntactic forms

Six Classes of Properties that Should Characterize an ADL o Composition o Abstraction o

Six Classes of Properties that Should Characterize an ADL o Composition o Abstraction o Reusability o Configuration o Heterogeneity o Architectural Analysis

Composition o An ADL should allow for the description of a system as a

Composition o An ADL should allow for the description of a system as a o o o composition of components and connectors. It must support the ability to split a system or module into two modules It must support the ability to synthesize or combine modules to create new forms. These splitting or synthesis operations should be independent of implementation design decisions (choice of algorithms, data structures, connecting technology, etc. ) A composition of elements must be allowed to be viewed as a single component. It must be possible to operate on the individual components of the composition.

Abstraction o An ADL should allow a designer to focus on high-level concerns without

Abstraction o An ADL should allow a designer to focus on high-level concerns without having to think in terms of programming level constructs. o Architectural abstractions are patterns of programming language constructs. o An architect can think in terms of components and connectors focusing on the architectural concerns of modifiability, reliability, performance, etc. without having to map them to specific programming language elements.

Reusability o It should be possible to modularize a specification written in a particular

Reusability o It should be possible to modularize a specification written in a particular ADL so that the components can be used in other systems. o These specifications are reusable patterns of components. o For example, a certain client-server pattern might identify a database server component with a particular database table structure (a reusable data model). o Each physical database implementation might look different but each would have the same core data and enforce the same semantic rules.

Configuration o It should be possible with an ADL to describe a composite structure

Configuration o It should be possible with an ADL to describe a composite structure separately from its elements so that the composition can be reasoned about as an atomic element. o It should support the dynamic reconfiguration of a system in terms of restructuring compositions without knowing their internal structure. o For example, in a client/server system, an indefinite number of clients may be executing at any time.

Heterogeneity o This is the ability to mix architectural styles within a single architectural

Heterogeneity o This is the ability to mix architectural styles within a single architectural specification. o At one level, the architecture may exhibit a particular pattern of compositions, but the structure of each composition may follow a different pattern. o An ADL should allow different compositions to be compiled to different languages.

Architecture Analysis o An ADL should support the ability to analyze an architecture. o

Architecture Analysis o An ADL should support the ability to analyze an architecture. o Analysis of architecture includes both automated and non automated reasoning about quality attributes of a system. o ADL research aims to automate this analysis by providing machine-readable specifications of specific quality attribute requirements and then checking to see if the architecture specification conforms to it.

First-Class Connectors o Connectors should be considered equal to components. o Connectors often embody

First-Class Connectors o Connectors should be considered equal to components. o Connectors often embody the nonfunctional quality attributes and bring form to the architecture.

Modules and Components o “A module is a unit whose structural elements are powerfully

Modules and Components o “A module is a unit whose structural elements are powerfully connected among themselves and relatively weakly connected to elements of other units. Clearly there degrees of connection; thus gradations of modularity. ” – Baldwin o Programming languages are insufficient for representing architectural level designs because they lack explicit connecting elements. o Connecting elements are just as important from the architectural level of design as processing and data elements. o The ability to abstract the implementation of a connecting element within an architecture specification is what makes an ADL so powerful.

An ADL Example – C 2 SADL o The C 2 Software Architecture Description

An ADL Example – C 2 SADL o The C 2 Software Architecture Description Language is intended for designing a flexible, extensible componentand message- based system that has a graphical user interface. o A C 2 -based system is structured as a hierarchy of concurrent components that communicate via connectors, which are message-routing mechanisms. o A component can have at most two connectors – a top connector and a bottom connector, which attach to components either up one level in the hierarchy or down one level. o The top connector of one component is coupled with the bottom connectors of other components, and vice versa.

An ADL Example – C 2 SADL (Cont’d) o There is no limit to

An ADL Example – C 2 SADL (Cont’d) o There is no limit to the number of connectors o o that ma be coupled with a single connector. A C 2 component is only aware of the components above it, not those below. Requests go up and notifications go down. There is one component at the top. The C 2 architectural style relies on a programming language neutral event mechanism, such as a message queue.

An ADL Example – C 2 SADL (Cont’d) o C 2 SADL is composed

An ADL Example – C 2 SADL (Cont’d) o C 2 SADL is composed of three parts: n Interface Definition Notation (IDN) p Supports textual specification of C 2 component interfaces p Consists of specifications for parameters, methods, behavior, and context n Architecture Description Notation (ADN) p Supports textual specification of a C 2 architecture n Architecture Construction Notation (ACN) p Supports textural specification of architecture changes

Applying ADL’s o ADLs are not commonly used. o Most are experimental. o Understanding

Applying ADL’s o ADLs are not commonly used. o Most are experimental. o Understanding the problems that ADLs attempt to solve, can help an architect to think about the solution to a particular problem. o Understanding ADLs helps the architect to focus on the nature of connections between components.

Summary o The component level of design allows us to o o reason about

Summary o The component level of design allows us to o o reason about the properties of the system without first constructing the entire system. The fundamental language of specifying architecture design is composed of elements, form, and rationale. Elements are processing, data, and connecting Form is composed of weighted properties and relationships. Rationales capture the reasons why certain design decisions were made.

Summary (Cont’d) o Architecture Description Languages (ADLs) are high-level languages for describing the component

Summary (Cont’d) o Architecture Description Languages (ADLs) are high-level languages for describing the component view of a software system. o ADLs have not been applied much in practice. o UML is often used as an ADL even though it is inadequate. o The dependency (design) structure matrix is still one of the most powerful representation tools.