Dezyne components and interfaces are organized in files. A file, with extension '.dzn', contains a number of components and interfaces.

Components can refer to interfaces and other components. An 'import' clause is needed when the referred information is defined in another file (see below).

The order of specification in one file is as follows:

  • All necessary imports.

  • All interface and component definitions in arbitrary order.


An import clause makes available all types, interfaces and components that are defined in another file. From an imported interface or component the 'public' parts are available, i.e. all information but the interface or component behaviour, or the component system details. Syntax:

import ModelName.dzn;

where ModelName.dzn is a Dezyne file.

An imported file may contain imports itself, which are 'expanded' also. When a file occurs twice in the resulting set of imports, it is expanded only once. This prevents the introduction of duplicate definitions. Also recursive imports are handled correctly.