Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Analysis of Software Architectures.

Slides:



Advertisements
Similar presentations
Chapter 1 The Study of Body Function Image PowerPoint
Advertisements

1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 1 Embedded Computing.
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 5 Author: Julia Richards and R. Scott Hawley.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Applied Architectures Software Architecture Lecture 17.
Software Architecture Lecture 14
Software Architecture Lecture 5
Software Architecture Lecture 3
25 seconds left…...
We will resume in: 25 Minutes.
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Basic Concepts Software Architecture Lecture 3.
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Designing for NFPs Software Architecture Lecture 19.
Software Architecture Lecture 2
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Analysis of Software Architectures Software Architecture Lecture.
Software Connectors Software Architecture. Importance of Connectors Complex, distributed, multilingual, modern software system functionality and managing.
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Choosing Connectors Software Architecture Lecture 8.
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Software Connectors.
Analysis of Software Architectures. What Is Architectural Analysis? Architectural analysis is the activity of discovering important system properties.
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Analysis Techniques Software Architecture Lecture 14.
Analysis Techniques. Architectural Analysis in a Nutshell Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic,
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Software Connectors Software Architecture Lecture 7.
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Designing for NFPs Software Architecture Lecture 19.
Analysis of Architecture As part of the activities in coming up with a good software architecture, we should analyze the architecture that we have designed.
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Software Connectors Software Architecture Lecture 7.
Analysis of Software Architectures
Architectural Analysis. Introduction Models help to force the architects to identify issues that might missed or ignored To get useful information precisely.
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Implementing Architectures Software Architecture.
Zachary Cleaver. Analysis Definition and Purpose Architectural analysis is the activity of discovering important system properties using the system’s.
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Analysis of Software Architectures Software Architecture Lecture.
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. NFP Design Techniques Software Architecture Lecture 20.
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. NFP Design Techniques Software Architecture Lecture 20.
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Choosing Connectors Software Architecture Lecture 8.
Software Connectors Acknowledgement: slides mostly from Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic,
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Software Connectors in Practice Software Architecture.
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Brief Introduction to Software Connectors Software Architecture.
Foundations, Theory, and Practice Software Architecture Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Basic.
Analysis of Software Architectures. What Is Architectural Analysis? Architectural analysis is the activity of discovering important system properties.
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Architecture Analysis Techniques.
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Analysis of Software Architectures Infosys, Mysore December.
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Software Connectors Software Architecture Lecture 7.
Software Architecture Lecture 3
Software Architecture
Analysis of Software Architectures
Software Architecture
Software Connectors.
Software Architecture Lecture 19
Software Architecture Lecture 3
Software Architecture Lecture 2
Analysis of Software Architectures
Software Architecture Lecture 3
Software Architecture Lecture 7
Software Architecture Lecture 20
Implementing Architectures
Software Architecture Lecture 3
Software Connectors.
Software Architecture Lecture 8
Architecture Analysis Techniques
Software Architecture Lecture 3
Software Architecture Lecture 7
Software Architecture Lecture 7
Software Architecture Lecture 8
Software Architecture Lecture 8
Software Architecture Lecture 3
Software Architecture Lecture 7
Analysis of Software Architectures
Software Architecture Lecture 6
Presentation transcript:

Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Analysis of Software Architectures

Foundations, Theory, and Practice Software Architecture 2 What Is Architectural Analysis? Architectural analysis is the activity of discovering important system properties using the system’s architectural models. u Early, useful answers about relevant architectural aspects u Available prior to system’s construction Important to know 1. which questions to ask 2. why to ask them 3. how to ask them 4. how to ensure that they can be answered

Foundations, Theory, and Practice Software Architecture 3 Informal Architectural Models and Analysis Helps architects get clarification from system customers Helps managers ensure project scope Not as useful to developers Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission.

Foundations, Theory, and Practice Software Architecture 4 Formal Architectural Models and Analysis Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission. Component UserInterface Port getValues Port calculate Computation Connector Call Role Caller = Role Callee = Glue = Configuration LunarLander Instances DS : DataStore C : Calculation UI : UserInterface CtoUIgetValues, CtoUIstoreValues, UItoC, UItoDS : Call Attachments C.getValues as CtoUIgetValues.Caller DS.getValues as CtoUIgetValues.Callee C.storeValues as CtoUIstoreValues.Caller DS.storeValues as CtoUIstoreValues.Callee UI.calculate as UItoC.Caller C.calulate as UItoC.Callee UI.getValues as UItoDS.Caller DS.getValues as UItoDS.Callee End LunarLander. Helps architects determine component composability Helps developers with implementation- level decisions Helps with locating and selecting appropriate OTS components Helps with automated code generation Not as useful for discussions with non-technical stakeholders

Foundations, Theory, and Practice Software Architecture 5 Concerns Relevant to Architectural Analysis Goals of analysis Scope of analysis Primary architectural concern being analyzed Level of formality of architectural models Type of analysis Level of automation System stakeholders interested in analysis

Foundations, Theory, and Practice Software Architecture 6 Architectural Analysis Goals The four “C”s u Completeness u Consistency u Compatibility u Correctness

Foundations, Theory, and Practice Software Architecture 7 Architectural Analysis Goals – Completeness Completeness is both an external and an internal goal It is external with respect to system requirements u Challenged by the complexity of large systems’ requirements and architectures u Challenged by the many notations used to capture complex requirements as well as architectures It is internal with respect to the architectural intent and modeling notation u Have all elements been fully modeled in the notation? u Have all design decisions been properly captured?

Foundations, Theory, and Practice Software Architecture 8 Architectural Analysis Goals – Consistency Consistency is an internal property of an architectural model Ensures that different model elements do not contradict one another Dimensions of architectural consistency u Name u Interface u Behavior u Interaction u Refinement

Foundations, Theory, and Practice Software Architecture 9 Name Consistency Component and connector names Component service names May be non-trivial to establish at the architectural level u Multiple system elements/services with identical names u Loose coupling via publish-subscribe or asynchronous event broadcast u Dynamically adaptable architectures

Foundations, Theory, and Practice Software Architecture 10 Interface Consistency Encompasses name consistency Also involves parameter lists in component services A rich spectrum of choices at the architectural level Example: matching provided and required interfaces ReqInt: getSubQ(Natural first, Natural last, Boolean remove) returns FIFOQueue; ProvInt1: getSubQ(Index first, Index last) returns FIFOQueue; ProvInt2: getSubQ(Natural first, Natural last, Boolean remove) returns Queue;

Foundations, Theory, and Practice Software Architecture 11 Behavioral Consistency Names and interfaces of interacting components may match, but behaviors need not Example: subtraction subtract(Integer x, Integer y) returns Integer; u Can we be sure what the subtract operation does? Example: QueueClient and QueueServer components QueueClient – getFront precondition q.size > 0; postcondition ~q.size = q.size; QueueServer – getFront precondition q.size > 1; postcondition ~q.size = q.size - 1;

Foundations, Theory, and Practice Software Architecture 12 Interaction Consistency Names, interfaces, and behaviors of interacting components may match, yet they may still be unable to interact properly Example: QueueClient and QueueServer components Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission.

Foundations, Theory, and Practice Software Architecture 13 Refinement Consistency Architectural models are refined during the design process A relationship must be maintained between higher and lower level models u All elements are preserved in the lower level model u All design decisions are preserved in the lower-level model  No new design decisions violate existing design decisions

Foundations, Theory, and Practice Software Architecture 14 Refinement Consistency Example Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission.

Foundations, Theory, and Practice Software Architecture 15 Architectural Analysis Goals – Compatibility Compatibility is an external property of an architectural model Ensures that the architectural model adheres to guidelines and constraints of u a style u a reference architecture u an architectural standard

Foundations, Theory, and Practice Software Architecture 16 Architectural Compatibility Example – Lunar Lander Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission. What is the style of this architecture?

Foundations, Theory, and Practice Software Architecture 17 Architectural Analysis Goals – Correctness Correctness is an external property of an architectural model Ensures that 1. the architectural model fully realizes a system specification 2. the system’s implementation fully realizes the architecture Inclusion of OTS elements impacts correctness u System may include structural elements, functionality, and non-functional properties that are not part of the architecture u The notion of fulfillment is key to ensuring architectural correctness

Foundations, Theory, and Practice Software Architecture 18 Scope of Architectural Analysis Component- and connector-level Subsystem- and system-level u Beware of the “honey-baked ham” syndrome Data exchanged in a system or subsystem u Data structure u Data flow u Properties of data exchange Architectures at different abstraction levels Comparison of two or more architectures u Processing u Data u Interaction u Configuration u Non-functional properties

Foundations, Theory, and Practice Software Architecture 19 Data Exchange Example Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission.

Foundations, Theory, and Practice Software Architecture 20 Architectures at Different Abstraction Levels Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission.

Foundations, Theory, and Practice Software Architecture 21 Architectural Concern Being Analyzed Structural characteristics Behavioral characteristics Interaction characteristics Non-functional characteristics

Foundations, Theory, and Practice Software Architecture 22 Level of Formality Informal models Semi-formal models Formal models

Foundations, Theory, and Practice Software Architecture 23 Type of Analysis Static analysis Dynamic analysis Scenario-driven analysis u Can be both static and dynamic

Foundations, Theory, and Practice Software Architecture 24 Level of Automation Manual Partially automated Fully automated

Foundations, Theory, and Practice Software Architecture 25 Analysis Stakeholders Architects Developers Managers Customers Vendors

Foundations, Theory, and Practice Software Architecture 26 Architectural Analysis in a Nutshell Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission.