扩展与包含在用例中
用例 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一个意味着它是在另一个的上下文中完成的(几乎就像函数调用),另一个意味着它是作为另一个的替代完成的。请注意,它们没有像 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.