Model and Object Verification by Using Dresden OCL

1 The Object Constraint Language (OCL) is a formal language standardized by the OMG (Object Management Group) that allows the specification of constraints on MOF(Meta Object Facility) or EMF (Eclipse Modeling Framework) Ecore-based models. After about ten years of research and OCL prototyping in the area of using formal methods in practical software engineering, OCL is appreciated by the industry and tool vendors. An often used OCL library is the Dresden OCL Toolkit. OCL can be applied both on the meta-model (M2) and on the model layer (M1). In this paper we present use cases for OCL in the context of the Dresden OCL Toolkit. We show how the user is able to specify precise semantics both on the meta-model and the model layer by OCL, and how these OCL constraints can be verified on models respectively on objects.

[1]  簡聰富,et al.  物件導向軟體之架構(Object-Oriented Software Construction)探討 , 1989 .

[2]  Martin Gogolla,et al.  Validating UML Models and OCL Constraints , 2000, UML.

[3]  B. Demuth,et al.  THE DRESDEN OCL TOOLKIT AND ITS ROLE IN INFORMATION SYSTEMS DEVELOPMENT , 2004 .

[4]  Audrey Occello,et al.  Safe Runtime Adaptations of Components: a UML Metamodel with OCL Constraints , 2004 .

[5]  François Pinet,et al.  Spatial Constraint Modelling with a GIS Extension of UML and OCL: Application to Agricultural Information Systems , 2004, Metainformatics.

[6]  Alan Hartman,et al.  A UML Simulator Based On A Generic Model Execution Engine , 2006 .

[7]  Steffen Zschaler,et al.  Integrating OCL and Model Transformations in Fujaba , 2006, Electron. Commun. Eur. Assoc. Softw. Sci. Technol..

[8]  Richard F. Paige,et al.  Towards Using OCL for Instance-Level Queries in Domain Specific Languages , 2006 .

[9]  Birgit Demuth,et al.  Model-Level Integration of the OCL Standard Library Using a Pivot Model with Generics Support , 2007, MoDELS Workshops.

[10]  Christian Wende,et al.  A Framework for Generating Query Language Code from OCL Invariants , 2007, Electron. Commun. Eur. Assoc. Softw. Sci. Technol..

[11]  Michel Riveill,et al.  Validation and Verification of an UML/OCL Model with USE and B: Case Study and Lessons Learnt , 2008, 2008 IEEE International Conference on Software Testing Verification and Validation Workshop.

[12]  Jordi Cabot,et al.  Paraphrasing OCL Expressions with SBVR , 2008, NLDB.

[13]  Richard F. Paige,et al.  Observations for Assertion-based Scenarios in the context of Model Validation , 2008, Electron. Commun. Eur. Assoc. Softw. Sci. Technol..

[14]  François Pinet,et al.  Constraints Modeling in Agricultural Databases , 2009 .

[15]  Claas Wilke,et al.  MODEL-BASED RUN-TIME VERIFICATION OF SOFTWARE COMPONENTS BY INTEGRATING OCL INTO TREATY , 2009 .

[16]  Jüri Vain,et al.  Model-Based Testing of Reactive Systems , 2009 .

[17]  Claas Wilke,et al.  Java Code Generation for Dresden OCL2 for Eclipse , 2010 .