Browse > Article
http://dx.doi.org/10.6109/jkiice.2022.26.10.1509

A Method of Generating Code Implementation Model for UML State Diagrams  

Kim, Yun-Ho (Department of Computer Engineering, Andong National University)
Abstract
This paper presents a method to generate a model of the code implementation for UML state diagrams. First, it promotes the states of a state machine into objects, and then it structures the behavior model on the mechanism of a state diagram based on State design pattern. Then, it establishes the rules of generating the code implementation, and using the rules, the Java code mode is generated for the implementations of State Diagrams in Java syntax grammar. In addition, Structuring the information of the code model is necessary for generating Java code automatically. The meta information is composed of Meta-Class Model and Meta-Behavior Model, on which we could construct the automatic code generating engine for UML State Diagrams. The implementation model generation method presented in this paper could be used as a stand-alone engine, or included and integrated as a module in the UML tools.
Keywords
UML diagrams; Object-oriented modeling; Object-oriented design; automatic code generation; Software modeling;
Citations & Related Records
연도 인용수 순위
  • Reference
1 S. Viswanathan and P. Samuel, "Translation of Behavioral Models to Java Code and Enhance with State Charts," International Journal of Computer Information Systems and Industrial Management Applications, vol. 6, pp. 294-304, 2014.
2 E. Gamma, R. Helm, R. Johnson, and J. Vlissides, Design Patterns: Elements of Reusable Object-Oriented Software, Addison-Wesley, USA, 1996.
3 Y. Kim, "A Design of Constructing Diagram Repository for UML Diagram Tools," Journal of the Korea Institute of Information and Communication Engineering, vol. 24, no. 2, pp. 244-251, Feb. 2020.   DOI
4 J. Ali and J. Tanaka, "Implementing the dynamic behavior represented as multiple state diagrams and activity diagrams," ACIS International Journal of Computer and Information Science, vol. 2, no. 1, pp. 24-36, Mar. 2001.
5 O. Badreddin, T. C. Lethbridge, A. Forward, M. Elaasar, H. Aljamaan, and M. A. Garzon, "Enhanced code generation from UML composite state machines," in Proceedings of 2nd International Conference on Model-Driven Engineering and Software Development, Lisbon, Portugal, pp. 235-245, 2014.
6 M. L. Alvarez, I. Sarachaga, A. Burgos, E. Estevez, and M. Marcos, "A Methodological Approach to Model-Driven Design and Development of Automation Systems," IEEE Transactions on Automation Science and Engineering, vol. 15, no. 1, pp. 67-79, Jan. 2018.   DOI
7 S. E. Viswanathan and P. Samuel, "Automatic Code Generation from UML State Chart Diagrams," IEEE Access, vol. 7, pp. 8591-8608, Jan. 2019.   DOI
8 V. C. Pham, A. Radermacher, S. Gerard, and S. Li, "Complete Code Generation from UML State Machine," in Proceedings of 5th International Conference on Modeldriven Engineering and Software Development, Porto, Portugal, pp. 208-219, 2017.
9 M. I. Mukhtar and B. S. Galadanci, "Automatic code generation from UML diagrams: The-State-of-the-art," Science World Journal, vol. 13, no. 4, pp. 47-60, Feb. 2019.
10 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, Dec. 2019.   DOI
11 Y. Kim, "A Method of Automatic Code Generation for UML Sequence Diagrams Based on Message Patterns," Journal of the Korea Institute of Information and Communication Engineering, vol. 24, no. 7, pp. 857-865, Jul. 2020.   DOI
12 M. Ehl and M. Konersmann, "Model-based Monitoring of Integrated UML State Machine Models and Code," in Proceedings of the Software Engineering 2021 (Satellite Events), Braunschweig/Virtual, Germany, pp. 12, 2021.