Chapter 4 Flashcards
Difference between component type and instance?
With component type, we define the component but when we want to use the component in a context, we instantiate it (component instance)
Difference between component type diagram and composite structure diagram?
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.
What do you understand by component repository?
It is like a complex library containing all reusable component types.
How is packages used in component repository?
Package is used to group several component types which belong together from reuse point of view without defining any further relationship between these components.
Explain the use of ports in component structure diagrams?
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.
Three types of interaction diagrams introduced in the course are?
- Sequence diagrams
- Communication diagrams ( also called Collaboration diagrams), and
- Timing diagrams
Highlight the two possible ways to realiize the specification of a component
- Direct implementation if the behaviour specified in the component for realizing the specification is simple enough
- Decomposition to sub-components
Use of ports in component structure diagram?
ports are used to model the interconnection of components
What is connector?
Connector defines the actual connection of components by creating the link between the respective ports of the components.
Decomposition models
define the containee components and the connections between them.
What are the three types of interaction diagrams used for modelling connections?
- Sequence diagrams
- Communication diagrams / Collaboration diagrams
- Timing diagrams
When to use sequence diagram and communication diagram
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.