Software Modelling and Automatic Code Generation Based on Reactive State Diagram
- DOI
- 10.2991/cisia-15.2015.242How to use a DOI?
- Keywords
- state diagram; software modelling; generating code automatically
- 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.
- Copyright
- © 2015, the Authors. Published by Atlantis Press.
- Open Access
- This is an open access article distributed under the CC BY-NC license (http://creativecommons.org/licenses/by-nc/4.0/).
Cite this article
TY - CONF AU - M.C. Qu AU - L.J Meng AU - X.H Wu AU - N.G Cui PY - 2015/06 DA - 2015/06 TI - Software Modelling and Automatic Code Generation Based on Reactive State Diagram BT - Proceedings of the International Conference on Computer Information Systems and Industrial Applications PB - Atlantis Press SP - 899 EP - 901 SN - 2352-538X UR - https://doi.org/10.2991/cisia-15.2015.242 DO - 10.2991/cisia-15.2015.242 ID - Qu2015/06 ER -