• Title/Summary/Keyword: UML State Diagram

Search Result 31, Processing Time 0.018 seconds

Code Generation from the Statechart Based on XMI (XMI 기반 상태도의 소스코드 자동생성 엔진 구현)

  • Lim, Joa-Sang;Kim, Jin-Man
    • Journal of Internet Computing and Services
    • /
    • v.12 no.6
    • /
    • pp.161-170
    • /
    • 2011
  • 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.