skip to main content
article

UML-B: Formal modeling and design aided by UML

Published:01 January 2006Publication History
Skip Abstract Section

Abstract

The emergence of the UML as a de facto standard for object-oriented modeling has been mirrored by the success of the B method as a practically useful formal modeling technique. The two notations have much to offer each other. The UML provides an accessible visualization of models facilitating communication of ideas but lacks formal precise semantics. B, on the other hand, has the precision to support animation and rigorous verification but requires significant effort in training to overcome the mathematical barrier that many practitioners perceive. We utilize a derivation of the B notation as an action and constraint language for the UML and define the semantics of UML entities via a translation into B. Through the UML-B profile we provide specializations of UML entities to support model refinement. The result is a formally precise variant of UML that can be used for refinement based, object-oriented behavioral modeling. The design of UML-B has been guided by industrial applications.

References

  1. Abrial, J. R. 1996. The B Book---Assigning Programs to Meanings. Cambridge University Press, NY.]] Google ScholarGoogle Scholar
  2. Amey, P. 2004. Dear sir, yours faithfully: an everyday story of formality, In Practical Elements of Safety: Proceedings of the twelfth Safety-Critical Systems Symposium, Birmingham, UK, February, F. Redmill and T. Anderson, Eds. Springer-Verlag, London, 3--15.]]Google ScholarGoogle Scholar
  3. B-Core 1996. B-Toolkit User's Manual, Release 3.2. B-Core(UK) Ltd., Oxford, UK.]]Google ScholarGoogle Scholar
  4. Clarke, E. M., Grumberg, O., and Peled, D. 1999. Model Checking. MIT Press, Cambridge, MA.]] Google ScholarGoogle Scholar
  5. Clearsy 2003. AtelierB User Manual V3.6. ClearSy System Engineering, Aix-en-Provence, F.]]Google ScholarGoogle Scholar
  6. Clearsy 2000. AtelierB Training Course Level 2. ClearSy System Engineering, Aix-en-Provence, F.]]Google ScholarGoogle Scholar
  7. Craigen, D., Gerhart, S., and Ralston, T. 1995. Formal methods reality check: Industrial usage. IEEE Trans. Softw. Eng. 21, 2, 90--98.]] Google ScholarGoogle Scholar
  8. Facon, P., Laleau, R., and Nguyen, H. P. 1996. Mapping object diagrams into B specifications. In Methods Integration Workshop, Electronic Workshops in Computing (eWiC), Leeds, UK, March. Springer-Verlag.]]Google ScholarGoogle Scholar
  9. Facon, P., Laleau, R., Nguyen, H. P., and Mammar, A. 1999. Combining UML with the B Formal Method for the Specification of Database Applications. Research report, CEDRIC Laboratory, Paris, F.]]Google ScholarGoogle Scholar
  10. Glass, R. 2004. The mystery of formal methods disuse. Comm. ACM 47, 8, 15--17.]] Google ScholarGoogle Scholar
  11. Harel, D. 1987. Statecharts: A visual formalism for complex systems. Sci. Comput. Prog. 8, 3, 231--274.]] Google ScholarGoogle Scholar
  12. Lano, K., Clark, D., and Androutsopoulos, K. 2004. UML to B: Formal Verification of Object-Oriented Models. In Integrated Formal Methods, 4th International Conference, IFM 2004, Canterbury, UK, April 2004, E. A. Boiten, J. Derrick and G. Smith, Eds. Lecture Notes in Computer Science Vol. 2999, Springer-Verlag, Berlin Heidelberg, 187--206.]]Google ScholarGoogle Scholar
  13. Ledang, H. and Souquières, J. 2001. Integrating UML and B specification techniques. In Informatik 2001 Workshop on Integrating Diagrammatic and Formal Specification Techniques. Vienna, Austria, September. GI Jahrestagung (1) 2001, 641--648.]]Google ScholarGoogle Scholar
  14. Leuschel, M. and Butler, M. 2003. ProB: A Model-Checker for B, In Proceedings of Formal Methods Europe, FME 2003, Pisa, Italy, A. Keijiro, S. Gnesi and M. Dino, Eds. Lecture Notes in Computer Science Vol. 2805, Springer-Verlag, Berlin Heidelberg, 855--874.]]Google ScholarGoogle Scholar
  15. Matisse 2003. Methodologies and Technologies for Industrial Strength Systems Engineering (MATISSE) IST Programme RTD Research Project IST-1999-11435. 1 May 2000 to 28 February 2003 http://www.matisse.qinetiq.com/]]Google ScholarGoogle Scholar
  16. Mermet, J. (Ed.) 2004. UML-B Specification for Proven Embedded Systems Design. Kluwer Academic Publishers, Dordrecht, The Netherlands.]]Google ScholarGoogle Scholar
  17. Meyer, E. and Souquières, J. 1999. A systematic approach to transform OMT diagrams to a B specification. In World Congress on Formal Methods in the Development of Computing Systems, FM'99, Vol. I. Toulouse, France, September 1999, J. Wing, J. Woodcock and J. Davies, Eds. Lecture Notes in Computer Science, Vol. 1708, Springer-Verlag, Berlin Heidelberg, 875--895.]] Google ScholarGoogle Scholar
  18. Nagui-Raiss, N. 1994. A formal software specification tool using the entity-relationship model. In 13th International Conference on the Entity-Relationship Approach. Manchester, U.K., December, P. Loucopoulos, Ed. Lecture Notes in Computer Science, Vol. 881, Springer-Verlag, 315--332.]] Google ScholarGoogle Scholar
  19. Rumbaugh, J., Jacobson, I., and Booch, G. 1998. The Unified Modeling Language Reference Manual. Addison-Wesley, Reading, MA.]] Google ScholarGoogle Scholar
  20. Sekerinski, E. 1998. Graphical design of reactive systems. In B'98: Recent Advances in the Development and Use of the B Method---2nd International B Conference. Montpellier, France, April 1998, D. Bert, Ed. Lecture Notes in Computer Science, Vol. 1393, Springer-Verlag, 182--197.]] Google ScholarGoogle Scholar
  21. Shore, R. 1996. Object-oriented modelling in B. In Proceedings of the 1st Conference on the B method. Nantes, France, November, H. Habrias, Ed. 133--154.]]Google ScholarGoogle Scholar
  22. Snook, C., Oliver, I., and Butler, M. 2004. The UML-B profile for formal systems modelling in UML, In UML-B Specification for Proven Embedded Systems Design, J. Mermet, Ed. Kluwer Academic Publishers, Dordrecht, The Netherlands.]]Google ScholarGoogle Scholar
  23. Snook, C. and Butler, M. 2004. U2B---A tool for translating UML-B models into B, In UML-B Specification for Proven Embedded Systems Design, J. Mermet, Ed. Kluwer Academic Publishers, Dordrecht, The Netherlands.]]Google ScholarGoogle Scholar
  24. Snook, C., Tsiopoulos, L., and Waldén, M. 2003. A case study in requirement analysis of control systems using UML and B, In Proceedings of RCS'2003 International Workshop on Refinement of Critical Systems: Methods, Tools and Experience. Turku, Finland, June.]]Google ScholarGoogle Scholar
  25. Spivey, J. M. 1988. Understanding Z a specification language and its formal semantics. Cambridge University Press, NY.]] Google ScholarGoogle Scholar
  26. Toval, A., Requena, A., and Alemán, J. L. 2003. Emerging OCL Tools. Software and System Modeling (SoSyM), 2, 40, 248--261.]]Google ScholarGoogle Scholar
  27. Vaziri, M. and Jackson, D. 1999. Some shortcomings of OCL, the Object Constraint Language of UML. Response to Object Management Group's Request for Information on UML 2.0. Available at http://sdg.lcs.mit.edu/cdnj/publications.]]Google ScholarGoogle Scholar
  28. Voros, N., Snook, C., Hallerstede, S., and Masselos, K. 2004. Embedded System Design Using Formal Model Refinement: An Approach Based on the Combined Use of UML and the B Language, Design Automation for Embedded Systems 9, 2, 67--99.]]Google ScholarGoogle Scholar
  29. Warmer, J. and Kleppe, A. 2003. The Object Constraint Language Second Edition: Getting your models ready for MDA. Addison-Wesley.]] Google ScholarGoogle Scholar

Index Terms

  1. UML-B: Formal modeling and design aided by UML

                  Recommendations

                  Comments

                  Login options

                  Check if you have access through your login credentials or your institution to get full access on this article.

                  Sign in

                  Full Access

                  • Published in

                    cover image ACM Transactions on Software Engineering and Methodology
                    ACM Transactions on Software Engineering and Methodology  Volume 15, Issue 1
                    January 2006
                    122 pages
                    ISSN:1049-331X
                    EISSN:1557-7392
                    DOI:10.1145/1125808
                    Issue’s Table of Contents

                    Copyright © 2006 ACM

                    Publisher

                    Association for Computing Machinery

                    New York, NY, United States

                    Publication History

                    • Published: 1 January 2006
                    Published in tosem Volume 15, Issue 1

                    Permissions

                    Request permissions about this article.

                    Request Permissions

                    Check for updates

                    Qualifiers

                    • article

                  PDF Format

                  View or Download as a PDF file.

                  PDF

                  eReader

                  View online with eReader.

                  eReader