[英]UML use case diagram Actors
Company X wants a web-based system that serves as a market place of ideas. X公司希望有一个基于Web的系统来充当思想市场。 Users should be able to login and post new ideas.
用户应该能够登录并发布新想法。 Other users can comment on them and “upvote” them.
其他用户可以对它们发表评论并对其进行“赞”。 The Administrators can login and mark that ideas have been implemented, and can reward the employee who posted it.
管理员可以登录并标记思想已经实施,并可以奖励发布思想的员工。 Following are the requirements:
以下是要求:
Users should be able to login.
Users should be able to post a new idea.
Users should be able to search for and view other ideas
Users should be able to comment on ideas
Users should be able to upvote ideas
Administrators should be able to mark ideas as implemented
Administrators should be able to delete unwanted comments
Do you guys think my diagram is correct? 你们认为我的图表正确吗? I am new to UML so you guys can make fun!
我是UML的新手,所以你们可以开心!
It is a not so bad start. 这是一个不错的开始。 Only:
只要:
Administrators are also users. 管理员也是用户。 They descend from them.
他们从他们那里降临。 So, they should have a
generalization
connection - empty triangle head arrow from Admin to User. 因此,它们应该具有
generalization
连接-从Admin到User的空三角形箭头。 Or to OtherUser (look below). 或发给OtherUser(请看下面)。
it is more natural to have a picture and name of an exemplar of agent. 具有代理人示例的图片和名称更为自然。 So, user, administrator - in singular.
因此,用户,管理员-单数。
you can divide Users from Other Users only if they have different definition and that difference is seen from the documentation, too. 仅当用户具有不同的定义并且从文档中也可以看到不同时,才可以将用户与其他用户分开。 It is not.
它不是。 I would use only Users.
我只会使用用户。 Of course, if some users really have different rights, it is OK, but:
当然,如果某些用户确实具有不同的权限,可以,但是:
Edit: 编辑:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.