Reengineering an Adaptive System to Dynamic Software Product Lines: An Experience report
Dynamic Software Product Lines (DSPLs) extend traditional Software Product Lines by enabling runtime adaptation through predefined variability points. Despite their benefits, the migration of legacy or adaptive systems to DSPLs remains underexplored, especially through the use of feature toggles. This study aims to investigate how an adaptive AI-based smart home system can be refactored into a DSPL using feature toggles to manage runtime variability and improve modularity, flexibility, and performance. The research involved (i) a literature review on DSPLs and feature toggle strategies, (ii) the creation of feature models from code analysis, documentation, and expert interviews, and (iii) the incremental implementation of 13 feature toggles across three system modules (RecSys, ChatBot, Vision). Two experiments using factorial design were conducted to assess the impact on performance metrics. The refactored system demonstrated improved adaptability and reduced resource usage without performance degradation. Feature toggles enabled real-time activation/deactivation of functionalities, allowing for user-specific configurations and subscription models. However, limitations were found in toggle dependency management, requiring manual coding solutions. Feature toggles proved to be an effective and practical strategy for transforming an adaptive system into a DSPL, enhancing runtime flexibility and system evolution capabilities. The study highlights key considerations for managing toggles, such as modularization, architectural process, and the importance of documentation.
Authors
- Gustavo B. Figueiredo (ORCID: https://orcid.org/0000-0001-9756-378X)
- Cássio Prazeres (ORCID: https://orcid.org/0000-0003-0197-0909)
- Frederico Araújo Dur�ão (ORCID: https://orcid.org/0000-0002-7766-6666)
- Nilton F. S. Seixas (ORCID: https://orcid.org/0000-0003-3124-5599)
- Ivan Machado (ORCID: https://orcid.org/0000-0001-9027-2293)
- Maycon Peixoto (ORCID: https://orcid.org/0000-0002-4851-5228)
- Hérsio Massanori Iwamoto
- Rodrigo Rocha Gomes e Souza (ORCID: https://orcid.org/0000-0001-8186-0069)
- Eduardo Santana de Almeida
- Mayki dos Santos Oliveira
- Marcus Freire
- Dhyego Tavares M. da Cruz
Publication Details
- Published
- 2025-09-19
- DOI
- https://doi.org/10.5753/sbcars.2025.14142
- Primary Topic
- Advanced Software Engineering Methodologies
- Type
- article
- Field-Weighted Citation Impact
- 0.00