简体   繁体   English

用哪个UML图来表示应用程序架构?

[英]Which UML diagram to use to represent application architecture?

I'm trying to map my whole application in a UML diagram and I'm wondering which UML what diagram type I should use; 我正在尝试将我的整个应用程序映射到UML图中,我想知道哪个UML应该使用哪种图表类型; I'm not doing this in class level, but rather from a bird eye's perspective. 我不是在课堂上这样做,而是从鸟眼的角度来看。

The elements I am trying to capture are: 我想要捕获的元素是:

  1. single application object (patterns: singleton)(examples: CodeIgniter application) that composes 组成的单个应用程序对象(模式:单例)(示例:CodeIgniter应用程序)
  2. multiple module objects (patterns: singleton, facades)(examples: guestbook, addressbook) that compose 组成的多个模块对象(模式:单例,外观)(例如:留言簿,地址簿)
  3. multiple low level stand alone objects (examples: mysql mapper, doctrine mapper) that compose 组成的多个低级独立对象(例如:mysql mapper,doctrine mapper)
  4. various 3rd and in-house libraries (examples: doctrine, solr, xml-parser) 各种第三和内部库(例如:doctrine,solr,xml-parser)

What UML diagram is suited for this kind of overview presentation? 什么UML图适合这种概述演示?

Sounds like you're looking for component diagrams . 听起来你正在寻找组件图

From http://www.ibm.com/developerworks/rational/library/dec04/bell/ 来自http://www.ibm.com/developerworks/rational/library/dec04/bell/

The component diagram's main purpose is to show the structural relationships between the components of a system. 组件图的主要目的是显示系统组件之间的结构关系。

One way would be to do several alternative diagrams and just link them together, it might not be good to include all aspects to one... My favourite is the unorthodox activity diagram (content over "appearance"). 一种方法是做几个替代图并将它们链接在一起,将所有方面包含在一个中可能不太好...我最喜欢的是非正统的活动图(内容超过“外观”)。 But as this blog entry says: to whom are you talking with that diagram? 但正如这篇博客文章所说:你在和谁谈论这个图表?

我认为封装图对于这样的情况来说是理想的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM