子系统和组件之间的区别

发布于 2024-08-31 07:13:15 字数 31 浏览 4 评论 0原文

我想问一下UML意义上的子系统和组件有什么区别?

I would like to ask what is the difference between a subsystem and a component in the UML sense?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

迷爱 2024-09-07 07:13:15

我必须同意 Preet 的观点,但实际上,子系统比组件更大。我将组件用于图书馆(购买的、掠夺的或构建的),并将子系统用于执行给定集成功能的整个系统的一部分。例如,在血液处理设备中,离心机驱动器和控制器将是一个组件。集成的吸血调节(包括安全机制、电机控制、用户控制和通信)将是一个子系统。

I have to agree with Preet, but practically, a subsystem is larger than a component. I use components for libraries (either bought, pillaged, or built) and subsystems for a part of the whole system that performs a given integrated function. For example, in a blood processing device, the centrifuge driver and control would be a component. The integrated blood suction regulation (which includes safety mechanisms, motor control, user control, and communications) would be a subsystem.

情仇皆在手 2024-09-07 07:13:15

在 UML 2.0 之前,我可以完美地将 <> 视为设计时 <>,它最终会成为 <代码><<组件>>。 UML 1.4 将组件定义为“系统的模块化、可部署和可替换部分,它封装实现并公开一组接口。组件通常由一个或多个分类器指定(例如,实现类) )驻留在其上,并且可以由一个或多个工件(例如,二进制文件、可执行文件或脚本文件)实现。”

在前面提到的“模糊性”被引入到 UML 中(在 UML 2.0 中)之后,我更倾向于使用 <> 作为更大的 <。 >,并将它们视为系统的可替换和可重用的组成部分。

Before UML 2.0 I could perfectly see a <<subsystem>> as a design-time <<component>>, which would finally become a <<component>>. The UML 1.4 defines component as "A modular, deployable, and replaceable part of a system that encapsulates implementation and exposes a set of interfaces. A component is typically specified by one or more classifiers (e.g., implementation classes) that reside on it, and may be implemented by one or more artifacts (e.g., binary, executable, or script files)."

After the aforementioned "fuzziness" was introduced to the UML (in UML 2.0), I am more inclined to use <<subsystem>> as a larger <<component>>, and see both of them as replaceable and reusable constituents of a system.

冧九 2024-09-07 07:13:15

来自 IBM DeveloperWorks - UML 基础知识:组件图

UML 2 规范相当模糊
关于子系统与子系统有何不同
组件。该规范没有
对待一个组件或子系统任何
与建模不同
看法。与 UML 1.x 相比,
这种 UML 2 建模模糊性是新出现的。
但这是有原因的。在 UML 1.x 中,
子系统被认为是一个包,
这个包符号是
让许多 UML 从业者感到困惑;
因此,UML 2 对齐子系统作为
专门的组件,因为这是
大多数 UML 1.x 用户如何理解它。
这一变化确实引入了模糊性
进入图片,但是这种模糊
更多的是现实的反映
与 UML 2 中的错误相比
规格。


简而言之,没有

From IBM developerWorks - UML basics: The component diagram

The UML 2 specification is quite vague
on how a subsystem is different from a
component
. The specification does not
treat a component or a subsystem any
differently from a modeling
perspective. Compared with UML 1.x,
this UML 2 modeling ambiguity is new.
But there's a reason. In UML 1.x, a
subsystem was considered a package,
and this package notation was
confusing to many UML practitioners;
hence UML 2 aligned subsystems as a
specialized component, since this is
how most UML 1.x users understood it.
This change did introduce fuzziness
into the picture, but this fuzziness
is more of a reflection of reality
versus a mistake in the UML 2
specification.

So in short none.

甜味超标? 2024-09-07 07:13:15

在 UML 模型中,子系统是一种原型组件,代表系统中独立的行为单元。子系统在类、组件和用例图中使用来表示您正在建模的系统中的大型组件。

您可以将整个系统建模为子系统的层次结构。您还可以通过指定子系统的接口以及支持这些接口的操作来定义每个子系统所代表的行为。

在图中,分区显示有关子系统的属性、操作、提供的接口、所需的接口、实现和内部结构的信息。

通常,子系统具有描述其内容和在系统中的角色的名称。

如下图所示,子系统显示为包含子系统名称的矩形。它还包含关键字“Subsystem”和子系统图标。

来自:IBM 知识中心

In UML models, subsystems are a type of stereotyped component that represent independent, behavioral units in a system. Subsystems are used in class, component, and use-case diagrams to represent large-scale components in the system that you are modeling.

You can model an entire system as a hierarchy of subsystems. You can also define the behavior that each subsystem represents by specifying interfaces to the subsystems and the operations that support the interfaces.

In diagrams, compartments display information about the attributes, operations, provided interfaces, required interfaces, realizations, and internal structure of the subsystem.

Typically, a subsystem has a name that describes its contents and role in the system.

As the following figure illustrates, a subsystem is displayed as a rectangle that contains the name of the subsystem. It also contains the keyword «Subsystem» and the subsystem icon.

From: IBM Knowledge Center

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文