Dependency mapping for generating Ada 83 (Ada code)
For information about creating dependencies to packages that are not modeled in the Model, see Modeling with, use and use type clauses in Modeler (Ada code).
For each Dependency, ACS can generate with and use clauses for the Ada package created for the Package, Class or Data Type at the source end of the Dependency. The target of the with or use clause is the Ada package generated for the Package, Class or Data Type at the target end of the Dependency.
The generation of with and use clauses is derived from the properties of the Dependency and the Stereotypes and Tag Definitions that are applied to it:
If the Dependency is not stereotyped by the «Ada Context» stereotype, ACS generates a with clause in the package specification.
If the Dependency is stereotyped by the «Ada Context» stereotype, the tagged value of the Ada With tag definition affects the generation of a with clause as follows:
If the tagged value of the Ada With tag definition is set to Specification or if no value is set, ACS generates a with clause in the package specification.
If the tagged value of the Ada With tag definition is set to Body, ACS generates a with clause in the package body.
If the Dependency is stereotyped by the «Ada Context» stereotype, the tagged value of the Ada Use tag definition affects the generation of a use clause as follows:
If the tagged value of the Ada Use tag definition is set to Specification, ACS generates a use clause in the package specification.
If the tagged value of the Ada Use tag definition is set to Body, ACS generates a use clause in the package body.
If the tagged value of the Ada Use tag definition is set to None or if no value is set, ACS does not generate a use clause.
If the Dependency is stereotyped by the «Ada Pragma» stereotype, the tagged value of the Ada Pragma Text tag definition (applied by the «Ada Pragma» stereotype) is used to generate the pragmas.
If the Dependency is stereotyped by the «Ada Ignore» stereotype, ACS ignores the Dependency.
* 
To generate use type clauses, you use the Ada_Declaration_Dependencies and Ada_Implementation_Dependencies tag definitions.
If the tagged value of the Ada_Declaration_Dependencies tag definition (applied by «Ada Context» stereotype) has been used to record dependencies to Ada packages that are not modeled in the Model, ACS generates the text of the tagged value in the package specification.
If the tagged value of the Ada_Implementation_Dependencies tag definition (applied by «Ada Context» stereotype) has been used to record dependencies to Ada packages that are not modeled in the Model, ACS generates the text of the tagged value in the package body.