时序图示例

发布于 2024-09-03 14:10:36 字数 377 浏览 0 评论 0原文

建模的用例是新约会的登记。

用户以患者(角色)身份登录系统。预约时应输入医学专业和日期。 系统应该寻找在该日期可以从事该专业的医生。 患者应从结果中选择一项,然后系统保存预约。 最终用户应该收到一封包含预约信息的电子邮件。

我的模型中的类是: 用户 病人 医生 预约 医生时间表 还有更多,但我认为这些都会涉及到。

我有这个初始序列图:

图表

我在设置返回消息以及电子邮件步骤时遇到问题。

谢谢

The use case to model is the register of a new appointment.

The user logins in the system as a patient (role). To make an appointment shoudl enter medical specialty and date.
System shoudl look for the doctors availables for that specialty on that date.
From the results patient should choose one and then system save the appointment.
At the end user shoudl receive an email with the information of the appointment.

The classes that I have in my model are:
User
PAtient
Doctor
Appointment
DoctorShcedule
and some more but I think these ones will be involve.

I have this initial sequnce diagram:

diagram

I have problem to set the return messages and also with the email step.

Thanks

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

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

发布评论

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

评论(1

深巷少女 2024-09-10 14:10:36
I have problem to set the return messages and also with the email step.

返回消息有两种表示法,要么像响应 checkAvailability() 那样发送返回消息,要么在被调用方法后面写入返回值或对象 checkAvailability() : bool< /代码> .

发送邮件是一个异步操作,邮件会离开您的系统。我建议引入另一个类 Mailer,它应该处理 sendMail() 消息而不是您的类用户。稍后接收邮件是另一个用例,并且该邮件的接收不属于该序列图(恕我直言)。

I have problem to set the return messages and also with the email step.

There two notations for return messages either by sending a return message as you did in response to checkAvailability() or by writing the returned value or object behind the called method i.g. checkAvailability() : bool .

Sending a mail is an asynchonous operation and the mail leaves your system. I would suggest to introduce another class Mailer which should process the sendMail() message instead of your class user. Receiving the mail later is another use case and receiption of this mail doesn't belong into this sequence diagramm (IMHO).

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