Difference between revisions of "Atomicity Decomposition Plug-in User Guide"

From Event-B
Jump to navigationJump to search
imported>Asiehsalehi
imported>Asiehsalehi
Line 27: Line 27:
 
== Creating Flow Diagrams ==
 
== Creating Flow Diagrams ==
  
A flow can be created:
+
First you need to open the machine in the Rose editor by right-clicking on the machine.
 +
[[Image:machine_rose.jpg]]
 +
 
 +
Then a flow can be created:
 
{|  
 
{|  
 
|-
 
|-

Revision as of 16:29, 7 August 2012

Introduction

The Atomicity Decomposition (AD) plug-in allows an explicit representation of control flow and explicit representation of refinement relationships between an abstract event and the corresponding concrete events.

See the Atomicity Decomposition page for technical details.

Currently the AD diagrams can be defined in an EMF tree structure included in an Event-B machine which is opened by Rose editor. After defining the control flow and refinement relationships via AD diagrams, the AD diagrams can automatically transformed to the Event-B notation.

Installing and Requirements

Setup

The following steps will guide you through the setup process:

  1. Start Rodin.
  2. In the menu choose Help -> Install New Software....
  3. In the Work with dropdown list, choose the location URL: Rodin - http://rodin-b-sharp.sourceforge.net/updates.
  4. Select the Atomicity Decomposition feature under the Atomicity Decomposition category, then click the check box.
  5. Click Next, after some time, the Install Details page appears.
  6. Click Next and accept the license.
  7. Click Finish.
  8. A Security Warning window may appear: click OK.
  9. Restart Rodin as suggested.

Requirements

The AD plug-in requires Rose Editor Plug-in and EMF Plug-in.

Creating Flow Diagrams

First you need to open the machine in the Rose editor by right-clicking on the machine. Machine rose.jpg

Then a flow can be created:

1. Either for an Event-B machine, when right-clicking on the machine. 2. Or for a pre-defined leaf, when right-clicking on the leaf.
Flow machine.jpg
Flow leaf.jpg

The following steps will guide you through a combined atomicity decomposition diagram:

  1. Create an abstract flow for the most abstract machine.
  2. When refining a machine, the pre-defined flows are copied to the new (refining) machine.
  3. In the new machine, you can create a new flow for each pre-defined leaf.

Validating Rules to Follow

Transforming to Event-B