The Universal Safety Format (short: USF) enables the user to generate and weave application-specific safety mechanisms into different domains using one pattern description per safety mechanism type. USF consists of the following two parts:
- USF Metamodel: A domain-agnostic metamodel to describe the structure of functionality including the data and control flow.
- USF Transformations: A transformation language to describe safety mechanism patterns and how to integrate them into USF-based models.
A safety mechanism library based on USF consists of transformation scripts and can be extended by adding new scripts. A safety mechanism from the library can be easily applied to a USF model by specifying elements inside the model that should be protected by the given mechanism and executing the transformation. The following image shows the application of a dual modular redundancy (DMR) mechanism on a USF component by duplicating the function and comparing the result of both. For a detailed description of the USF metamodel see Overview USF-Metamodel In order to use USF safety mechanisms in a specific domain, the transformation steps have to be interpreted for this domain context. This can be automated by integrating USF support in a domain-specific tool (e.g., a C IDE like Visual Studio Code or a SysML tool). There are many implementation options to achieve this, depending on the specific domain and existing tool infrastructure.
One option for USF support in a tool is to implement the following four steps: The following image shows an example for the application of a DMR mechanism on a section of C code. The C code is transformed by interpreting all transformation steps from the USF transformation script in the C domain (dark green), analogous to the transformation in the USF domain (light green). The newly added components “Comparator” and “Handler” are generated from provided code snippets and woven into the transformed code. For a detailed description of the USF transformations and how to integrate them into a tool see Overview USF-Transformations.