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.
发布于 2015-10-18 11:19:33
用例的参与者将是用户。学生(或可能是大学雇员)。您可能有一个通用用户,并由此扩展了不同的用户类型。
在这种情况下,系统可能是用户正在与之接口的实际程序。因此,用例表示系统用户与系统的交互方式。有点像下面的图表,尽管我的图在系统边界中没有细节。

在某些用例中,您可能正在检查系统的一部分,然后可能有来自相关案例之外的系统参与者与其交互。
在这种情况下,您的系统可以是参与者,这取决于系统(或程序)是如何模块化的。访问数据库也是如此。
第二个图像是更仔细地查看上面的用例,"run“。它正在查看系统中的一个模块。

您可以从我的图像中看到,这取决于如何定义系统边界。UML图变化很大,其中很大程度上取决于期望的细节级别。如果这是一个学校作业,一个作业规格,引用,一个想法或一个简单的思想表达。
我希望这是有帮助的。
https://stackoverflow.com/questions/33197021
复制相似问题