uml建模工具中bouml的使用(整理版,中英文对照)

As you can see, a package may contain other packages and some views : use case view, class view, component view and deployment view.

你将看到,一个包(package)可能包含其他包和一些视图: 用例视图(use case view),类视图(class view),构件视图(component view)和部署视图(deployment view) 。

View, Use case视图(View,) 用例(Use case)

Bouml uses views in a project to organize and structure the model elements and diagrams. The different types of views provide different context menus listing the diagrams and model elements that can be created in it.

Bouml在一个bouml工程中使用视图来组织和结构化模型元素和图。不同类型视图依据上下文提供不同的菜单,以列出在其中可以创建图和模型元素。

To define use cases we need to have a use case view, so we choose new use case view : 若要定义用例,我们需要有一个用例视图(use case view) ,所以我们选择新的用例视图 (new use case view):

Bouml asks for the name of the view, to change it later the use case view must be edited through a double mouse click, or choosing edit in the menu appearing on a right mouse click, showing the use case editor :

Bouml要求提供的视图名。在以后要想修改它,必须鼠标双击用例视图 (new use case view)

,或点鼠标右键出现菜单,从菜单中选择edit,则显示了用例编辑器。

Diagram图

- 5 -

To create a use case diagram in this view, do a right click on the use case view and choose new use case diagram :

要在此视图创建用例图(use case diagram) ,在用例视图上右击鼠标,弹出菜单,并选择新的用例图(new use case diagram) :

The name is also asked, to change it the use case diagram must be edited choosing edit in the menu appearing on a right mouse click. Contrary to the non diagram items, a double click on a diagram show it :

同样还要输入用例图的名字。要修改用例图,在用例图上右击鼠标键,显示一菜单[此菜单为元素的关联菜单,以后简称关联菜单],从菜单中选择edit。相对于非图项,在图上双击显示。

- 6 -

Add elements in a diagram在图中添加元素

To create and place a use case in the use case diagram you have two ways : 在用例图中创建并放置用例你有两种方法可选 :

to do a right click on the use case view and to choose new use case, then to drag it from the browser to the diagram,

? 在用例视图右击鼠标,在菜单中选择新的用例(new use case) ,然后从浏览器拖放到图中。

or to hit the ellipsis button in the top of the diagram sub-windows, then to hit somewhere in the diagram sub-window.

? 或点击图子窗口顶上的用例功能(椭圆)按钮,然后在图中某个点点击鼠标即可。 Note that the use case is created in the view containing the diagram, this will be the same thing in the others case whatever the diagram except for the states machine.

请注意, 用例是包含用例图的视图中创建的,除状态机(states machine.)外,不论何种图皆与此类似。

Let's Withdraw the name of the use case. 我们将用例的名字取为 Withdraw。 To move the use case in the diagram, do a left click on it and move the mouse click down, the name follow the use case but the name may be moved independently, for instance to place it in the middle of the ellipsis. You may also select the use case and to use the arrows of the keyboard. 要移动图中的use case ,在use case上按鼠标左键,保持按下状态移动鼠标,用例名跟着用例移动 ,但用例名也可以独立移动。例如,将用例名放置在椭圆的中间。您也可以选中用例后使用键盘上的箭头移动。

Create an actor named Customer like you create the use case, to have : 创建一个名为Customer的角色如同你创建用例一样,结果如下:

- 7 -

Note that an actor is in fact a class, when the stereotype is actor the icon shown in the browser is an actor, else a class. To change the stereotype edit the class (double mouse click on the class, or choosing edit in the menu appearing on a right mouse click on the class), choose among the predefined list of stereotypes or enter a new one, read the reference manual to change the predefined list of stereotypes.

请注意,一个角色(actor)其实是一个类 ,当板型是角色时,在浏览器中显示的图标是一个角色,否则是一个类。要改变板型,编辑类(在类上双击鼠标,或在类上点击鼠标右键出现的菜单,选择edit),从预定义列表中选择板型或输入一个新的板型。关于修改预定义的板型列表,请阅读参考手册。

The use case picture may be resized moving the points appearing when you click on the use case. The actor can't be resized.

用例可以改变大小:点击用例,移动的出现点即可。然而角色不能调整大小

You have to ways to draw the association : a simple line as UML recommendation, or an arrow. Hit on the desired icon, left click on the actor, move the mouse click down up to the use case and release the click :

你有多种方法画出关联关系:UML的推荐(一条简单线条或有箭头),点击所需图标按钮,在角色上点击(不松开),移动鼠标到用例上,松开鼠标。

The lines may be broken during the initial construction if you release the click out of any item, or after the construction with a left mouse click on the line and moving the mouse click down.

在最初的构建线条时,如果你在元素之外松开鼠标左键,线条变成折线。或在线条构建完成之后,在线上点击鼠标左键,拖动原线条亦变为折线。

To remove a point in a line, double left click on it, or right click to show the menu and choose

- 8 -

联系客服:779662525#qq.com(#替换为@)