Skip to main content

Consistency of UML Class Diagrams with Hierarchy Constraints

  • Conference paper
Next Generation Information Technologies and Systems (NGITS 2006)

Part of the book series: Lecture Notes in Computer Science ((LNISA,volume 4032))

Abstract

UML class diagrams are probably the most important, well-established, UML model. They play an essential role in the analysis and design of complex systems. UML class diagrams allow the specification of constraints such as cardinality constraints, class hierarchy constraints and inter-association constraints. Constraints extend the expressivity of class diagrams, but enable the specification of unsatisfiable class diagrams, i.e., class diagrams that have no finite non-empty instance world. Nowadays, UML case tools still do not check satisfiability of class diagrams, and implementation languages still do not enforce design level constraints. But the expectation is that in the future, and in particular with the prevalence of the Model Driven Engineering approach,all information in a design model will be effective in its successive models.

In this paper, we present an algorithm for testing the satisfiability of UML class diagrams that include class hierarchies with “disjoint/overlapping” and “complete/incomplete” constraints. The algorithm is based on a reduction to a previous algorithm of Lenzerini and Nobili that was applied only to ER-diagrams without class hierarchies. Our algorithm is simple and feasible since it adds in the worst case only a linear amount of entities to the original diagram. It improves over previous elaboration of the Lenzerini and Nobili method that require the addition of an exponential number of new entities to the original diagram. An implementation of our method within a UML case tool is currently under development.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.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

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Boufares, F., Bennaceur, H.: Consistency Problems in ER-schemas for Database Systems. Information Sciences (4) (2004)

    Google Scholar 

  2. Berardi, D., Calvanese, D., De Giacomo, G.: Reasoning on UML class diagrams. Artificial Intelligence (2005)

    Google Scholar 

  3. Calvanese, D., Lenzerini, M.: On the Interaction between ISA and Cardinality Constraints. In: Proc. of the 10th IEEE Int. Conf. on Data Engineering (1994)

    Google Scholar 

  4. Cadoli, M., Calvanese, D., De Giacomo, G., Mancini, T.: Finite Satisfiability of UML Class Diagrams by Constraint Programming. In: Proc. of the CP 2004 Workshop on CSP Techniques with Immediate Application (2004)

    Google Scholar 

  5. Liang., P.: Formalization of Static and Dynamic UML Using Algebraic. Master’s thesis, University of Brussel (2001)

    Google Scholar 

  6. Hartman, S.: Graph Theoretic Methods to Construct Entity-Relationship Databases. LNCS, vol. 1017. Springer, Heidelberg (1995)

    Google Scholar 

  7. Hartman, S.: On the Implication Problem for Cardinality Constraints and Functional dependencies. Ann. Math. Artificial Intelligence (2001)

    Google Scholar 

  8. Hartmann, S.: Coping with Inconsistent Constraint Specifications. In: Kunii, H.S., Jajodia, S., Sølvberg, A. (eds.) ER 2001. LNCS, vol. 2224, p. 241. Springer, Heidelberg (2001)

    Chapter  Google Scholar 

  9. Hartmann, S.: Soft Constraints and Heuristic Constraint Correction in Entity-Relationship Modelling. In: Bertossi, L., Katona, G.O.H., Schewe, K.-D., Thalheim, B. (eds.) Semantics in Databases 2001. LNCS, vol. 2582, pp. 82–99. Springer, Heidelberg (2003)

    Chapter  Google Scholar 

  10. Maraee, A.: Consistency Problems in UML Class Diagram. Master’ thesis, BenGurion University of the Negev (2006)

    Google Scholar 

  11. Lenzerini, M., Nobili, P.: On the Satisfiability of Dependency Constraints in Entity-Relationship Schemata. Information Systems 15(4) (1990)

    Google Scholar 

  12. OMG, UML 2.0 Superstructure Specification (2004)

    Google Scholar 

  13. Rumbaugh, J., Jacobson, G., Booch, G.: The Unified Modeling Language Reference Manual, 2nd edn. Addison Wesley, Reading (2004)

    Google Scholar 

  14. Thalheim, B.: Entity Relationship Modeling. In: Foundation of Database Technology. Springer, Heidelberg (2000)

    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

Balaban, M., Maraee, A. (2006). Consistency of UML Class Diagrams with Hierarchy Constraints. In: Etzion, O., Kuflik, T., Motro, A. (eds) Next Generation Information Technologies and Systems. NGITS 2006. Lecture Notes in Computer Science, vol 4032. Springer, Berlin, Heidelberg. https://doi.org/10.1007/11780991_7

Download citation

  • DOI: https://doi.org/10.1007/11780991_7

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-35472-7

  • Online ISBN: 978-3-540-35473-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics