Visual animation of B specifications using executable DSLs
Résumé
Visual animation of formal specifications is useful for validation because it facilitates in an explicit illustrative way to show that the specifications satisfy the user's perception of requirements. The technique is especially useful for domain experts who would not be expected to understand formal specifications. However, in most tools, the development of a visual animation is done by formal methods engineers and requires skills in various technologies (e.g. Flash, JavaScript, SVG). Our work contributes toward the tools that are dedicated to the B method, such as B-Motion Studio, VisB, etc. In this paper, we show how visual animation can be done using a domain-specific language (DSL), which is expected to be used by domain experts themselves. The advantage is that the mapping between the DSL and the formal specification is written in B itself. The proposed approach is supported by Meeduse, a language workbench built on ProB, an animator and model-checker of the B method.