When a system should be included as an actor in use case diagram?

♀尐吖头ヾ 提交于 2021-02-04 09:26:51

问题


I'm making a use case diagram for a new system. I'm wondering when a system should be included as an actor in use case diagram?

Thanks.


回答1:


As stated in another answer, an actor is a system or role interacting with the system under development. You should include a system as an actor in a use case if it is outside the system you are developing, and if it directly interacts with the system you are developing.

This is important because you need to define the boundary of your system, which means its scope and interfaces. Including a system as an actor will clearly state the requirement for your system under development to provide a suitable interface for that actor system.




回答2:


Different people have different philosophies about how to correctly model in UML (which is not surprising since UML was standardized by committee).

I use actors to capture every "thing" (type of person, type of system) that can interact with the system I am designing and find them useful to create a common understanding among all stakeholders of how the new system will be interacted with.

I suggest creating an actor for everything you know will interact with the system, and trace that actor to every use case the actor can execute. That way, you gain a full understanding of who can do what.




回答3:


System is never an actor in a use case model. You have to think about the thing that is triggering the system under investigation to carry out a process. The system itself is dumb and cannot trigger itself into action. It can only be triggered by a user or by Time. If you think the system is triggering the action then it will probably be Time that is the actor. For example, a process is triggered to run when an electronic message is received. The process is fully automated and is not triggered by a user telling the system that the message has arrived so who is the actor? It is not the system but Time. What you have to imagine is that there is a process to look for the arrival of the electronic message and this is looking at specific time intervals e.g. every second or every minute or once a month etc. Therefore it is Time that triggers the process that runs when the electronic message is received.



来源:https://stackoverflow.com/questions/2841330/when-a-system-should-be-included-as-an-actor-in-use-case-diagram

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!