UML活动图的决定没有决策节点 [英] UML activity diagram decision without decision node

查看:505
本文介绍了UML活动图的决定没有决策节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以UML活动图有决定不决策节点还是错?我的意思是,是不是必须使用的决策节点(菱形符号)重新present条件?

解决方案

没有,

  1. 在活动图,你也可以使用一个更为详尽的元素:条件节点 - 的是重新$ P $一个结构化的活动节点psents之间的替代一定数量的排他性选择。
  2. 这也可能存在于变种有条件的节点地区。
  3. 如果您的决策有循环的感觉,你可以使用循环节点代替。
  4. 此外,如UML允许它从不同的图表相结合的元素,你可以使用Alt或循环组合碎片序列图的元素。
  5. 您也可以使用序列节点的活动图,并隐藏在它的决定。
  6. 此外,您还可以随时隐藏在算术行动的决定。但作为在code可以接受的,这样是不好的图表中 - 你让他们更好地理解这一问题,而不是缩短code

Can UML activity diagram have decision without a decision node or is it wrong? I mean, is it required to use the decision node (diamond symbol) to represent conditions?

解决方案

No,

  1. in activity diagram you can also use a much more elaborated element: Conditional Node - is a structured activity node that represents an exclusive choice among some number of alternatives.
  2. It also could exist in variant "conditional node with regions".
  3. If your decision has the sense of loop, you can use a Loop Node instead.
  4. Also, as in UML it is allowed to combine elements from different diagrams, you can use Alt or Loop combined fragments from Sequence Diagram elements.
  5. You can also use Sequence Node in activity diagram and hide the decision inside it.
  6. Also, you can always hide the decision in the arithmetic actions. But being acceptable in code, this way is bad in diagrams - you make them for better understanding the subject, not for shortening the code.

这篇关于UML活动图的决定没有决策节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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