Skip to main content

Specification of Invariability in OCL

  • Conference paper

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 4199))

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.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Baar, T.: OCL and Graph-Transformations – A Symbiotic Alliance to Alleviate the Frame Problem. In: Proc. of MoDELS 2005 Satelite Workshop on Tool Support for OCL and Related Formalisms, Montego Bay, Jamaica, October 4, pp. 83–99 (2005)

    Google Scholar 

  2. Borgida, A., Reiter, R., Mylopoulos, J.: On the Frame Problem in Procedure Specifications. In: 15’th Int. Conf. on Software Engineering, Baltimore, IEEE Computer Society Press, Los Alamitos (1993)

    Google Scholar 

  3. Darvas, A., Mueller, P.: Reasoning About Method Calls in JML Specifications. In: Proceedings of the 7th Workshop on Formal Techniques for Java-like Programs (FTfJP 2005), Glasgow, Scotland (July 2005)

    Google Scholar 

  4. Finkelstein, A., Kramer, J., Nuseibeh, B., Finkelstein, L., Goedicke, M.: Viewpoints: A Framework for Integrating Multiple Perspectives in System Development. International Journal on Software Engineering and Knowledge Engineering, 31–58 (1991)

    Google Scholar 

  5. Gogolla, M, Richters, M.: Use: A UML-based Specification Environment, http://www.db.informatik.uni-bremen.de/projects/USE/

  6. Jezequel, J.M.: Object-Oriented Software Engineering with Eiffel. Eiffel in Practice Series. Addison-Wesley, Reading (1996)

    MATH  Google Scholar 

  7. Hoare, T.: An Axiomatic Basis for Computer Programming. CACM 12(10) (1969)

    Google Scholar 

  8. Mitchell, R., McKim, J.: Design by contract by example. Addison-Wesley, Reading (2001)

    Google Scholar 

  9. Marek, W., Truszczynski, M.: Nonmonotonic Logic, Context-Dependent Reasoning. Artificial Intelligence. Springer, Heidelberg (1993)

    MATH  Google Scholar 

  10. Meyer, B.: Object-Oriented Software Construction. Prentice Hall, Englewood Cliffs (1998)

    Google Scholar 

  11. Minsky, M.: A framework for representing knowledge. Technical Report 306, Artificial Intelligence Laboratory, MIT (1974)

    Google Scholar 

  12. Mueller, P., Poetzsch-Heffter, A., Leavens, G.T.: Modular Specification of Frame Properties in JML. In: Concurrency and Computation: Practice and Experience, vol. 15, pp. 117–154. Wiley, Chichester (2003)

    Google Scholar 

  13. OMG, MDA Guide, Version 1.0.1 (June 2003)

    Google Scholar 

  14. OMG, Meta-Object Facility Specification, Version 1.4 (April 2003)

    Google Scholar 

  15. OMG, OCL Specification, Version 2.0 (October 2004)

    Google Scholar 

  16. OMG, Unified Modeling Language Specification, Version 2.0 (October 2004)

    Google Scholar 

  17. Schubert, L.: Monotonic Solution of the Frame Problem in the Situation Calculus. In: Kyburg, H., Loui, R., Carlson, G. (eds.) Knowledge Representation and Defeasible Reasoning, pp. 23–67. Kluwer, Dordrecht (1990)

    Google Scholar 

  18. Warmer, J., Kleppe, A.: Object Constraint Language: Getting Your Models Ready for MDA. Addison Wesley Professional, Reading (2003)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2006 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Kosiuczenko, P. (2006). Specification of Invariability in OCL. In: Nierstrasz, O., Whittle, J., Harel, D., Reggio, G. (eds) Model Driven Engineering Languages and Systems. MODELS 2006. Lecture Notes in Computer Science, vol 4199. Springer, Berlin, Heidelberg. https://doi.org/10.1007/11880240_47

Download citation

  • DOI: https://doi.org/10.1007/11880240_47

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-45772-5

  • Online ISBN: 978-3-540-45773-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics