Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > Ada Code > Reverse engineering legacy Ada code > Mapping information for Reverse engineering Ada > Task mapping for reverse engineering Ada (Ada code)
  
Task mapping for reverse engineering Ada (Ada code)
For each task, the Reverser creates a Class in the Package that is created for the owning Ada package.
The reverse engineered Class is stereotyped by the «Ada Task» and «Ada Anonymous» stereotypes.
For the task body, the Reverser creates an Operation for the reverse engineered Class. The Operation is named the same as the owning Class. The Operation is stereotyped by the «Ada Create» stereotype.
For each task entry, the Reverser creates an Operation for the reverse engineered Class. Each Operation is stereotyped by the «Ada Entry» stereotype.
The Visibility property of the reverse engineered Class is set according to how the type is declared:
If the task is declared in the parent Ada package specification, the Visibility property is set to Public.
If the task is declared in the private region of the parent Ada package specification, the Visibility property is set to protected.
If the task is declared in the parent package body, the Visibility property is set to Private.