Creating Attributes

I l @ ve RuBoard

Many of the attributes of a class are found in the problem statement, the set of system requirements, and the flow of events documentation. They may also be discovered when supplying the definition of a class. Finally, domain expertise is also a good source of attributes for a class. For example, the requirements state that information such as course name, description, and number of credit hours is available in the Course Catalog for a semester. This implies that name , description, and number of credit hours are attributes of the Course class.

CREATING ATTRIBUTES IN RATIONAL ROSE

graphics/quatranirose_icon.gif
  1. Right-click to select the class in the browser and make the pop-up menu visible.

  2. Select the New:Attribute menu choice. This will create an attribute called Name in the browser.

  3. With the new attribute selected, enter the desired name.

Attributes for the Course class are shown in Figure 7-4.

Figure 7-4. Attributes in the Browser

graphics/07fig04.jpg

I l @ ve RuBoard


Visual Modeling with Rational Rose 2002 and UML
Visual Modeling with Rational Rose 2002 and UML (3rd Edition)
ISBN: 0201729326
EAN: 2147483647
Year: 2002
Pages: 134

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net