umlassociationsgeneralizationcomponent-diagram

Component - Subcomponent Relationship or Generalization Relationship? in Component Diagram UML


I'm under confuse with the Component - Subcomponent relationship and Generalization relationship between the components.

When do we need to mention two components as Component - Subcomponent relationship and when to mention them as Generalization relationship.

Can the Generalization relationship (Figure A) be mentioned as the Component - Subcomponent relationship (Figure B) within in Component Diagrams in all the time? (It is understandable that inverse is false)

Figure A :

enter image description here

Figure B :

enter image description here


Solution

  • But figure A and figure B represent different things and figure B in your example is not ok