Consistent Code Generation from UML Models

  • Authors:
  • Quan Long;Zhiming Liu;Xiaoshan Li;He Jifeng

  • Affiliations:
  • United Nations University and Peking University;United Nations University;University of Macau;United Nations University and Peking University

  • Venue:
  • ASWEC '05 Proceedings of the 2005 Australian conference on Software Engineering
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

Relational Calculus of Object Systems (rCOS) is an OO-language which is equipped with an observation-oriented semantics and a refinement calculus based on the Hoare and Heýs Unifying Theories of Programming (UTP). In this paper, we give syntactic definitions for class diagrams and sequence diagrams in UML 2.0. Based on these definitions, we give an algorithm for checking the consistency of a class diagram and a sequence diagram. Furthermore, we develop an algorithm to generate rCOS code from any given consistent class diagram and sequence diagram.