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

Classifications in distinct schemes

Relate the same load to categories of different schemes.

Model

A load can be classified by transport requirements and by commercial categories. The reference to the scheme makes it possible to interpret each framing under the corresponding basis.

module exemplos::classificacoes {
    type Carga
    type Categoria
    type Esquema
    relation Enquadramento {
        role carga: Carga
        role categoria: Categoria
        role esquema: Esquema
    }
    relation CategoriaDoEsquema {
        role categoria: Categoria
        role esquema: Esquema
    }
}

Verification

Formation verifies the roles. The execution scenario must query the same load under two schemes without merging their categories.

The complete source is at exemplos/06-classificacoes/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.