AJFCode: an approach for full aspect-oriented code generation from reusable aspect models

Model-driven engineering (MDE) and aspect-oriented software development (AOSD) contribute to the common goal of development of high-quality code in reduced time. To complement each approach with the benefits of the other, various methods of integration of the two approaches were proposed in the past...

Full description

Bibliographic Details
Main Authors: Mehmood, Abid, Abang Jawawi, Dayang Norhayati
Format: Article
Language:English
Published: Korean Society for Internet Information 2022
Subjects:
Online Access:http://eprints.utm.my/102740/1/DayangNorhayatiAbang2022_AJFCodeanApproachforFullAspect.pdf
_version_ 1796867323187953664
author Mehmood, Abid
Abang Jawawi, Dayang Norhayati
author_facet Mehmood, Abid
Abang Jawawi, Dayang Norhayati
author_sort Mehmood, Abid
collection ePrints
description Model-driven engineering (MDE) and aspect-oriented software development (AOSD) contribute to the common goal of development of high-quality code in reduced time. To complement each approach with the benefits of the other, various methods of integration of the two approaches were proposed in the past. Aspect-oriented code generation, which targets obtaining aspect-oriented code directly from aspect models, offers some unique advantages over the other integration approaches. However, the existing aspect-oriented code generation approaches do not comprehensively address all aspects of a model-driven code generation system, such as a textual representation of graphical models, conceptual mapping, and incorporation of behavioral diagrams. These problems limit the worth of generated code, especially in practical use. Here, we propose AJFCode, an approach for aspect-oriented model-driven code generation, which comprehensively addresses the various aspects including the graphical models and their text-based representation, mapping between visual model elements and code, and the behavioral code generation. Experiments are conducted to compare the maintainability and reusability characteristics of the aspect-oriented code generated using the AJFCode with the most comprehensive object-oriented code generation approach. AJFCode performs well in terms of all metrics related to maintainability and reusability of code. However, the most significant improvement is noticed in the separation of concerns, coupling, and cohesion. For instance, AJFCode yields significant improvement in concern diffusion over operations (19 vs 51), coupling between components (0 vs 6), and lack of cohesion in operations (5 vs 9) for one of the experimented concerns.
first_indexed 2024-03-05T21:25:31Z
format Article
id utm.eprints-102740
institution Universiti Teknologi Malaysia - ePrints
language English
last_indexed 2024-03-05T21:25:31Z
publishDate 2022
publisher Korean Society for Internet Information
record_format dspace
spelling utm.eprints-1027402023-09-20T03:36:29Z http://eprints.utm.my/102740/ AJFCode: an approach for full aspect-oriented code generation from reusable aspect models Mehmood, Abid Abang Jawawi, Dayang Norhayati QA75 Electronic computers. Computer science Model-driven engineering (MDE) and aspect-oriented software development (AOSD) contribute to the common goal of development of high-quality code in reduced time. To complement each approach with the benefits of the other, various methods of integration of the two approaches were proposed in the past. Aspect-oriented code generation, which targets obtaining aspect-oriented code directly from aspect models, offers some unique advantages over the other integration approaches. However, the existing aspect-oriented code generation approaches do not comprehensively address all aspects of a model-driven code generation system, such as a textual representation of graphical models, conceptual mapping, and incorporation of behavioral diagrams. These problems limit the worth of generated code, especially in practical use. Here, we propose AJFCode, an approach for aspect-oriented model-driven code generation, which comprehensively addresses the various aspects including the graphical models and their text-based representation, mapping between visual model elements and code, and the behavioral code generation. Experiments are conducted to compare the maintainability and reusability characteristics of the aspect-oriented code generated using the AJFCode with the most comprehensive object-oriented code generation approach. AJFCode performs well in terms of all metrics related to maintainability and reusability of code. However, the most significant improvement is noticed in the separation of concerns, coupling, and cohesion. For instance, AJFCode yields significant improvement in concern diffusion over operations (19 vs 51), coupling between components (0 vs 6), and lack of cohesion in operations (5 vs 9) for one of the experimented concerns. Korean Society for Internet Information 2022-06-30 Article PeerReviewed application/pdf en http://eprints.utm.my/102740/1/DayangNorhayatiAbang2022_AJFCodeanApproachforFullAspect.pdf Mehmood, Abid and Abang Jawawi, Dayang Norhayati (2022) AJFCode: an approach for full aspect-oriented code generation from reusable aspect models. KSII Transactions on Internet and Information Systems, 16 (6). pp. 1973-1993. ISSN 1976-7277 http://dx.doi.org/10.3837/tiis.2022.06.011 DOI:10.3837/tiis.2022.06.011
spellingShingle QA75 Electronic computers. Computer science
Mehmood, Abid
Abang Jawawi, Dayang Norhayati
AJFCode: an approach for full aspect-oriented code generation from reusable aspect models
title AJFCode: an approach for full aspect-oriented code generation from reusable aspect models
title_full AJFCode: an approach for full aspect-oriented code generation from reusable aspect models
title_fullStr AJFCode: an approach for full aspect-oriented code generation from reusable aspect models
title_full_unstemmed AJFCode: an approach for full aspect-oriented code generation from reusable aspect models
title_short AJFCode: an approach for full aspect-oriented code generation from reusable aspect models
title_sort ajfcode an approach for full aspect oriented code generation from reusable aspect models
topic QA75 Electronic computers. Computer science
url http://eprints.utm.my/102740/1/DayangNorhayatiAbang2022_AJFCodeanApproachforFullAspect.pdf
work_keys_str_mv AT mehmoodabid ajfcodeanapproachforfullaspectorientedcodegenerationfromreusableaspectmodels
AT abangjawawidayangnorhayati ajfcodeanapproachforfullaspectorientedcodegenerationfromreusableaspectmodels