Domain examples
The examples in this set were organized by modeling problems. Each case presents its goal, the complete source and the property that must be verified.
| Case | Distinction exercised |
|---|---|
| Custody | Unity of an n-ary relation and participants’ roles. |
| Inspection | Instrumental reading and the assessment about the reading. |
| Regions | Transitive rule of containment. |
| Competences | Agent and candidate assessed for an activity. |
| Revisions | Historical basis of an evaluation. |
| Classifications | Categories situated in different schemes. |
How to verify
The sources are distributed in exemplos/, next to the book. The script verificacao/verificar_exemplos.py receives the path of the FormaSL executable and records the command, the exit code and the output of each formation verification.
The examples manifest distinguishes the formation of the model from the execution of an application. The package report keeps those classes separately, making it possible to add the execution witnesses without confusing syntactic acceptance with the expected behavior.
How to extend a case
First add the information and the application contract needed by the domain question. Define the expected result, the basis and the completion condition. Include a case that fails when the central distinction is removed.
The extension must reuse the library and the interfaces of the selected version. Keep domain changes separate from realization choices.