Inspection and assessment
Separate an instrumental reading from the assessment that uses that reading.
Model
The reading is linked to the instrument and the equipment. The assessment references the reading and identifies the responsible party. The two artifacts can circulate and be revised under their own contracts.
module exemplos::inspecao {
type Equipamento
type Instrumento
type Tecnico
type Leitura
type Parecer
relation LeituraDoEquipamento {
role leitura: Leitura
role equipamento: Equipamento
role instrumento: Instrumento
}
relation ParecerSobreLeitura {
role parecer: Parecer
role leitura: Leitura
role responsavel: Tecnico
}
}
Verification
Formation preserves distinct types and roles. The execution scenario must locate which reading grounds each assessment.
The complete source is at exemplos/02-inspecao/modelo.fsl in the package. The script verificacao/verificar_exemplos.py runs the formation with the indicated binary and records the result. Formation and the execution of applications are separate gates in the report.