Automatic Code Generation From UML State Chart Diagrams

The fact that event driven systems can be modeled and implemented using unified modeling language (UML) state chart diagrams has led to the development of code generation tools. These are tremendously helpful in making software system designs and can even generate skeletal source code from these des...

Full description

Bibliographic Details
Main Authors: Sunitha E. V., Philip Samuel
Format: Article
Language:English
Published: IEEE 2019-01-01
Series:IEEE Access
Subjects:
Online Access:https://ieeexplore.ieee.org/document/8600324/
_version_ 1818427580598976512
author Sunitha E. V.
Philip Samuel
author_facet Sunitha E. V.
Philip Samuel
author_sort Sunitha E. V.
collection DOAJ
description The fact that event driven systems can be modeled and implemented using unified modeling language (UML) state chart diagrams has led to the development of code generation tools. These are tremendously helpful in making software system designs and can even generate skeletal source code from these designs. The implementation of such automatic code generation from state diagrams is not fully supported by the existing programming languages. The major down side is that there is no one-to-one correspondence between the elements in the state chart diagram and the programming constructs. The existing programming elements cannot effectively implement two main components of the state diagram namely, state hierarchy and concurrency. In this paper, we present a novel design pattern for the implementation of the state diagram which includes hierarchical, concurrent, and history states. The state transitions of parallel states are delegated to the composite state class. The architecture of the code generator and the step by step process of code generation from UML state machine are proposed in the paper. The proposed approach is implemented and compared with similar tools and the results are found to be promising.
first_indexed 2024-12-14T14:47:59Z
format Article
id doaj.art-2e08b621782744219f6d529fff2e16eb
institution Directory Open Access Journal
issn 2169-3536
language English
last_indexed 2024-12-14T14:47:59Z
publishDate 2019-01-01
publisher IEEE
record_format Article
series IEEE Access
spelling doaj.art-2e08b621782744219f6d529fff2e16eb2022-12-21T22:57:14ZengIEEEIEEE Access2169-35362019-01-0178591860810.1109/ACCESS.2018.28907918600324Automatic Code Generation From UML State Chart DiagramsSunitha E. V.0https://orcid.org/0000-0003-4447-3216Philip Samuel1Department of Computer Science, Cochin University of Science and Technology, Kochi, IndiaDepartment of Computer Science, Cochin University of Science and Technology, Kochi, IndiaThe fact that event driven systems can be modeled and implemented using unified modeling language (UML) state chart diagrams has led to the development of code generation tools. These are tremendously helpful in making software system designs and can even generate skeletal source code from these designs. The implementation of such automatic code generation from state diagrams is not fully supported by the existing programming languages. The major down side is that there is no one-to-one correspondence between the elements in the state chart diagram and the programming constructs. The existing programming elements cannot effectively implement two main components of the state diagram namely, state hierarchy and concurrency. In this paper, we present a novel design pattern for the implementation of the state diagram which includes hierarchical, concurrent, and history states. The state transitions of parallel states are delegated to the composite state class. The architecture of the code generator and the step by step process of code generation from UML state machine are proposed in the paper. The proposed approach is implemented and compared with similar tools and the results are found to be promising.https://ieeexplore.ieee.org/document/8600324/Code generationstate machineconcurrencyhierarchyhistory stateexecutable UML
spellingShingle Sunitha E. V.
Philip Samuel
Automatic Code Generation From UML State Chart Diagrams
IEEE Access
Code generation
state machine
concurrency
hierarchy
history state
executable UML
title Automatic Code Generation From UML State Chart Diagrams
title_full Automatic Code Generation From UML State Chart Diagrams
title_fullStr Automatic Code Generation From UML State Chart Diagrams
title_full_unstemmed Automatic Code Generation From UML State Chart Diagrams
title_short Automatic Code Generation From UML State Chart Diagrams
title_sort automatic code generation from uml state chart diagrams
topic Code generation
state machine
concurrency
hierarchy
history state
executable UML
url https://ieeexplore.ieee.org/document/8600324/
work_keys_str_mv AT sunithaev automaticcodegenerationfromumlstatechartdiagrams
AT philipsamuel automaticcodegenerationfromumlstatechartdiagrams