1

我想知道我的用例图是否正确。

我想知道我应该在关系中写什么。我应该通过使用<<include>>还是使用<<extend>>

<<include>>有人能告诉我我的方法是否正确吗。你能解释一下和之间有什么区别吗<<extend>>

这是我的图表:

在此处输入图像描述

谢谢。~

4

2 回答 2

0

There are many questions that address to this problem. I have found the answer of Doug Knesek useful: Extend is used when a use case conditionally adds steps to another first class use case.

For example, imagine "Withdraw Cash" is a use case of an ATM machine. "Assess Fee" would extend Withdraw Cash and describe the conditional "extension point" that is instantiated when the ATM user doesn't bank at the ATM's owning institution. Notice that the basic "Withdraw Cash" use case stands on its own, without the extension.

Include is used to extract use case fragments that are duplicated in multiple use cases. The included use case cannot stand alone and the original use case is not complete without the included one. This should be used sparingly an only in cases where the duplication is significant and exists by design (rather than by coincidence).

For example, the flow of events that occurs at the beginning of every ATM use case (when the user puts in their ATM card, enters their PIN, and is shown the main menu) would be a good candidate for an include.

Click this link for more answers: What's is the difference between include and extend in use case diagram? extend-in-use-case-diagram

于 2013-08-22T08:29:55.407 回答
0

您会在 SO 上找到很多关于如何区分includeextend. 见这里: 扩展与包含在用例中

于 2013-08-28T12:47:21.257 回答