简体   繁体   English

如何在UML用例图中表示用户的不同角色?

[英]How to represent different roles of users in UML Use cases diagrams?

Imagine I have a research support application where the users can Log In with different roles like Manager , Researcher , CommiitteeCLR . 想象一下,我有一个研究支持应用程序,用户可以在其中以经理研究人员CommititteeCLR等不同角色登录。 Each one access different parts of the system: 每个人访问系统的不同部分:

Manager access user manager, add new project and project feedback(if the project is approved or not) of all committees 经理访问用户经理,添加新项目和所有委员会的项目反馈(如果项目已批准)

Researcher access only list of Projects and add new project 研究人员仅访问项目列表并添加新项目

Committe CLR (commiittee of learning and research )access only project feedback of CLR (not all like manager) 委员会CLR (学习和研究委员会 )仅访问CLR的项目反馈(并非所有人都像经理一样)

How could I represent actors and use cases in a Use Case Diagram? 我如何在用例图中表示参与者和用例?

Each of those are actors (Manager, Researcher, etc.). 每个人都是演员(经理,研究员等)。 Actor and role can be used as synonyms. 演员和角色可以用作同义词。 You describe use cases per role/actor. 您按角色/角色描述用例。

You can generalize actors which can come handy in some cases (where an actor inherited the general actor's use cases). 您可以归纳出一些在某些情况下会派上用场的actor(actor继承了一般actor的用例)。

If you have some general use case and restriction per role you need to add constraints that can be attached to the association or as pre-condition to the use case itself. 如果您有一些一般的用例和每个角色的限制,则需要添加可以附加到关联或作为用例本身的前提的约束。

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

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