有没有“开关盒"?在 UML 用例规范中? [英] Is there any "switch case" in UML use-case specification?

查看:22
本文介绍了有没有“开关盒"?在 UML 用例规范中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用例规范中是否有任何切换案例"?

在要求中:

  • 当用户在组合框中选择合同"时,会出现一个合同"选项卡,然后用户将与合同"选项卡进行交互.
  • 当用户选择独立资助"时,会出现一个资助"选项卡,然后用户将与资助"选项卡进行交互.

如何在我的用例规范中指定这个用例?

这两个案例"将处于基本流程中,不是吗?那么如何指定switch-case"呢?

(因为我做的有很多错误,我会说清楚)

我不是在绘制用例或绘制活动图,我在两者之间.我正在编写用例规范(用于描述用例,稍后将用于绘制活动图).

更多详情:

Is there any "switch case" in use-case specification?

In the requirements:

  • When user select "contract" in combobox, a "contract" tab appears, then user will interact with the "contract" tab.
  • When user select "Independently funded", a "Funding" tab appears, then user will interact with the "funding" tab.

How can I specify this use-case in my use-case specification?

Those two "case" will be in basic flow, won't they? Then how can I specify the "switch-case"?

Edit: (Because many mistakes what I'm doing, I will make it clear)

I'm not in progress of drawing use-case or drawing activity diagram, I'm in the between. I'm writing use-case specification (which is used to describe a use-case, and will be used later to draw activity diagram).

For more detail: https://www.google.com.vn/search?q=use-case+specification&biw=1280&bih=683&source=lnms&tbm=isch&sa=X&ved=0CAYQ_AUoAWoVChMIn6ujsMDRxwIVC5COCh3aNQGY#

解决方案

If you are describing the use case in the notes then write something like

Step m: User selects ?? from combobox. If selection is "contract" resume at Step n. If selection is "Funding" resume at Step o. ... ...

Step n: Resume at Step p.

Step o: Resume at Step p.

Step p: ...

where m, n, o and p are subsequent step numbers in your scenario.

If you are using Activities with Actions you can use a Decision node from where you have multiple outgoing transitions. Each transition then has a guard describing the switch (kind of a multi-if).

这篇关于有没有“开关盒"?在 UML 用例规范中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆