当前位置: 动力学知识库 > 问答 > 编程问答 >

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. 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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: