Week 6 Flashcards

1
Q

In an object-oriented system, how is communication between objects achieved?

A

Communication is achieved via exchanging messages. These messages lead to operations.

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

What is a sequence diagram?

A

A sequence diagram is a diagram that shows how certain objects collaborate in a sequential behaviour.

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

What are lifeline elements in a sequence diagram?

A

Lifeline elements are the main components of a sequence diagram. They can be objects, roles, components, databases, or any components.

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

How do we showcase the focus of control in a sequence diagram?

A

We use activation bars to show which object has control at a point in time.

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

How do we represent a simple message in a sequence diagram?

A

In a sequence diagram, we represent a simple message with a line with a filled arrowhead.

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

How do we represent return messages in a sequence diagram?

A

We represent return messages in sequence diagrams with a dotted line with an empty arrowhead.

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

What must objects in sequence diagrams correspond to?

A

They must correspond to classes in class diagrams.

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

Can we have an object that does not correspond to any class?

A

No, we cannot.

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

What is a communication diagram?

A

A communication diagram is like a sequence diagram, only that the sequence is in the numbering of the messages. It models messages passed between objects or roles that deliver the functionalities of use cases and operations.

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

What is the difference between sequence and communication diagrams?

A

Sequence diagrams visualize the sequence of calls in a system and are used when time sequence is the main focus. Communication diagrams visualize the organization of objects and their interaction and are used when object organization is the main focus.

Sequence Diagram
▪ To visualize the sequence of
calls in a system that is used
to perform a specific
functionality.
▪ To represent the sequence of
messages that are flowing
from one object to another.
▪ Used when time sequence is
the main focus.
▪ Better suited for analysis
activities.

Communication Diagram
▪ To visualize the organization of
the objects and their
interaction.
▪ To represent the structural
organization of the system and
the messages that are sent and
received.
▪ Used when object organization
is the main focus.
▪ Better suited for depicting
simpler interactions of the
smaller number of objects.

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

This is just a reminder to go through the sequence diagram lecture in exercise

A

ok

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

test

A

test

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