L5: Domain Case Modelling Flashcards
ERD
Items/things are entities
Entity relationships are shown with a relationship line
Constraints are shown with cardinality symbols
Use for database
Domain Class Diagram
Items/things are classes
Classes are related with an association line
Constraints are shown with multiplicity symbols
Used for OOP
Multiplicity
Multiplicity is used in a domain class diagram to show the constraints and relationships between classes
UML Notation for Multiplicity
0..1 Zero or one (optional)
1 One and only one
1..1 One and only one alternate (mandatory)
0..* Zero or more (optional)
* Zero or more alternate (optional)
1.. One or more (mandatory)
Design Class Diagram
A design class diagram is a domain class diagram with additional, more detailed information.
More attributes
Operations (Methods)
Visibility indicators (+, -, #)
Data types
Visibility indicators
+ public
- private
# protected