Lecture 3 - UML Diagrams Flashcards
What does UML stand for
Unified Modelling Language
What are the 2 types of views in UML?
- Static view
- Dynamic view
What does a dynamic view show in a UML diagram?
Focuses on how the system works
What does a static view show in a UML diagram?
Focuses on what the system is
TF: Class diagrams are a type of dynamic view
False. Type of static view
TF: Sequence diagrams are a type of dynamic view
True
What are the three categories of UML diagrams?
- Structural
- Behavioural
- Interaction
Class, component, object are part of what category of UML diagrams?
Structural
Activity, state machine, use case are part of what category of UML diagrams?
Behavioural
Communication (collaboration), sequence, interaction overview, timing are part of what category of UML diagrams?
Interaction
Which category of UML diagram is concerned with the structure of the system?
Structural UML diagrams
Which category of UML diagram is concerned with the behavioural features of a system?
Behavioural UML diagrams
Which category of UML diagram is concerned with how objects interact with each other?
Interaction UML diagrams
What are the two components of a Use Case Diagram?
- Actors
- Use cases
What do Actors represent in Use Case Diagram?
Roles, type of user of the system
What do Use cases represent in a Use Case Diagram?
A sequence of interaction for a type of functionality / summary of scenarios
TF: Use case model is only a partial description of the functionality of the system
False. It is a complete description
Use cases are useful to… (3)
- Determine requirements
- Communicate with clients
- Generate test cases
TF: Class diagrams display what interacts with each other and what happens when they do interact
False. Just display what interacts with each other (classes and their relationships)
Attributes and operations of each class are found in…
Class diagrams
What is the only mandatory item in a class diagram?
Class name
A class in UML diagram is divided into three parts, which are…
- Class name
- Class attributes (variables)
- Class operations (methods)
What does the ‘-‘ modifier represent in UML class notation?
Private
What does the ‘+’ modifier represent in UML class notation?
Public
What does the ‘#’ modifier represent in UML class notation?
Protected
How is static represented in UML class notation?
Underline
How is an abstract class represented in UML class notation?
By writing the name in italics