BEA WebLogic Platform 7
| As previously mentioned, UML is an object-oriented modeling language. The models that are created provide a visual representation of the structure and behavior of a solution software system. UML diagrams are created by grouping a collection of elements tied together by relationships. These elements are the building blocks of UML. There are four types of UML elements: structural, behavioral, grouping, and annotational, which are described in the following sections.
Note How these elements form relationships with other elements and lead to the development of meaningful analysis and design artifacts will be discussed in the context of their respective diagrams later in this chapter.
The Structural Elements of UML
Structural elements constitute the static aspects of a model and can be conceptual or physical in nature. The structural elements in UML include the following:
The Behavioral Elements of UML
Behavioral elements, as the name suggests, are used to model the behavior of a system in response to specific events. UML supports two types of behavioral elements as follows :
The Grouping Elements of UML
Grouping elements provide a means to organize the UML structural and behavioral elements through the employment of package elements. A package is basically a general purpose container into which related elements can be placed, similar to a folder or directory in an operating system (see Figure 3.9). Figure 3.9. The UML representation of a package.
Package diagrams are optional to UML and not discussed in this chapter. The Annotational Elements of UML
Annotational elements constitute the explanatory parts of a UML model. For example, the note element can be used to attach a comment to another element (see Figure 3.10). Figure 3.10. The UML representation of a note.
|