📄 2requirements.html
字号:
<tr bgcolor="#cccccc">
<td bgcolor="#cccccc">
<table border="0" cellpadding="5" cellspacing="2">
<tr>
<td valign="top" bgcolor="white">点击用例按纽(<img height="10" width="15" src="images/icons/usecaseoval.gif" hspace="1" alt="Use case oval">)
然后点击模型图,
这样将创建新的用例.
使用内嵌编辑器输入描述文本.
<p></p>
</td>
<td valign="top" bgcolor="white"><img height="49" width="190" src="images/airline/makeusecase.gif" hspace="5" alt="Make new use case"></td>
</tr>
</table>
</td>
</tr>
</table>
<p>你可以创建一个用例,
然后将它拖动到系统边界内.
或者你可以直接再系统边界内创建用例.
你随时可以用鼠标拖动一个模型元素来改变它的位置.
移动系统边界时其中的用例也会随之移动.</p>
<p></p>
<hr>
<P class="head3"><a name="connect"></a>连接模型元素</P>
<p>通信(communication)表示角色与用例的连接.
它表示角色参与了用例的活动.
我们的模型图中 <b>Agent</b>
将参与三个用例. <b>Passenger</b>
将参与两个用例, <b>Finance Officer</b>
只参与一个用例.</p>
<table border="0" cellpadding="0" cellspacing="2" bgcolor="#993300" width="100%">
<tr>
<td bgcolor="#993300">
<table border="0" cellpadding="0" cellspacing="2" bgcolor="#ffffcc" width="100%">
<tr>
<td bgcolor="#ffffcc"><b>操作步骤</b><b>:
</b>创建通信连接:
<ol>
<li>从 <b>Passenger</b> 到 <b>Make a Reservation</b>
<li>从 <b>Passenger</b> 到 <b>Buy a Ticket</b>
<li>从 <b>Agent</b> 到 <b>Make a Reservation</b>
<li>从 <b>Agent</b> 到 <b>Buy a Ticket</b>
<li>从 <b>Agent</b> 到 <b>Check Availability</b>
<li>从 <b>FinanceOfficer</b> 到 <b>Find Ticket Revenue</b>
</ol>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>你可以用同样的方法创建任何连接元素(通信(communication),
依赖(dependency), 关联(association),
等等). 首先在 Designer
工具条中点击通信按纽(<img height="12" width="12" src="images/icons/communicatesicon.gif" hspace="1" alt="Communicate icon" align="top">).</p>
<table border="0" cellpadding="0" cellspacing="1" bgcolor="#cccccc">
<tr bgcolor="#cccccc">
<td bgcolor="#cccccc">
<table border="0" cellpadding="5" cellspacing="2">
<tr>
<td valign="top" bgcolor="white">当你将光标移动到正确的源元素上,
它的周围将显示一个光环.<p>点击源元素选中它,
然后拖动到目标元素.</p>
</td>
<td valign="top" bgcolor="white">当鼠标移动到正确的目标元素上,
它的周围也会显示光环.<p>释放鼠标按纽,
这样将选择目标元素并创建一个连接.</p>
</td>
</tr>
<tr>
<td valign="top" bgcolor="white"><img src="images/airline/sourcecom.png" width="306" height="99" border="0" alt="Communication link source" hspace="5"></td>
<td valign="top" bgcolor="white"><img src="images/airline/targetcom.png" width="304" height="99" border="0" alt="Communication link target" hspace="5"></td>
</tr>
</table>
</td>
</tr>
</table>
<p>角色可以是通信连接的源或者目标(但不能同时是源和目标!).
你可以从用例连接到角色,
或者相反.
连接的开始处称为 "client."
结束处称为 "supplier."</p>
<table border="0" cellpadding="0" cellspacing="2" bgcolor="#993300" width="100%">
<tr>
<td bgcolor="#993300">
<table border="0" cellpadding="0" cellspacing="2" bgcolor="#ffffcc" width="100%">
<tr>
<td bgcolor="#ffffcc"><b>操作步骤: </b>连接用例:
<ol>
<li><b>Buy a Ticket</b> 扩展 <b>Make a Reservation</b>.
<li><b>Make a Reservation</b>
包含 <b>Check Availability</b>
</ol>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p> Designer 面板工具条包括<b>扩展</b>按纽(<img height="16" width="16" src="images/icons/usecaseextendsicon.gif" hspace="1" alt="Extends icon" align="top">)
和<b>包含</b>按纽(<img height="15" width="16" src="images/icons/usecaseincludeicon.gif" hspace="1" alt="Includes button" align="top">).
这两种连接的源元素和目标元素的选择是非常重要的.
例如,
当你使用扩展连接时,
请确定 <b>Buy a Ticket</b>
是源元素, <b>Make a Reservation</b>
是目标元素.</p>
<table border="0" cellpadding="0" cellspacing="2" bgcolor="#993300" width="100%">
<tr>
<td bgcolor="#993300">
<table border="0" cellpadding="0" cellspacing="2" bgcolor="#ffffcc" width="100%">
<tr>
<td bgcolor="#ffffcc"><b>操作步骤:
</b>确定所有的用例都在系统边界内.
如果需要的话,
拖动用例并调整系统边界的大小.</td>
</tr>
</table>
</td>
</tr>
</table>
<p></p>
<table border="0" cellpadding="0" cellspacing="1" bgcolor="#cccccc">
<tr bgcolor="#cccccc">
<td bgcolor="#cccccc">
<table border="0" cellpadding="5" cellspacing="2">
<tr>
<td valign="top" bgcolor="white">
<p>右图是我们的模型图.
你可能需要将你的模型元素重新排列一下以便与我们的图看起来一样.
你可以单独的拖动每个元素,
或者你也可以套住多个元素同时拖动它们.</p>
<p>用例图在 <default>
模型图中的快捷方式类似下图所示.
(双击快捷方式将焦点到对应的模型图.)</p>
<p><img src="images/airline/usecaseshortcut.png" width="161" height="116" border="0"></p>
</td>
<td valign="top" bgcolor="white"><img src="images/airline/usecasediagramcomplete.png" width="570" height="269" border="0" alt="Use case diagram" hspace="10" vspace="10"></td>
</tr>
</table>
</td>
</tr>
</table>
<p></p>
<hr>
<P class="head3"><a name="remove"></a>删除模型元素</P>
<p></p>
<table border="0" cellpadding="0" cellspacing="2" bgcolor="#993300" width="100%">
<tr>
<td bgcolor="#993300">
<table border="0" cellpadding="0" cellspacing="2" bgcolor="#ffffcc" width="100%">
<tr>
<td bgcolor="#ffffcc"><b>操作步骤</b><b>:</b>
按照以下步骤弄乱你的用例图:
<ol>
<li>创建一个新的用例(名称任意).
<li>在新建用例和
<b>Agent</b> 之间创建通信连接.
<li>创建从 <b>Check Availability</b>
到新建用例的扩展连接.
</ol>
<p>然后删除新建用例,
观察 Together
如何重新排列模型元素.</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>你的模型图可能有些混乱了,
你需要将它恢复到原先的状态.</p>
<p>Together
主工具条上的撤消按纽(<img height="14" width="12" src="images/icons/undobutton.gif" hspace="1" alt="Undo button" align="top">)可用来防止误操作.
但是如果需要撤消的步骤太多,
撤消按纽可能不是最佳选择.</p>
<table border="0" cellpadding="0" cellspacing="2" bgcolor="#993300" width="100%">
<tr>
<td bgcolor="#993300">
<table border="0" cellpadding="0" cellspacing="2" bgcolor="#ffffcc" width="100%">
<tr>
<td bgcolor="#ffffcc"><b>操作:</b>
删除新建用例.</td>
</tr>
</table>
</td>
</tr>
</table>
<p>在模型图中选中新建用例并按
<Delete> 键将删除它. (或者从元素的右键菜单选择
Delete.) 你这样做之后,
这个坏的用例将连同它的所有连接一起消失.
你不需要逐个地删除它的连接.</p>
<hr>
<P class ="head3"><a name="tip"></a>技巧</P>
<ul>
<li>有三种简单的方法来重命名角色,
用例, 或系统边界.
<ul>
<li>双击模型元素显示它的内嵌编辑器.
<li>使用元素右键菜单中的
Rename 项. <li>在元素属性编辑器的 Properties
页中修改名称.
</ul>
<li>要在模型图中修改用例,
角色,
或系统边界的大小,
可以选中它,
然后拖动它的一个角即可.
要改变其形状,
拖动它的上下边或侧边即可.
<li>如果你执行了误操作,
可以使用撤消按纽. Ctrl+Z
是<b>撤消</b>的快捷键. Ctrl+Y
是<b>重做</b>的快捷键. (<b>misc.config</b>
文件将缺省的撤消操作缓冲区大小设置为 4096 KB.
你可以编辑这个文件来修改该设置.)
</ul>
<center>
<p></p>
<hr>
<img height="19" width="298" src="images/generic/nvbuttons.gif" vspace="10" alt="Navigation bar" usemap="#nvbuttonsb601029d" border="0"><map name="nvbuttonsb601029d"><area href="#top" coords="101,2,146,17" shape="rect"><area href="1startingprojects.html" coords="0,2,96,16" shape="rect"><area href="3activitydiagrams.html" coords="152,1,208,17" shape="rect"><area href="index.html" coords="216,1,295,17" shape="rect"></map>
<hr>
<div align="left">
<p class="footnote">Copyright © 2002 TogetherSoft Corporation. All rights reserved.</p>
</div>
</center>
<div align="left">
<p class="footnote"><font color="#666666">Last Revised: <csobj w="88" h="12" t="DateTime" format="MedDate" region="0">Fri, Mar 8, 2002</csobj></font></p>
</div>
<p class="footnote"><span style="font-size: 9pt"><a href="mailto:%20e.w@263.net">翻译: 李颖(e.w@263.net)</a></span></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -