Monitoring Association Constraints in Model-Oriented Programming - Archive ouverte HAL Accéder directement au contenu
Communication Dans Un Congrès Année : 2023

Monitoring Association Constraints in Model-Oriented Programming

Résumé

Associations are a key concept in modeling languages as a way to formalize the relationships between domain concepts. Unfortunately, the support of semantically rich associations able to represent complex relationships is often missing, and this is both at the model and code level. At the model level, complex constraints on associations are often represented by using external, textual constraint languages which are difficult to understand and to maintain. At the code level, the situation is even worse, as mainstream object-oriented languages lack direct support for associations. In order to alleviate this problem, in this paper we propose a reification of complex association constraints so that they can be easily specified at development time and monitored at runtime. We do this by leveraging PAMELA, an annotation-based Java modeling framework, which promotes blending classical programming with modeling through the use of annotations and runtime code instrumentalization and monitoring. PAMELA is in the scope of Model-Oriented Programming approaches. We provide a classification of association constraints and discuss different implementation strategies. Finally, we demonstrate the feasibility of our approach with a prototype implementation and an initial catalog of association patterns.
Fichier principal
Vignette du fichier
MLE_2023_AssociationPatterns.pdf (717.41 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-04240673 , version 1 (13-10-2023)

Identifiants

Citer

Sylvain Guérin, Joël Champeau, Antoine Beugnard, Salvador Martínez. Monitoring Association Constraints in Model-Oriented Programming. MODELS-C 2023: ACM/IEEE International Conference on Model Driven Engineering Languages and Systems Companion, Oct 2023, Vasteras, Sweden. ⟨10.1109/MODELS-C59198.2023.00068⟩. ⟨hal-04240673⟩
33 Consultations
21 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More