Specification of invariability in OCL

  • Authors:
  • Piotr Kosiuczenko

  • Affiliations:
  • Department of Computer Science, University of Leicester

  • Venue:
  • MoDELS'06 Proceedings of the 9th international conference on Model Driven Engineering Languages and Systems
  • Year:
  • 2006

Quantified Score

Hi-index 0.01

Visualization

Abstract

The paradigm of contractual specification provides a transparent way of specifying systems. It clearly distinguishes between client and implementer obligations. One of the best known languages used for this purpose is OCL. Nevertheless, OCL does not provide primitives for a compact specification of what remains unchanged when a method is executed. In this paper, problems with specifying invariability are listed and some weaknesses of existing solutions are pointed out. The question of specifying invariability in OCL is studied and a simple but expressive and flexible extension is proposed. It is shown that this extension has a simple OCL based semantics.