全套用例的概括

时间:2013-03-05 21:42:48

标签: uml use-case

如下图所示,用例图中显示了泛化。我认为这是一个不好的例子,但让我们假设本地电话和长途电话在一个完全着装的用例中分别采取了10个步骤。一半的步骤是相同的​​,另一半是(稍微)不同。

diagram 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)
...

第二个问题是:你是否将主要演员与场所召唤或每个孩子联系起来?

1 个答案:

答案 0 :(得分:0)

第一个问题:我将使用各个用例的文本描述来概述所述细节,或者(作为替代方案)编写一个场景 - 或者(作为另一种选择)使用活动图。

我认为把它全部放在用例图中是太过分了,因为它太详细了。

第二个问题:将其与place call联系起来。毕竟这是使用概括的重要好处之一。