我可以将参与者连接到用户案例及其包含的用例吗? [英] can I connect the actor to a user case and its included use case?

查看:28
本文介绍了我可以将参与者连接到用户案例及其包含的用例吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个参与者将接触的用例,该用例包括另外两个用例.演员也可以与他们联系.

I have a use case that the actor will contact with, that use case includes two other use cases. The actor can contact with them as well.

所以我的问题可以将参与者与这两个用例联系起来吗?

So my question can I connect the actors to those two use cases?

这是演员刚刚连接到主要用例的第一张图片,

This the first image where the actor is just connected to the main use case,

这是演员连接到两个主要用例的第二张图片,其中包含两个用例

this is the second image where the actor is connected to both the main use cases, and its included two use cases

第二个正确吗?

推荐答案

如果包含的用例 (UC) 只能作为包含/扩展到某个其他 UC 运行,那么您不要将发起参与者连接到该 UC(它是自动"从主 UC 中包含的).

If the included use case (UC) can be run only as inclusion/extension to some other UC then you do not connect the initiating actor to that UC (it is "automatically" included from the primary UC).

然而,有两种情况可以将 actor 连接到包含或扩展的 UC:

Yet there are two situations when an actor can be connected to included or extending UC:

  1. 包含/扩展的 UC 与其他一些参与者(不是发起者)进行交互.然后,此类参与者将连接到包含/扩展的 UC.
  2. 包含/扩展的 UC 可以独立运行(即也可以作为单独的 UC 运行,而不是包含/扩展到其他一些 UC).在这种情况下,可以直接启动 UC 的参与者将连接到该 UC(即使它也连接到一些包含/由该 UC 扩展的 UC)

我附上@ThomasKilian 声明,即您的图表创建了一个绝对不应该在 UC 上描绘的分解.

I second the @ThomasKilian statement that your diagram creates a decomposition that definitely should not be depicted on UC.

这篇关于我可以将参与者连接到用户案例及其包含的用例吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆