简体   繁体   English

用例图中的参与者之间的关系

[英]Relationships between actors in Use Case diagram

I'm wondering is it a mistake or I don't understand it correctly. 我想知道这是一个错误还是我不理解它。 As I know we use arrows between actors to present generalization (Student <- Undergraduate student), but how to interpret it in those 2 cases? 据我所知,我们使用演员之间的箭头来表示概括(学生< - 本科生),但如何解释这两种情况? (Cause Graduated Student is not more specified Undergraduate Student) (因为没有更多的指定毕业生本科生)

在此输入图像描述

Thank You in advance! 先感谢您!

The arrow with the open head on the left side represents a Generalization in UML. 左侧打开头部的箭头表示UML中的Generalization The arrow on the right side is not UML. 右侧的箭头不是UML。

Generalization can be read as is a . Generalization可以理解为 So in this case you can read Graduate Student is a Undergrad Student . 所以在这种情况下你可以读Graduate Student Undergrad Student Whether or not that statement is correct is another question. 这个陈述是否正确是另一个问题。

The left Generalization between actors makes sense as it represents some kind of competence hierarchy. 演员之间的左派概括是有意义的,因为它代表了某种能力等级。 This is often done in the sense of "the specialized actor can do/takes part in UCs which the general one can do/is associated with". 这通常是在“专业演员可以做/可以参与UCs的意义上完成的,一般人可以做/与之相关”。

In contrast the right Generalization does not make sense. 相反,正确的泛化没有意义。 Use cases represent the single pieces of individual added value a system has. 用例表示系统具有的单个附加值的单个部分。 Using generalization will lead this ad absurdum. 使用泛化将导致这个广告荒谬。 In that case Submit Exam is the basic use case. 在这种情况下, Submit Exam是基本用例。 You would add either a constraint or some explanation in the UC description to tell that it is also used for a Thesis but never create two different UCs. 您可以在UC描述中添加约束或某些解释,以告知它也用于论文,但从不创建两个不同的UC。 The goal in both cases is to achieve a higher grade. 两种情况下的目标都是达到更高的等级。 Just that a Thesis can be sent only by a Graduate (this is the constraint). 只是一个论文只能由毕业生发送(这是约束)。

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

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