简体   繁体   English

用例图 UML

[英]Use Case Diagram UML

UML Use Case Diagram Questions?
If for an appointment system, an actor (patient) can register on the
appointment system, and register process managed by an actor (Doctor).

For drawing USE CASE diagram, should I draw a association between doctor and use case (register)?为了绘制用例图,我应该在医生和用例(注册)之间绘制关联吗? I do not think so, because the doctor will not do anything to the register?我不这么认为,因为医生不会对登记册做任何事情吗? If so, why?如果是这样,为什么?

If the doctor is not directly involved in patient's is registration in the appointment system, then there shouldn't be an association. 如果医生没有直接参与患者的预约系统登记,那么就不应该有关联。

However someone needs to put information into the appointment system. 但是,有人需要将信息输入预约系统。

So if the doctor himself adds "available" slots into the system, then it should be modeled as his use case. 因此,如果医生自己将“可用”插槽添加到系统中,则应将其建模为其用例。

So at the end there will be one use case "Patient --> book appointment", and one "Doctor --> create appointment slot". 因此,最后将有一个用例“患者 - >预约”,以及一个“医生 - >创建预约时段”。

Actually the doctor is making the appointment on behalf of the patient. 实际上,医生正在代表患者进行预约。 So for the use case Register with system he is the primary actor. 因此,对于用例Register with system他是主要角色。 The doctor will likely the patients personal data, but the patient is not involved in this part actively. 医生很可能是患者的个人资料,但患者并没有积极参与这一部分。 When you describe the use case you will likely see all the actions be between doctor and system under consideration. 当您描述用例时,您可能会看到正在考虑的医生和系统之间的所有操作。

I guess that Peter is correct with his assumption that you need 2 use cases here. 我猜彼得是正确的,因为他假设你需要2个用例。

Late to the party but never too late I guess.聚会迟到了,但我想永远不会太晚。 You will most likely have to create two use cases;您很可能必须创建两个用例; one for the doctor and one for the patient.一份给医生,一份给病人。

Simply describe the actions of the doctor;简单描述医生的行为; such as create appointment slots, and anything else you expect him to do.例如创建约会空档,以及您希望他做的任何其他事情。 Then describe the actions of the patient on the other use case such as Register/Login/Book Appointment/Manage Appointment.然后描述患者在其他用例(例如注册/登录/预订约会/管理约会)上的操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM