UML 用例:如何对“批量”建模进行建模特征?

发布于 2024-11-19 06:18:34 字数 93 浏览 5 评论 0原文

是否应该将批量计划流程(例如,夜间流程)建模为用例?这是系统应该做的事情,但是没有一个 Actor “使用”该功能,因为它是预定的。

有什么建议吗? 谢谢!

Should a batch scheduled process (for example, a nightly process) be modeled as a Use Case? it is something the system should do, but there is not an Actor "using" the feature, because it is scheduled.

Any suggestions?
Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

谈场末日恋爱 2024-11-26 06:18:34

我们定义了一个“调度程序”参与者来模拟该场景。调度程序通常有自己的一组用例,这些用例是批处理作业,或者需要定期运行的可执行文件等。例如,用例可以写成“用例在当前时间整点时开始”每天运行 24 次的作业。我们尽量不包含太多这样的案例,因为很容易陷入实现细节之中。我们等到真正重要的活动必须安排时间时才进行,例如会计部门的每月结算程序。他们没有提及任何软件细节(例如调度软件的名称),只是指出用例是由调度程序参与者在给定的日期和/或时间触发的。

We've defined a 'Scheduler' actor to model that scenario. The Scheduler usually has its own set of use cases which are batch jobs, or executables that need to run regularly, etc. For example, the Use Case can be written like "The Use Case begins when the current time is on the hour" for a job that runs 24 times a day. We try not to include too many of these cases because it is too easy to get bogged down into implementation details. We wait until really important activities have to be timed, like monthly close procedures for the accounting department. They don't mention any software specifics (like the name of the scheduling software), just that the Use Case is triggered by the Scheduler actor on a given day and/or time.

凉墨 2024-11-26 06:18:34

第一次尝试:

Time can be actor in your use case.

但正如你所说,作为主要演员这很奇怪。

在此处输入图像描述

您可以考虑人类的替代方案。
所以问问自己:

系统自动执行批处理计划过程,但是:什么时候?如何? ...
那么谁会告诉系统什么时候?如何 ?做你预定的过程吗? 是否有配置批量计划流程的角色?如果是这样..

第二次尝试:

在此处输入图像描述

有一个很好的IBM 站点上的文章 亲爱的博士用例:时钟是演员吗?

您可以在 TIME 是用例中的参与者吗?

First attempt:

Time can be actor in your use case.

But as you said it is strange as an primary actor.

enter image description here

You can think a human alternative.
So ask yourself:

System automatically do a batch scheduled process but: when? how? ...
So WHO will tell the system when? how ? to do you scheduled process? Is there a role which configure a batch scheduled process? If so..

Second Attempt:

enter image description here

There is a good article at IBM site Dear Dr. Use Case: Is the Clock an Actor?

And you can check similiar question at Is TIME an actor in a use case?

維他命╮ 2024-11-26 06:18:34

系统(操作系统)是“参与者”:

http://en.wikipedia.org/ wiki/Actor_%28UML%29

在UML中,“Actor”不仅仅是一个人,可以是一个进程或操作系统,您只需添加一个构造型,表明它的“系统”。

The system (O.S.) its the "actor":

http://en.wikipedia.org/wiki/Actor_%28UML%29

In U.M.L, an "Actor" is not just a person, can be a process or the O.S., you just add an stereotype, indicating its "system".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文