UML 序列图:我如何绘制 cron 作业? [英] UML sequence diagram: how do i draw cron job?

查看:43
本文介绍了UML 序列图:我如何绘制 cron 作业?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个利用餐厅数据集优势的应用程序.每周我的系统都会运行一个 CRON 作业,以便将公共 API 上可用的餐厅同步到我的数据库.

I'm developing an application that takes advantages of restaurants' dataset. Each week my system will run a CRON job in order to synchronize the restaurants that are available on a public API to my database.

但是,我如何为这个 CRON 作业绘制序列图?演员是谁?

However, how do I draw the sequence diagram for this CRON job? Who is the actor?

推荐答案

actor 将是一些调度程序(或者,如果您愿意,也可以使用 Cron 对象).目标将是您的 Synchronizer 对象,用于执行所有花哨的网络扫描.

The actor would be some scheduler (or you can use the Cron object if you like). The target would be your Synchronizer object doing all that fancy web scanning.

您可以使用 loop 片段来显示重复.一个简单的笔记也可以:-)

You can use a loop fragment to show the repetition. A simple note would do as well :-)

这篇关于UML 序列图:我如何绘制 cron 作业?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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