Context: In this thesis, we investigated the evolvability, understandability, and reusability of model-based analyses. For this purpose, we studied the co-dependency between models and analyses, particularly the structure and interdependence of artefacts and the feature-based decomposition and composition of model-based analyses.
Challenges: Software developers use models of software systems to determine the evolvability and reusability of an architectural design. These models enable them to analyse the software architecture before writing the first line of code. However, due to evolutionary changes, model-based analyses are also prone to the deterioration of evolvability, understandability, and reusability. These problems can be traced back to the co-evolution of the modelling language and the analysis. The purpose of an analysis is a systematic examination or study of specific properties of a system under study. For example, suppose software developers want to analyse new properties of a software system. In that case, they must adapt features of the modelling language and the corresponding model-based analyses before they can analyse new properties. Features in the context of the modelling language are, for example, quality properties such as performance or reliability. Features in a model-based analysis are, for example, an analysis technique that analyses such a quality property. Such changes lead to the increased complexity of the model-based analyses and, as a result, to difficult-to-maintain model-based analyses. This increasing complexity reduces the understandability of the model-based analyses. As a result, development cycles lengthen, and software developers need more time to adapt the software system to changing requirements.
State-of-the-Art: Current approaches allow the coupling of analyses on one system or across distributed systems. These approaches provide the technical structure for coupling simulations rather than a structure and process for how components can be (de)composed. Another challenge in composing analyses is the behavioural aspect, in which the analysis component influences what. By synchronising each participating simulation, the decomposition of simulations increases the need for communication. State-of-the-art approaches reduce communication overhead; however, decomposition and composition are left to the user. There are also several approaches to modelling variability that use feature diagrams to be able to use product line techniques. However, these approaches must provide a process for identifying and structuring analysis features.
Contributions: This thesis aims to improve model-based analysis's evolvability, understandability, and reusability. For this purpose, we take the reference architecture for domain-specific modelling languages as a basis and investigate the transferability of the structure of the reference architecture to model-based analyses. The layered reference architecture maps the dependencies of the analysis features and components by assigning them to specific layers. We developed three processes for applying the reference architecture: (i) refactoring an existing model-based analysis, (ii) designing a new model-based analysis, and (iii) extending an existing model-based analysis. In addition to the reference architecture for model-based analyses, we have identified recurring structures that lead to problems in evolvability, understandability and reusability; in the literature, these recurring structures are also called bad smells. In particular, we have investigated the co-dependency of Domain-specific Modelling Languages (DSMLs) and model-based analyses that lead to these recurring problems. So far, bad smells for DSMLs and source code have been considered separately, although they are co-dependent. We examined established model-based analyses and identified and specified thirteen bad smells. In addition to specifying the bad smells, we provide a process for automatically identifying them and strategies for refactoring them so that developers can avoid or fix them. We also developed a modelling language for specifying this thesis's structure and behaviour of analysis components. Simulations are analyses to investigate a system when experimenting with the existing system is too time-consuming, costly, dangerous or simply impossible because the system does not exist (yet). Developers can use the specification to compare simulation components and thus identify identical components. Finding similar simulation components allows developers to reuse existing components and reduce the effort required to develop new components.
Validation: We evaluated our first contribution, the reference architecture for model-based analyses, by applying it to four model-based analyses. We chose a scenario-based evaluation that derives historical change scenarios from the repositories of the model-based analyses. In the evaluation, we can show that evolvability and understandability improve by determining the complexity, coupling, and cohesion. The metrics we used originate from information theory but were already used to evaluate the reference architecture for DSMLs. We evaluated our second contribution, the bad smells that emerge due to the co-dependency of model-based analyses and their corresponding DSMLs, by searching four model-based analyses for occurrences of our bad smells and fixing the found bad smells. We also chose a scenario-based evaluation that derives historical change scenarios from the repositories of the model-based analyses. We can show that bad smells negatively affect evolvability and understandability by determining the complexity, coupling, and cohesion before and after the refactoring. We evaluated our third contribution, the approach to specify and find components of model-based analyses, by specifying components of two model-based analyses and by applying our search algorithm to find analysis components with similar structure and behaviour. The evaluation results show that we can find similar analysis components and, as a result, that our approach can ease the search for analysis components with similar structure and behaviour. Thus, it can ease the reuse of such components.
Benefits: The contributions of our work support architects and developers in their day-to-day work to develop maintainable and reusable model-based analyses. For this purpose, we provide a reference architecture that aligns model-based analysis with the domain-specific modelling language, thus facilitating co-evolution. In addition to the reference architecture, we provide refactoring operations that allow architects and developers to align an existing model-based analysis with the reference architecture. In addition to this technical aspect, we have identified three processes that enable architects and developers to develop a new model-based analysis, modularise an existing model-based analysis and extend an existing model-based analysis. Of course, this is done so that the results conform to the reference architecture. In addition, our specification allows developers to compare existing simulation components and reuse them as needed. This avoids the need for developers to re-implement components.
| Related KIT institution | Institute of Information Security and Dependability (KASTEL) |
|---|---|
| Language | English |
| KITopen ID | 1000160784 |
| Keywords | Software Engineering, Software Architecture, Model-based Analyses, Bad Smells, Reference Architecture |
| Publisher | Karlsruher Institut für Technologie (KIT) |
| Size | xxxi, 276 p. |
| Faculty | Department of Informatics (INFORMATIK) |
| Institute | Institute of Information Security and Dependability (KASTEL) |
| Exam date | Jul 7, 2023 |
| Supervisors | Ralf H. Reussner Bernhard Rumpe |
| Relations in KITopen |