DOI QR코드

DOI QR Code

A Design of Constructing Diagram Repository for UML Diagram Tools

UML 다이어그램 도구를 위한 다이어그램 정보의 구축과 설계

  • Kim, Yun-Ho (Department of Computer Engineering, Andong National University)
  • Received : 2019.11.12
  • Accepted : 2019.12.18
  • Published : 2020.02.29

Abstract

This paper presents a design of the Meta-Class Repository (MCR) which maintain syntactically analyzed and structured meta-class information from UML diagrams, and then proposes 'meta-class,' also known as super-class, to construct structured information analyzed syntactically. The MCR is a collection of these meta-classes which contains the information extracted from diagrams. This paper also presents a design of the Code Generation Engine (CGE) which roles generating codes corresponding classes from UML diagrams based on the MCR maintaining a collection of meta-classes which is syntactically-analyzed and constructed in previous process. The logics of CGE are designed to generate codes collaborated with MCR and CGE with integration. The logics of CGE mechanism is presented with the form of finite state machine to present the algorithms of code generation formally and have the advantages of simplicity and easiness in development.

본 논문에서는 UML 다이어그램의 정보를 구문적으로 분석하여 클래스들의 정보를 구조적으로 구축하는 정보 저장소인 '메타 클래스 레포지토리 (MCR)'의 구현 방법을 제시한다. 구문적으로 분석된 클래스의 정보를 구조적으로 구축하기 위하여 수퍼 클래스인 '메타 클래스 (meta-class)'를 정의하고, 이들 메타 클래스들의 컬렉션으로 구성된 레포지토리를 구축하여 정보를 관리한다. 또한, MCR이 보유하고 있는 메타 클래스 정보에 기반하여 클래스에 상응하는 코드를 생성하기 위하여 '코드 생성 엔진 (CGE)'을 설계하여 제시한다. 코드 생성 엔진의 로직을 구성함에 있어서는 클래스에 대한 정보와 프로그래밍 언어의 구문 규칙이 합법적으로 조합되어 코드가 생성되어야 한다. 따라서, 이러한 클래스 다이어그램으로부터 코드를 생성하는 데에 MCR과 CGE가 통합적으로 협력하여 수행될 수 있도록 구현하는 방법을 제시한다. CGR의 동작 메커니즘에 대한 알고리즘을 유한 상태 머신 형태로 제시함으로써 CGE의 로직을 형식화하여 표현함과 동시에 구현 상의 용이함을 취할 수 있게 하였다.

Keywords

References

  1. Object Management Group (OMG), Unified Modeling Language Specification, Version 2.2, 2009.
  2. H. Zhang, "An approach for extracting UML diagram form object-oriented program based on J2X," Advances in Engineering Reseach (IFMCA), vol. 113, pp. 266-276, 2016.
  3. A. Soumiya, and B. Mohamed, "Converting UML class diagrams into temporal object relational database," International Journal of Electrical and Computer Engineering, vol. 7, no. 5, pp. 2823-2832, 2017. https://doi.org/10.11591/ijece.v7i5.pp2823-2832
  4. M. Mukhtar, and B. Galadanci, "Automatic code generation from UML diagrams: The-State-of-the-art," Science World Journal, vol. 13, no. 4, pp. 47-60, 2018.
  5. P. Pawde, and V. Chole, "Generation of Java code structure from UML class diagrams," International Journal of Innovative Science and Modern Engineering, vol. 2, no. 7, pp. 7-10, 2014.
  6. J. Kim, and Y. Kim, "Constructing and Processing of the Metadata information for UML Class Auntorization Tool," Journal of the Korea Institute of Information and Communication Engineering, vol. 15, no. 8, pp. 71-80, 2011. https://doi.org/10.6109/jkiice.2011.15.1.071
  7. P. Kluisritrakul, and Y. Limpiyakorn, "Generation of Java code from UML sequence and class diagrams," Information Science and Applications (ICISA), pp. 1117-1125, 2016.
  8. N. Sangal, E. Farrell, K. Lieberherr, and D. Lorenz, "Interaction schema: Compiling interactioins to code," Proceedings of Technology of Object-Oriented Language and Systems, pp. 268-277, Aug. 1999.
  9. I. Niaz, and J. Tanaka, "An Object-oriented approach to generate Java code from UML statecharts," International Journal of Computer and Information Science, vol. 6, no. 2, 2005.
  10. Y. Kim, "Resolving the runtime class reference problem of the type object design pattern by type object class," Journal of the Korea Institute of Information and Communication Engineering, vol. 11, no. 3, pp. 500-506, 2007.
  11. M. Qu, L. Meng, X. Wu, and N. Cui, "Software Modeling and Automatic Code Generation Based on Reactive State Diagram," International Conference on Computer Information Systems and Industrial Applications, pp. 899-901, 2015.
  12. E. Sunitha, and P. Samuel, "Automatic code generation from UML state chart diagrams," IEEE Access, vol. 7, pp. 8591-8608, 2019. https://doi.org/10.1109/ACCESS.2018.2890791
  13. Y. Kim, "Information structuring of diagram repository for UML diagrams," Journal of the Korea Institute of Information and Communication Engineering, vol. 23, no. 12, pp. 1588-1595, 2019.