Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > Ada Code > Generating Ada code > Modeling Ada code in Modeler > Modeling record types in Modeler (Ada code)
  
Modeling record types in Modeler (Ada code)
You model a record type in Modeler through a Class or Data Type stereotyped by the «Ada Record» stereotype. Each field of the record type is modeled through an Attribute of the Class or Data Type.
For example:
To model a record type in Modeler:
1. If you have not done so already, add the Ada Profile package to the Model. How?
2. In the required Package, create a Class or Data Type to represent the record type.
3. Name the Class or Data Type to that of the record type.
4. Apply the «Ada Record» stereotype to the Class or Data Type. How?
5. For each field in the record type:
a. Create a child Attribute of the Class or Data Type.
b. Name the Attribute to that of the field.
c. Set the Attribute's Storage to On Instance.
d. Set the Attribute's Type as appropriate.