Cisco Cisco Prime Network Services Controller 3.0 Guide Du Développeur

Page de 103
Page 16 
OL-28369-01 
The class representation contains the following three sections:  
● 
Class name
—Name of the object.  
● 
Attribute
—Information that is stored about the object.  
● 
Method
—Operations that the object or class can perform.  
 shows an example of a class with example entries in each section. 
Figure 2 Example Class in UML 
 
Not all class diagrams contain content in all sections. For example, you might see UML class diagrams with class 
name and attributes, but without methods. In these situations, the three sections are displayed, but the method 
section contains no information. 
Associations  
An association in UML diagrams indicates that a link or dependency exists between two or more classes. 
Associations are represented in a number of ways, as shown in 
 and described in 
. 
Figure 3 Association in a UML Diagram 
 
 
Table 5. 
UML Association Conventions  
Convention 
Description 
Lines 
Solid line 
  When used with a closed, unfilled arrowhead, indicates inheritance with the 
arrowhead pointing to the higher class object (or superclass). 
  When used with an open arrowhead, indicates an association to the known 
class. 
Dashed line 
Indicates a named reference, with the arrow originating from the referencing 
object. 
Arrowheads 
Closed unfilled 
arrowhead 
When used with a solid line, indicates inheritance, with the arrowhead pointing 
to the superclass.