使用Enterprise Architect在组件内部的组件 [英] Component Parts inside of Components with Enterprise Architect

查看:151
本文介绍了使用Enterprise Architect在组件内部的组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图创建一个这样的图表(取自

它显示了组件图的多个级别以及这些多个级别之间的连接.

我正在尝试为具有许多不同交付者的系统建模.将有一个高级组件图,该图更多地基于功能,并显示所有功能需要什么,以及它们如何相互连接.

然后,每个功能部件中的这些部分将显示有关组件的更多详细信息,实质上是构成该功能部件的所有模块.

在EA(企业架构师)中,我可以创建一个组件并显示所有互连,并且可以将组件创建为子图,但是父图的端口不会传播到子图,因此我可以确实会留下一堆子图的未连接端口-如果命名正确的话,很显然它们是如何连接的.

但是,由于我要向大量受众介绍此方法,因此我希望假设尽可能少,这就是为什么我正在寻找这种方法.

解决方案

在EA中,您需要创建两个图:一个用于概述,第二个用于详细信息.概述仅包含外部组件.右键单击外部组件时,选择

从上下文菜单中.这将打开一个新图,您可以在其中放置外部组件作为链接.现在,您可以添加内部结构了.

外部组件将显示为

,其中无穷大符号表示它具有合成图.只需双击该组件即可打开它.

请注意,此过程适用于所有元素.

I'm attempting to create a diagram like this (taken from this MS page):

It shows multiple levels of component diagrams and connections between those multiple levels.

I am trying to model a system with a lot of different deliverers. There will be a high-level component diagram which is based more on features, and shows what all the features require, and how they're interconnected.

Then inside each feature will be these parts that show more detail about the components, essentially all the modules that make up that feature.

In EA (Enterprise Architect), I can create a component and show all the interconnects, and I can create a component as a child diagram, but the ports of the parent diagram does not propagate to the child diagram, so what I'd really be left with will be a bunch of unconnected ports for the child diagram - granted if named appropriately, it may be obvious how they are connected.

But since I'm presenting this to a large audience, I'd like to have as little assumptions as possible, which is why I'm looking for this method.

解决方案

In EA you need to create two diagrams: one for the overview and a second for the details. The overview just holds the outer component. When you right click the outer component you choose

from the context menu. This will open a new diagram where you place the outer component as link. Now you can add the inner structure.

The outer component will be shown as

where the infinity symbol indicates that it has a composite diagram. It will open on a dbl-click of the component.

Note that this procedure will work for all elements.

这篇关于使用Enterprise Architect在组件内部的组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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