Parameter mapping for generating Ada 95 (Ada code)
For each Parameter, ACS generates a subprogram parameter within the subprogram declaration and definition, or an entry parameter within the task or task type declaration.
The generation of a subprogram parameter is derived from the properties of the Parameter and the Stereotypes and Tag Definitions that are applied to it:
• If the parameter has no data type, an error is added to the Log.
• The parameter mechanism is used to generate In, Out and In Out modifiers.
• Default Parameter values are generated if appropriate.
• If the Parameter is stereotyped by an «Ada Access» stereotype, ACS generates the parameter as an access parameter. The tagged value of the Ada Access Modifier tag definition (applied by the «Ada Access» stereotype) is ignored.
• If the Parameter is stereotyped by the «Ada Attribute Designator» and a tagged value is set for the Ada 'Attribute tag definition (applied by the «Ada Attribute Designator» stereotype), the tagged value (preceded by an apostrophe) is generated after the data type.