英文:
use case diagram one of cases one of the cases must be completed in order for the other to be completed
问题
在这个问题中,我有一点困惑。为了使广告成为“高级”,必须选择其中的三个选项之一。如果没有选择任何选项,那么广告将成为普通的。我是否可以在这个图表中某种方式澄清这一点,或者它在目前的形式下是可以接受的?(也许我应该指出其他联系...?)
英文:
I'm a little stuck on one question.In order for the ad to be "Premium", one of the three options must be selected. If none is selected, then the ad will be common. Can I somehow clarify this in this diagram, or is it acceptable in this form as it is ? (maybe I should point out other connections..?)
答案1
得分: 1
你可以简单地附加一个约束。这是一个通过注释链接的注释元素(虚线),与包含文本的相关UC气泡关联,文本内容如{ UC x 必须至少执行一次 }
。
注意:Specify...
气泡看起来不像一个用例,而更像一个功能(作为Place ad
的一部分),因此无效。UC仅用于指定演员的目标,而不包含任何功能。
英文:
You can simply attach a constraint. That's a note element linked via a NoteLink (a dashed line) to the relevant UC bubble with containing text like { UC x must have been performed at least once }
).
N.B. The bubble Specify...
does not look like a use case but is rather a function (as part of the Place ad
) and therefor not valid. UCs are just there to specify actor's goals and never any functions.
答案2
得分: 0
一个简单的解决方案:不要使用extend和include。
在分析使用情况时,您必须考虑实现目标的所有方式。目标是放置广告。您图表中的所有其他“使用情况”都不是有意义的目标。也许它们可以作为中间目标,但它们不是使用系统的原因。
分析的结果可以以多种方式表达。使用情况图并不是这样做的正确位置。相反,您可以简单地编写一个主要的成功场景,然后一些替代流程。或者,如果您想更正式一些,可以使用活动图。
英文:
An easy solution: Don't use extend and include.
When analysing the use case you have to look at all the ways to achieve a goal. The goal is to place an ad. All the other "use cases" in your diagram are no meaningful goals. Maybe they could be intermediate goals, but they are not the reason for a case of using the system.
The result of the analysis can be captured in many ways. The use case diagram is not the right place for this. You could instead simply write up a main success scenario and then some alternative flows. Or, if you want to be more formal, you can use an activity diagram.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论