包含在用例中是每次读取还是一次读取?

Is included in use case read as for each time or one time?

所以,我设计了一个用例图。但是我对 included 的使用感到困惑。它是关于一个学生管理系统。学生只有在注册课程后才能注册模块。问题是,如果我把 included from register 放到 enrol 中,是否意味着他每次注册都必须注册?另外,从用例中得出的 2 included 是什么意思,是需要其中之一还是需要两者?

用例之间的包含是无条件完成的,所以如果UC包含UC1并包括 UC2 和 ... 并包括 UCn 表示每次激活 UC 然后 UC1UC2 and ... and UCn 也完成了,无论它们的数量是多少n。它们之间的夹杂物并不排斥。

if I put included from register to enrol, will it imply that every time he registers, he will have to enrol?

是的,这是n为1

的情况

what does 2 included coming out from a use case mean, is it either or or both needed?

两者都有,这是n为2

的情况

如果你想要有条件的东西,使用 extension 但警告箭头是在相反的方向绘制的,而不是 UC1- - -<<include>>- - -> UC2 (UC1 包括 UC2) 我们有 UC1<- - -<<extend>>- - -UC2 (UC2 扩展 UC1)


to make things clearer. Make as if I have a purchase use case and i can only purchase if a create account use case or login account use case exist. How do i represent that?

对我来说,最好的建模方法是使用前提条件。因此,为了能够激活 UC 'purchase',先决条件是要记录(要记录的先决条件是已创建帐户)。

用例不仅仅是图中的椭圆,用例必须有一个描述,并且该描述指示它们何时存在前置和post条件。