An Object-Oriented Approach To Generate Java Code From Hierarchical-Concurrent and History States
Abidi My Abidi, Abdeslam Jakimi, Rachid Alaoui, El Hassan El Kinani · International Journal of Information and Network Security (IJINS) · 2013
UML is widely accepted and practiced in industries for modeling and design of software systems. Software requirements and design are very important parts of software development. UML State Machine diagram is an important formalism to model the dynamic behavior of the system. In this paper, we present a new approach to generate compact and efficient Java code from complex state machine involving hierarchical-concurrent states; the proposed code can be used as a Java implementation pattern for automatic code generation for an object-oriented system. The main idea of our study is using Java Enum type with attributes for implementing complex state machines.