Sparx EA:将组件添加到节点时会创建什么类型的关系? [英] Sparx EA: What type of relationship created when a Component is added to a Node?

查看:938
本文介绍了Sparx EA:将组件添加到节点时会创建什么类型的关系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题(第3点)中,我询问有关在部署图上使节点(设备或执行环境)识别包装组件的问题。

In this question (point #3), I asked about getting a Packaging Component recognized as contained by a Node (device or execution environment) on a deployment diagram.

没有直接答案。但是,对其他观点的回答使我想到了一个概念上似乎很简单的替代方法:手动创建关系或链接。

No direct answer. However, the answers to other points led me toward an alternative that seems simple in concept: manually create the relationship or link.

因此,我看了看我的组件<->节点包含链接,以查看Sparx在后台创建的内容。但是,从Component和Node的属性页/对话框中,我看不到任何将两者链接的东西。

So, I looked @ one of my Component <--> Node "containment" links to see what Sparx creates in the background. But, from the properties page / dialog of both the Component and Node, I can't see anything linking the two.

所以...当

推荐答案

正如我在对上一个问题的评论中提到的:无。当您将一个元素放到另一个元素上时,该元素将以图形方式停靠(仅在元素明显较小的情况下)。作为副作用(对于UML来说是合法的),已移动元素也成为已放置元素的子元素。 (有一些选项可以解决此问题,但不要问我EA干草堆在哪些选项中可以使用。)

As I mentioned in my comment to your previous question: None. When you drop one element over another then this is docked graphically (only if it's significantly smaller). As a side effect (and it's legal for UML) the moved element is also made a sub-element of the one where it has been dropped. (There is some option where you can turn of this behavior but don't ask me where in that options haystack EA has.)

PS:是工具/选项/图表/行为/汽车集团...(最低复选标记左上方)

P.S.: It's Tools/Options/Diagram/Behavior/Auto Group... (top left the lowest check mark)

这篇关于Sparx EA:将组件添加到节点时会创建什么类型的关系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆