Design and Implementation of an Autonomic Code Generator Based on RTPA

  • Authors:
  • Yingxu Wang;Xinming Tan;Cyprian F. Ngolah

  • Affiliations:
  • University of Calgary, Canada;Wuhan University of Technology, China;Sentinel Trending & Diagnostics Ltd., Calgary, Canada

  • Venue:
  • International Journal of Software Science and Computational Intelligence
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

Real-Time Process Algebra RTPA is a denotational mathematics for the algebraic modeling and manipulations of software system architectures and behaviors by the Unified Data Models UDMs and Unified Process Models UPMs. On the basis of the RTPA specification and refinement methodologies, automatic software code generation is enabled toward improving software development productivity. This paper examines designing and developing the RTPA-based software code generator RTPA-CG that transfers system models in RTPA architectures and behaviors into C++ or Java. A two-phrase strategy has been employed in the design of the code generator. The first phrase analyzes the lexical, syntactical, and type specifications of a software system modeled in RTPA, which results in a set of abstract syntax trees ASTs. The second phrase translates the ASTs into C++ or Java based on predesigned mapping strategies and code generation rules. The toolkit of RTPA code generator encompasses an RTPA lexer, parser, type-checker, and a code builder. Experimental results show that system models in RTPA can be rigorously processed and corresponding C++/Java code can be automatically generated using the toolkit. The code generated is executable and effective under the support of an RTPA run-time library.