Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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.

CaseDistinction exercised
CustodyUnity of an n-ary relation and participants’ roles.
InspectionInstrumental reading and the assessment about the reading.
RegionsTransitive rule of containment.
CompetencesAgent and candidate assessed for an activity.
RevisionsHistorical basis of an evaluation.
ClassificationsCategories 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.