Location of Repository

Towards verifying Java realizations of OCL-constrained design models using JML

By Ali Hamie


The Object Constraint Language OCL is a formal textual notation that could be used for placing constraints on the modelling elements that occur in UML diagrams. Constraints include invariants on classes and types, and preconditions and postconditions of operations. OCL was designed to be used in conjunctions with UML diagrams resulting in more precise object-oriented designs. The Java Modelling Language (JML) is a behavioural interface specification language designed for specifying Java classes and interfaces. This paper applies OCL for developing Java realizations of UML design models where JML is used as the assertion language. This is achieved by translating a subset of OCL assertions into JML assertions. In order to verify a Java subsystem with respect to a design subsystem with OCL constraints, an appropriate realization relation is defined and the approach is illustrated by an example

Topics: G000 Computing and Mathematical Sciences
Publisher: MIT Press
Year: 2002
OAI identifier: oai:eprints.brighton.ac.uk:2218

Suggested articles



  1. (2001). A Logic for the Java Modelling Language JML. doi
  2. (2002). A Runtime Assertion Checker for the Java Modeling Language (JML).
  3. (2001). Corporation. The Object Constraint Language Specification Version 1.4. Available from http:/ /www.rational.com,
  4. (2001). Corporation. The Unified Modeling Language Version 1.4. Available from http:// www.rational.com,
  5. (1998). Objects, Components and Frameworks with UML: The Catalysis Approach. doi
  6. (1995). On the frame problem in procedure specifications. doi
  7. (2002). Preliminary Design of JML: A Behavioral Interface Specification Language for Java. TR98-06, revised version doi
  8. (1990). Systematic Software Development using VDM. doi
  9. (1998). The Java programmingLanguage. The Java Series.
  10. The LOOP project: Formal methods for object-oriented systems at http://www.cs.kun.nl/~bart/ LOOP.
  11. (1999). The Object Constraint Language: Precise Modelling with UML. doi
  12. (1998). The Unified Modelling Language Reference manual.
  13. (1992). The Z Notation: A Reference Manual.

To submit an update or takedown request for this paper, please submit an Update/Correction/Removal Request.