Menu

#11 Refined CD and SM - mark the inheritance

3.1
open
nobody
None
Bug
State-machine
2015-04-14
2015-02-23
Luis Diaz
No

In the event-b code it is not possible to change, for instance, a guard of an event that has been refined. It is shown in soft blue and it is read only.
But in the diagrams, for instance, the inherited guards of a refined state machine can be modified.
It should be read-only and somehow mark in the diagram as inherited properties.

Discussion

  • Colin Snook

    Colin Snook - 2015-03-17

    In Event-B this is called 'Extends'. While no abstract guards or actions have been altered, it is not necessary to replicate them in the refinement. (the abstract guards and actions are shown in soft blue/grey). A similar facility could be provided for state-machine transitions and class methods. (An extends attribute already exists in the meta-models for this functionality to be added in the future).

     
  • Luis Diaz

    Luis Diaz - 2015-04-14

    I think this issue can be removed since I thought that in a refined state-machine diagram the inherited guards are seen and can be modified. I have checked it again and it does not happen.

     

Log in to post a comment.