Result: Automatic Translation of OCL Meta-Level Constraints into Java Meta-Programs

Title:
Automatic Translation of OCL Meta-Level Constraints into Java Meta-Programs
Contributors:
REDCAD, جامعة صفاقس - Université de Sfax - University of Sfax, Models And Reuse Engineering, Languages (MAREL), Laboratoire d'Informatique de Robotique et de Microélectronique de Montpellier (LIRMM), Université de Montpellier (UM)-Centre National de la Recherche Scientifique (CNRS)-Université de Montpellier (UM)-Centre National de la Recherche Scientifique (CNRS)
Source:
SNPD 2015 - 16th IEEE/ACIS International Conference on Software Engineering. :213-226
Publisher Information:
CCSD, 2015.
Publication Year:
2015
Collection:
collection:CNRS
collection:MAREL
collection:LIRMM
collection:MIPS
collection:UNIV-MONTPELLIER
collection:UM-2015-2021
Subject Geographic:
Original Identifier:
HAL:
Document Type:
Conference conferenceObject<br />Conference papers
Language:
English
Relation:
info:eu-repo/semantics/altIdentifier/doi/10.1007/978-3-319-23509-7_15
DOI:
10.1007/978-3-319-23509-7_15
Rights:
info:eu-repo/semantics/OpenAccess
Accession Number:
edshal.lirmm.01235422v1
Database:
HAL

Further Information

In order to make explicit and tangible their design choices, software developers integrate, in their applications' models, constraints that their models and their implemetations should satisfy. Various environments enable constraint checking during the modeling stage, but in most cases they do not generate code that would enable the checking of these constraints during the implementation stage. It turns out that this is possible in a number of cases. Environments that provide this functionality only offer it for functional constraints (related to the states of objects in applications) and not for architectural ones (related to the structure of applications). Considering this limitation, we describe in this paper a system that generates metaprograms starting from architecture constraints, written in OCL at the metamodel level, and associated to a specific UML model of an application. These metaprograms enable the checking of these constraints at runtime.