概括如下图所示的用例图。我认为这是一个不好的例子,但让我们假设在一个完整的用例中,本地呼叫和长途呼叫每个都需要 10 步。一半的步骤相同,另一半(略有)不同。
图 http://www.wthreex.com/rup/smallprojects/rup/guidances/guidelines/resources/ucgen4.gif
我的问题是,我们如何在完整的用例中显示此图?我认为以下,如果我错了,请纠正我:
Place call
1. do something that is the same for both children (ex. pick up phone)
2. do something that is the same for both children
3. do something that is the same for both children
4. do something that is different for both children but write it very abstract
so that it applies to both. (ex. make a connection to the grid)
5. do something that is different for both children but write it very abstract
6. do something that is the same for both children
7. do something that is different for both children but write it very abstract
8. do something that is the same for both children
9. do something that is different for both children but write it very abstract
10. do something that is different for both children but write it very abstract
Place local call
1. rewrite the steps that are the same as the parent.
2.
3.
4. do something that is different for both children and write it detailed
(ex. make a connection to the LOCAL grid)
...
第二个问题是:您是将主要演员与地方电话联系起来还是与每个孩子联系起来?