Presentation is loading. Please wait.

Presentation is loading. Please wait.

UML Class Diagrams (more notation)

Similar presentations


Presentation on theme: "UML Class Diagrams (more notation)"— Presentation transcript:

1 UML Class Diagrams (more notation)

2 Class Diagrams Used for static modeling, i.e. modeling the static aspects of system Design class diagram (DCD) – used in design model, incorporates more detail than class diagram used for domain model

3 Fig. 16.2

4 Attributes How to show: Attribute text notation: name : type
Association line labeled Attribute text notation: name : type Use +/- for visibility of attribute

5 Fig. 16.3

6 Attribute as association
Association line (in design model): Navigability arrow Multiplicity Role name No association name

7 Fig. 16.2

8 Fig. 16.4

9 Attributes Guideline: use attribute text for data type objects, use association lines for more substantial objects . . .

10 Fig. 16.5

11 Fig. 16.6

12 Fig. 16.7

13 Fig

14 Dependencies Dependency relationship:
client object has knowledge of other object Dependency line used in UML to show: Global visibility Parameter variable Local variable Static method

15 Fig. 16.9

16 Fig

17 Composition Two closely related concepts:
Aggregation – part/whole Composition – stronger form of part/whole (Note: for our purposes we will not make the distinction and just refer to it as composition.) Notation: Use (closed) diamond Do not label association

18 Fig

19 Qualified Association
Provide a name for one end of an association Usually reduces multiplicity from many to one Names an item within a context to show uniqueness Example: File – Directory: use a filename as a qualifier

20 Fig

21 Association Class Association class
Allows attributes that more naturally belong to association than to either class Example: Company – Person with association Employs, Salary more naturally belongs to association than to either of classes

22 Fig


Download ppt "UML Class Diagrams (more notation)"

Similar presentations


Ads by Google