简体   繁体   English

如何确定接口正在执行用例的Actor

[英]How to Identify Actor Where Interface is doing the usecae

i am modeling a system of ware house management system(Assignment).In this system Most of the things are done by automated crane. 我正在建模一个仓库管理系统(Assignment)的系统。在这个系统中,大多数事情都是由自动起重机完成的。 ok, being specific crane will read the barcode on it, its aso called licence plate. 好的,因为特定的起重机将读取其上的条形码,也称为车牌。 so, read licence plate is a USE CASE but who is the ACTOR here? 因此,阅读车牌是用例,但这里的作者是谁? Can Crane be the ACTOR or who else. Crane可以是ACTOR还是其他人。 Help is really Appreciated... 帮助真的很感激...

In fact it strongly depends of what you want to express. 实际上,它很大程度上取决于您要表达的内容。

UseCase are behavior of our system exposed outside. UseCase是我们的系统暴露在外部的行为。

So if you want to model "read licence plate" as a UseCase used by a crane, this implies that the crane is an Actor outside of your system. 因此,如果要将“读取车牌”建模为起重机使用的用例,则意味着起重机是系统外部的Actor。 If you want to model that the crane is a part of your system so the fact that our crane can read a licence plate you can not model it as a Usecase. 如果要对起重机是系统的一部分进行建模,以使我们的起重机可以读取车牌,则不能将其建模为用例。

Hoping it helps. 希望能有所帮助。

Regards, 问候,

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

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