将UML组件图用于3层体系结构可以吗? [英] Is this okay to use UML component diagram for a 3-tier Architecture?

查看:50
本文介绍了将UML组件图用于3层体系结构可以吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

UML中有很多类型的图.我对于将哪个用于什么用途感到困惑.我使用UML组件图为Web应用程序软件设计了3层体系结构.请查看所附图片,并告诉我是对还是错.在此体系结构中使用组件图是一个好主意吗?

There are so many types of diagrams in UML. I am little confused about which one to use for what. I designed a 3-tier architecture for my web application software using UML Component Diagram. Please see the attached image and tell me if I'm doing this right or wrong. Is this a good idea to use Component Diagram for this architecture?

推荐答案

基本上,我同意@KeizerHarm的回答.但是,您的图中存在缺陷.由于应将端口置于其边界上,因此不应使用组件,而应该使用组件.程序包不允许使用端口,而组件则允许使用.或者,将端口放置在包装内的组件上.接线可以越过包装的边界:

Basically I agree with @KeizerHarm's answer. However, there's a flaw in your diagram. Rather than packages you should use components since you put ports on their boundary. A port is not allowed for packages, but for components it is. Alternatively place the ports on the components inside the packages. The wiring can just cross the border of the packages:

这篇关于将UML组件图用于3层体系结构可以吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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