首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在这个用例图的场景中,谁将是参与者?

在这个用例图的场景中,谁将是参与者?
EN

Stack Overflow用户
提问于 2015-10-18 10:46:05
回答 1查看 243关注 0票数 0
  • 这两种情况下的演员会是学生和系统吗?(这两起案件作为一个整体指向一个系统)
代码语言:javascript
复制
1. Enrol a student at the university: A student provides his or her personal details (name, address, date of birth), along with the code of the course (e.g. Bachelor of Computer Science) in which he or she wishes to enrol. A student record is created, and a unique student ID number is assigned to the student. The system automatically enrols the student in any core first-year subjects for the course. 
2. Enrol a student in a subject: A student provides his or her student ID number and the subject code of the subject in which he or she wish to enrol. The system checks that the subject requested by the student is allowed for the course in which the student is enrolled. If not, the enrolment request is rejected. The system checks what subjects (if any) are specified as prerequisites for the subject in which the student wishes to enrol. If the student has passed all the prerequisite subjects, he or she is enrolled in the desired subject. Otherwise, the enrolment request is rejected.

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-10-18 11:19:33

用例的参与者将是用户。学生(或可能是大学雇员)。您可能有一个通用用户,并由此扩展了不同的用户类型。

在这种情况下,系统可能是用户正在与之接口的实际程序。因此,用例表示系统用户与系统的交互方式。有点像下面的图表,尽管我的图在系统边界中没有细节。

在某些用例中,您可能正在检查系统的一部分,然后可能有来自相关案例之外的系统参与者与其交互。

在这种情况下,您的系统可以是参与者,这取决于系统(或程序)是如何模块化的。访问数据库也是如此。

第二个图像是更仔细地查看上面的用例,"run“。它正在查看系统中的一个模块。

您可以从我的图像中看到,这取决于如何定义系统边界。UML图变化很大,其中很大程度上取决于期望的细节级别。如果这是一个学校作业,一个作业规格,引用,一个想法或一个简单的思想表达。

我希望这是有帮助的。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33197021

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档