Chris K.
Chris K.

Reputation: 987

Class diagram with 3 or more design patterns

I got an assignment on my university to create a model of an simple app in UML. That model should use 3-4 different design patterns. Since i'm terrible in UML, could anyone please check if this thing i made makes any sense? If not how should i modify it? Any ideas how to include 1 more design pattern inside this little monster?

enter image description here

Upvotes: 1

Views: 1508

Answers (1)

Aleks
Aleks

Reputation: 5854

Semantically it looks correct (in lack of more background information).

Even without adding more patterns, your diagram is too complex and hard to follow. On the other side, your design ideas should not be constrainet by your diagram size of screen resolution.

The solution is simple - divide to conquer. :) Break your diagram in several smaller ones, each one of them having a clear focus. That will not change your model meaning - each element can be shown on many diagrams.

I suggest the following diagrams:

  • a package diagram showing only the packages and their dependencies - this is very important, architecture relevant diagram, a "bird view" on your system
  • a class diagram for each package, showing its internal structure. It is also valid to add the external classes, which on which the package contents depend (or are used by them)

Give each diagram a meaningfull name and a short explanation.

Upvotes: 1

Related Questions