Code Swarm: A Code Generation Tool Based on the Automatic Derivation of Transformation Rule Set (2024)

[Submitted on 3 Dec 2023]

View PDF

Abstract:Automatic generation of software code from system design models remains an actively explored research area for the past several years. A number of tools are currently available to facilitate and automate the task of generating code from software models. To the best of our knowledge, existing software tools rely on an explicitly defined transformation rule set to perform the model-to-code transformation process. In this paper, we introduce a novel tool named Code Swarm, abbreviated as CodS, that automatically generates implementation code from system design models by utilizing a swarm-based approach. Specifically, CodS is capable of generating Java code from the class and state models of the software system by making use of the previously solved model-to-code transformation examples. Our tool enables the designers to specify behavioural actions in the input models using the Action Specification Language (ASL). We use an industrial case study of the Elevator Control System (ECS) to perform the experimental validation of our tool. Our results indicate that the code generated by CodS is correct and consistent with the input design models. CodS performs the process of automatic code generation without taking the explicit transformation rule set or languages metamodels information as input, which distinguishes it from all the existing automatic code generation tools.
Comments: 11 pages, 4 figures
Subjects: Software Engineering (cs.SE)
Cite as: arXiv:2312.01524 [cs.SE]
(or arXiv:2312.01524v1 [cs.SE] for this version)
https://doi.org/10.48550/arXiv.2312.01524

arXiv-issued DOI via DataCite

Journalreference: International Journal of Software Engineering & Applications (IJSEA), Vol. 14, No. 6, November 2023

Submission history

From: Hina Mahmood [view email]
[v1] Sun, 3 Dec 2023 22:47:42 UTC (946 KB)

Code Swarm: A Code Generation Tool Based on the Automatic Derivation of Transformation Rule Set (2024)
Top Articles
Latest Posts
Article information

Author: Zonia Mosciski DO

Last Updated:

Views: 5570

Rating: 4 / 5 (51 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Zonia Mosciski DO

Birthday: 1996-05-16

Address: Suite 228 919 Deana Ford, Lake Meridithberg, NE 60017-4257

Phone: +2613987384138

Job: Chief Retail Officer

Hobby: Tai chi, Dowsing, Poi, Letterboxing, Watching movies, Video gaming, Singing

Introduction: My name is Zonia Mosciski DO, I am a enchanting, joyous, lovely, successful, hilarious, tender, outstanding person who loves writing and wants to share my knowledge and understanding with you.