用户界面应包含在类图和序列图中吗? [英] Should user interfaces be included in the class diagram and sequence diagram?

查看:548
本文介绍了用户界面应包含在类图和序列图中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目,我需要生成类和序列图。这是一个采购网站。我唯一的问题是,我不知道如何将网页(用户界面)关联到这些图。如果他们不需要什么是正确的方式,我把它包括在图表中,因为从我读一本书有UserInterface类,所以另一个问题,这些UI类应该是什么。有人给我一个例子。谢谢!

I have a project and I'm required to produce the class and sequence diagram. It is a procurement website. My only problem is that I don't know how to associate the web pages (user interfaces) to these diagrams. If they are not needed what is the right way for me to include it in the diagrams because from a book I read there are "UserInterface" classes, so another question, what should be inside of these UI classes.Can someone give me an example. Thanks!

推荐答案

UI建模有几个层次的抽象。

There are several levels of abstraction for UI modelling.


  • 使用案例和状态机。

  • 规划服务器/页面/框架级别。这里的UML部署和组件图是有用的。

  • 规划UI的内容,定义元素和功能以及它们之间的连接,而不必选择具体的组件。没有标准为这个,极其重要的阶段。使用你喜欢的图表。

  • 通过选择UI组件(框架,按钮等)和连接功能来规划屏幕元素的内容。在此级别上,您可以使用类和序列图。

  • 计划截图的图纸。对于此级别,没有UML图。

  • Use cases and state machines. These diagrams are made in human terms.
  • Planning on the server/page/frame level. Here UML deployment and component diagrams are useful.
  • Planning of the content of UI, defining elements and functonalities and connections between them WITHOUT choosing the concrete components. No standard for this, extremely important, stage. Use diagrams that you like. Class ones are usable, but in not standard reading.
  • Planning of the content of screen elements WITH choice of the UI components (frames, buttons and so on) and connecting functionalities to them. On this level you can use class and sequence diagrams.
  • Drawings of the planned screenshots. For this level there are no UML diagrams. And a common standard doesn't exist.

这些级别需要MANY图表。级别越低,需要的图表就越多。将用户界面放在一个类图中对于一个微小的项目是可能的,但你不能说它应该这样做。

These levels require MANY diagrams. The lower the level, the more diagrams it needs. Putting user interfacES into one class diagram is possible for a minuscule project, but you can't say it SHOULD be done so.

这篇关于用户界面应包含在类图和序列图中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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