扩展与包含在用例中

发布于 2024-10-21 19:20:17 字数 81 浏览 8 评论 0原文

用例 UML 中的扩展和包含有什么区别?

如果我有登录用例和 addGroup 用例,管理员应该登录才能 添加组,这里有什么关系?

what is the difference between extends and includes in usecase UML?

if I hava login usecase and and addGroup usecase, the admin should login to be able
to add group , what is the relation here??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

暖风昔人 2024-10-28 19:20:17

一个意味着它是在另一个的上下文中完成的(几乎就像函数调用),另一个意味着它是作为另一个的替代完成的。请注意,它们没有像 OO 编程语言那样使用“扩展”和“包含”。存在细微的差别。我不记得哪个是哪个,也不想猜测。

在我使用 UML 的这些年里,我仍然没有遇到过任何一个术语都为用例图带来任何好处的情况。

这是一个讨论在用例图中扩展和包含的页面。

One means it is done in the context of of another (almost like a function call) and the other means it is done as an alternative as another. Be careful, they are not using 'extends' and 'includes' in the same manner as OO programming languages. There are subtle differences. I don't remember which is which and would rather not guess.

In all my years of using UML, I still have not come across a situation where either term provided any benefit to a Usecase Diagram.

Here is a page that discusses Extends and Includes in a Usecase Diagram.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文