• KSII Transactions on Internet and Information Systems
    Monthly Online Journal (eISSN: 1976-7277)

AJFCode: An Approach for Full Aspect-Oriented Code Generation from Reusable Aspect Models


Abstract

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.


Statistics

Show / Hide Statistics

Statistics (Cumulative Counts from December 1st, 2015)
Multiple requests among the same browser session are counted as one view.
If you mouse over a chart, the values of data points will be shown.


Cite this article

[IEEE Style]
A. Mehmood and D. N. Jawawi, "AJFCode: An Approach for Full Aspect-Oriented Code Generation from Reusable Aspect Models," KSII Transactions on Internet and Information Systems, vol. 16, no. 6, pp. 1973-1993, 2022. DOI: 10.3837/tiis.2022.06.011.

[ACM Style]
Abid Mehmood and Dayang N.A. Jawawi. 2022. AJFCode: An Approach for Full Aspect-Oriented Code Generation from Reusable Aspect Models. KSII Transactions on Internet and Information Systems, 16, 6, (2022), 1973-1993. DOI: 10.3837/tiis.2022.06.011.

[BibTeX Style]
@article{tiis:25764, title="AJFCode: An Approach for Full Aspect-Oriented Code Generation from Reusable Aspect Models", author="Abid Mehmood and Dayang N.A. Jawawi and ", journal="KSII Transactions on Internet and Information Systems", DOI={10.3837/tiis.2022.06.011}, volume={16}, number={6}, year="2022", month={June}, pages={1973-1993}}