What is the semantics of UML's ReadVariableAction in BoUML?

十年热恋 提交于 2020-04-30 05:10:27

问题


ReadVariableAction activity action in BoUML allows to choose a class and its attribute and returns the attribute through creation of output pin (see figure below and BoUML documentation):

But what is the semantic of that action? What does ReadVariableAction operation actually return?

According to clause 16.9.3.1 Variable Action of The Unified Modeling Language Specification Version 2.5:

A VariableAction operates on a statically-specified Variable. The Variable must be one that is defined either by an Activity (see sub clause 15.2) or a StructuredActivityNode (see sub clause 16.11) containing the VariableAction.

Clause 15.2.2 Abstract Syntax below says that Variable subsets ownedMember, so the variable should be identifiable by name.

But BoUML neither allows creation of variables for an activity nor passing a name of a variable to ReadVariableAction.


回答1:


The semantic of the read/write/clear/add/remove variable actions in BoUML is ... wrong !

Clearly I misunderstood that part when I added the activities in BoUML, I didn't read well the norm to understood that concerns variable of the activity or a structured activity node. So by error the 'variable' I allow to choose is an attribute of a class. An other consequence is you cannot define variables for an activity nor structured activity node.

Mea culpa



来源:https://stackoverflow.com/questions/61403771/what-is-the-semantics-of-umls-readvariableaction-in-bouml

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!