Chapter 6 Building Implementation Diagrams


Component property sheet Classes tab

Classes contained in the component are classes implementing the component.

A component has one or several classes. It usually uses one implementation class as the main class, while other classes are used to implement the functions of the component. Typically, a component consists of many internal classes and packages of classes but it may also be assembled from a collection of smaller components.

These classes have no symbol in the component diagram, unlike interfaces. However, the relationship between the class and the component is visible from the Classes tab of the component property sheet, and from the Components tabbed page in the Dependencies tab of the class property sheet.

Classes of a component can be in the same model or in another model. If they are in another model, you can use external shortcuts of classes.

You can define a class for a component from the Classes tab of the component property sheet.

Steps To define a class for a component:

  1. Click the Create a New Class tool to create a new class. The class property sheet is displayed.
  2. Type a name and a code and click OK.

    or

    Click the Add Objects tool to display a Selection window.

    Select the classes you want to attach to the component and click OK.


    The classes appear in the list, and their definitions are added to the current component definition. Classes are created in the same package as the component.

 


Copyright (C) 2006. Sybase Inc. All rights reserved.