Specification and Automatic Checking of Architecture Constraints on Object Oriented Programs - Archive ouverte HAL Accéder directement au contenu
Article Dans Une Revue Information and Software Technology Année : 2018

Specification and Automatic Checking of Architecture Constraints on Object Oriented Programs

Résumé

Context: Architecture constraints are specifications of conditions to which an architecture model must adhere in order to satisfy an architecture decision imposed by a given design principle. These constraints can be specified with predicate languages like OCL at design time and checked on design artifacts. Objective: Many works in the literature studied the importance of checking these constraints to guarantee quality on design models, and to prevent technical debt and maintenance difficulties. In this paper, we propose a process whose ultimate goal is to enable the checking of these constraints in the implementation stage. Method: The proposed process takes as input a textual specification of an architecture constraint specified at design stage. It translates this specification into meta-programs and then it uses them with aspect-oriented programming to check constraints at the implementation stage and at run-time on object-oriented programs. Results: We experimented an implementation of this process on a set of 12 architecture constraints. The results of this experimentation showed that our process is able to statically and dynamically detect architecture constraint violations on toy object-oriented applications, but also on real-world ones. at source code level and at runtime. It avoids the disappearance of architecture decision knowledge in implementation artifacts, and facilitates later their maintenance.
Fichier principal
Vignette du fichier
ist.pdf (553.83 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-01905953 , version 1 (26-10-2018)

Identifiants

Citer

Sahar Kallel, Chouki Tibermacine, Slim Kallel, Ahmed Kacem, Christophe Dony. Specification and Automatic Checking of Architecture Constraints on Object Oriented Programs. Information and Software Technology, 2018, 101, pp.16-31. ⟨10.1016/j.infsof.2018.05.002⟩. ⟨hal-01905953⟩
77 Consultations
248 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More