COMPONENTS, SEQUENCE ou SET.
COMPONENTS OF NomDUnType
SET ContrainteOption OF NomDUnType
SEQUENCE ContrainteOption OF NomDUnType
OF accompagne les instructions COMPONENTS, SEQUENCE et SET pour plus de lisibilité.
-- Definition d'un ensemble avec trois propriétes.
MonType1 ::= SET
{
MonElementA INTEGER,
-- L'element MonElementA est obligatoire.
MonElementB INTEGER,
-- L'element MonElementB est obligatoire.
MonElementC INTEGER
-- L'element MonElementC est obligatoire.
}
-- Definition d'un heritage du type precedent.
MonType2 ::= MonType1 (WITH COMPONENTS
{
COMPONENTS OF Type1,
-- Inclusion des proprietes de Type1.
MonElementD INTEGER,
-- L'element MonElementD est obligatoire.
MonElementE INTEGER
-- L'element MonElementE est obligatoire.
})