Chapter 4
An Architecture Viewpoint for Modeling Dynamically Configurable Software Systems
B. Tekinerdogan * ; H. Sozer † * Wageningen University, Wageningen, The Netherlands
† Ozyegin University, Istanbul, Turkey
Abstract
Current software systems are rarely static and need to be able to change their topology and behavior to the changing context. To support the communication among stakeholders, guide the design decisions, and analyze the architecture it is important to model the adaptability concerns explicitly. In practice, architectural concerns are represented using architecture views that are derived from the corresponding architecture viewpoints. Different software architecture viewpoints have been introduced but runtime adaptability has not been broadly considered and remains implicit in the architecture views. In this paper we introduce the adaptability viewpoint that can be used for modeling dynamically configurable software architectures. We illustrate the viewpoint for a demand-driven supply chain management system.
Keywords
Software architecture modeling; Architectural views; Runtime configuration; Dynamic configuration; Runtime adaptability
4.1 Introduction
Dynamic system configurability defines the ability to modify and extend a system while it is running. This is an important requirement for an increasing number of software-intensive systems in which it is not possible or economically feasible to stop the complete system and modify it to meet new requirements. Dynamic configurability is not only important during operation of the system but can also be useful during development time. In fact, many systems are now being developed in an incremental manner in which dynamic configurability is also useful during the incremental integration of the components in the system.
Dynamic software architectures support reconfigurations of their structures during execution and as such aid system evolution. A current practice to model software architectures is usually based on architecture views to separate the concerns and as such support the modeling, understanding, communication, and analysis of the software architecture for different stakeholders. An architecture view is a representation of a set of system elements and relations associated with them to support a particular concern [ 14 ]. Architectural views conform to viewpoints that represent the conventions for constructing and using a view. Given the complexity of applications where necessary new viewpoints have been defined to address new concerns. In this paper we focus on dynamic configurability in software architecture. Considering the existing viewpoint approaches we can observe that the modeling of dynamic configurability is not explicitly considered. This seems to be the case for quality concerns in general. The ISO/IEC 42010 [ 2 ] standard intentionally does not define particular viewpoints to address the different concerns. In the Views and Beyond (V&B) approach, quality concerns appear to be implicit in the different views and specific viewpoints have to be introduced to represent quality concerns [ 3 – 6 ]. Software architecture analysis approaches have been introduced [ 7 ] to analyze the software architecture and provide guidelines for adapting it with respect to the quality concern. However, the difficulty here is that these approaches usually apply a separate quality model, such as Markov models, queuing networks or process algebra, to analyze the quality properties. Although these models represent precise calculations they do not depict the decomposition of the architecture and an additional translation from the evaluation of the quality model needs to be performed [ 8 ].
To represent runtime adaptability concerns more explicitly, preferably an explicit dedicated architectural view is required to model the decomposition of the architecture based on the runtime adaptability concern. In this context, we introduce the runtime adaptability viewpoint that can be used for modeling dynamically configurable software architectures. The viewpoint has been defined after a domain analysis to both dynamic configurability and software architecture viewpoint modeling. The viewpoint is based on a metamodel that defines the underlying semantics. Further we provide the necessary notation for supporting software architects in modeling dynamic configurability concerns of software architectures. We illustrate the viewpoint for a demand-driven supply chain management (DDSCM) system in which the dynamic configurability plays an important aspect.
The remainder of this paper is organized as follows. Section 4.2 provides background information regarding architecture viewpoints. Section 4.3 introduces the case study as a motivating example where runtime adaptability becomes a relevant concern. Section 4.4 presents the related concepts and a metamodel for runtime adaptability viewpoint. Section 4.5 introduces a concrete notation and a method for applying this viewpoint. Section 4.6 describes the application of the viewpoint for the case study. Section 4.7 presents the related work and finally Section 4.8 provides the conclusions.
4.2 Architecture Viewpoints
Software architecture is an abstract representation that serves various purposes including the understanding of the system, communication among the stakeholders, guideline for supporting the life cycle activities, support for organizational concerns such as work allocation, budget planning and development structure of the software development project [ 9 ].
In practice, software architecture is modeled and documented using architecture views , which are basically representations of a system for particular concerns. In the literature, initially a fixed set of viewpoints have been proposed to document the architecture [ 10 – 13 ]. Because of the different concerns that need to be addressed for different systems, the current trend recognizes that the set of views should not be fixed but multiple viewpoints might be introduced instead. The ISO/IEC 42010 standard [ 2 ] indicates in an abstract sense that an architecture description consists of a set of views, each of which conforms to a viewpoint realizing the various concerns of the stakeholders. The V&B approach as proposed by Clements et al. is another multiview approach [ 14 ] that proposes the notion of architectural style similar to the notion of architectural viewpoint. For addressing the general concerns, we shall use the viewpoints in the V&B approach [ 14 ]. In this approach, typically the notions of view category and style are used to define viewpoints. Hereby, three different view categories are identified:
• Module view category that is used for documenting a system's principal units of implementation
• Component and connector ( C&C ) category that is used for documenting the system's units of execution
• Deployment view category that is used to document the relationships between a system's software and its development and execution environments
Although the V&B approach has defined a predefined set of architectural styles it is also possible to define new styles for particular concerns. Views are instantiations of styles. The relations between view category, style and view is depicted in Fig. 4.1 .
Fig. 4.1 Relations among view category, style, and view in the V&B approach.
To define new viewpoints, the guidelines and templates of the recommended standard for architecture description can be adopted [ 2 ].
4.3 Case Study: DDSCM Systems
A supply chain is defined as a system consisting of organizations, people, activities, information, and resources involved in moving a product or service from supplier to customer. Supply chain activities transform natural resources, raw materials, and components into a finished product that is delivered to the end customer [ 15 ]. Due to the increased global competition many companies are forced to improve their efficiency of the supply chain using systematic supply chain management (SCM) approaches. A conceptual model for SCM is shown in Fig. 4.2 .
Fig. 4.2 A conceptual model of supply chain management.
The underlying idea for SCM is based on the observation that practically every product that reaches an end user represents the cumulative effort of multiple organizations defining the supply chain. SCM, as such, is the active management of supply chain activities to maximize customer value and achieve a sustainable competitive advantage [ 15 ]. SCM activities typically include the management of the flow of materials, information, and finances in a process from supplier to manufacturer to wholesaler to retailer to consumer. Further, SCM involves coordinating and integrating these flows both within and among companies. To provide an effective SCM it is important to develop the appropriate software architecture for it [ 16 – 19 ].
In SCM, we can identify different entities that require input, process this input, and deliver this to the next entity. The overall supply chain network consists of organizations moving a product or service from supplier to customer. Currently, an increasing number of organizations focus on so-called DDSCMs [ 17 ]. The main motivation for DDSCM is to manage and optimize the material and information flow that propagates up the supply chain from the source of demand to the suppliers. Usually customer demand is rarely stable and likewise businesses must forecast demand to properly position inventory and other resources.
To meet the requirements for DDSCMs, the corresponding software system and likewise the architecture must be dynamically adaptable. We can identify the following important components in a SCM system:
• Enterprise resource planning ( ERP ) systems —providing services for purchase management, production management, and sales management, in particular for manufacturers and trading companies
• Warehouse management systems ( WMS )—providing services for logistics, in particular for wholesalers
• Transport management systems ( TMS )—providing services for transport booking, planning, and monitoring
The deployment architecture for a general SCM system is presented in Fig. 4.3 . The architecture follows the guidelines of the so-called supply-chain operations reference model which is a process reference model for SCM [ 15 ]. The architecture consists of five different node types: supplier , manufacturer , distributor , warehouse, and retailer . Note that each node has three similar components including report engine , message conversion engine, and data communication engine . Further each node has also its' specific type of components. Finally, a manufacturer node is connected to an ERP system, a distributor to a TMS, and a warehouse to a WMS. To model DDSCMs, the components and nodes need to be dynamically configurable. This means that for example, a supplier node can be replaced by another supplied node, or a copy of the report engine can be transferred to the other nodes etc. In the following section, we introduce a metamodel for runtime adaptability viewpoint to capture such dynamic configuration capabilities.
Fig. 4.3 General deployment view for supply chain management system.
4.4 Metamodel for Runtime Adaptability Viewpoint
In Fig. 4.4 we show the conceptual model for architectural view modeling. In fact, the conceptual model is based on the ISO/IEC recommended standard for architectural description [ 2 ] but it enhances the standard to explicitly depict quality concerns and defines their relation to architectural views. The left part of the figure shows basically the definition of the architectural drivers. A system has one or more stakeholders who have interest in the system with respect to one or more concerns. Concerns can be functional or quality related. The right part of the figure focuses on the architectural views for the different concerns. Each system has an architecture, which is described by an architectural description. The architectural description consists of a set of views that correspond to their viewpoints. Viewpoints aim to address the stakeholder's concerns. Functional concerns will define the dominant decomposition along architectural units that are mainly functional in nature. On the other hand, quality concerns will define the dominant decomposition of the architecture along architectural units that explicitly represent quality concerns. Runtime adaptability is a specific quality concern that is addressed by runtime adaptability view. Run-adaptability is not directly considered in the other viewpoints.
Fig. 4.4 Conceptual model for architectural views and the relation of runtime adaptability. Based on IEEE Standard: ISO/IEC 42010:2007 Recommended practice for architectural description of software-intensive systems (ISO/IEC 42010), July 2007.
To define the foundation for the runtime adaptability viewpoint we have performed a domain analysis regarding architectural frameworks introduced for dynamic configurability. These frameworks employ different adaptation mechanisms. We have reviewed these mechanisms and we focus on the adaptation capabilities that they can provide. For providing adaptability, one also needs to decide on the type of adaptation mechanism. However, we decided not to integrate this in the viewpoint because we aim to provide a generic viewpoint in which we address only what can be adapted. We did not wish to fix the mechanisms. The viewpoint is agnostic to the adaptation mechanisms and as such could be used together with existing adaptation frameworks. However, our approach allows the extension of the viewpoint to include also the mechanisms for adaptation.
Existing frameworks assume either a component-based architecture [ 20 – 25 ] or service-oriented architecture (SOA) [ 26 ]. So, reconfigured architectural elements are components, connectors, or services. We have observed that the majority of the existing approaches mainly focus on the C&C view to depict the runtime structure and reason about dynamic adaptation [ 20 – 23 , 25 , 27 ]. Hence, the proposed viewpoint mainly relies on the C&C viewpoint as defined by the V&B approach [ 14 ]. The following figure depicts a metamodel of the viewpoint as described in this approach ( Fig. 4.5 ).
Fig. 4.5 A metamodel of the C&C viewpoint as described by V&B approach [ 14 ].
In the C&C viewpoint, there are two basic types of elements: component types that represent principal processing units and data stores, and connector types that represent interaction mechanisms. Each of these elements has two properties: a name that suggests its functionality, and a type that determines the general functionality and constraints for the element. Every component has one or more ports . These ports have names that suggest the corresponding interface of the component. On the other hand, every connector has two or more roles . These roles have names that suggest the interacting parties. There is an attachment relation defined between a port and one or more roles.
As stated in the V&B approach many C&C styles allow C&Cs to be created or destroyed as the system is running. For example, in client-server based systems new server instances might be created as the number of client requests increases. In a peer-to-peer system, new components may dynamically join or leave the peer-to-peer network. In principle, any C&C style supports the dynamic creation and destruction of elements.
In addition to the C&C views, allocation views [ 14 ] are also highly relevant for runtime adaptability. These views document a mapping between software elements and nonsoftware elements in the context of the system [ 14 ]. In particular, deployment views constitute a type of allocation view, which describes a mapping between software elements and hardware elements in the computing platform. These views conform to the deployment style and they are relevant for dynamic reconfiguration because the allocation of software elements can be dynamic. Three types of dynamic relations are defined for deployment views in the V&B approach [ 14 ]: (1) migrates - to : a software element can move from one processor to another processor, (2) copy - migrates - to : a software element can be copied to another processor and different copies can execute on different processors at the same time, (3) execution - migrates - to : a software element can be copied to another processor, where only one of the copies can be executed at a time. The corresponding metamodel is depicted in Fig. 4.6 . Migration relations are mainly triggered by changing application profiles and operational context for supporting quality concerns such as performance, availability, reliability, and security [ 14 ]. For example, performance improvements can be achieved by deploying some components together when the frequency of intercommunication is increased. Some components can be migrated for isolating them from the other components to improve reliability [ 4 ] or security. Resource utilization and hardware faults can also trigger a migration.
Fig. 4.6 A metamodel of the deployment style as described by V&B approach.
To support the viewpoint for runtime adaptability and dynamic configurability we have integrated the metamodels of Figs. 4.5 and 4.6 as shown in Fig. 4.7 .
Fig. 4.7 A metamodel of the viewpoint for dynamic configurability.
Dynamic configurability is facilitated in three ways (1) adaptation of elements by change of mode, state, parameters [ 20 , 28 , 29 ], (2) replacement of elements [ 22 , 23 , 26 ] leading to a structural change [ 28 , 29 ], (3) migration of elements to different nodes. In general, formal specifications for dynamic software architectures utilize the second one; they define reconfigurations as a series of C&C addition/removal operations [ 30 ]. To differentiate between elements that can be subject to configurability, we have introduced adaptable components and adaptable connectors. Such a distinction is also being made in existing frameworks [ 22 ]. In some of the existing approaches, communication is assumed to be asynchronous and architectural elements are assumed to be stateless and independent [ 26 ]. However, in some other approaches, architectural elements can be interdependent and they can be stateful [ 22 , 23 ]. This makes a difference because adaptable components that are stateful provide means for loading and storing state information [ 22 , 25 ]. In principle, connectors can also involve rich semantics [ 14 ] just like components. For this reason, we also distinguished between stateful and stateless connectors in our viewpoint as depicted in the metamodel.
4.5 Runtime Adaptability Viewpoint
Once we have identified the important concepts regarding runtime adaptability and defined the metamodel we can define the corresponding viewpoint. Defining a new architectural viewpoint implies writing a viewpoint guide . This is similar to the notion of style guide as defined in Ref. [ 14 ]. The viewpoint guide includes the vocabulary of the architectural element and relation types, and describes the rules for how that vocabulary can be used. The adaptability viewpoint guide that we have defined is shown in Table 4.1 . Hereby, we focus on capturing the adaptability capabilities of the managed system [ 31 ], rather than the adaptation mechanism involved [ 32 ]. The viewpoint guide for dynamic configurability is largely the same as for the viewpoints that address functional concerns. The important difference here is that the architectural elements now are used to explicitly represent dynamic configurability properties in the software architecture. These properties are aligned with the introduced metamodel.
Table 4.1
Runtime Adaptability Viewpoint
| Viewpoint Element | Description |
|---|
| Name | Runtime adaptability viewpoint:
C&C viewpoint U deployment style |
| Element types | • Adaptable component (AC): represents a component that can be adapted• Stateful component (SC): represents an AC that keeps state information to be considered when replaced by another component• Adaptable connector (ACN): represents a connector that can be adapted• Stateful connector (SCN): represents an ACN that keeps state information to be considered when replaced by another connector• Adaptable node (AN): represents a processing element that can be tuned at runtime• The other types as they are defined for the C&C viewpoint and deployment style |
| Relation types | • Replaces relation as defined by the metamodel• Migrates relations as defined by the metamodel• The other types as they are defined for the C&C viewpoint and deployment style |
| Properties of elements | Mode: the active mode among the possible set of modes that can be activated by runtime adaptation |
| Properties of relations | Mode: the active mode among the possible set of modes that can be activated by runtime adaptation |
| Topology constraints | Same as the C&C viewpoint and deployment style |
| Notation |
Communication path
Deployed to
Migrates-to
Copy-migrates-to
Exec-migrates-to
Replaces
| | Relation to other views/viewpoints | Same as the C&C viewpoint and deployment style |
Note that the viewpoint provides two complementary ways in terms of notation. The first option is to use visual representations of different element types. These representations are created by minor alterations (like a stereotype definition) of the commonly used representations [ 14 ].
The second option is to represent relations by mapping the involved elements with each other in a table, which provides another overview of these relations. There are three such tables to represent (1) relations among C&Cs, (2) relations between C&Cs and nodes, and (3) relations among nodes.
The first table includes the set of C&Cs both in the rows and the columns. The cells on the diagonal are used for marking possible adaptations of the corresponding C&C with symbol A . If a C&C can be replaced by another C&C, the corresponding cell is marked with the symbol R . If there is also a state transfer during replacement, the symbol RS is used instead. A C&C can be replaced with a replica in a different state. In this case, again the RS symbol is marked in the corresponding cell on the diagonal.
The second table includes the set of C&Cs in the rows and the set of nodes in the columns. Symbols in the cells define where each C&C is initially deployed, and where it can be potentially migrated. There is symbol for each migration type as defined by the metamodel.
The third table includes the set of nodes both in the rows and the columns. The cells on the diagonal are used for marking possible adaptations of the corresponding node with symbol A . If a node can be replaced by another node, then the corresponding cell is marked with the symbol R .
In the following subsection, we introduce a method for applying this viewpoint. Then, in the following section, we shall provide an example application of the viewpoint in the context of the SCM case study.
4.5.1 Method for Applying the Adaptability Viewpoint
So far, we have defined the runtime adaptability viewpoint that can be used to define runtime adaptability views for particular applications. In this section we provide the method for applying the viewpoint as shown in Fig. 4.8 . The method starts with defining the C&C view as well as the deployment view. Based on these provided two views, the nodes, the components, and the connectors will be analyzed and their characteristics will be identified with respect to the requirements for runtime adaptability. The characterization will be based on the possible properties as defined in the metamodel and viewpoint. As such, components will be, for example, characterized as regular component, adaptable component, or stateful component. After the characterization of the separate elements the relations will be considered including the node-to-node, C&C-to-node, and C&C-to-C&C relations. These will be again defined based on the relations defined in the viewpoint. Subsequently, the runtime adaptability view will be defined that meets the characterization of the architectural elements and the identified adaptability relations. The presented view is evaluated and if needed necessary iterations will be carried out.
Fig. 4.8 Method for applying runtime adaptability viewpoint.
4.6 Case Study—Adaptability View of the SCM Software Architecture
We have applied the runtime adaptability viewpoint for documenting possible runtime adaptations that can take place in the SCM software architecture. Fig. 4.9 depicts some of these adaptations.
Fig. 4.9 Adaptability view for part of the SCM software architecture.
Hereby, eight nodes are shown. Two of them (MM and AM) are dedicated for manufacturing process. Four of them (MD, AD, ED, EED) are dealing with distribution. One node (W) is used for storage, and another one (ERP) is keeping the overall management system and related components. Different types of runtime adaptability relations can be seen here. For instance, we can see that TTM-S component can replace TTM component. Tracking and tracing functionalities can change depending on the goods that are distributed in a SCM system. TTM provides only the basic functionalities. TTM-S is used for sensitive products like food and medicine that has to be tracked with respect to many attributes such as shelf life, temperature, etc.
It can be observed in the figure that the view quickly gets cluttered with many relations depicted to represent different types of runtime adaptations. As a complementary notation, table-based views can be used to capture runtime adaptability options for the overall SCM software architecture. This approach leads to more readable and scalable documentation for systems that involve a high number of adaptation relations.
In the following, we document runtime adaptability for the same system with three tables that conform to the viewpoint notation listed in Table 4.1 . Tables 4.2 – 4.4 list runtime adaptability relations between C&Cs and nodes, among C&Cs, and among nodes, respectively.
Table 4.2
Runtime Adaptability Relations Among C&Cs
| C&C | C&C |
|---|
| PM | TTM | TTM-S | RE | IM |
|---|
| PM | RS | ||||
| TTM | |||||
| TTM-S | R | ||||
| RE | |||||
| IM | A |
Table 4.3
Runtime Adaptability Relations Between C&Cs and Nodes
| C&C | Node |
|---|
| MM | AM | MD | AD | ED | EED | W | ERP |
|---|
| PM | D | M | ||||||
| TTM | D | CM | CM | CM | ||||
| TTM-S | D | CM | CM | CM | ||||
| RE | CM | CM | CM | CM | CM | CM | CM | D |
| IM | D |
Table 4.4
Runtime Adaptability Relations Among Nodes
| Node | Node |
|---|
| MM | AM | MD | AD | ED | EED | W | ERP |
|---|
| MM | ||||||||
| AM | RS | |||||||
| MD | ||||||||
| AD | ||||||||
| ED | ||||||||
| EED | R | |||||||
| W | ||||||||
| ERP |
Table 4.2 shows runtime adaptability relations among C&Cs. Here, we can see that IM is an adaptable component. TTM-S can replace TTM. We can also see that PM can be replaced with a replica of itself in a different state.
Table 4.3 defines runtime adaptability relations between C&Cs and nodes. Hereby, C&Cs are listed in the rows and nodes are listed in the columns. The cells marked with D show the initial deployment of C&Cs: PM on MM, TTM and TTM-S on MD, IM on W, and RE on ERP. We see that PM can migrate to AM. On the other hand, a copy of RE can migrate to all the nodes except ERP. We also see that copies of TTM and TTM-S can migrate to the nodes AD, ED, and EED.
Table 4.4 shows runtime adaptability relations among nodes. There are two such relations. First, EED can replace ED. Second, AM can replace MM. State information must also be transferred for this replacement.
We have adopted tables since the visual representation is less scalable. For large cases, the table representations will also have limitations. For this, we might need additional tool support.
4.7 Related Work
In this paper we have defined a viewpoint for modeling dynamically configurable software architectures. The viewpoint has been defined based on a domain analysis of the existing runtime adaptability mechanisms. The introduced abstractions can be extended if needed and more refined viewpoints can be defined. However, it should be noted that an architectural view represents the gross level abstraction of the system and likewise should preferably not include implementation details. In the following, provide a review of related studies in two different categories: (i) modeling of quality concerns in software architecture including adaptability, and (ii) architectural modeling techniques and frameworks introduced for supporting runtime adaptability.
4.7.1 Quality Concerns in Software Architecture Modeling
Separating quality concerns at the architecture design modeling phases has been also addressed earlier with the notion of so-called attribute - based architectural style (ABAS). ABAS refers to prepackaged units of architectural design and analysis. The purpose of ABAS is to enhance precise reasoning about architectural design which is achieved by explicitly associating a reasoning framework with an architectural style. The reasoning framework shows how to reason about the design decisions comprised by the style. The reasoning frameworks are based on quality attribute-specific models, which exist in the various quality attribute communities. ABASs are quality attribute specific and consider only one quality attribute at a time. Our work could be compared to the idea presented in ABAS, that is, define the architectural model for particular quality concerns. The difference is that we focus on the notion of architectural viewpoint. We do not provide a reasoning framework but this could be a complementary and useful elaboration on our work as well as the other viewpoint approaches in general.
Aspect-oriented software development (AOSD) [ 1 , 33 ] promotes the separation of crosscutting concerns principle [ 34 – 36 ] to increase modularity. Hereby, crosscutting concerns are separately represented as first-class abstractions (aspects) and woven into the base code . In our approach we have applied the separation of concerns principle to separate the views for quality concerns. Similar to crosscutting concerns in AOSD, quality concerns seem to crosscut the elements in the functional views. By separating these quality concerns and providing explicit abstractions in the viewpoints, we have supported an enhanced description of the architecture.
Architectural perspectives [ 37 ] are a collection of activities, tactics, and guidelines to modify a set of existing views to document and analyze quality properties. Architectural perspectives as such are basically guidelines that work on multiple views together. An analysis of the architectural perspectives and our approach shows that the crosscutting nature of quality concerns can be both observed within an architectural view and across architectural views. Both approaches focus on providing a solution to the crosscutting problem. We have chosen for providing separate architectural viewpoints for quality concerns. It might be interesting to look at integrating the guidelines provided by the architectural perspectives and the definition/usage of the viewpoints developed by our approach. In that sense the approaches can also be considered as complimentary to each other.
Architectural tactics [ 38 ] aim at identifying architectural decisions related to a quality attribute requirement and composing these into an architecture design. Defining explicit viewpoints for quality concerns can help to model and reason about the application of architectural tactics.
Several software architecture analysis approaches have been introduced for addressing quality properties. They usually perform either static analysis of formal architectural models or they apply a set of scenario-based architecture analysis methods [ 7 ]. The goal of these approaches is to assess whether or not a given architecture design satisfies desired concerns including quality requirements. The main aim of the viewpoint definitions in our approach, on the other hand, is to communicate and support the architectural design with respect to quality concerns. As such our work can directly support the architectural analysis to select feasible design alternatives.
4.7.2 Architectural Approaches for Runtime Adaptability
Oreizy et al. [ 25 ] discuss the use of existing architectural styles to represent dynamically adaptable software architectures. In particular, they describe how runtime changes can be facilitated by the Weaves and C2 architectural styles. However, they do not propose a dedicated view for dynamic adaptation. Many existing frameworks like PLASMA [ 21 ] and Rainbow [ 20 ] mainly focus on the C&C view to depict the runtime structure and reason about dynamic adaptation. Contract-based adaptive software architecture [ 22 ] is a framework that facilitates dynamic adaptation by dynamic recomposition of components. They define the adaptable class/component concept for replaceable components. They also introduce a handle class/component that is inspired from the bridge pattern. This provides a layer of transparency between the application code and the dynamic replacement process. It is assumed that adaptable components provide a means for loading and storing state. They propose the specification of adaptation policy of the application in a so-called application contract. However, they do not also propose a model or view for the representation of the overall architecture.
Self-architecting software systems [ 26 ] is a framework for dynamic service-oriented systems. It is based on functionally equivalent services, which can be replaced based on their desired properties, for example, QoS levels. It employs basic elements of SOAs. The list of services is registered to a service directory. These services are discovered and selected based on so-called service activity schemas that express system requirements. They employ an extension of xADL and finite state models to represent the software architecture. A software adaptation pattern is specified as a list of steps to be performed for adaptation. However, they do not propose a view for explicitly representing the dynamic adaptation. There is a coordinator component for each client. Communication is asynchronous. Services are stateless and independent.
Rainbow [ 20 ] is a framework that supports architecture-based adaptation. It introduces a language for specifying adaptation techniques as first-class adaptation concepts. The basic idea is that the adaptation strategies depend on the architectural style of the target system. It augments the notion of style with operators that define style-specific reconfiguration options.
The K-component model [ 23 ] was introduced to support dynamic adaptation. Dynamic reconfiguration of software architecture is modeled as graph transformations. These adaptation models are specified as adaptation contracts, separate from the implementation. Types of supported dynamic reconfigurations are limited to C&C replacement.
According to a survey on formal specification of dynamic software architectures [ 30 ], three approaches stand out: graph-based; process algebra; and logic-based description languages. These approaches provide a formal basis for the description of types of changes, rules for selection of changes and their application. Four phases are identified for dynamic architectural changes: change initiation, selection of architectural transformation; implementation of transformation; assessment of architecture after transformation. Basic changes are listed as C&C addition and removal. These basic changes can be composed by sequencing, choice, and iteration.
Dynamic software product lines (DSPL) [ 39 ] extend conventional product line approaches to support runtime variability. Therefore, they are considered as a systematic approach for developing adaptive systems [ 39 ]. However, existing DSPL approaches mainly focus on extensions of feature models and orthogonal variability diagrams [ 40 ] for modeling and documentation. Extensions of the architectural models have not been considered for creating a dedicated view for runtime adaptability.
4.8 Conclusion
Dynamic software architectures support reconfigurations of their structures during execution and as such aid system evolution useful during the incremental integration of the components in the system. In this paper we have addressed the problem of dynamic configurability from the modeling perspective. In this context we have proposed an architecture viewpoint for runtime adaptability. The viewpoint has been defined based on a well-defined metamodel that includes the concepts related to component-based runtime structure, architecture deployment, and runtime adaptability. Unlike existing general purpose architecture viewpoints, the proposed viewpoint can support the architect in modeling the concerns for runtime adaptability and as such support the communication among stakeholders and the analysis of the architecture. We have illustrated the viewpoint for a DDSCM. In our future work, we shall investigate the trade-off of runtime adaptability with time performance and scalability, and also study the integration of the various different viewpoints with the runtime adaptability viewpoint that we have proposed.
References
[1] Chitchyan R., Rashid A., Sawyer P., Bakker J., Alarcon M.P., Garcia A., Tekinerdogan B., Clarke S., Jackson A. Survey of aspect-oriented analysis and design. In: Chitchyan R., Rashid A., eds. AOSD-Europe Project Deliverable No. AOSD-Europe-ULANC-9. 2005.
[2] ISO/IEC 42010:2007 Recommended practice for architectural description of software-intensive systems (ISO/IEC 42010), July 2007.
[3] Sözer H., Tekinerdogan B. Introducing recovery style for modeling and analyzing system recovery. In: Proceedings of the 7th Working IEEE/IFIP Conference on Software Architecture; 2008:167–176.
[4] Sözer H., Tekinerdogan B., Akşit M. FLORA: a framework for decomposing software architecture to introduce local recovery. J. Softw. Pract. Exp. 2009;39(10):869–889.
[5] Tekinerdogan B., Sözer H. Defining architectural viewpoints for quality concerns. In: Proceedings of the 5th European Conference on Software Architecture; 2011:26–34.
[6] Tekinerdogan B., Sözer H. Variability viewpoint for introducing variability in software architecture viewpoints. In: Proceedings of the 2nd International Workshop on Variability in Software Architecture; 2012:163–166.
[7] Dobrica L., Niemela E. A survey on software architecture analysis methods. IEEE Trans. Softw. Eng. 2002;28(7):638–654.
[8] Boudali H., Sözer H., Stoelinga M. Architectural availability analysis of software decomposition for local recovery. In: Proceedings of the 3rd International Conference on Secure Software Integration and Reliability Improvement; 2009:14–22.
[9] Tekinerdogan B. Software architecture. In: Gonzalez T., Díaz-Herrera J.L., eds. Computer Science Handbook. second ed. London: Taylor and Francis; . Computer Science and Software Engineering. 2014;vol. I.
[10] Hofmeister C., Nord R., Soni D. Applied Software Architecture. New York, NJ: Addison-Wesley; 2009.
[11] Kruchten P. The 4 + 1 view model of architecture. IEEE Softw. 1995;12(6):42–50.
[12] Kruchten P. The Rational Unified Process: An Introduction. second ed. Boston, MA: Addison-Wesley; 2000.
[13] Lattanze A.J. Architecting Software Intensive Systems: A Practitioner's Guide. Boca Raton, FL: CRC Press, Taylor & Francis Group; 2009.
[14] Clements P., Bachmann F., Bass L., Garlan D., Ivers J., Little R., Merson P., Nord R., Stafford J. Documenting Software Architectures: Views and Beyond. second ed. Boston: Addison-Wesley; 2010.
[15] Poluha R.G. Application of the SCOR Model in Supply Chain Management. Amherst, NY: Cambria Press; 2007.
[16] Chaibdraa B., Müller J. Multiagent Based Supply Chain Management. New York, NY: Springer; 2006.
[17] Kumar K. Technology for supporting supply chain management: introduction. Commun. ACM. 2001;44(6):58–61.
[18] Li J., Yuan L., Guo J. Business integrated architecture for dynamic supply chain management with web service. In: Proceedings of the International Conference on New Trends in Information and Service Science; 2009:356–361.
[19] Misra V., Khan M.I., Singh U.K. Supply chain management systems: architecture, design, vision. J. Strateg. Innov. Sustain. 2010;6(4):102–108.
[20] Garlan D., Cheng S.-W., Huang A.-C., Schmerl B., Steenkiste P. Rainbow: architecture-based self-adaptation with reusable infrastructure. IEEE Comput. 2004;37(10):46–54.
[21] Tajalli H., Garcia J., Edwards G., Medvidovic N. PLASMA: a plan-based layered architecture for software model-driven adaptation. In: Proceedings of the IEEE/ACM International Conference on Automated Software Engineering; 2010:467–476.
[22] Mukhija A., Glinz M. Runtime adaptation of applications through dynamic recomposition of components. In: Proceedings of the 18th International Conference on Architecture of Computing Systems Conference on Systems Aspects in Organic and Pervasive Computing; 2005:124–138.
[23] Dowling J., Cahill V. The K-component architecture meta-model for self-adaptive software. In: Proceedings of the Third International Conference on Metalevel Architectures and Separation of Crosscutting Concerns; 2001:81–88.
[24] Kramer J., Magee J. Self-managed systems: an architectural challenge. In: Proceedings of the Future of Software Engineering; 2007:259–268.
[25] Oreizy P., Gorlick M.M., Taylor R.N., Heimbigner D., Johnson G., Medvidovic N., Quilici A., Rosenblum D.S., Wolf A.L. An architecture-based approach to self-adaptive software. IEEE Intell. Syst. 1999;14(3):54–62.
[26] Menascé D., Gomaa H., Malek S., Sousa J. SASSY: a framework for self-architecting service-oriented systems. IEEE Softw. 2011;28(6):78–85.
[27] Garlan D., Barnes J.M., Schmerl B.R., Celiku O. Evolution styles: foundations and tool support for software architecture evolution. In: Proceedings of the 7th Working IEEE/IFIP Conference on Software Architecture (WICSA'09); 2009:131–140.
[28] McKinley P.K., Sadjadi S.M., Kasten E.P., Cheng B.H.C. Composing adaptive software. IEEE Comput. 2004;37(7):56–64.
[29] Villegas N.M., Müller H.A., Tamura G., Duchien L., Casallas R. A framework for evaluating quality-driven self-adaptive software systems. In: Proceedings of the 6th International Symposium on Software Engineering for Adaptive and Self-Managing Systems; 2011:80–89.
[30] Bradbury J.S., Cordy J.R., Dingel J., Wermelinger M. A survey of self-management in dynamic software architecture specifications. In: Proceedings of the 1st ACM SIGSOFT Workshop on Self-Managed Systems; 2004:28–33.
[31] Kephart J.O., Chess D.M. The vision of autonomic computing. IEEE Comput. 2003;36(1):41–50.
[32] Kell S. A survey of practical software adaptation techniques. J. Univers. Comput. Sci. 2008;14(13):2110–2157.
[33] Elrad T., Fillman R., Bader A. Aspect-oriented programming. Commun. ACM. 2001;44(10):29–32.
[34] Dijkstra E.W. On the role of scientific thought. In: Dijkstra E.W., ed. Selected Writings on Computing: A Personal Perspective. New York, NY: Springer-Verlag; 1982:60–66.
[35] Bakker J., Tekinerdogan B., Aksit M. Characterization of early aspects approaches. In: Workshop on Early Aspects: Aspect-Oriented Requirements Engineering and Architecture Design, Held in Conjunction With AOSD Conference; 2005.
[36] Aksit M., Tekinerdogan B., Bergmans L. The six concerns for separation of concerns. In: Proceedings of Workshop on Advanced Separation of Concerns, European Conference on Object-Oriented Programming, Budapest, Hungary; 2003.
[37] Rozanski N., Woods E. Software Systems Architecture—Working With Stakeholders Using Viewpoints and Perspectives. Boston: Addison-Wesley; 2005.
[38] Bachmann F., Bass L., Klein M. Architectural tactics: a step toward methodical architectural design. Technical report CMU/SEI-2003-TR-004 Pittsburgh, PA: Carnegie Mellon University; 2003.
[39] Hinchey M., Park S., Schmid K. Building dynamic software product lines. IEEE Comput. 2012;45(10):22–26.
[40] Capilla R., Bosch J., Trinidad P., Ruiz-Cortes A., Hinchey M. An overview of dynamic software product line architectures and techniques: observations from research and industry. J. Syst. Softw. 2014;91:3–23.
[41] Klein M., Kazman R., Bass L., Carriere S.J., Barbacci M., Lipson H. Attribute-based architectural styles. In: Proceedings of the First Working IFIP Conference on Software Architecture, San Antonio, TX, February; 1999.