扩展与包含在用例中 [英] extends vs include in usecase

查看:22
本文介绍了扩展与包含在用例中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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??

推荐答案

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

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.

在我使用 UML 的这些年里,我仍然没有遇到任何一个术语为用例图提供任何好处的情况.

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.

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

这篇关于扩展与包含在用例中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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