Domain Understanding and Modeling

Week 7 - Class diagram / Sequence diagram

  • UML Diagrams overview
  • Sequence diagram 
    • Purpose & Notation
    • Consistency with Use Case / Class diagram
  • Class diagram 
    • Purpose & Notation
    • Relation and consistency with ERD



Slides in English:

Chyba: Odkazovaný objekt neexistuje nebo nemáte právo jej číst.
https://is.muni.cz/el/fi/podzim2024/PA116/um/en/DUM_08_CLASS_SEQ.pdf



Recorded lecture in Czech/English:

Chyba: Odkazovaný objekt neexistuje nebo nemáte právo jej číst.
https://is.muni.cz/el/fi/podzim2024/PA116/um/vi/85650460/
Chyba: Odkazovaný objekt neexistuje nebo nemáte právo jej číst.
https://is.muni.cz/el/fi/podzim2024/PA116/um/vi/120258079/

Seminar Briefing in English:

Chyba: Odkazovaný objekt neexistuje nebo nemáte právo jej číst.
https://is.muni.cz/el/fi/podzim2024/PA116/um/seminar_briefings/Class_diagram___Sequence_diagram.mp4



Seminar tasks:

  1. Create 1 Sequence diagram (in the scope of one use case)   [2 pts].
  2. Create a class diagram of your system   [3 pts].


Don't forget about specific types of relationships in class diagram.


Methods can be perceived as CRUD operations over data layer (as captured by ERD).


Consistency checklist



Sequence diagram

  • Actor name consistent with use case diagram
  • Classes name consistent with class diagram
  • Message flows consistent with methods in class diagram


Class diagram

  • weak consistency with ERD - not necessarily a 1:1 mapping (class<=>entity sort) because of normalization rules applied to ERD
  • it may happen that not every class has to be persisted - hence it will not be found in ERD