Difference between pages "Rodin Workshop 2013" and "Single View Design"

From Event-B
(Difference between pages)
Jump to navigationJump to search
imported>WikiSysop
 
imported>Laurent
 
Line 1: Line 1:
==4th Rodin User and Developer Workshop==
+
==Purpose==
  
''June 10-11, 2013''
+
The Rodin platform, at the beginning of the Deploy project, provided two views for displaying models and proofs:
 +
* The ''Project Explorer'' displays the modelling elements stored in the Rodin database.
 +
* The ''Obligation Explorer'' displays the proof obligations together with their proof state.
  
Turku, Finland
+
The clean separation between modelling and proving looked good during paper design.  However, users reported that they were constantly switching between the two views. This is due to the fact that modelling and proving are not separate activities, one being performed after the other. In general practice, both activities are intertwined.
  
http://wiki.event-b.org/index.php/Rodin_Workshop_2013
+
Independently, Eclipse has released a new framework called the ''Common Navigation Framework'' since these two views were designed and implemented. The purpose of this framework is to provide Eclipse plug-ins with basic blocks for easily implementing views like the ''Project Explorer''. Moreover, this framework allows various plug-ins to cooperate together in populating such views, thus reinforcing plug-in integration into the platform.
  
The purpose of the Rodin workshop
+
Therefore, it was decided in the Deploy project to combine the two original views into a single one that would display modelling elements and proof obligations together. This new single view should also take advantage of the ''Common Navigation Framework'', in order to improve its seamless integration within Eclipse.
is to bring together existing and potential users and developers of the Rodin
 
toolset and to foster a broader community of Rodin users and developers.
 
For Rodin users the workshop will provide an opportunity to share tool
 
experiences and to gain an understanding of on-going tool developments.
 
For plug-in developers the workshop will provide an opportunity to
 
showcase their tools and to achieve better coordination of tool
 
development effort.
 
  
Preceding Rodin User and Developer Workshops were held at the University of
+
==Specification==
Southampton, the University of Düsseldorf and the University of Paris-Est Créteil.
+
The Single View Design uses the [http://wiki.eclipse.org/index.php/Common_Navigator_Framework Common Navigator Framework] that is provided by Eclipse.
The fourth Rodin workshop will be collocated with the conference iFM 2013: http://www.it.abo.fi/iFM2013/
 
  
==Registration==
+
===The Navigator===
 +
The navigator contains a tree of all projects and their contents. The users can choose between to ways how the machines and contexts will be presented:
 +
*A simple structure where all machines and contexts are presented on the same level
 +
*A complex structure where the machines and contexts are presented as a tree. Thus dependencies between machines and contexts (like ''refines'' or ''sees'') are made visible.
  
Registration for the Rodin 2013 Workshop is open:
+
===The Statistics===
 +
The statistics view presents information about the state of the proof obligations of the selected node in the navigator.
  
http://www.it.abo.fi/iFM2013/rodin_registration.php
+
==User guide==
 +
===Customizing the Navigator===
 +
Click on the little triangle in the upper right corner of the navigator view and select ''Customize View''. This opens a dialog that allows you to choose ''Filters'' and ''Content''.
  
==Programme==
+
[[Image:Customize.jpg]]
  
===Monday 10 June===
+
====Content====
 +
Here you can choose what content should be shown in the navigator.
 +
*'''Resources''': All projects, files and folder (keep this one checked!).
 +
*'''Working Sets''': Allows you to see the working sets as top level elements. If you're not familiar with working sets, consult [http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.user/concepts/cworkset.htm eclipse help].
 +
*'''Simple Context Structure''': Lists all contexts of a project.
 +
*'''Complex Context Structure''': Lists all contexts of a project. Contexts that extend another context are attached to it as children in the tree. Contexts that are seen by a machine are attached to the machine as children. Choose either the complex or the simple structure. It is not recommended to have both active at the same time.
 +
*'''Simple Machines Structure''': Lists all machines of a project.
 +
*'''Complex Context Structure''': Lists all machines of a project. Machines that refine another machine are attached to it as children in the tree. Choose either the complex or the simple structure. It is not recommended to have both active at the same time.
 +
*'''Carrier Sets'''
 +
*'''Constants'''
 +
*'''Variables'''
 +
*'''Axioms'''
 +
*'''Invariants'''
 +
*'''Theorems'''
 +
*'''Events'''
 +
*'''Proof Obligations''': All proof obligations of a machine, context, axiom, invariant, theorem or event.
  
'''14:00 - 15:30 Tutorials'''
+
Here's an example of what the same projects looks like once using the complex machine and context structure (left) and once using the simple version (right).
  
* Colin Snook: ''UML-B tutorial''
+
[[Image:Complex.jpg]][[Image:Simple.jpg]]
  
* Jens Bendisposto, Joy Clark, Ivaylo Dobrikov, Philipp K ̈orner, Sebastian Krings, Lukas Ladenberger, Michael Leuschel and Daniel Plagge: ''ProB Tutorial''
+
====Filters====
 +
The filters let you choose what to hide in the navigator.
 +
*'''File types''': There are various filters to hide certain types of files.
 +
*'''All files and folders''': Hides all files and subfolders.
 +
*'''Non Rodin Projects''': Hides all non Rodin projects. Also hides closed Rodin Projects.
 +
*'''Closed Projects''': Hides all closed projects.
  
===Tuesday 11 June===
+
There are some additional filters that can be found on top of the navigator:
  
====09:00 - 10:30 Session 1====
+
[[Image:PoFilters.JPG]]
  
*Yuliya Prokhorova, Elena Troubitsyna, Linas Laibinis: ''Supporting Formal Modelling in Event-B with Safety Cases''
+
Enter a text into the field and only proof obligations containing the string will be shown. If you push the green button, all discharged proof obligations will be hidden.
  
*Tsutomu Kobayashi, Fuyuki Ishikawa, and Shinichi Honiden: ''Systematic Planning of Refinement in Event-B''
+
===Statistics===
 +
The content displayed in the statistics view depends on the selection in the navigator. Generally it shows an overview of the status of all proof obligations of the selected elements and a more detailed view below (if available). If a project is selected this means that in the overview the statistics for all proof obligations of that project are shown. In the detailed viewed each machine and context is listed with their own statistics. If you double click on an element in the detailed view, the corresponding element will be selected in the navigator.
  
*Colin Snook, Michael Butler: ''iUML-B Diagram Developments''
+
It is possible to select multiple elements in the navigator and get a combined statistics. But the selected elements must be on the same level (e.g. projects, machines/contexts). This mean if you select both machines and projects at the same time, you won't get any statistics.
  
*Neil Evans, Neil Grant, Helen Marshall, James Sharp, Michael Butler, John Colley, Andy Edmunds, Colin Snook: ''The Co-Design Architecture (CODA) Methodology and Plug-in Tool, Progress Update''
+
==Developer guide==
 +
===Extending Single View Design===
 +
Single View Design uses the [http://wiki.eclipse.org/index.php/Common_Navigator_Framework Common Navigator Framework]. You can add custom filters, content providers and action providers in a plug-in of your own. Add the extension <code>org.eclipse.ui.navigator.viewer</code>. There you can add viewerContentBindings and viewerActionBindings with viewerId <code>fr.systerel.explorer.navigator.view</code>. This binds your custom content, actions and filters to the navigator.
  
====10:30 - 11:00 Break====
+
In the picture you can see what types the nodes in the navigator have.
  
====11:00 - 12:30 Session 2====
+
[[Image:Tree.jpg]]
                 
 
* Laurent Voisin and Minh-Thang Khuu: ''Domain Specific Event-B Modeling''
 
  
* Ulyana Tikhonova, Maarten Manders, Mark van den Brand, Suzana Andova, and Tom Verhoeff: ''Event-B for Defining the Dynamic Semantics of a DSL''
+
====Adding a content provider to the navigator====
 +
To add a custom content provider you have to use the <code>org.eclipse.ui.navigator.navigatorContent</code> extension. There you add a new navigatorContent. Example: You want to add a new child under the IMachineRoot nodes. Define a navigatorContent and add triggerPoints. There you add a new <code>instanceof</code> with value <code>org.eventb.core.IMachineRoot </code>. The priority of the navigatorContent decides in what order the content is shown with respect to other content providers. (For example the content provider for the variables has a higher priority than the one for invariants, that's why the variables appear before the invariants in the tree.) You need to provide a contentProvider and a labelProvider class. Finally include your navigatorContent in your viewerContentBindings. For more information read the extension point description of [http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/extension-points/org_eclipse_ui_navigator_navigatorContent.html navigatorContent]. There is a example project in the CVS repository, that adds a content provider to the navigator.
  
* Jens Bendisposto, Philipp Korner and Michael Leuschel: ''Parallel Model Checking of B Specifications''
+
<code>
 +
  <extension
 +
        point="org.eclipse.ui.navigator.navigatorContent">
 +
      <navigatorContent
 +
            contentProvider="example.ContentProvider"
 +
            id="example.navigatorContent"
 +
            labelProvider="example.LabelProvider"
 +
            name="Example Content">
 +
        <triggerPoints>
 +
            <instanceof
 +
                  value="org.eventb.core.IMachineRoot ">
 +
            </instanceof>
 +
        </triggerPoints>
 +
      </navigatorContent>
 +
  </extension>
 +
</code>
  
* Sebastian Krings, Jens Bendisposto, Ivaylo Dobrikov and Michael Leuschel: ''B Constrained''
+
<code>
 +
  <extension
 +
        point="org.eclipse.ui.navigator.viewer">
 +
      <viewerContentBinding
 +
            viewerId="fr.systerel.explorer.navigator.view">
 +
        <includes>
 +
            <contentExtension
 +
                  pattern="example.navigatorContent">
 +
            </contentExtension>
 +
        </includes>
 +
      </viewerContentBinding>
 +
  </extension>
 +
</code>
  
====12:30 - 13:30 Lunch====
+
====Adding a filter to the navigator====
 +
To add a custom filter you have to use the <code>org.eclipse.ui.navigator.navigatorContent</code> extension. There you add a new commonFilter. You can either provide an implementation for <code>ViewerFilter</code> or use xml filterExpressions. For more information read the extension point description of [http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/extension-points/org_eclipse_ui_navigator_navigatorContent.html navigatorContent]. Finally include your commonFilter in your viewerContentBindings. There is a example project in the CVS repository, that adds a filter to the navigator.
  
====13:30 - 14:30 Session 3====
+
====Adding an action provider to the navigator====
                 
+
To add a custom filter you use again the <code>org.eclipse.ui.navigator.navigatorContent</code> extension. There you add a new actionProvider. You have to provide an implementation for <code>org.eclipse.ui.navigator.CommonActionProvider</code>. To decide on what nodes in the tree your action provider should be invoked, use the enablement expression. Finally include your commonFilter in your viewerActionBindings. There is a example project in the CVS repository, that adds an action provider to the navigator.
* Invited Talk
 
  
====14:30 - 15:15 Session 4====
+
[[Category:Work in progress]]
 
 
* Thai Son Hoang: ''Generic Instantiation and Tool Support''
 
 
 
* Alexei Iliasov, Linas Laibinis, Elena Troubitsyna, Alexander Romanovsky: ''Support for Indexed Modules in Event-B''
 
 
 
====15:15 - 15:45 Break====
 
 
 
====15:45 - 17:15 Session 5====
 
 
 
* Andy Edmunds: ''Developments in Code Generation Tools for Event-B''
 
 
 
* Sergey Ostroumov , Leonidas Tsiopoulos , Juha Plosila , Kaisa Sere: ''Derivation of Structural VHDL from Component-Based Event-B Models''
 
 
 
* Vitaly Savicks, Michael Butler, Jens Bendisposto, John Colley: ''Co-simulation of Event-B and Continuous Models in Rodin''
 
 
 
* Adisak Intana, Michael R. Poppleton, and Geoff V. Merrett: ''Proof-based formal methods for WSN development with Simulation Approach''
 
 
 
 
 
==Organisers==
 
 
 
Michael Butler, University of Southampton
 
 
 
Stefan  Hallerstede, Aarhus University
 
 
 
Thierry Lecomte, ClearSy
 
 
 
Michael Leuschel, University of Düsseldorf
 
 
 
Alexander Romanovsky, Newcastle University
 
 
 
Laurent Voisin, Systerel
 
 
 
Marina Walden, Åbo Akademi University
 

Revision as of 13:12, 29 January 2009

Purpose

The Rodin platform, at the beginning of the Deploy project, provided two views for displaying models and proofs:

  • The Project Explorer displays the modelling elements stored in the Rodin database.
  • The Obligation Explorer displays the proof obligations together with their proof state.

The clean separation between modelling and proving looked good during paper design. However, users reported that they were constantly switching between the two views. This is due to the fact that modelling and proving are not separate activities, one being performed after the other. In general practice, both activities are intertwined.

Independently, Eclipse has released a new framework called the Common Navigation Framework since these two views were designed and implemented. The purpose of this framework is to provide Eclipse plug-ins with basic blocks for easily implementing views like the Project Explorer. Moreover, this framework allows various plug-ins to cooperate together in populating such views, thus reinforcing plug-in integration into the platform.

Therefore, it was decided in the Deploy project to combine the two original views into a single one that would display modelling elements and proof obligations together. This new single view should also take advantage of the Common Navigation Framework, in order to improve its seamless integration within Eclipse.

Specification

The Single View Design uses the Common Navigator Framework that is provided by Eclipse.

The Navigator

The navigator contains a tree of all projects and their contents. The users can choose between to ways how the machines and contexts will be presented:

  • A simple structure where all machines and contexts are presented on the same level
  • A complex structure where the machines and contexts are presented as a tree. Thus dependencies between machines and contexts (like refines or sees) are made visible.

The Statistics

The statistics view presents information about the state of the proof obligations of the selected node in the navigator.

User guide

Customizing the Navigator

Click on the little triangle in the upper right corner of the navigator view and select Customize View. This opens a dialog that allows you to choose Filters and Content.

Customize.jpg

Content

Here you can choose what content should be shown in the navigator.

  • Resources: All projects, files and folder (keep this one checked!).
  • Working Sets: Allows you to see the working sets as top level elements. If you're not familiar with working sets, consult eclipse help.
  • Simple Context Structure: Lists all contexts of a project.
  • Complex Context Structure: Lists all contexts of a project. Contexts that extend another context are attached to it as children in the tree. Contexts that are seen by a machine are attached to the machine as children. Choose either the complex or the simple structure. It is not recommended to have both active at the same time.
  • Simple Machines Structure: Lists all machines of a project.
  • Complex Context Structure: Lists all machines of a project. Machines that refine another machine are attached to it as children in the tree. Choose either the complex or the simple structure. It is not recommended to have both active at the same time.
  • Carrier Sets
  • Constants
  • Variables
  • Axioms
  • Invariants
  • Theorems
  • Events
  • Proof Obligations: All proof obligations of a machine, context, axiom, invariant, theorem or event.

Here's an example of what the same projects looks like once using the complex machine and context structure (left) and once using the simple version (right).

Complex.jpgSimple.jpg

Filters

The filters let you choose what to hide in the navigator.

  • File types: There are various filters to hide certain types of files.
  • All files and folders: Hides all files and subfolders.
  • Non Rodin Projects: Hides all non Rodin projects. Also hides closed Rodin Projects.
  • Closed Projects: Hides all closed projects.

There are some additional filters that can be found on top of the navigator:

PoFilters.JPG

Enter a text into the field and only proof obligations containing the string will be shown. If you push the green button, all discharged proof obligations will be hidden.

Statistics

The content displayed in the statistics view depends on the selection in the navigator. Generally it shows an overview of the status of all proof obligations of the selected elements and a more detailed view below (if available). If a project is selected this means that in the overview the statistics for all proof obligations of that project are shown. In the detailed viewed each machine and context is listed with their own statistics. If you double click on an element in the detailed view, the corresponding element will be selected in the navigator.

It is possible to select multiple elements in the navigator and get a combined statistics. But the selected elements must be on the same level (e.g. projects, machines/contexts). This mean if you select both machines and projects at the same time, you won't get any statistics.

Developer guide

Extending Single View Design

Single View Design uses the Common Navigator Framework. You can add custom filters, content providers and action providers in a plug-in of your own. Add the extension org.eclipse.ui.navigator.viewer. There you can add viewerContentBindings and viewerActionBindings with viewerId fr.systerel.explorer.navigator.view. This binds your custom content, actions and filters to the navigator.

In the picture you can see what types the nodes in the navigator have.

Tree.jpg

Adding a content provider to the navigator

To add a custom content provider you have to use the org.eclipse.ui.navigator.navigatorContent extension. There you add a new navigatorContent. Example: You want to add a new child under the IMachineRoot nodes. Define a navigatorContent and add triggerPoints. There you add a new instanceof with value org.eventb.core.IMachineRoot . The priority of the navigatorContent decides in what order the content is shown with respect to other content providers. (For example the content provider for the variables has a higher priority than the one for invariants, that's why the variables appear before the invariants in the tree.) You need to provide a contentProvider and a labelProvider class. Finally include your navigatorContent in your viewerContentBindings. For more information read the extension point description of navigatorContent. There is a example project in the CVS repository, that adds a content provider to the navigator.

  <extension
        point="org.eclipse.ui.navigator.navigatorContent">
     <navigatorContent
           contentProvider="example.ContentProvider"
           id="example.navigatorContent"
           labelProvider="example.LabelProvider"
           name="Example Content">
        <triggerPoints>
           <instanceof
                 value="org.eventb.core.IMachineRoot ">
           </instanceof>
        </triggerPoints>
     </navigatorContent>
  </extension>

  <extension
        point="org.eclipse.ui.navigator.viewer">
     <viewerContentBinding
           viewerId="fr.systerel.explorer.navigator.view">
        <includes>
           <contentExtension
                 pattern="example.navigatorContent">
           </contentExtension>
        </includes>
     </viewerContentBinding>
  </extension>

Adding a filter to the navigator

To add a custom filter you have to use the org.eclipse.ui.navigator.navigatorContent extension. There you add a new commonFilter. You can either provide an implementation for ViewerFilter or use xml filterExpressions. For more information read the extension point description of navigatorContent. Finally include your commonFilter in your viewerContentBindings. There is a example project in the CVS repository, that adds a filter to the navigator.

Adding an action provider to the navigator

To add a custom filter you use again the org.eclipse.ui.navigator.navigatorContent extension. There you add a new actionProvider. You have to provide an implementation for org.eclipse.ui.navigator.CommonActionProvider. To decide on what nodes in the tree your action provider should be invoked, use the enablement expression. Finally include your commonFilter in your viewerActionBindings. There is a example project in the CVS repository, that adds an action provider to the navigator.