Lecture 10: UML Flashcards

1
Q

What is UML (Unified Modeling Language)?

A

A “general purpose” modeling language
Provides a standard method for designing a system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a good UML model?

A

A model that uses standard notation, is understandable by all stakeholders, helps software engineers gain insight into the system, and provides abstraction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why use a UML diagram?

A

Help create designs, analyze and review designs, and as documentation for the system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the different types of UML diagrams?

A

Static (structural) view: Class diagrams, Composite structure diagrams
Dynamic (behavioral) view: Sequence diagrams, Activity diagrams, State machine diagrams

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What do class diagrams describe?

A

Describe the system classes attributes, operations (methods), and relationships

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a composite structure diagram?

A

Shows the internal structure of a class
Parts: Runtime role of a classifier (e.g., class) or a collection of instances
Port: Connects classifiers with their parts and environment
Connector: Binds two or more entities together

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a sequence diagram?

A

Models the interaction between objects in a system over time
Visualize the flow of control and data between objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is an activity diagram?

A

Graphical workflow showing stepwise activity and actions
Similar to the graph that shows the user walking through the Class-ify app

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a state diagram?

A

Models the different states an object can be in and how it transitions from one state to another

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is an association?

A

Shows how two classes relate to each other

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is multiplicity?

A

Symbols that indicate the varying levels of association
Many: *
Number: just a number
Or: ..
Ex: Many to many: * —— *
Ex: Many to one: * ——— 1
Ex: Many to many: * ——- 1 .. *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a reflexive association?

A

An association can connect a class to itself

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is generalization?

A

A generalization set is a labeled group of generalization with a common superclass. It is denoted by a triangle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a discriminator?

A

Label that described the criteria used for specializing, listed next to the triangle
You can have multiple discriminators in a diagram

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a system domain model?

A

Models aspects of the domain represented by the system
Omits many classes needed for a complete system, developed and used independently of UI and architectural classes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a system model?

A

Includes system domain model, UI, architectural, and utility classes (more complete)