Generating Assertion Code from OCL: A Transformational Approach Based on Similarities of Implementation Languages

  • Authors:
  • Rodion Moiseev;Shinpei Hayashi;Motoshi Saeki

  • Affiliations:
  • Department of Computer Science, Tokyo Institute of Technology, Tokyo, Japan 152---8552;Department of Computer Science, Tokyo Institute of Technology, Tokyo, Japan 152---8552;Department of Computer Science, Tokyo Institute of Technology, Tokyo, Japan 152---8552

  • Venue:
  • MODELS '09 Proceedings of the 12th International Conference on Model Driven Engineering Languages and Systems
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

The Object Constraint Language (OCL) carries a platform independent characteristic allowing it to be decoupled from implementation details, and therefore it is widely applied in model transformations used by model-driven development techniques. However, OCL can be found tremendously useful in the implementation phase aiding assertion code generation and allowing system verification. Yet, taking full advantage of OCL without destroying its platform independence is a difficult task. This paper proposes an approach for generating assertion code from OCL constraints by using a model transformation technique to abstract language specific details away from OCL high-level concepts, showing wide applicability of model transformation techniques. We take advantage of structural similarities of implementation languages to describe a rewriting framework, which is used to easily and flexibly reformulate OCL constraints into any target language, making them executable on any platform. A tool is implemented to demonstrate the effectiveness of this approach.