gpt4 book ai didi

deployment - Artifact 可以包含 .jar 文件列表吗?

转载 作者:行者123 更新时间:2023-12-05 01:28:45 24 4
gpt4 key购买 nike

我在 UML 手册中读到,当有很多 .jar 文件时,可以将它们列在一个 Artifact 框中。但是,我无法从其他来源验证这一点,并且由于 Visual Paradigm 没有正式允许它,我想知道我的图表是否符合 UML 符号。如果这是正确的,是否有选择神器名称的规则?我也在试图弄清楚表现是什么。由于我无法识别我的应用程序中的实际组件,而只能识别我不会定义为组件的几个层,所以我什至找不到表现形式。 Web 应用程序中可能没有表现形式吗? enter image description here

最佳答案

使用 «artifact» 的快捷符号是不明确的,因为该符号指的是一个名为 File.JAR 的 Artifact ,而实际上有很多 Artifact .此外,UML 规范没有提到这种可能性,所以 modelling tools不应提供此功能。

然而,UML为部署的目标(如节点和执行环境)提供了一个捷径,允许直接在节点的方框内写上部署的 Artifact 列表,而不是绘制大量嵌套或相关的占用空间的 Artifact 符号。 UML specification明确允许:

DeployedTargets are shown as a perspective view of cube labeled with the name of the DeployedTarget shown prepended by a colon. System elements deployed on a DeployedTarget, and Deployments that connect them, may be drawn inside the perspective cube. Alternately, deployed system elements can be shown as a textual list of element names.

UML 规范在第 653 和 657 页提供了几个示例。

P.S:除了 UML 规范之外,我还交叉检查了 UML Distilled、UML 用户指南第 2 版和 UML 语言引用手册第 2 版。他们在这方面都是一致的:他们提到直接在执行目标中部署的可能性(旧书阐明它在一个隔间中,即在分隔线之后),他们都没有提出 Artifact 符号的这种可能性。

关于deployment - Artifact 可以包含 .jar 文件列表吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68351606/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com