Enhanced Code Generation from UML Composite State Machines

Omar Badreddin, Timothy C. Lethbridge, Andrew Forward, Maged Elaasar, Hamoud Aljamaan, Miguel A. Garzon

2014

Abstract

UML modelling tools provide poor support for composite state machine code generation. Generated code is typically complex and large, especially for composite state machines. Existing approaches either do not handle this case at all or handle it by flattening the composite state machine into a simple one with a combinatorial explosion of states, and excessive generated code. This paper presents a new approach that transforms a composite state machine into an equivalent set of simple state machines before code generation. This avoids the combinatorial explosion and leads to more concise and scalable generated code. We implement our approach in Umple. We report on a case study, comparing our approach to others in terms of code size and scalability.

Download


Paper Citation


in Harvard Style

Badreddin O., Lethbridge T., Forward A., Elaasar M., Aljamaan H. and A. Garzon M. (2014). Enhanced Code Generation from UML Composite State Machines . In Proceedings of the 2nd International Conference on Model-Driven Engineering and Software Development - Volume 1: MODELSWARD, ISBN 978-989-758-007-9, pages 235-245. DOI: 10.5220/0004699602350245

in Bibtex Style

@conference{modelsward14,
author={Omar Badreddin and Timothy C. Lethbridge and Andrew Forward and Maged Elaasar and Hamoud Aljamaan and Miguel A. Garzon},
title={Enhanced Code Generation from UML Composite State Machines},
booktitle={Proceedings of the 2nd International Conference on Model-Driven Engineering and Software Development - Volume 1: MODELSWARD,},
year={2014},
pages={235-245},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0004699602350245},
isbn={978-989-758-007-9},
}


in EndNote Style

TY - CONF
JO - Proceedings of the 2nd International Conference on Model-Driven Engineering and Software Development - Volume 1: MODELSWARD,
TI - Enhanced Code Generation from UML Composite State Machines
SN - 978-989-758-007-9
AU - Badreddin O.
AU - Lethbridge T.
AU - Forward A.
AU - Elaasar M.
AU - Aljamaan H.
AU - A. Garzon M.
PY - 2014
SP - 235
EP - 245
DO - 10.5220/0004699602350245