Chapter 13

An Overview on Quality Evaluation of Self-Adaptive Systems

C. Raibulet * ; F. Arcelli Fontana * ; R. Capilla † ; C. Carrillo ‡      * University of Milano-Bicocca, Milan, Italy
† Rey Juan Carlos University, Madrid, Spain
‡ Polytechnic University of Madrid, Madrid, Spain

Abstract

Evaluation is an important concern for building and monitoring the quality of software. The complex nature of self-adaptive systems demands continuous monitoring of their behavior and execution environment, which challenge the quality of their adaptations in dynamic environments. The characteristics of self-adaptive systems demand a continuous evaluation of their performances and improvement of the adaptation process. In this chapter our objective is to identify general guidelines for the evaluation of self-adaptive systems independent of their type, application domain, or implementation details. We propose a taxonomy for the evaluation of the quality of self-adaptive systems based on five dimensions: scope, time, mechanisms, perspective, and type. Further, we identify and introduce the main available evaluation approaches and analyze them based on the proposed taxonomy. Finally, we discuss several trade-offs concerning each dimension in the taxonomy, trade-offs which should be addressed during the evaluation of self-adaptive systems.

Keywords

Self-adaptivity; Self-adaptive systems; Evaluation; Quality attributes; Software metrics

13.1 Introduction

As software systems are becoming more complex and configurable, self-properties (i.e., self-adaptive, self-management, self-healing, self-optimization, self-protection) have attracted the attention of software engineers to provide adequate validation and verification mechanisms in order to ensure the quality of adaptation [ 1 , 2 ]. In this light, the software engineering discipline has established in time several mechanisms and standards to evaluate the quality of systems from architecture design to implemented solutions. Qualities and Quality in Use are described by the ISO/IEC 25010/2011 standard 1 to provide a consistent terminology to measure and evaluate software product quality. Software quality can be measured at various levels and stages of the software development process, from architecture to code, and it is particularly suited for software-intensive systems. As the evaluation of the quality properties differ in architecture and code and even when the system is running, various evaluation methods and techniques may be used. For instance, the software architecture field has proposed and used a number of quality attribute evaluation methods [ 3 ] to evaluate the quality of the architecture in the early stages of the design process; or, a wide range of metrics have been proposed for a qualitative or quantitative evaluation of software.

Nowadays, many modern systems exploit context and ubiquitous properties to adapt their behavior when context changes. In other cases, systems exhibit self-adaptive capabilities to provide autonomous behavior where a runtime manager executes adaptation policies and algorithms based on the information sensed from the environment. Consequently, stringent quality requirements like performance and optimization are expected to be implemented in the architecture and software of such systems. From the perspective of self-adaptive systems that demand a continuous evolution of the adaptation capabilities and that aim to ensure the quality of the performed runtime reconfiguration tasks, there is a clear need to monitor and evaluate the quality of the adaptations and modified behavior. Consequently, this dynamic evolution of self-adaptations must be supported by an evaluation of the quality of the adaptations and the success of the runtime changes.

The evaluation and continuous monitoring driving the evolution of self-adaptive systems is difficult as specific metrics are needed to measure the quality of the adaptations accordingly to the variety of self-adaptive systems and runtime needs. Moreover, often it is necessary to evaluate at design time the degree of adaptivity of the self-adaptive system’s architecture and self-adaptive properties. Further, it seems necessary to count and identify which concrete metrics provide good evaluation indicators that software engineers may use to test the adequacy of a particular adaptivity mechanism or solution and also, to avoid mismatch problems between architecture and code. While evaluating adaptivity at design time concerns more the specific architectural solution that supports adaptation and self-adaptation in a software system, the evaluation of self-adaptive properties at runtime is closely related to metrics aimed to provide qualitative and quantitative evaluation of the software.

In this chapter we aim to identify general guidelines for the evaluation of self-adaptive systems independent of their type, application domain, or implementation details. To achieve this objective, we propose a taxonomy for the evaluation of the quality of self-adaptive systems based on five dimensions: scope, time, mechanisms, perspective, and type. Further, we identify and describe briefly the main available evaluation approaches and analyze them based on the proposed taxonomy. We describe the evaluation approaches in a common and uniform way in order to be able to easily compare them based on their commonalities and differences. We also discuss several trade-offs concerning each dimension in the proposed taxonomy, trade-offs which should be addressed during the evaluation.

The remainder of this chapter is organized as follows. Section 13.2 describes different points of view to categorize the evaluation of self-adaptive systems and proposes a taxonomy based on five dimensions. In Section 13.3 , we describe three evaluation approaches which are based on quality attributes, while in Section 13.4 , three evaluation approaches which are based on software metrics. Sections 13.3 and 13.4 end with the analysis of the presented approaches and the related findings. In Section 13.5 , we address various trade-offs in the evaluation of self-adaptive systems based on the five dimensions of the taxonomy introduced in Section 13.2 . Finally, in Section 13.6 we draw the conclusions and future work.

13.2 Evaluation of Self-Adaptive Systems

The evaluation approaches for self-adaptive systems proposed so far in the scientific literature may be analyzed from various points of view. Assuming any self-adaptive system is composed of a managed system (which implements the system's functionality) and a managing system (the controller, which implements the self-adaptive functionality), such as Fig. 13.1 shows, we categorize the evaluation approaches for self-adaptive systems in the following two main groups based on their scope:

f13-01-9780128028551

Fig. 13.1 The managed and managing systems in self-adaptive systems.

  1.   Evaluation of the managing system : The first group concerns the evaluation of the quality of the self-adaptive mechanisms (i.e., the managing part or the controller). This group focuses on self-adaptive mechanisms and on the performance that must be addressed in the early stages of the development process. In this category, the quality of the design influences significantly the overall quality and performance of the self-adaptive system.

  2.   Evaluation of the managed system : The second group pertains to the evaluation of the qualities of a self-adaptive system (i.e., the managed system), often focused on the performance achieved through self-adaptivity. It concerns those quality issues that are measured at runtime during the execution of a system.

Furthermore, the evaluation mechanisms of self-adaptive systems may rely on:

(i)   quality attributes , used to evaluate the quality of a system or part of it, with special focus on those quality properties meaningful for self-adaptive systems (e.g., performance, optimization); and

(ii)   software metrics , used to evaluate the quality of the adaptation from a local (e.g., adaptivity of a service or agent) or global perspective (e.g., time for adaptation, decentralization degree).

While quality attributes are used for the evaluation of the self-adaptive architecture and system in the early stages of the development process, software metrics provide valuable measures to estimate how good the system performs the runtime adaptations. Metrics are particularly useful for continuous monitoring and evolution of self-adaptive systems. Therefore, we believe there are two important stages where adaptivity and the adaptation mechanisms used can and should be evaluated, that is:

(i)   at design time during the development of the system when the adaption mechanism is selected; and

(ii)   at runtime when the system is in fully operationally mode and the quality of adaptations must be continuously monitored.

Moreover, we state that the evaluation mechanisms may interest the entire system (i.e., global scope) or a subset of it (i.e., local scope), as the objectives of the adaptations may be different in terms of goal and scope.

Last, the evaluation of self-adaptive systems may have qualitative or quantitative results. Quality attributes offer usually qualitative information about a system. Software metrics may provide both qualitative and quantitative feedback about a system.

The criteria discussed in this section are summarized in Fig. 13.2 in a form of an essential taxonomy for the evaluation of self-adaptive systems. We consider these criteria as key aspects for the evaluation of any kind of self-adaptive system in any application domain. They help software engineers to identify the objectives of the evaluation and the mechanisms necessary to perform the evaluation, as well as to guide the interpretation of the results.

f13-02-9780128028551

Fig.13.2 A taxonomy for the evaluation of self-adaptive systems.

13.2.1 Presentation of the Available Evaluation Approaches

In this chapter we provide an overview of several approaches for the evaluation of self-adaptive systems available in the scientific literature. We have grouped them based on the evaluation mechanisms they use: quality attributes and software metrics. We have chosen this criterion because it matches best the description of each approach with the presentation provided by its authors and because it enables us to describe each approach only once. The other four criteria do not allow us to easily divide the considered approaches in disjoint groups. Further, we describe the approaches belonging to each group through the main elements of the taxonomy proposed in this section.

13.2.2 Selection of the Available Evaluation Approaches

The selection of the evaluation approaches described in this chapter considers the following premises. Our objective in this chapter is to offer general, but well defined guidelines for the evaluation of self-adaptive systems by inspiring us from the available evaluation approaches. Hence, we tried to identify the available evaluation approaches for self-adaptive systems and to capture their commonalities and differences. This step is hardly achievable through a systematic mapping or review [ 4 ] due to the keywords which should be searched (e.g., evaluation, adaptivity, quality, metric) and which are present in many papers and thus provide mostly false positives. As observed also by Brun [ 5 ] most of the studies on self-adaptivity are published in specialized venues on self-adaptivity (e.g., ACM Transactions on Autonomous and Adaptive Systems, Software Engineering for Adaptive and Self-Managing Systems) rather than on general software engineering venues (e.g., Transactions on Software Engineering, International Conference on Software Engineering). Therefore, we have investigated all the papers published in the specialized venues to identify those dealing with the evaluation of self-adaptive systems in general independently of the application domain or case study. In this way we have identified four primary studies: three using quality attributes and one using metrics as evaluation mechanisms. Further, we have added two journal papers, which have been published in other venues not focused on adaptivity, but on software engineering in general.

13.3 Evaluation Based on Quality Attributes

This section presents three evaluation approaches based on quality attributes. McCann and Huebscher [ 6 ] focus on the evaluation issues in autonomic computing. Neti and Müller [ 7 ] propose the use of quality attributes for the evaluation of self-healing systems. Villegas et al. [ 8 ] exploit quality attributes for the evaluation of self-adaptive systems.

Each approach is presented through a brief description which aims to capture the aspects proposed in Fig. 13.2 . Further, the description of each approach is summarized in a table which indicates: what is evaluated, i.e., the quality attributes considered in the evaluation, the objectives of the evaluation, i.e., what is expected from the evaluation, the evaluation perspective, the evaluation time, and the evaluation scope (mentioned in Fig. 13.2 ). The section ends with the findings concerning the described approaches where we summarize the case study considered by the authors of each approach to validate their proposal, the tool support for the evaluation, and the evaluation type (mentioned in Fig. 13.2 ).

13.3.1 Evaluation in Autonomic Systems

McCann and Huebscher [ 6 ] propose nine perspectives (called metrics by the authors) for the evaluation issues in autonomic computing: quality of service, cost, granularity/flexibility, failure avoidance (robustness), degree of autonomy, adaptivity, time to adapt and reaction time, sensitivity, and stabilization (see Table 13.1 ). The objectives of these perspectives are the evaluation of the autonomicity of software systems by focusing on their performances. This paper provides only hints on how these perspectives may be measured and only some metrics examples which may be used to measure these aspects (see column Metrics in Table 13.1 ). Further, there are perspectives which cannot be measured immediately, but statistically in time (e.g., people costs in terms of system administration and maintenance). The authors mention that the metrics to be actually applied to a system depend strongly on the application domain, the adaptation goals, and design choices.

Table 13.1

Quality Evaluation in Autonomic Systems

What Is Evaluated Objective Metrics Evaluation Perspective Evaluation Time Evaluation Scope

| Quality of service | The degree to which the system reaches its goals (e.g., performance improvement, user experience improvement) | Data delivery turn-around time over cost | Global
Local | Runtime | Managed system | | Cost | The ability to reach a goal
The amount of communication, actions performed, and cost of actions to perform a goal | Cost per performance
Added functionality achievable otherwise not achievable in a nonautonomic system
Cost of extra hardware for the controller
Resource consumption (e.g., battery power in ubiquitous systems) | Global
Local | Runtime
Design | Managed system
Managing system | | Granularity/flexibility | The granularity of autonomicity (fine-grained vs. coarse-grained components) | Unbinding, loading, rebinding a component | Global | Runtime
Design | Managed system | | Failure avoidance/robustness | The ability to cope with failures | Predictability of failures
Mean time before failure | Global | Runtime | Managing system | | Degree of autonomy | The ability to be autonomous (e.g., including the ability to learn) | Degree of proactivity | Global | Runtime | Managing system | | Adaptivity | The ability to change something (a parameter, a component) in a system | Time needed to change something | Local | Runtime | Managed system | | Time to adapt/reaction time | The reconfiguration and adaptation ability of a system
Time to adapt is the time needed to adapt to a change in the environment (between the identification of a change need and the adaptation performed)
Reaction time includes the change occurred in the environment and the time to adapt | Time to adapt/reaction time | Global | Runtime | Managed system
Managing system | | Sensitivity | The ability to fit with the environment (the ability to notice changes in the environment) | Variations in the environment (e.g., bandwidth) | Global | Runtime | Managing system | | Stabilization | The time needed by a system to learn its environment and stabilize its operations | Time taken for the system to learn its environment and stabilize its operations | Global | Runtime | Managed system
Managing system |

t0010

These nine perspectives have been identified after the analysis of various self-adaptive solutions, which have been divided in three groups: multi-agent based systems, architecture design-based autonomic systems, and hot swapping components. McCann and Huebscher have tried to identify the commonalities among the analyzed systems and to provide evaluation basis independent of a specific solution or application domain. However, McCann and Huebscher do not describe further the application of the identified perspectives on an actual case study. In Section 13.6 , the authors mention that they evaluated Kendra architecture considering some of the quality attributes described in their paper. The evaluation has been a qualitative one with no concrete quantifiable results. No further details are presented; hence we cannot consider this evaluation as a well-described case study. Furthermore, no tool support for the evaluation of self-adaptive systems using these perspectives is mentioned.

From Table 13.1 , it results that McCann and Huebscher identify meaningful high-level perspectives for the evaluation of autonomic system. The authors do not mention if these perspectives represent a minimum or complete list. Further, they fail in providing a set of metrics for the evaluation and comparison between autonomic systems. Quality of services, granularity/flexibility, and adaptivity are three perspectives which concern the performances of the managed system. Failure avoidance/robustness, degree of autonomy, and sensitivity concern the self-adaptive mechanisms implemented by a system. The remaining three perspectives involve both the managed system and the self-adaptive mechanisms. Furthermore, all the proposed perspectives are presented by the authors as runtime aspects which are measured during the execution of a system. However, several aspects such as cost or granularity/flexibility may be considered also during the design time (e.g., development cost or number of fine-grained or coarse-grained elements).

13.3.2 Quality-Driven Evaluation of Self-Healing Systems

Neti and Müller [ 7 ] propose a subset of traditional quality attributes and a subset of new quality attributes called autonomic-specific quality attributes for self-healing systems focusing on their adaptivity capabilities over long periods of time. Traditional quality attributes based on ISO 9126 exploited in this approach concern maintainability (including modifiability and extensibility) and reliability (including fault-tolerance and robustness). Also availability and survivability are mentioned in the paper, but no further details are presented. Autonomic-specific quality attributes are: support for detecting anomalous system behavior, support for failure diagnosis, support for simulation of expected and predicted behavior, support for differencing between expected and actual behavior, and support for testing of correct behavior (see Table 13.2 ).

Table 13.2

Quality Criteria for the Evaluation of Self-Healing Systems

What Is Evaluated Objective Metrics Evaluation Perspective Evaluation Time Evaluation Scope

| Maintainability | Defined through modifiability and extensibility | N/A | Global | Design | Managed system
Managing system | | Reliability | Defined through fault-tolerance and robustness | N/A | Global | Runtime | Managed system | | Support for detecting anomalous behavior
Depends on awareness, observability, and coupling | The ability to monitor, recognize, and address anomalies | N/A | Global | Runtime | Managing system | | Support for failure diagnosis
Depends on complexity | The ability to locate the source of failure, system degradation or changes | N/A | Global | Runtime | Managing system | | Support for simulation of expected or predicted behavior
Depends on awareness, correctness, completeness, consistency, and complexity | The ability to accurately model the system and obtain the expected behavior | N/A | Global | Runtime | Managed system
Managing system | | Support for differencing between expected and actual behavior
Depends on the support for simulation of expected or predicted behavior | The ability to detect if the actual behavior differs from its expected behavior | N/A | Global | Runtime | Managed system
Managing system | | Support for testing of correct behavior
Depends on testability | The ability to test and verify that autonomic elements behave correctly | N/A | Local | Runtime | Managing system |

t0015

Neti and Müller use a self-managing Java server as a case study for the validation of their proposal. In this case study, the authors consider the following quality attributes: modifiability, support for detecting anomalous system behavior, and support for failure diagnosis. No tool support is mentioned by the authors for the evaluation of these quality attributes.

From Table 13.2 it results that maybe self-adaptive systems need specific quality attributes for their evaluation in addition to the quality attributes defined for traditional software systems. Almost all the quality attributes have a global scope and are exploited to evaluate a system at runtime, during its execution. As stated by [ 6 ], the quality attributes are balanced and concern both the managing and the managed systems. Note that no metrics are indicated for the evaluation of self-healing systems by Neti and Müller.

13.3.3 Quality-Driven Evaluation of Self-Adaptive Systems

Villegas et al. [ 8 ] propose a quality-driven framework for the evaluation of self-adaptive systems. First, the authors identify a set of analysis dimensions which characterize self-adaptive systems: adaptation goal, reference inputs, measured outputs, computed control actions, system structure, observable adaptation properties, proposed evaluation, and identified metrics. These dimensions have been used to analyze several existing self-adaptive systems. Further, the authors propose four quality attributes which reflect the adaptation goals of self-adaptive systems: performance, dependability, security, and safety. These quality attributes are associated to the adaptation properties of self-adaptive systems. An adaptation property indicates a quality (or characteristic) that is particular to an adaptation approach or mechanism. Adaptation properties for the managing system include: stability, accuracy, settling-time, small-overshot, robustness, termination, consistence, scalability, and security. Adaptation properties for the managed system include behavioral/functional invariants and quality of service (i.e., performance, dependability, security, and safety). Like in the approach provided by McCann and Huebscher, Villegas et al. analyze 16 research solutions for self-adaptive systems in order to identify the quality attributes meaningful for the evaluation of self-adaptive systems. This approach does not describe the application of the identified quality attributes on an actual case study. Neither does it mention tool support for the evaluation of self-adaptive systems through these perspectives.

Table 13.3 summarizes the information concerning the evaluation framework. From the description of the approach it does not result whether the identified quality attributes form a minimum or complete set of aspects to be considered for the evaluation of self-adaptive systems. Examples of metrics for the evaluation of the quality attributes are also indicated by the authors. However, they fail in providing a complete set of metrics for the evaluation and comparison among autonomic systems. All the quality attributes are exploited at runtime and concern both the managing and the managed parts of a self-adaptive system.

Table 13.3

Quality-Driven Evaluation of Self-Adaptive Systems

What Is Evaluated Objective Metrics Evaluation Perspective Evaluation Time Evaluation Scope

| Performance | Characterizes the timeliness of services delivered by the system | Responsiveness
Latency
Throughput
Capacity | Global | Runtime | Managed system
Managing system | | Dependability | Defines the level of reliance on the services provided by a system | Availability
Reliability
Maintainability
Safety
Confidentiality
Integrity | Global | Runtime | Managed system
Managing system | | Security | Defines the level of security of the system | Confidentiality
Integrity
Availability | Global | Runtime | Managed system
Managing system | | Safety | Defines the level of reliance of the system | Interaction complexity
Coupling strength | Global | Runtime | Managed system
Managing system |

t0020

Geihs [ 9 ] exploits the quality-driven framework proposed by Villegas et al. to evaluate three self-adaptive systems from different application domains: ubiquitous computing, autonomous mobile robots, and service-oriented software. He reports that the role of the four proposed quality attributes is not obvious in the evaluation of self-adaptive systems as the adaptation properties should be directly mapped on meaningful metrics, and the use of quality attributes may be avoided. He also states that the framework does not capture the control aspects of the self-adaptive mechanisms (i.e., centralized vs. decentralized adaptation control), which play an important role in the self-adaptive systems [ 1 ].

13.3.4 Findings

From our analysis and observations of the quality attributes evaluation approaches for the three types of self-adaptive systems we summarize the following findings. The quality attributes in the “What is evaluated” column of Tables 13.1 – 13.3 occur just once. Hence, the sets of the quality attributes proposed in the three approaches seem to be totally disjoint. This conclusion may be due to several facts. First, the approaches consider a different granularity of the target systems: autonomic, self-healing, and self-adaptive. While self-healing is considered a property of autonomic computing, self-adaptivity has a more general meaning and may be mapped on one or more properties of autonomic computing.

Second, there is little agreement in the scientific literature on what should be evaluated in self-adaptive systems, and specifically which quality attributes are meaningful for their evaluation. Furthermore, [ 7 ] addresses the evaluation of a specific subset of self-adaptive systems (i.e., self-healing systems), while [ 8 ] addresses the evaluation of self-adaptive system in general, but they have nothing in common (even if they have one author in common). We expected the quality attributes proposed in [ 7 ] (or at least part of them) to be a subset of the quality attributes proposed in [ 8 ].

Third, another explanation of this difference among the three approaches may be due to the terminology used for their description. From a deeper analysis it results that quality of service, time to adapt, and reaction time in Table 13.1 have a similar meaning to performance in Table 13.3 . In addition, failure avoidance/robustness in Table 13.1 may be mapped on autonomic-specific quality attributes (introduced by Neti and Müller) in Table 13.2 and on dependability in Table 13.3 . Alternatively, reliability in Table 13.2 may be mapped on dependability and safety in Table 13.3 . Hence, commonalities do exist among the three approaches, even if they have some subtle differences. The works described in [ 6 , 8 ] are the results of the analysis of various self-adaptive solutions available in various application domains. Reference [ 7 ] has been inspired by the work presented in [ 10 ].

From the point of view of the evaluation scope we notice that all the three approaches consider both the managed and the managing parts of a self-adaptive system. This confirms the hypothesis that in a self-adaptive system both parts are fundamental to ensure its quality. Further, we observe that the evaluation time of most of the quality attribute is runtime, i.e., 19 out of 20 quality attributes in the three tables are evaluated at runtime, 1 out of 20 at design time, and 2 out of 20 at design time and runtime. The evaluation perspective is mostly global, i.e., 18 out of 20 quality attributes have a global perspective, 2 out of 20 a local perspective, and 2 out of 20 may have a local and a global perspective. Table 13.4 summarizes three aspects of these evaluation approaches: case studies on which each approach has been applied by the authors, tool support provided by the authors of the approach, and evaluation computation type on a real example.

Table 13.4

Summary of the Quality Attribute Based Approaches Considering Their Actual Application

Approach Case Study Tool Support Evaluation Type
McCann and Huebscher [ 6 ] N/A N/A N/A
Neti and Müller [ 7 ] A self-managing Java server N/A Qualitative
Villegas et al. [ 8 ] N/A N/A N/A

t0025

We remark that only [ 8 ] has been applied on a case study (i.e., a self-managed Java server) by their authors. However, the authors provide minimal details on how quality attributes have been exploited and further analyzed and interpreted. As noticed in Section 13.3.1 McCann and Huebscher [ 6 ] mentioned that they applied the identified quality attributes to the Kendra architecture, without providing any detail. Hence, we do not consider it as a case study. We also observed none of the approaches has associated a tool which may hamper the evaluation part.

13.4 Evaluation Based on Software Metrics

This section presents three evaluation approaches based on software metrics. Reinecke et al. [ 11 ] propose a methodology for the definition of one metric, which can be exploited at runtime to measure the benefits of adaptivity. This metric focuses on the behavioral advantages obtained through self-adaptivity. Kaddoum et al. [ 12 ] introduce a set of criteria and software metrics for the evaluation of the self-adaptive systems and their development effort. These metrics focus both on the design and the execution issues in self-adaptive systems. Perez-Palacin et al. [ 13 ] introduce software metrics for the evaluation of the adaptability at the architectural level at design time.

Each approach is presented through a brief description which aims to capture the aspects proposed in Fig. 13.2 . Further, the description of each approach is summarized in a table which indicates: the name of the metrics, a brief definition for each metric, the computation formula for each metric, the possible range of values, and meaningful observations. The last three columns of each table indicate the evaluation perspective, time, and scope (mentioned in Fig. 13.2 ).

There are other evaluation approaches based on software metrics in the scientific literature that are not detailed in this section because they have a narrow scope rather than a general purpose. Among these approaches we cite: [ 14 ], which evaluates the effectiveness of the Rainbow framework for the development of self-adaptive systems; [ 15 ], which identifies the metrics for the performance evaluation in server applications; [ 16 ], which focuses on hypermedia systems; [ 17 ], which evaluates the complexity of the interaction between users and a self-adaptive system; [ 18 ], which introduces three indexes of adaptability at the architectural level. The indexes proposed in [ 18 ] are the main inspiration for the software metrics defined in [ 13 ] and described in Section 13.4.3 .

13.4.1 Evaluating the Adaptivity of Computing Systems

Reinecke et al. [ 11 ] propose a framework and a methodology for the definition of an adaptivity metric (see Table 13.5 ) through which it is possible to compare systems with respect to their adaptivity. The adaptivity metric is independent of the specifics of the adaptive system, is focused on the behavior of the adaptive system, and provides a quantitative evaluation of the system's adaptivity.

Table 13.5

The Adaptivity Metric

Name Definition Formula Values Observations Evaluation Perspective Evaluation Time Evaluation Scope

| Adaptivity metric | Measures how close the benefit accumulated by a system is to that of the optimal system | Ad \= ∑ i Δ i + ∑ i Pi ∑ i Pi si1_e
where:
Δ i denotes the benefit of a positive decision of the adaptive system at the i th iteration:
Δ i \= Pi + Pi − 1 2 si2_e
P is a payoff metric computed as follows during the i th trial:
P : M 1 × M 2 × … × M n → 0 1 si3_e | Ad ∈ Q 0 1 si4_e | The adaptation process is considered as a sequence of trials
It is supposed that the adaptive system has several iterations in time during which it may take positive, neutral, or negative decisions (when the observable performances of the adaptive systems decrease) | Global | Runtime | Managed system |

t0030

The recipe for defining an adaptive metric consists of the following four steps. First, it is required to identify the system under analysis, its execution environment, and the tasks performed by the adaptive system useful for its clients. Second, it is required to define one or more performance metrics ( M ) for the tasks implemented by the adaptive system. These performance metrics reflect the usefulness of the adaptive system and they must be measurable by the clients of the adaptive system. Third, it is required to define a payoff metric ( P ), which captures the usefulness of the adaptive system in a real-valued scalar normalized [0, 1] (i.e., 0 = worse case, 1 = optimal case). Last, it is required to execute the system and compute the payoff metric and the adaptivity metric.

The authors of the adaptivity metric validate the last through a case study concerning a Web Services Reliable Messaging system, which provides reliable message transports in Web-Services-based service-oriented architectures. The authors have implemented a custom test-bed for this case study. The performance metrics considered in this case study are: the effective transmission time, the unnecessary resource consumption, and savings. No general-purpose tool is provided for the computation of the adaptivity metric, due to the fact that the performance metrics may be different from case study to case study or may be the same for all the case studies which should be compared among them. Note that the proposed metrics are focused on the managed system. Finally, Reinecke et al. mention (without extending the idea) that the quality of the self-adaptive mechanisms (i.e., of the controller) may be evaluated through the Stability, Accuracy, Settling time, and Overshoot (SASO) properties, as sustained also by Villegas et al. Reinecke et al. [ 11 ] compare their solution for adaptivity evaluation with architectural or qualitative based approaches. Essentially, the authors sustain that the last approaches do not enable a straightforward comparison between self-adaptive systems. In addition, it is difficult to measure architectural aspects, which are not easily observable in a system, being hidden or spread in the entire system.

13.4.2 Criteria and Metrics for Evaluating Self-Adaptive Systems

Kaddoum et al. propose 31 metrics (see Table 13.6 ) based on a set of criteria grouped in four categories (methodological, architectural, intrinsic, runtime) [ 12 ]. These metrics and criteria may be used in the description, design, and evaluation of self-adaptive systems. The authors focus on various aspects of the design and execution of self-adaptive systems. They sustain that the proposed evaluation metrics and criteria enable the analysis of the quality of the self-adaptive systems, of the development effort, and of the advantages obtained through self-adaptivity. Attention is given to performance, as well as to homeostasis and robustness issues. These metrics and criteria represent a joint evolution of the work described in [ 19 , 20 ].

Table 13.6

Criteria and Software Metrics for the Evaluation of Self-Adaptive Systems

Name Definition Formula Values Observations Evaluation Perspective Evaluation Time Evaluation Scope
Adaptivity Agent Identification Index (AAII) Methodological. Identifies the adaptive functionalities of a system N/A N/A Adaptivity is achieved through autonomous agents, hence the identification of the adaptive functionalities is translated into the identification of the autonomous agents Global Design Managed system
Adaptivity Distribution Index (ADI) Methodological. Indicates the distribution of the adaptive elements on the physical nodes of an adaptive system N/A N/A Provides information on the additional effort that must be done to deploy an adaptive system Global Design Managed system
Genericity Index (GI) Methodological. Indicates the genericity of an approach for the development of an adaptive system N/A N/A Indicates the effort to adapt an approach to an actual self-adaptive case study Global Design Managed system

| Separation of Concerns Index (SCI) | Architectural. Indicates the degree of dependence between the managing and the managed systems | S C I \= N r of adaptive elements N r of functional elem dependent on adaptivity si5_e | S C I ∈ Q si6_e | Informs about the mean utilization of the potential components for each service | Global | Design | Managed system
Managing system | | Adaptivity Pattern Index (API) | Architectural. Indicates the separation of concerns between the four steps of the MAPE loop at the architectural level | A P I \= N r of adaptive conceptual elements si7_e | A P I ∈ N si8_e | If API is 0 then the managing system is totally integrated with the managed system
If API is 4 then the managing system implements the four steps of MAPE | Global | Design | Managing system | | Minimum Adaptivity Growth (MAG) | Architectural. Indicates the minimum number of elements needed to make a system adaptive independently of the number of functionalities it provides | M A G \= M i n n r of elements f o r adaptivity si9_e | M A G ∈ N si10_e | Expresses the fixed growth of the managing system at the architectural level | Global | Design | Managing system | | Adaptivity Growth per Functionality (AGF) | Architectural. Indicates the number of elements for the i th adaptive functionality | A G F \= N r of elements f o r the i t h functionality si11_e | A G F ∈ N si12_e | Indicates the variable growth for introducing adaptivity per functionality at the architectural level | Global | Design | Managing system | | Overall Adaptivity Growth (OAG) | Architectural. Indicates the architectural growth in number of elements needed by adaptivity | O A G \= M A G + ∑ i \= 1 n A G F i si13_e | O A G ∈ N si14_e | | Global | Design | Managing system | | Average Adaptivity Growth (AvgAG) | Architectural. Indicates the average growth per functionality at the architectural level due to adaptivity | AvgAGF \= O A G n si15_e | AvgAGF ∈ Q si16_e | | Global | Design | Managing system | | Growth of Architectural Elements (GAE) | Architectural. Indicates the percentage growth at the architectural level due to adaptivity | G A E \= O A G N r of functional elements × 100 si17_e | G A E ∈ Q si18_e | | Global | Design | Managing system | | Domain Factors Influencing Adaptivity (DFIA) | Intrinsic. Indicates the number of domain specific factors taken in input by the managing system | DFIA \= N r of input domain factors in the adaptive logic si19_e | DFIA ∈ N si20_e | Higher is this value, stronger is the influence of the application domain or contextual aspects on the managing system | Global | Design | Managing system | | System Factors Influencing Adaptivity (SFIA) | Intrinsic. Indicates the number of domain specific factors taken in input by the managing | SFIA \= N r of input system factors in the adaptive logic si21_e | SFIA ∈ N si22_e | Higher is this value, stronger is the dependence between the managed and managing systems | Global | Design | Managing system | | Factors Influencing Adaptivity (FIA) | Intrinsic. Indicates the total number of factors influencing adaptivity | F I A \= DFIA + SFIA si23_e | F I A ∈ N si24_e | | Global | Design | Managing system | | Local Computational Complexity (LCC) | Intrinsic. Analyzes the local algorithm of each agent in terms of computational power | N/A | N/A | | Local | Design | Managing system | | Decentralization Degree (DD) | Intrinsic. Indicates the deciding step of the adaptivity | D D \= Control distribution between agents si25_e | N/A | Indicates how the decision process is distributed among agents and how many agents are involved in | Global | Design | Managing system | | Action Locality Index (ALI) | Intrinsic. Studies the strategies of the agents concerning the information and needs | A L I \= Repercussions of local action on the rest of the system si26_e | N/A | | Global | Design | Managing system | | Agent Number Influence (ANI) | Intrinsic. Indicates how efficiency increases or decreases depending on the number of agents | A N I \= Efficiency of the system with n agents Efficiency of the system with p agents si27_e | A N I ∈ Q si28_e | p can be higher or less than n | Global | Design | Managing system | | Automated Administration Tasks (AAT) | Intrinsic. Indicates the percentage of the automated administration tasks achieved through adaptivity with respect to the total number of administration tasks required by the system | A A T \= N r of automated admin tasks N r of total admin tasks si29_e | A A T ∈ Q si30_e | | Global | Design | Managing system | | Average User Interaction per Functionality (AvgUIF) | Intrinsic. Indicates the average number of interactions users should perform to require a functionality | AvgUIF \= ∑ i \= 0 n N r of interactions f o r the i t h functionality n si31_e | AvgUIF ∈ Q si32_e | n is the total number of functionalities offered by the system | Global | Design | Managed system | | Latency (Latency) | Runtime. Indicates the variation of the response time in the presence of self-adaptivity with respect to no adaptivity mechanisms | Latency \= Response time in a self - adaptive situation Response time in a nominal situation si33_e | Latency ∈ Q si34_e | It may be computed as: number of atomic operations, the computing time, or the number of steps needed by agents to reach a solution | Global | Runtime | Managing system | | Working vs. Adaptivity Time (WAT) | Runtime. Indicates the time spent for adaptivity with respect to the time spent for working | W A T \= Working time Adaptivity time si35_e | W A T ∈ Q si36_e | If less than 1, a lot of time is spent for adaptivity | Global | Runtime | Managed system
Managing system | | Communication Load (CL) | Runtime. Indicates the communication load among agents for adaptivity needs | C L \= Communication load in self - adaptive situation Communication load in a nominal situation si37_e | C L ∈ Q si38_e | It can be measured through the amount of exchanged messages among the agents | Global | Runtime | Managed system
Managing system | | Quality of Response (QoR) | Runtime. Indicates the variation of the quality of response in the presence of self-adaptivity with respect to the nominal conditions for the same functionality | Q o R \= Quality of response in a self - adaptive situation Quality of response in a nominal situation si39_e | Q o R ∈ Q si40_e | The quality of the response refers to the functional adequacy of the system | Global | Runtime | Managed system
Managing system | | Non Determinism (ND) | Runtime. Indicates the differences between the obtained solution for the same scenario in distributed asynchronous agent systems | N D \= Distance between different solutions si41_e | N/A | Provides information about the stability of a system | Global | Runtime | Managed system
Managing system | | Progress (Progress) | Runtime. Indicates how progressively a complete solution exploiting self-adaptive properties is reached | Progress \= Percentage of a goal reached at each step si42_e | Progress ∈ Q si43_e | Measures the activity in time of a system | Global | Runtime | Managed system
Managing system | | CPU Performance (CPUP) | Runtime. Indicates the variation of the CPU performances for when self-adaptivity is performed with respect to the CPU performances in nominal conditions | CPUP \= C P U performance in a self - adaptive situation C P U performance in a nominal situation si44_e | CPUP ∈ Q si45_e | | Global | Runtime | Managed system
Managing system | | Storage Dimension Growth (SDG) | Runtime. Indicates the physical growth due to the presence of the self-adaptive mechanisms | N/A | N/A | Self-adaptation mechanisms include agents and their link to the managed system | Global | Design
Runtime | Managing system | | Storage Dimension of the Agent (SDA) | Runtime. Indicates the physical storage growth to store the agents | N/A | N/A | | Global | Design
Runtime | Managing system | | Storage Dimension of the Connections between Adaptive and Functional Parts (SDCAF) | Runtime. Indicates the physical storage growth due to the link and communication between the managing and managed systems | N/A | N/A | | Global | Design
Runtime | Managed system
Managing system | | Robustness Index (RI) | Runtime. Indicates the ability of a system to maintain a stable behavior under perturbations | N/A | N/A | To measure RI it may be observed if the system maintains a functional adequacy during perturbations, or reaches a state closed to a previous one, or the changes between the perturbation state and the stable state are minimal | Global | Runtime | Managed system
Managing system | | Time for Adaptation (TA) | Runtime. Indicates the number of steps needed by the agents to return to a nominal functioning of the system | TA = Time to return to a nominal behavior after a perturbation | T A ∈ Q si46_e | It can be measured for each agent or for the system as a whole | Global | Runtime | Managed system
Managing system |

t0035_a t0035_b

The proposed criteria are grouped in four categories: methodological, architectural, intrinsic, and runtime. The methodological category of metrics concerns the development approaches for self-adaptive systems at a high level of abstraction. The first 3 metrics in Table 13.6 belong to this category. The architectural related metrics focus on the connection between the managing and the managed systems, and on the growth of the overall system due to the self-adaptive mechanisms. The next 7 metrics in Table 13.6 belong to this category. The intrinsic category captures the complexity of the self-adaptive process. The next 9 metrics in Table 13.6 belong to this category. The authors propose 12 runtime metrics focused mainly on the performance aspects and resource usage. For each metric in Table 13.6 we indicate in the Definition column its category.

Kaddoum et al. consider that usually self-adaptive systems exploit autonomous entities, called agents, to implement the managing system. The global self-adaptive behavior emerges from the local behaviors of the agents and their interactions. Considering agents, the authors capture also the centralized and/or distributed control aspects of the managing system. Further, the metrics introduced by Kaddoum et al. address both endogenous changes, triggered by the entities inside the system, and exogenous changes, triggered by the entities external to the system.

The authors have identified the evaluation criteria and metrics by analyzing several self-adaptive approaches available in the scientific literature. Further, they have investigated the applicability and usability of the proposed metrics on five systems: a web-based client-server and a videoconferencing system proposed by [ 21 ], DAMASCOP [ 22 ], an adaptive image server [ 23 ], and AHA! [ 24 ]. The authors list the metrics which are meaningful for the evaluation of each of these systems, without actually computing them. There is no tool made available by the authors to compute the defined metrics.

Kaddoum et al. propose also several hints on how to exploit the proposed criteria and metrics for the comparison among several self-adaptive solutions. The authors sustain that it is very useful to perform both a comparison among several self-adaptive systems by considering several criteria and metrics, as well as a comparison among several self-adaptive systems by considering a single criterion and/or metric at a time.

For a multi-criteria comparison, Kaddoum et al. advice to choose a subset of the proposed metrics, compute them for the systems under analysis, and compare the results considering all the dimensions/objectives/metrics together. To have a complete view of the measured aspects, Kaddoum et al. propose the use of a radar view, as a meaningful way to analyze the self-adaptive systems. The most suitable self-adaptive system is the one closest of the center of the radar.

For a single-criterion comparison, Kaddoum et al. introduce several typical archetypal behaviors and hints on how to interpret them. The authors sustain that each criterion considered separately may provide valuable information for the comparison of self-adaptive systems.

13.4.3 Software Adaptability at the Architectural Level

Perez-Palacin et al. [ 13 ] propose a set of five metrics for the evaluation of adaptivity at the architectural level in component-based systems. The metrics are used by software architects during the design phase to evaluate the adaptability of a software system. In particular, four of the metrics are focused on the adaptability characteristics of the services of the architecture and one on the adaptability of the architecture as a whole (see Table 13.7 ).

Table 13.7

Metrics at the Architectural Level

Name Definition Formula Values Observations Evaluation Perspective Evaluation Time Evaluation Scope
Absolute adaptability of a service (AAS) Measures the number of different alternatives in terms of used components for providing a given service A A S \= ∪ C i si47_e A A S ∈ N n si48_e Quantifies how much adaptable a service is by counting the different alternatives to execute a service, where the service adaptability grows according to the number of components able to provide it Local Design Managed system
Relative adaptability of a service (RAS) Measures the number of used components that provide a given service with respect to the number of components actually offering such service A A S \= ∪ C i C i si49_e RAS ∈ Q n si50_e Describes how each service stresses its adaptability choices. Informs how much more adaptable the service could be Local Design Managed system
Mean of absolute adaptability of services (MAAS) Measures the mean number of used components per service MAAS \= ∑ i \= 1 n A A S i n si51_e MAAS ∈ Q si52_e Offers insights into the mean size and effort needed to manage each service Local Design Managed system
Mean of relative adaptability of services (MRAS) Represents the mean of RAS MRAS \= ∑ i \= 1 n RAS i n si53_e MRAS ∈ Q si54_e Informs about the mean utilization of the potential components for each service Local Design Managed system
Level of system adaptability (LSA) Measures the number of components in the system with respect to the number of components that the most adaptable architecture would use L S A \= ∑ i \= 1 n A A S i ∑ i \= 1 n C i si55_e L S A ∈ Q 0 1 si56_e A value of 1 means that the system uses all the components for each service, hence adaptability is to the maximum Global Design Managed system

t0040

The authors of these metrics provide also a tool called SOLAR (SOftware quaLities and Adaptability Relationships) to compute the proposed metrics. Further, they validate the metrics and the tool on a Web application implementing the enrolment of students for an academic year in university.

13.4.4 Findings

As in the case of quality attributes based evaluation approaches, also from the description of these three metric-based approaches it results that the proposed sets of metrics are disjoint. However, there may be established links among the three approaches. For example, for the computation of the adaptivity metric [ 11 ], the performance metrics introduced in [ 12 ] may be exploited. Further, the architectural metrics defined in [ 13 ] may be compared to the metrics belonging to the architectural criteria in [ 12 ]. For example, the level of system adaptability (LSA) metric [ 13 ] may have as correspondence the overall adaptivity growth (OAG) metric in [ 13 ]. The two sets of architectural metrics may be merged together into a single one.

The metrics proposed by the three approaches capture various aspects which may be evaluated in self-adaptive systems:

–   Reference [ 11 ] focuses on the performances of a self-adaptive system, hence on the behavioral advantages obtained from the self-adaptivity;

–   Reference [ 12 ] focuses on the design issues in self-adaptive systems (methodological, architectural, and intrinsic criteria), as well as on the execution issues (performance criteria); and

–   Reference [ 13 ] focuses on architectural aspects addressed at design time of self-adaptive systems.

From these various evaluation aspects, we can remark that there are metrics which are meaningful for the software engineers who are interested both in the design and in the execution of self-adaptive systems, and there are metrics which are meaningful for the users (i.e., final users of a system or software engineers who want to integrate a self-adaptive system into another one that they develop) of self-adaptive systems (i.e., runtime metrics). For example, for a software engineer it is fundamental to know whether the self-adaptive mechanisms are based on a centralized or decentralized control, and on a local or distributed solution. These aspects may be ignored by a final user, who may be interested in the quality of response or in the communication load.

The metrics proposed in [ 12 ] have been defined after having analyzed several approaches for self-adaptive systems and captured what may be meaningful for the evaluation of adaptive systems. Reference [ 11 ] started with the idea of having one metric for the evaluation and comparison of self-adaptive systems, while [ 13 ] explores adaptability and its influence on other quality attributes.

From the point of view of the evaluation scope, we notice that two (i.e., [ 13 ] and [ 11 ]) out of the three presented approaches focus on the managed part of a self-adaptive system. Together they define six metrics for the managed part. We suppose there is a greater interest in measuring the benefits obtained through self-adaptive mechanisms than measuring the performance of the self-adaptive mechanisms themselves. The approach presented in [ 12 ] proposes 17 metrics for the managing part, 3 metrics for the managed part, and 11 metrics for both parts. Here, the balance goes in favor of the managing part of a self-adaptive system. Further, we observe that [ 11 ] focuses entirely on runtime evaluation (i.e., 1 metric), while [ 25 ] on design time evaluation (i.e., 5 metrics). Totally, in this section we have presented 24 metrics concerning design time evaluation, 13 metrics concerning runtime evaluation, and 3 for both design and runtime evaluation. The evaluation perspective is mainly global, i.e., 32 out of 37 metrics presented in the three approaches have a global perspective while 5 provide a local perspective.

Table 13.8 summarizes three aspects of these evaluation approaches: case studies on which each approach has been applied by the authors, tool support provided by the authors for the computation of metrics, and evaluation computation performed on a real example.

Table 13.8

Summary of the Metrics based Approaches Considering Their Actual Application/Applicability

Approach Case Study Tool Support Evaluation Type
Reinecke et al. [ 11 ] Web services reliable messaging system Ad hoc tool, custom test-bed Quantitative

| Kaddoum et al. [ 12 ] | Web client-server
Videoconference
DAMASCOPE
Adaptive image server
AHA! | N/A | Qualitative | | Perez-Palacin et al. [ 13 ] | Web application for university enrolment | SOLAR | Qualitative |

t0045

From Table 13.8 , we remark that all the presented approaches have been applied to one or more case studies to outline their applicability and usability. Perez-Palacin et al. propose their tool called SOLAR for the computation of metrics. Further, the authors provide qualitative results for the evaluation of the analyzed case study. Reinecke et al. mention the use of an ad-hoc tool for the computation of the adaptivity metric. They compute a quantitative evaluation of the analyzed case study. Kaddoum et al. do not mention any tool support. They indicate which may be the metrics meaningful for the evaluation of five case studies described in the scientific literature, without actually computing the metrics.

13.5 Trade-offs in Evaluation of Self-Adaptive Systems

Maybe the best example to introduce trade-offs is the well-known axiom used in software systems engineering: Better, cheaper, faster—pick any two! Essentially, it says that only two of these three issues can be achieved contemporaneously. This axiom is cited also by Taylor et al. in [ 25 ] adapted as Functionality-scalability-performance—pick any two! when addressing the deployment challenges, mentioning that the software architect's job is to find a solution which minimizes the unhappiness of the users in exploiting the deployed system. We would further personalize this axiom for self-adaptive system as following: Adaptivity-performance-cost—pick any two! and reading it as achieving adaptivity and performance has a cost.

From the previous sections of this chapter, it results that various trade-offs should be addressed in the evaluation of self-adaptive systems:

–   Evaluation of the managing part or of the managed part? A hint on addressing this trade-off is mainly based on who is interested in the evaluation: software engineers are interested primarily in the managing part or in both of them, while the final users are interested in the managed part. Furthermore, a good result of the evaluation of the managing part leads to the expectation of a good result also for the evaluation of the managed part.

–   Evaluation at design time or at runtime? A hint on addressing this trade-off is based on whether we are interested more the in quality of the design or in the quality of the obtained functionality. Usually, it is desired that both qualities are addressed. This trade-off is closely related to the first one on evaluating the self-adaptive mechanisms or the self-adaptive system.

–   Quality attributes or software metrics? A hint on addressing this trade-off is similar to the first one being based on who is interested in the evaluation: software engineers are interested in using all the available evaluation mechanisms in order to have an as complete as possible evaluation of a system, while final users are usually focused on part of the system's features. Another possible solution to this trade-off is given by Geihs [ 9 ] who prefers metrics (see the last paragraph of Section 13.3.3 ).

–   Local or global evaluation? A hint on addressing this trade-off is based on the objective of the evaluation and on the mechanisms chosen for the evaluation. There are objectives concerning part of a system and there are objectives concerning the entire system. Similarly, there are evaluation mechanisms having a local perspective and there are evaluation mechanisms having a global perspective.

–   Qualitative or quantitative evaluation? A hint on addressing this trade-off is based on the following hypothesis: if an evaluation is needed in the early stages of the system's development, a qualitative evaluation (i.e., exploiting quality attributes) is appropriate; if an evaluation is needed after the system has been developed or during its execution (i.e., exploiting software metrics), then a quantitative evaluation should be adopted. Further, when comparing two or more self-adaptive solutions, the objective is to identify the best one; it is of secondary importance to evaluate how much better is one solution with respect to the others.

–   Self-adaptivity or other quality attributes? Perez-Palacin et al. [ 13 ] discusses the trade-off between the adaptability of a system and its availability quality attribute. The result is that “any architecture that satisfies the availability needs adaptation.” There are quality attributes which go hand-in-hand with self-adaptivity (as availability [ 13 ], robustness and fault tolerance [ 6 ], dependability and safety [ 13 ]) having compatible objectives. Also there are quality attributes which lead to conflicts with self-adaptivity (i.e., cost, performance (i.e., time to adapt and reaction time [ 6 ], working vs. adaptivity time, communication load, OAG, quality of response, and computational complexity [ 12 ])).

To summarize, self-adaptivity is a complex issue to address. Its evaluation seems even harder. The evaluation can be done from various points of view and through various mechanisms. Hence, to achieve a meaningful result from the evaluation it is important to identify which is the objective of the evaluation and which is the appropriate mechanism through which to achieve this objective.

13.6 Conclusions and Further Work

In this chapter, we have investigated the quality evaluation of self-adaptive systems. We have summarized the available approaches in the evaluation of self-adaptive systems and identified the similarities and the differences among them in order to extract general, common, and well-defined guidelines for the evaluation of self-adaptive systems. Therefore, we have proposed several categorization criteria of the evaluation approaches from various points of view. These criteria should be seen as the main aspects which should be considered both during the development and evaluation of self-adaptive systems. Furthermore, we have described the evaluation approaches in a common and uniform way in order to be able the analyze them. The results of this analysis may be summarized as follows. Each evaluation provides meaningful mechanisms for investigating self-adaptive systems. On the other hand none of them is complete and none manages to capture all the facets and related issues of self-adaptivity. Hence, further refinement of the available solutions is needed and probably novel evaluation mechanisms specific to self-adaptive issues should be defined.

The presentation of case studies on which the evaluation approaches have been applied by their authors plays a fundamental role in understanding both the approach, as well as its usefulness. The same importance is also held by the reports on the application of an approach by other researchers and their feedback (see [ 9 ]).

We must note that even if several papers motivate their approach with the need to compare various self-adaptive solutions, just [ 12 ] considers more than one case study and proposes a radar view and several archetypical behaviors (and hints on how to interpret them) for the comparison of self-adaptive systems. The other approaches which consider a case study have the objective just to apply their approach.

We stress the importance to have a tool support for the evaluation of self-adaptive systems, as well as the importance to have evaluation mechanisms computable through tool support. A tool support enables the application and the diffusion of the approach by providing an example on how to compute an evaluation mechanism and a way to actually compute it and to obtain a result. Furthermore, it would be easier to compare both the self-adaptive systems and to compare the tools that support the evaluation of self-adaptive systems. Half of the presented approaches do not have any tool support. In addition they do not provide an example of how to calculate the evaluation mechanism and hence who wants to use the proposed evaluation mechanisms may have difficulties to understand them or may not interpret them properly.

The trade-offs mentioned in Section 13.5 are inspired by the taxonomy presented in Section 13.2 . The main hint which results from the presented trade-offs is that evaluation should consider the objective of the evaluation, the perspective of whom performs the evaluation, and the available mechanisms which may be used for the evaluation.

The work in this chapter represents a first step in the definition of a taxonomy for the evaluation of self-adaptive systems as well as in the identification of new and enhanced approaches for the evaluation of self-adaptive systems. Another taxonomy for self-protecting systems is available in [ 26 ]. This taxonomy considers also the approach quality. The two taxonomies may be merged and may represent a starting point for a more general taxonomy concerning self-adaptive systems. Further work will also concern the application of the identified taxonomy to several case studies in various application domains (e.g., the case studies presented during SEAMS 2015 in the Artifacts session (see website http://www.disim.univaq.it/seams2015/ or the exemplars available at the “Software Engineering for Self-Adaptive Systems” website https://www.hpi.uni-potsdam.de/giese/public/selfadapt/exemplars ).

Another future work concerns the metrics for the evaluation of self-adaptive systems. Reinecke et al. [ 11 ] reflect that a metric should have at least the following three main characteristics to be considered a good metric: (1) comparability, i.e., the metric allows the comparison between systems (including the comparison of the values computed through the metric); (2) intuitive interpretation, i.e., the metric provides intuitive notions of the system under analysis (including what does it measure and how the result can be interpreted); and (3) simple and efficient computation, i.e., the metric should be computed with little effort, otherwise it will not be used in practice. Based on these assumptions, a future work will analyze the goodness of the metrics proposed for the evaluation of self-adaptivity.

In Ref. [ 27 ], the author mentions that besides quality attributes and software metrics, also patterns, antipatterns, and architecture and code smells may provide meaningful information on the quality of self-adaptive systems. Hence, we plan to investigate also the possibility to add other evaluation mechanisms which are used in software engineering for quality evaluation.

References

[1] Cheng B.H.C., de Lemos R., Inverardi P., Magee J. In: Software Engineering for Self-Adaptive Systems. Berlin: Springer; . LNCS. 2009;Vol. 5525.

[2] de Lemos R., Giese H., Muller H.A., Shaw M. In: Software Engineering for Self-Adaptive Systems II. Berlin: Springer; . LNCS. 2013;Vol. 7475.

[3] Clements P., Kazman R., Klein M. Evaluating Software Architectures: Methods and Case Studies. Boston, MA: Addison-Wesley; 2002.

[4] Kitchenham B., Brereton P., Budgen D., Turner M., Bailey J., Linkman S.G. Systematic literature reviews in software engineering—a systematic literature review. Inf. Softw. Technol. 2009;51(1):7–15.

[5] Brun Y. Improving impact of self-adaptation and self-management research through evaluation methodology. In: Proceedings of the 2010 ICSE Workshop on Software Engineering for Adaptive and Self-Managing Systems; New York: ACM; 2010:1–9.

[6] McCann J.A., Huebscher M. Evaluation issues in autonomic computing. In: Grid and Cooperative Computing—GCC 2004 Workshops; 2004:597–608.

[7] Neti S., Müller H. Quality criteria and analysis framework for self-healing systems. In: ICSE Workshop on Software Engineering for Adaptive and Self-Management Systems; 2007.

[8] Villegas N.M., Müller H., Tamura G., Duchien L., Casallas R. A framework for evaluating quality-driven self-adaptive software systems. In: 6th International Symposium on Software Engineering for Adaptive and Self-Management Systems; 2011:80–89.

[9] Geihs K. Self-adaptivity from different application perspectives: requirements, realizations, reflections. In: de Lemos R., et al., eds. Self-Adaptive Systems. Berlin: Springer; 376–392. LNCS. 2013;Vol. 7475.

[10] Hawthorne M.J., Perry D.E. Architectural styles for adaptable self-healing dependable systems. In: Proceedings of IEEE/ACM International Conference on Software Engineering (ICSE 2005), St. Louis, Missouri, USA; 2005.

[11] Reinecke P., Wolter K., Van Moorsel A. Evaluating the adaptivity of computing systems. Perform. Eval. 2010;67:676–693.

[12] Kaddoum E., Raibulet C., Georgé J.P., Picard G., Gleizes M.P. Criteria for the evaluation of self-* systems. In: ICSE Workshop on Software Engineering for Adaptive and Self-Managing Systems; 2010:29–38.

[13] Perez-Palacin D., Mirandola R., Merseguer J. On the relationship between QoS and software adaptability at the architectural level. J. Syst. Softw. 2014;87:1–17.

[14] Cheng S.W., Garlan D., Schmerl B. Evaluating the effectiveness of the rainbow self-adaptive system. In: ICSE Workshop on Software Engineering for Adaptive and Self-Managing Systems; 2009:132–141.

[15] Liu Y., Gorton I. Implementing adaptive performance management in server applications. In: ICSE Workshop on Software Engineering for Adaptive and Self-Management Systems; 2007.

[16] Sadat H., Ghorbani A. On the evaluation of adaptive web systems. In: Proceedings of the Workshop on Web-Based Support Systems; 2004:127–136.

[17] Weibelzahl S. Evaluation of adaptive systems. In: Bauer M., Gmytrasiewicz P.J., Vassileva J., eds. User Modeling 2001. Berlin: Springer-Verlag; 2001:292–294. Proceedings of the Eighth International Conference, UM2001, Lecture Notes in Artificial Intelligence LNAI 2109. .

[18] Subramanian N., Chung L. Metrics for adaptability. J. Appl. Technol. Div. 1999;95–108.

[19] Kaddoum E., Gleizes M.P., George J.P., Picard G. Characterizing and evaluating problem solving self-* systems. In: Proceedings of the ADAPTIVE 2009 Conference; IEEE Press; 2009.

[20] Raibulet C., Masciadri L. Evaluation of dynamic adaptivity through metrics: an achievable target? In: Joint IEEE/IFIP Conference on Software Architecture 2009 & European Conference on Software Architecture; 2009:341–344.

[21] 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.

[22] Clair G., Kaddoum E., Gleizes M.P., Picard G. Self-regulation in self-organizing multi-agent systems for adaptive and intelligent manufacturing control. In: IEEE International Conference on Self-Adaptive and Self-Organizing Systems (SASO); Venice, Italy: IEEE Computer Society; 2008.

[23] Gorton I., Liu Y., Trivedi N. An extensible and lightweight architecture for adaptive server applications. Softw. Pract. Exp. J. 2008;8(8):853–883.

[24] De Bra P., Aerts A., Berden B., de Lange B., Rousseau B., Santic T., Smits D., Stash N. Aha! the adaptive hypermedia architecture. In: HYPERTEXT '03: Proceedings of the Fourteenth ACM Conference on Hypertext and Hypermedia, New York, NY, USA; 2003:81–84.

[25] Taylor R.N., Medvidovic N., Dashofy E.M. Software Architecture: Foundations, Theory, and Practice. New York: John Wiley & Sons; 2010.

[26] Yuan E., Esfahani N., Malek S. A systematic survey of self-protecting software systems. ACM Trans. Auton. Adapt. Syst. 2014;8(4).

[27] Raibulet C. Hints on quality evaluation of self-systems. In: 8th IEEE International Conference on Self-Adaptive and Self-Organizing Systems, London, UK, September 8–12; 2014.


1 Systems and software engineering—Systems and software Quality Requirements and Evaluation (SQuaRE)—System and software quality models.