Before creating a new primitive part, answer the following
questions:
- Is the part visual or nonvisual?
- Can it be created as a composite part?
- Do you have a good model of the part and its
responsibilities?
To design a new part, do the following:
- Determine the attributes (properties) of the part.
- Determine the change-in-state notifications (events) that
the part will signal.
- Determine the behaviors (actions) for the part. To
minimize the number of connections that the users of your
part will have to make, require as few input parameters
as possible.
- After determining the part interface, investigate the
available parts to see if one already exists or to
determine which class to use as a base. Determine if any
classes can be converted to parts.
Visual, Nonvisual, and
Composite Parts
Naming Guidelines for Parts and
Their Features