Differences between component diagram and packaging diagram

What is the difference between a component diagram and a packet diagram?

I use Papyrus to simulate a system

+9
uml papyrus
source share
4 answers

A component diagram commonly used to illustrate interfaces. Thus, a component may be a class or may be a collection of classes.

A batch diagram is a mechanism for grouping related UML elements, think of it as a directory / folder similar to the file system (for the file system) for UML.

+8
source share

The component diagram shows the encapsulated class and its interfaces, ports, and internal structure consisting of nested components and connectors. He turns to introducing the implementation of a static system design.

The package diagram shows the decomposition of the model itself into organizational units and their dependencies.

from the UML 2 user guide

Packages group things together. Components are interchangeable parts of the system. Typically, packages are identified in the analysis model and components in the design model. Component diagrams are used in the development of components.

+1
source share

I refer to Michael Persa, author of Effectively Working with Legacy Code (Prentice Hall 2005)

In UML, components are groups of classes that are deployed together and packages are a common grouping device for model elements. Packages can group any elements of the model, even things such as use cases, but in practice they usually group classes, so components and packages tend to be synonymous.

From forum posting

+1
source share

A component diagram is a kind of structural diagram that breaks down a developed system into various levels of functionality. Each component is responsible for one clear goal throughout the system and interacts with other necessary elements only as necessary.

A batch diagram is a certain block diagram showing the location and organization of model elements in an average and large-scale project. A package diagram can display both the structure and the dependencies between subsystems or modules, showing various types of systems, for example, as a multi-level (multi-level) application - a model of a multi-level application.

0
source share

All Articles