将活动图链接到要访问的实体 [英] Linking activity diagram to entities to be accessed

查看:24
本文介绍了将活动图链接到要访问的实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何在活动图中表示要访问或更新的实体?这是作为活动图的一部分完成还是单独完成?

How do we represent in an Activity Diagram, which entities are to be accessed or updated? Is this is to be done as part of an activity diagram, or to be done separately?

推荐答案

您指定使用 Action 上的 Pins 访问或更新哪些 Classes> 或在 Activity 上使用 ActivityParameterNode.那些 Pins 看起来像 Action 外围的小方块,或者 Activity 的图框上的矩形,你连接 OutputPinsInputPins 使用 ObjectFlows(不幸的是看起来就像将 Actions 连接在一起的 ControlFlows).下面是来自 UML 2.5 规范的示例:

You specify which Classes are accessed or updated using Pins on an Action or using an ActivityParameterNode on an Activity. Those Pins look like little squares on the periphery of the Action, or rectangles on the diagram frame of an Activity, and you connect OutputPins to InputPins using ObjectFlows (which unfortunately look just like the ControlFlows that connect Actions together). Here's an example from the UML 2.5 spec:

现在,回答我认为您真正要问的问题.我想您想知道如何导航到模型中 Classes 的实例.要从 Activity 执行此操作,您可以使用 ReadStructuralFeatureAction 从拥有 ActivityClass 实例读取属性你正在指定.值从 OutputPin 流出.使用 ReadStructuralFeatureActions,您可以导航到您的实例允许的任何位置.(请注意,当 PropertyAssociation 而不是 Class 所有时,您使用 ReadLink*Actions 之一code> Action 的特化.)

Now, to answer what I think you are really asking. I think you want to know how to navigate to instances of Classes in your model. To do that from an Activity, you use a ReadStructuralFeatureAction to read properties from the Class instance that owns the Activity you're specifying. The values flow out of an OutputPin. Using ReadStructuralFeatureActions you can navigate anywhere your instances allow. (Note that when a Property is owned by an Association rather than a Class, you use one of the ReadLink*Actions specializations of Action.)

请参阅 Conrad Bock 优秀系列的第 4 部分,UML 2 活动和动作模型,第 4 部分:对象节点以便更好地理解.

Please see Part 4 of Conrad Bock's excellent series, UML 2 Activity and Action Models, Part 4: Object Nodes for a better understanding.

这篇关于将活动图链接到要访问的实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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