如何在Enterprise Architect部署模型中为可重用计算机配置建模 [英] How to model reusable computer configurations in Enterprise Architect deployment model

查看:107
本文介绍了如何在Enterprise Architect部署模型中为可重用计算机配置建模的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Enterprise Architect 13.5,正在创建部署图。我想定义始终相同的服务器模板,例如然后使用特定的处理器,RAM,硬盘以及理想的操作系统。

I am on Enterprise Architect 13.5, creating a deployment diagram. I would like to define templates of servers that are always the same, e.g. with a specific processor, RAM, hard disks, and ideally also operating system.

然后,我想在几个我们使用相同类型的计算机。当我们决定更改计算机的类型(例如,更新的OS或更多的RAM)时,我只想更新一个位置,并且从模板实例化的所有计算机都应自动更新。

I would then like to reuse this type of template in several deployment diagrams where we are using the same types of computers. When we decide to change the types of computers (e.g. newer OS or more RAM), I would like to update a single place only and all computers instantiated from the template should update automatically.

我尝试过的事情:


  • 将我的模板建模为节点

  • 定义属性(RAM,处理器等)作为具有初始值的节点属性

  • 将OS作为子执行环境添加到节点

  • 创建每当我想在图表中使用该类型的计算机时,此节点的实例

  • Model my template as a node
  • Define the properties (RAM, processor, etc.) as the nodes' attributes with an initial value
  • Adding OS as a child execution environment to the node
  • Creating instances of this node whenever I want to use that type of computer in a diagram

但是,由于初始属性值未显示在实例上,执行环境也不在实例中。

However, this does not achieve the desired result since the initial attribute values are not shown on the instance, and also the execution environment is not part of the instance.

还有其他想法吗?

推荐答案

实际上,在未知的情况下,有很多方法会受到青睐。但是,这是带有标记值的方法。如果将电视添加到节点并实例化,它将被继承,并且您可以覆盖该值(此处为2G而不是1G)。

Actually there are many ways which would be favored by yet unknown circumstances. However, here's a way with tagged values. If you add a TV to a Node and instantiate it, it will be inherited and you can override the value (here 2G instead of 1G).

我已打开显示标签图

所以这可能是一种方法。但是,这是EA。创建新实例时,您将看不到继承的标记:

So that's probably a way. However, this is EA. When you create a new instance you will not see the inherited tag:

要使继承的标记可见,您必须在元素Feature& Properties / ... Visibility上下文中将其打开(确保也选中了Tags选项):

To make the inherited tag visible you have to turn it on in the element Features&Properties/...Visibility context (make sure the Tags option is checked as well):

然后生成

这篇关于如何在Enterprise Architect部署模型中为可重用计算机配置建模的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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