Add each new attribute on the Attribute tab as follows:
- Enter a name in the Attribute name entry field.
- If you want to add the attribute with default values for
all fields, select Add with defaults. The
attribute is added to the part interface and to the Attribute
name list.
- If you do not add the attribute with default values for
all fields, do the following:
- Select Defaults to have VisualAge produce
default values for the following fields:
- Attribute type
- Get member function
- Set member function
- Event identification
- If you want to specify a different class or data
type for the attribute, either select a choice in
the Attribute type drop-down list or enter
a different type in the entry field.
- If you changed the attribute type, select Defaults
again to update the get and set member function
signatures.
- If you do not want the attribute value to be
retrievable, clear the Get member function
field. If you want to change the default
signature, edit the value. The get member
function provides the attribute value for
connections.
- If you do not want the attribute value to be
changeable, clear the Set member function
field. If you want to change the default
signature, edit the value. The set member
function changes the attribute value for
connections.
- If you do not want the attribute to notify other
parts when the value changes, clear the Event
identification field. If you want to change
the default identifier, edit the value.
- If you want a text description of the attribute,
either enter text in the Description field
or select Edit to specify a resource ID
for translatable text. This description appears
when you select the attribute in the Feature
Implementation Browser window.
- If you want to hide the attribute from the part
property sheet, select No for the Property
field in the Constraints group.
- If you want to hide the attribute from the part
connection list, select No for the Connectable
field in the Constraints group.
- If you want to prevent definition of the
attribute for some system platforms, select
relevant check boxes in the Platform
constraints group.
- Select Add to add the attribute to the
part interface. The attribute is also added to
the Attribute name list.
- Select Clear to clear the input fields before
adding the next attribute.
When you have finished adding features to the part interface,
select Save from the File menu to save the part.
Naming Guidelines
for Parts and Their Features
Specifying Hidden Features
Adding Action Features
Adding Event Features
Adding Features to the Part
Interface
Part Interface Editor