Creating Architectural Descriptions Outline n Standardizing architectural descriptions

  • Slides: 26
Download presentation
Creating Architectural Descriptions

Creating Architectural Descriptions

Outline n Standardizing architectural descriptions: n The IEEE has published, “Recommended Practice for Architectural

Outline n Standardizing architectural descriptions: n The IEEE has published, “Recommended Practice for Architectural Description of Software-Intensive Systems” (IEEE 1471). n The standard does not specify what views an architectural description should have, but rather how those views should be specified. n Creating an architectural description n The architectural description is composed of views that address a set of stakeholders and their concerns, and which contain a model of some aspect of the system. n Applying the architectural description n The architectural description is necessary to perform an architectural assessment.

Introduction n An architectural description is a set of representation models grouped into views.

Introduction n An architectural description is a set of representation models grouped into views. n Views represent certain aspects of the system, each addressing a set of related concerns. n Views are specified by viewpoints. n A viewpoint identifies system stakeholders and the concerns addressed, as well se modeling languages and modeling techniques used to create views.

Standardizing Architectural Descriptions IEEE 1471 Elements Mission inhabits Environment 1…* System influences 1…* is

Standardizing Architectural Descriptions IEEE 1471 Elements Mission inhabits Environment 1…* System influences 1…* is ad-dressed to 1 is important to 1…* has an Architecture 1…* has Stakeholder 1…* fulfills has 1…* identifies Concern 1…* described by Architectural Description provides Rationale participates in used to cover 1 … * selects Viewpoint 0… 1 conforms to has source Viewpoint Library 1 … * organized by View 1 … * participates in 1…* consists of Model

Standardizing Architectural Descriptions (Cont’d) n In the terminology of the IEEE 1471, a system

Standardizing Architectural Descriptions (Cont’d) n In the terminology of the IEEE 1471, a system has an architecture which is described by an architectural description. n An architectural description is organized by one or more views, each of which consists of one or more models and conforms to a viewpoint. n An architectural description selects one or more viewpoints, each of which covers one or more stakeholder concerns. n The IEEE 1471 definition of an architectural description is “a collection of products to document an architecture.

Standardizing Architectural Descriptions (Cont’d) n By applying the IEEE 1471 you can reduce the

Standardizing Architectural Descriptions (Cont’d) n By applying the IEEE 1471 you can reduce the semantic gap between client’s requirements and implementation-oriented models. n An effective architectural description identifies a target audience (the stakeholders) and their concerns. n The stakeholders and their concerns define the scope and purpose for what software developers specify and a clear context in which to write them.

Creating an Architectural Description n The initial activities: 1. 2. 3. 4. 5. 6.

Creating an Architectural Description n The initial activities: 1. 2. 3. 4. 5. 6. 7. Identify the architectural description, including version and overview information. Identify stakeholders, their roles, and their architectural concerns. Select viewpoints Specify views Record known inconsistencies among the views. Create a rationale for the architecture.

Identify the Architectural Description n The IEEE 1471 recommends that the architectural description the

Identify the Architectural Description n The IEEE 1471 recommends that the architectural description the following as it relates to all of the architectural description products as a whole: n n n n Date of issue and status Issuing organization Change history Summary Scope Context Glossary References

Identify Stakeholders n The architectural description serves as the medium for communicating design decisions

Identify Stakeholders n The architectural description serves as the medium for communicating design decisions among stakeholders through the actual models of the description. n As a minimum the identified stakeholders must include: Users of the system n Acquirers of the system n Developers of the system n Maintainers of the system n

Identify Stakeholders (Cont’d) n The minimum concerns identified should include the following: The purpose

Identify Stakeholders (Cont’d) n The minimum concerns identified should include the following: The purpose of the application n The appropriateness of the application for use in fulfilling its purpose n The feasibility of developing the application n The risks of application development and operation to the stakeholders n Maintainability, deployment, and evolvability of the application n

Select Viewpoints n A viewpoint is a specification for the techniques and n n

Select Viewpoints n A viewpoint is a specification for the techniques and n n n models of constructing views, i. e. , a metamodel. A view is a set of models and diagrams that conform to the viewpoint. Viewpoints specify the rules and practices for creating, representing, and analyzing views. A viewpoint specifies the modeling languages to be used for describing or representing a view. In the language of the IEEE 1471, and architectural description selects one or more viewpoints, which are used to create its views. This selection is based on the stakeholders.

Specify Viewpoints n The IEEE standard recommends specifying the following for each viewpoint: The

Specify Viewpoints n The IEEE standard recommends specifying the following for each viewpoint: The viewpoint name n The stakeholders addressed by the viewpoint n The concerns addressed by the viewpoint n The methodology for constructing a view based on the viewpoint n The source of a library viewpoint, if applicable n

Viewpoint Rationale n According to IEEE 1471 a rationale should be included for each

Viewpoint Rationale n According to IEEE 1471 a rationale should be included for each viewpoint selected. n It should explain the extent to which the concerns of stakeholders are covered. n Quality attributes can be expressed as system concerns if they are defined explicitly. n Viewpoints can then be selected to reason about the qualities.

Viewpoints and Systems Knowledge n The lowest level of systems knowledge is the knowledge

Viewpoints and Systems Knowledge n The lowest level of systems knowledge is the knowledge of which dimensions of a system we wish to observe. n In systems design these dimensions can be equated with viewpoints specifically designed for organizing and expressing system requirements. n The views created based on these viewpoints are referred to as analysis models and represent knowledge at the data level of systems knowledge. n Viewpoints and views that represent the solution are at the generative level of system knowledge and are referred to as the design models.

Interdependence of Views n No single view can capture or represent a system. n

Interdependence of Views n No single view can capture or represent a system. n All views must be considered together. n They are interdependent and a change to one may require changes to others. n Isolating certain system aspects can facilitate reasoning about those aspects. n Each view should be highly coherent and they should be loosely coupled

Traceability n This is the capability to semantically relate design elements or concepts across

Traceability n This is the capability to semantically relate design elements or concepts across models and views. n In UML a trace is a dependency relationship between two modeling elements in different models that represent the same element or concept by at different semantic levels within and across views. n In small-scale design, traces are implicit and are usually inherent in the naming conventions of elements in models. n For larger designs automated tools are needed to effectively handle traces.

Methodologies and Viewpoints n Methodologies (like OMT) typically specify viewpoints n n along with

Methodologies and Viewpoints n Methodologies (like OMT) typically specify viewpoints n n along with the methods for generating the models that form the design views. OMT (Object Modeling Technique) specifies three viewpoints: object, dynamic, and functional. The object view specifies the static structure of the system using object diagrams. The dynamic view specifies the behavioral aspects of the system using event trace diagrams, event flow diagrams, and state diagrams. The functional view specifies the data transformations within the system using data flow diagrams.

Methodologies and Viewpoints (Cont’d) n These views are orthogonal, yet interdependent. n The object

Methodologies and Viewpoints (Cont’d) n These views are orthogonal, yet interdependent. n The object view is the fundamental view and the starting point of design activities. n These three view are used for both analysis and design which yields a total of six different viewpoints. n Other methodologies have similar concepts of multiple views of a system that represent the problem and solution expressed in modeling notations and specified in diagrams. n They bring together many different views and methods for generating those views along with methods for maintaining consistency across views.

Specify Views n The architectural description will have one view per selected viewpoint containing

Specify Views n The architectural description will have one view per selected viewpoint containing the actual models of the system. n According to IEEE 1471 a view should include identification and introductory information, a representation of the system and configuration information. n An effective architecture model is one that is necessary and sufficient.

Record View Inconsistencies n Consistency is desirable in an architectural description but not always

Record View Inconsistencies n Consistency is desirable in an architectural description but not always achievable. n Inconsistencies among the views should be documented. n For example, an element in one view may not have an obvious representation in another.

Create Architectural Rationale n The IEEE 1471 states that an architectural description should include

Create Architectural Rationale n The IEEE 1471 states that an architectural description should include a rationale for selected architectural concepts. n Additionally, the reasons for particular design choices should be described. n The rationale should answer the questions that stakeholders may typically ask.

Applying the Architectural Description n The amount of information necessary to create an IEEE

Applying the Architectural Description n The amount of information necessary to create an IEEE 1471 compliant architectural description is significant. n The goal is not to produce extensive documentation but to guide the development of an effective architectural specification. n The IEEE 1471 practice is a pattern or heuristic approach to figuring out what you should actually write down. n It takes good judgment on the part of the architect to achieve a balance between what to specify an how much to specify

Creating an Architectural Description for an Existing System n As an architect you may

Creating an Architectural Description for an Existing System n As an architect you may need to develop an architectural description for a system already well into development or to modify an existing system. n If an architectural description does not exist you may need to reverse-engineer the system. n Although design decisions may not have been documented it is important to understand the rationale that was used to take the chosen path to design of the system.

Performing an Architectural Assessment n An architectural assessment is important in determining the quality

Performing an Architectural Assessment n An architectural assessment is important in determining the quality of the architecture. n It can help predict the quality of the application that will be developed. n If the architectural description is not easy to understand, or inconsistent, or incomplete then an assessment may be difficult.

Specific Pragmatics n Implementing an architectural description is difficult because there are too many

Specific Pragmatics n Implementing an architectural description is difficult because there are too many ways to do it. n You should consider an approach that balances the management of information with other factors like readability and searchability. n Use automated tools where possible, like bug tracking tools to manage view inconsistencies. n The biggest hurdle in creating an architectural description is in getting the recessary people to read it.

Summary n The architectural description is a tangible set of products that comprise the

Summary n The architectural description is a tangible set of products that comprise the architectural models and the information necessary to understand the models. n The IEEE 1471 recommended practice may be excessive if followed completely, but it provides a practical set of guidelines that can help the architect to focus on the important goals of producing an architectural description.