Abstract
OCL’s contribution to the definition of constraint languages is twofold: the identification of core concepts for a constraint language suitable for object-oriented modeling; a developer-friendly notation for that language, as an alternative to traditional mathematical syntax. Whilst the former is an important contribution the latter is more questionable. Not only is notation often a matter of taste, but it would also be desirable to freely mix notations, allowing the most appropriate notation to be chosen for the task at hand or for notations to be seamlessly interchanged. A further problem when writing constraints is scalability: the number and complexity of constraints can be overwhelming for a model of a real-sized system, and current techniques for organizing the constraint space of a model are limited. The contribution of this paper is to provide a notation, constraint trees, which can be used both for mixing different notations and for organizing the constraint space of a model. Constraint trees achieve this by revealing aspects of the underlying abstract syntax structure of a constraint. The paper demonstrates the utility of the notation using an example from the telecomms networks domain, and shows how constraint trees can be used to write a constraint involving a mix of textual OCL notation, constraint diagrams, object diagrams and rich pictures. This also demonstrates the organizational role of constraint trees. An outline meta-model definition of constraint trees is provided and issues surrounding their tooling is discussed.
Partially funded by the UK EPSRC, grant number GR/M02606
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
A. Clark, A. Evans, R. France, S. Kent, and B. Rumpe. The puml response to the omg uml 2.0 rfi. Available from http://www.puml.org/, December 1999.
A. Clark, A. Evans, S. Kent, S. Brodsky, and S. Cook. A feasibility study in rearchitecting uml as a family of languages using a precise oo metamodeling approach. http://www.puml.org/mmt.zip, September 2000.
A. Clark, A. Evans, and S. Kent. The meta-modeling language calculus: Foundation semantics for uml. In ETAPS FASE Conference 2001, LNCS. Springer-Verlag, April 2001.
A. Evans and S. Kent. Core meta-modelling semantics of UML: The pUML approach. In Robert France and Bernhard Rumpe, editors, UML’99-The Unified Modeling Language. Beyond the Standard. Second International Conference, Fort Collins, CO, USA, October 28–30. 1999, Proceedings, volume 1723 of LNCS, pages 140–155. Springer, 1999.
S. Kent. Constraint Diagrams: Visualizing Invariants in OO Modelling. In Proceedings of OOPSLA97, pages 327–341. ACM Press, October 1997.
S. Kent and Y. Gil. Visualising Action Contracts in OO Modelling. In IEE Proceedings: Software, number 2–3 in 145, pages 70–78, April 1998.
S. Kent and J. Howse. Mixing visual and textual constraint languages. In R. France and B. Rumpe, editors, UML’99-The Unified Modeling Language. Beyond the Standard. Second International Conference, Fort Collins, CO, USA, October 28–30. 1999, Proceedings, volume 1723 of LNCS, pages 384–398. Springer, 1999.
M. Richters and M. Gogolla. Validating UML models and OCL constraints. In A. Evans and S. Kent, editors, The Third International Conference on the Unified Modeling Language (UML’2000), York, UK, October 2–6. 2000, Proceedings, LNCS. Springer, 2000.
S. Yang, M. Burnett, E. Dekoven, and M. Zloof. Representation design benchmarks: A design-time aid for vpl navigable static representations. Journal of Visual Languages and Computing, 8:563–599, 1997.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2002 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
Kent, S., Howse, J. (2002). Constraint Trees. In: Clark, T., Warmer, J. (eds) Object Modeling with the OCL. Lecture Notes in Computer Science, vol 2263. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45669-4_12
Download citation
DOI: https://doi.org/10.1007/3-540-45669-4_12
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-43169-5
Online ISBN: 978-3-540-45669-8
eBook Packages: Springer Book Archive