多个登录选项的用例 [英] Use case for multiple login option
问题描述
我有一个用例,用户可以通过正常登录以及社交登录(例如 Twitter、Google、Facebook)登录.我绘制的用例如下,但不确定它是否正确.
I have a use case where user may log in via normal login, as well as social login such as Twitter, Google, Facebook. I draw the use case as below but not sure if it is correct.
登录账号---扩展--->正常登录
---扩展---> Twitter登录
---扩展--->谷歌登录
---扩展---> Facebook登录
Login account ---extends---> normal login
---extends---> Twitter login
---extends---> Google login
---extends---> Facebook login
推荐答案
<
反之亦然.
一直说这个我很累,但是登录帐户
不是一个用例.它不会为演员带来任何价值.这是一个适用于其他真实用例的简单约束.
I'm quite tired telling this all the time, but Login account
is not a use case. It does not deliver any value to an actor. It is a simple constraint which applies to other real use cases.
进一步:避免使用<
/<<
.它们是您尝试对用例进行功能分析的标志.相反,用例是综合的,这会产生很大的不同.如果您的用例图开始类似于蜘蛛网,那么您的设计就被破坏了.
Further: avoid the use of <<extends>>
/<<include>>
. They are a sign of functional analysis you are trying to do with your use cases. Instead use cases are synthesized which makes a big difference. If your use case diagrams start resembling a spider's web your design is broken.
推荐阅读:Bittner/Spence.
Recommended read: Bittner/Spence.
这篇关于多个登录选项的用例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!