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

A Method of Automatic Code Generation for UML Sequence Diagrams Based on Message Patterns  

Kim, Yun-Ho (Department of Computer Engineering, Andong National University)
Abstract
This paper presents a method for code generation of UML sequence diagrams based on message patterns. In the sequence diagrams, it is shown that messages are some types of forms typically. This paper classifies according to type as three patterns, and construct meta-information for code generation analysing structural infomation for each patterns. The meta-message of structural information (MetaMessage) is stored in the MetaMessage datastore and the meta-method information from the MetaMessage is stored in the MetaMethod datastore. And then, the structural information of MetaClass and MetaObject is constructed in each datastore too. For each pattern, this paper presents a method for code generation based on the meta information of message patterns and the syntax of target progamming language. Also, branching and looping that has been seldom handled integratedly in the previous works are handled as same as the basic patterns by classifying the branching pattern and the looping pattern for code generation integratedly.
Keywords
UML; Sequence diagram; Automatic code generation; Object-oriented design; Object-oriented S/W system;
Citations & Related Records
Times Cited By KSCI : 4  (Citation Analysis)
연도 인용수 순위
1 A. Soumiya, 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.   DOI
2 Y. Kim, "Information structuring of diagram repository for UML diagrams," Journal of the Korea Institute of Information and Communication Engineering, Vol. 23, No. 12, 2019.
3 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.
4 G. Engels, R. Hucking, S. Sauer, and A. Wagner, "UML collaboration diagrams and their transforamtion to Java," Second International Conference on the UML, pp. 437-488, 1999.
5 G. Engels, R. Heekel, J. Kuster, "Reul-based Specification of behavioral consistency based on the UML meta-model," Fourth International Conference on the UML,, pp. 272-286, 2001.
6 P. Kluisritrakul and Y. Limpiyakorn, "Generation of Java code from UML sequence and class diagrams," Information Science and Applications (ICISA), pp. 1117-1125, 2016.
7 Object Management Group (OMG), Unified Modeling Language Specification, Version 2.2, 2009.
8 P. Pawde, 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.
9 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.
10 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.
11 M. Mukhtar, B. Galadanci, "Automatic code generation from UML diagrams: The-State-of-the-art," Science World Journal, vol. 13, No. 4, pp. 47-60, 2018.
12 E. Sunitha and P. Samuel, "Automatic code generation from UML state chart diagrams," IEEE Access, Vol. 7, pp. 8591 - 8608, 2019.   DOI
13 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, 2020.