VDM++ Method Guidelines

VDM++ Method Guidelines - VDMTools VDM Method Guidelines...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CSKSYSTEMSCORPORATION VDMTools VDM++ Method Guidelines ver.1.0 How to contact CSK SYSTEMS CORPORATION: http://www.csk.com/systems Web @ [email protected] General information VDM++ Method Guidelines 1.0 — Revised for VDMTools v8.2 c ⃝ COPYRIGHT 2009 by CSK SYSTEMS CORPORATION The software described in this document is furnished under a license agreement. The soft- ware may be used or copied only under the terms of the license agreement. This document is subject to change without notice VDM++ Method Guidelines Contents 1 Introduction 2 1.1 VDM++ and UML . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.2 Constructing a Model . . . . . . . . . . . . . . . . . . . . . . . 3 2 A Chemical Plant Example 5 3 Graphical Model in UML 6 3.1 Creating a Directory . . . . . . . . . . . . . . . . . . . . . . . . 6 3.2 Sketching Class Representations . . . . . . . . . . . . . . . . . 7 3.3 Sketching Signatures for operations . . . . . . . . . . . . . . . . 13 4 Making the Model More Precise 14 4.1 Adding Invariant Properties . . . . . . . . . . . . . . . . . . . . 15 4.2 Completing Operation Definitions . . . . . . . . . . . . . . . . . 16 5 Validating the VDM++ Model 20 5.1 Automated Validation Using Systematic Testing . . . . . . . . . 21 5.2 Visual Validation Using Rapid Prototyping . . . . . . . . . . . . 28 6 Code Generating the VDM++ Model 29 7 Conclusions 30 7.1 Who Should Use the Rose-VDM++ Link . . . . . . . . . . . . . 30 7.2 Graphical Modelling in UML . . . . . . . . . . . . . . . . . . . 31 7.3 Analysing a Model using VDMTools . . . . . . . . . . . . . . . 31 A The UML and VDM++ Models 34 A.1 The Class Plant . . . . . . . . . . . . . . . . . . . . . . . . . . 36 A.2 The Class Expert . . . . . . . . . . . . . . . . . . . . . . . . . . 38 A.3 The Class Test1 . . . . . . . . . . . . . . . . . . . . . . . . . . 40 i VDM++ Method Guidelines ii VDM++ Method Guidelines Abstract The limitations of graphical models in object-oriented analysis are widely accepted. While superior for visualization, a graphical model is not enough for precise and unambiguous specification. This document presents a methodology and tools that combine the benefits of graphical modeling in UML with a pragmatic and light-weight approach to for- mal modeling and validation in the object-oriented formal specification language VDM++, supported by VDMTools . VDMTools provides round trip engineering between VDM++ and UML (Ra- tional Rose). In this way, a user of UML gets access to enhanced analysis and val- idation facilities such as type checking and testing of executable models with au- tomatic checking of annotations such as invariants and pre- and post-conditions. 1 VDM++ Method Guidelines 1 Introduction In object-oriented modeling the use of graphical visualization can help to master com- plexity and significantly increase the understanding of the “problem” being modeled....
View Full Document

This note was uploaded on 03/31/2010 for the course CAS 707 taught by Professor Ridhakhedri during the Spring '10 term at McMaster University.

Page1 / 45

VDM++ Method Guidelines - VDMTools VDM Method Guidelines...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online