Chapter 4 Flashcards

1
Q

Difference between component type and instance?

A

With component type, we define the component but when we want to use the component in a context, we instantiate it (component instance)

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

Difference between component type diagram and composite structure diagram?

A

Component type diagram is a UML class diagram we use to define the actual decomposition of component by defining the types i.e the specification of the containees while the composite structure diagram defines the actual realisation by instantiating the containees and connecting them with the help of connectors.

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

What do you understand by component repository?

A

It is like a complex library containing all reusable component types.

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

How is packages used in component repository?

A

Package is used to group several component types which belong together from reuse point of view without defining any further relationship between these components.

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

Explain the use of ports in component structure diagrams?

A

To model the interconnection of components, ports are used to define the interface of components. Connectors define the actual connection of components by creating the link between the respective ports of the components.

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

Three types of interaction diagrams introduced in the course are?

A
  • Sequence diagrams
  • Communication diagrams ( also called Collaboration diagrams), and
  • Timing diagrams
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Highlight the two possible ways to realiize the specification of a component

A
  1. Direct implementation if the behaviour specified in the component for realizing the specification is simple enough
  2. Decomposition to sub-components
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Use of ports in component structure diagram?

A

ports are used to model the interconnection of components

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

What is connector?

A

Connector defines the actual connection of components by creating the link between the respective ports of the components.

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

Decomposition models

A

define the containee components and the connections between them.

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

What are the three types of interaction diagrams used for modelling connections?

A
  1. Sequence diagrams
  2. Communication diagrams / Collaboration diagrams
  3. Timing diagrams
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

When to use sequence diagram and communication diagram

A

Use sequence diagram when you want to indicate the sequence of events and communication diagram when you want to underline the structure of the interaction.

Timing diagram focuses on the changes of values and states of the participants over time.

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