用例图使用<>
在我的系统中,“比较修改”和“保存图像”是可选活动。但它们会呈现给用户。用户可能会也可能不会使用它们。这是用例图中显示场景的正确形式吗?我对 UML 还很陌生,如果我没记错的话,我认为扩展关键字可以用来显示可选活动。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
保存图像和比较修改是单独的用例吗?如果他们是,我想知道他们描述的用户场景是什么?恕我直言,太通用了。但我不知道正在研究的领域,所以不能真正阐述我的观点。扩展适用于扩展用例是父用例的特殊版本的场景。因此,为了将其转化为您的场景,每当参与者遇到“保存图像”功能时(假设“保存图像”具有一些真正的业务功能而不仅仅是“保存图像”屏幕),他可能会选择将图像存储到磁盘(从而执行“将图像存储到磁盘”的正常)流程、替代流程、BR 等),或者他可能不会,在这种情况下,流程可能会继续使用保存图像用例的替代流程 (AF)。如果我的假设是正确的,那么你的问题的答案是肯定的。
Are Save Image and Compare Modifications separate use cases? If they are i wonder what user scenario they describe?Too generic IMHO. But i dont know the domain under study so cant really drive my point there. Extend is applied to scenarios where extending use cases are specialized versions of the parent use cases. So to translate that into your scenario, whenever the actor encounters Save Image functionality(assuming Save Image has some real business functionality rather than just a Save Image screen) he might choose to Store the image to disk(and thereby execute Store Image to Disk's Normal Flow, Alternative flow,BRs etc) or he might not, in which case the flow might continue with Save Image use case's Alternative Flow(AFs). If my assumptions are right, then the answer to your questions is YES.
当您想要在用例中提供点以便稍后添加新功能而不是显示可选操作时,使用
<>
用例。任何用例都可以是可选的,它们仅显示系统向用户提供的功能,而不显示顺序或因果关系。
<>
用例确实显示了一些因果关系,但这也是次要的,也不是强制性的。<<extend>>
use cases are used when you want to provide point in a use case where you can later add new functionality, and not to show optional operations.Any use case can be optional, they only show functionality that the system provides to the user and do not show ordering or causality. The
<<include>>
use cases do show some causality relation but this is also minor and nor compulsory.用最简单的术语来说,
Includes
是强制性的,而Extends
是可选的,这是一个非常简单的解释,有助于我理解。In the most simple terms
Includes
is something which is mandatory andExtends
is optional, this is a very simple explanation which helped me understand.