如何概括 UML 图中的参与者 [英] How to generalize actors in UML diagrams

查看:25
本文介绍了如何概括 UML 图中的参与者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的用例场景

Ever Green Homes PVT Ltd. (EGH) 销售房屋.想卖的人他们的房子与 EGH 签订合同并提供有关他们的信息房子.此信息由 EGH 和一个子集保存在数据库中此信息被发送到使用的全市多重列表服务所有房地产经纪人.EGH 具有两种类型的潜力买家.一些买家对一栋特定的房子感兴趣.在这在这种情况下,EGH 从其数据库打印信息,房地产代理用来帮助向买家展示房子(一个超越要建模的系统的范围).其他买家寻求 EGH 的建议找到满足他们需求的房子.在这种情况下,买方完成输入到买方数据中的买方信息表基地,和 EGH 房地产经纪人使用其信息搜索 EGH 的数据库和满足房屋的多重上市服务需要.这些搜索的结果被打印出来并用于帮助房地产经纪人向买家展示房屋.

Ever Green Homes PVT Ltd. (EGH) sells houses. People who want to sell their houses sign a contract with EGH and provide information on their house. This information is kept in a database by EGH and a subset of this information is sent to the citywide multiple listing service used by all real estate agents. EGH works with two types of potential buyers. Some buyers have an interest in one specific house. In this case, EGH prints information from its database, which the real estate agent uses to help show the house to the buyer (a process beyond the scope of the system to be modeled). Other buyers seek EGH’s advice in finding a house that meets their needs. In this case, the buyer completes a buyer information form that is entered into a buyer data base, and EGH real estate agents use its information to search EGH’s data base and the multiple listing service for houses that meet their needs. The results of these searches are printed and used to help the real estate agent show houses to the buyer.

描述中有多种买家.

我想知道用例图中是否映射了这两种类型的买家.如果是,如何映射它们?

I want to know if both types of buyers are mapped in the use case diagram. If yes, how to map them?

这是我画的用例图:

如果有任何问题,请帮助我更正我的图表中的任何问题...

Please help me correct any issues with my diagram if there's any...

推荐答案

两种买家

确实,您做得很好:叙述中使用的两种买家仅介绍了使用所考虑系统的不同方式.

The two kind of buyers

Indeed, you did very well: the two kind of buyers used in the narrative only introduce different ways of using the system under consideration.

它们不对应不同的角色:对一栋房子感兴趣的买家稍后可能会提供他/她的信息以查看其他房子.相反,收到清单的买家以后可能会对特定房屋感兴趣.

They do not correspond to different roles: a buyer interested in one house may later provide his/her information to see other houses as well. Conversely, a buyer having received a list may later be interested in specific houses.

在房地产业务中,两种买家之间的区别在于,特定的兴趣通常会导致对所提供的房地产进行更详细的描述,这可能会导致访问,并最终导致交易.

In the real estate business, the difference between the two kind of buyers is that the specific interest generally results in a more detailed description of the estate being provide, which may result in a visit, and ultimately in a transaction.

现在严格来说,阅读叙述,我不确定卖家和买家是否使用该系统.他们似乎与房地产经纪人互动,卖方将与其签订合同,或者(潜在)买方可能会要求提供信息.

Now strictly speaking, reading the narrative, I am not sure that the sellers and buyers use the system at all. They seem to interact with a real estate agent, with whom sellers will sign a contract, or the (potential) buyer may resquest information.

当然,我们可以想象与 Web 服务基于 Internet 的交互.但是叙述说EGH 打印其数据库中的信息,房地产经纪人使用这些信息来帮助向买家展示房屋".类似地,买方填写了输入到买方数据库中的买方信息表"的措辞暗示已输入"似乎暗示由职员键入".

Of course, we could imagine an internet based interaction with a web service. But the narrative says "EGH prints information from its database, which the real estate agent uses to help show the house to the buyer". Similarly, the wording "the buyer completes a buyer information form that is entered into a buyer data base" suggest that "entered" seems to suggest "keyed in by the clerk".

因此,您确实需要澄清主题是什么,即用例的正在考虑的系统.演员名单将取决于它.

So you really need to clarify what is the subject, i.e. the system under consideration for the use-cases. The list of actors will depend upon it.

如果主题,则是内部软件房地产商的应用程序,我只看到三个参与者(因为卖家和买家不与系统交互):

If the subject it is the internal software application of the real estator, I see only three actors (since sellers and buyers do not interact with the the system):

  • 房地产经纪人(主要,人力)
  • 文员(初级,人类)
  • 全市多房上市服务(二级、系统)`

如果它是由房地产商提供的互联网服务,买卖双方可以进行互动,那么您的演员是对的(尽管缺少上市服务).

If it is an internet service provided by the real estator, that the seller and buyer could interact with, your actors would be right (missing the listing service, though).

如果是房地产机构本身(即业务用例,例如 Ivar Jacobson 提出在他的著作对象优势:使用对象技术进行业务流程再造" 和 RUP 中),然后有一个焦点转移,我们将只有房地产机构之外的参与者(因此没有文员, 无代理):卖方、买方、经营上市服务的公司.

If it is the real estate agency itself (i.e. a business use-case, like Ivar Jacobson proposed in his book "The Object Advantage: Business Process Reengineering With Object Technology" and in RUP), then there is a shift in focus and we would have only actors outside the real-estate agency (so no clerk, no agent): Seller, Buyer, Company operating the listing service.

这篇关于如何概括 UML 图中的参与者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆