Abstract. This paper presents a systematic transformation of semiformal specifications expressed with OMT notations into formal specifications. The object model is first transformed into a specification composed of a set of B machines. Then each component of the dynamic model is transformed and integrated into the previous specification leading to a single specification. Transformations are presented as generic templates. When using these templates, the generated specification is automatically proved within the B prover relatively to the invariant preservation.
An appropriate approach for integrating UML-B allows us to map UML specifications into B specifications. Therefore, we can formally analyze an UML specification via the corresponding B formal specification. This point is significant because B support tools are available. We can also use UML specifications as a tool for building B specifications, so the development of B specifications become easier. Hence, an approach for a practical and rigorous software development, which is based on UML and B, from the requirements elicitation to the executable code, could be achieved. In this paper, we address the problem of automatic derivation of UML behavioral diagrams into B specifications, which has been so far an open issue. For this purpose, we propose a new approach for modeling class operations in B. Each class operation is mapped into a B operation. A class operation and its concerned data are mapped into the same B abstract machine (BAM). The calling-called dependency between class operations is used to arrange B operations of class operations into BAMs. For each calling-called pair of class operations, the B operation of the called operation participates in the implementation of the B operation of the calling operation.
In the continuity of our research on integration of UML and B, we address in this paper the transformation from OCL (Object Constraint Language), which is an integral part of UML, into B. Our derivation schemes allow to automatically derive into B not only the complementary class invariants, the guard conditions in state-charts (in OCL) but also the OCL specifications for class operations.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.