Software Modelling and Automatic Code Generation Based on Reactive State Diagram

ming cheng qu,l j meng,xiang hu wu,n g cui
DOI: https://doi.org/10.2991/cisia-15.2015.242
2015-01-01
Abstract:Based on the UML state diagram it can model the reactive system which is event-driven exactly and elaborately. Building a system model from the top level using the UML state diagram model has many advantages, such as reusability, maintainability, interactively, etc. Although there are some mainstream commercial modelling tools supporting code generation from diagram model, most of the generated code frameworks are OO (object-oriented) and could not satisfy the resource constraint in the real-time embedded system [1]. In the embedded system software, there are lots of reusable public service codes, we design and realize a real-time framework using the reusable code. By implementing an operating system encapsulated layer based on the real-time framework, we achieve the objective of developing application software independent of the target platform, and making the generated code be capable of cross-platform capability. Based on the real-time framework and the characteristic of state diagram, we designs and implements an algorithm for generating code automatically and a real-time framework of state machine [2], which are all verified by the engineering project.
What problem does this paper attempt to address?