我正在制作一个用例图,但在建模以下内容时遇到问题:用户想查询他的余额,但他可以通过电话、短信或 IVR 来完成。我应该如何表示不同的方式?每一个都有不同的流量。我应该为每个用例建模一个用例,还是应该将不同的方式表示为扩展用例。
问问题
595 次
3 回答
0
If the three cases share flow to a huge extent (say >70%) I would model them as one use case. Otherwise it would be better to model three different use cases.
The point here is understandability. Cramming three different things into one is confusing, repeating the same three times is confusing as well (although probably less).
于 2010-07-04T19:08:43.827 回答
0
您的问题没有正确或错误的答案。UML 允许对相同的情况进行不同的建模。它主要取决于您为用例图选择的抽象级别。
于 2010-07-04T17:18:44.260 回答
0
您将有一个带有 3 个扩展的常见用例。然后,您将使用序列图详细说明每个扩展。
于 2010-07-11T08:13:51.843 回答