如何在UML类图中的方法中编写参数. [英] How to write aguments in the methods in UML class diagram.
本文介绍了如何在UML类图中的方法中编写参数.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在UML类属性的方法(操作)中写入参数.
现在就像这样,例如:SetExportProperties():void
我想像这样SetExportProperties(ExcelBlocks).如何实现呢?
属性设置中是否有任何选项?当我尝试更改时,我得到了结果
像这样:SetExportProperties(ExcelBlocks)():void !!!这个看起来不好,请
帮助我
Hi,
I want to write the arguments inside the methods(operations) in UML class property
right now it is like this eg : SetExportProperties(): void
I want to make it like this SetExportProperties(ExcelBlocks). how to achieve this?
is there any options in property settings? when I tried to change I got the result
like this eg:SetExportProperties(ExcelBlocks)() : void !!! this looks bad, please
help me
推荐答案
这取决于您用于生成这些UML图的工具.
查看工具文档或帮助文件-我确定您会得到答案.
It depends on the tool that you are using to generate these UML diagrams.
Check out the tools documentation or the help file - I''m sure you will get an answer.
打开类属性窗口,选择操作"选项卡,打开方法(属性"按钮或双击点击),选择参数标签,添加参数(来吧,YouTube上甚至还有一个视频).或者,如果您已经添加了参数但看不到它们,请右键单击您的类,选择形状显示选项",然后标记相应的复选框(无法正确记住哪一个,但没有很多:))
Open class properties window, select operations tab, open method ("Properties" button or double click), select parameters tab, add arguments (come on, there''s even a video of this on YouTube). Or, if you already have arguments added but cannot see them, right-click your class, select "Shape display options" and mark corresponding checkbox (cannot remember correctly which one, but there are not so many :) )
这篇关于如何在UML类图中的方法中编写参数.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文