• Journal of Internet Computing and Services
    ISSN 2287 - 1136(Online) / ISSN 1598 - 0170 (Print)
    http://jics.or.kr/

Code Generation from the Statechart Based on XMI


Joa-Sang Lim, Jin-Man Kim, Journal of Internet Computing and Services, Vol. 12, No. 6, pp. 161-170, Dec. 2011
Full Text:
Keywords: Statechart, XMI, Code Generation

Abstract

Despite some practical confusion over the variations in the diagram which may be drawn differently depending upon the CASE, the statechart of UML has been widely used to show the dynamic behaviour of the systems. Prior research has employed either simple switch-case statement or the state design pattern to generate source code from the statechart, which may result in varying source codes. This paper made an attempt to formally define the statechart and generate source codes from it. Firstly we cleaned up the XMI which was generated from different CASEs. This XMI has been translated to the EHA to identify automata contained in it. Then the elements of the statechart metamodel were mapped to the java programs. We also verified the quality of source codes by measuring functionality and maintainability. The case employed in this study was the air conditioner. The reason was that the case includes various states and transitions of interest. It was found that XMI was well extracted by removing some legacy codes in the CASE and the source codes were then successfully generated with the concurrency and hierarchy of the statechart. Further research is required to validate it practical significance with a larger case.


Statistics
Show / Hide Statistics

Statistics (Cumulative Counts from November 1st, 2017)
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
[APA Style]
Joa-Sang Lim and Jin-Man Kim (2011). Code Generation from the Statechart Based on XMI. Journal of Internet Computing and Services, 12(6), 161-170.

[IEEE Style]
J. Lim and J. Kim, "Code Generation from the Statechart Based on XMI," Journal of Internet Computing and Services, vol. 12, no. 6, pp. 161-170, 2011.

[ACM Style]
Joa-Sang Lim and Jin-Man Kim. 2011. Code Generation from the Statechart Based on XMI. Journal of Internet Computing and Services, 12, 6, (2011), 161-170.