如何在活动图中表示选择? [英] how to represent choices in activity diagram?

查看:52
本文介绍了如何在活动图中表示选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何绘制以下情况的活动图:-
管理员登录系统.
登录后,屏幕上有8个按钮用于不同的工作.
1.添加用户
2.查看用户
3.更改登录信息
4.小组任务
5.设置
6.报告
7.家
8.注销
管理员可以点击任何按钮&将继续这项工作.

How can I draw activity diagram for following situation:-
Administrator logins to the system.
After login, there are 8 buttons on the screen for different works.
1. Add user
2. View users
3. change login info
4. Group Task
5. Settings
6. Reports
7. Home
8. Log Off
The admin can click on any button & will proceed with that work.

推荐答案

有 8 个按钮之一可供选择:

There is a choice between one of the 8 buttons:

  • 这是在 UML 活动图中建模的,带有 decision node 用具有 8 个输出边的 losange 表示.

  • This is modelled in UML activity diagrams with a decision node represented with a losange having 8 outgoing edges.

如果控制流到达决策节点,只会选择一个分支.

If the control flow reaches the decision node, only one branch will be chosen.

替代路径稍后可以再次与合并节点合并.

Alternative paths can later be merged again with a merge node.

这不应与创建和同步并行流的 fork 和 join 混淆.

This shall not be confused with fork and join which create and synchronise parallel flows.

这篇关于如何在活动图中表示选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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