⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 5associations.html

📁 together是不比Rose差的设计工具,甚至在生成java类方面效果更好,该教材是together6.1的一份实例教程,不错!
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<html>

	<head>
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
		<title>Together Tutorial -- Part 5</title>
		
		<link href="tutor.css" rel="styleSheet" type="text/css">
	</head>

	<body bgcolor="white" link="#003399" alink="#999999" vlink="#000066">
			<p class="head2" align="left"><span style="font-size: 9pt"><a href="mailto:%20e.w@263.net">&#32763;&#35793;: &#26446;&#39062;(e.w@263.net)</a></span></p>
		<center>
			<p class="head2"><a name="top"></a>Together &#25945;&#31243;<br>
 5: &#31867;&#19982;&#20851;&#32852;</p>
		</center>
        <p>&#22312;&#21069;&#38754;&#30340;&#35838;&#31243;&#20013;,
        &#20320;&#24050;&#32463;&#21019;&#24314;&#20102;&#19968;&#20123;&#31867;.
        &#20294;&#36825;&#21482;&#26159;&#19968;&#20010;&#27809;&#26377;&#20851;&#32852;&#30340;&#31616;&#21333;&#30340;&#31867;&#22270;.
        &#22312;&#36825;&#19968;&#35838;&#20013;,
        &#20320;&#23558;&#21019;&#24314;&#36830;&#25509;&#36825;&#20116;&#20010;&#31867;&#30340;&#20851;&#32852;&#26469;&#24357;&#34917;&#36825;&#19968;&#32570;&#38519;. You will label some of the associations and put on multiplicities.</p>
        <p>&#22312;&#36825;&#19968;&#35838;&#30340;&#32467;&#23614;,
        &#20320;&#23558;&#21019;&#24314;&#19968;&#20010;&#25509;&#21475;&#21644;&#20004;&#20010;&#23376;&#31867;.
        &#32780;&#19988;&#20320;&#23558;&#36890;&#36807;<b>&#19968;&#33324;&#21270;&#36830;&#25509;</b>&#21644;<b>&#23454;&#29616;&#36830;&#25509;</b>&#25226;&#23427;&#20204;&#21644;&#26377;&#30340;&#31867;&#36830;&#25509;&#36215;&#26469;.</p>
        <p><b>&#30446;&#24405;:</b></p>
		<ul>
			<li><a class="onPage" href="#association">&#21019;&#24314;&#20851;&#32852;</a>
			<li><a class="onPage" href="#onesource">&#20462;&#25913;&#20851;&#32852;</a>
			<li><a class="onPage" href="#patterns">&#23558;&#36830;&#25509;&#20462;&#25913;&#20026;&#32858;&#21512;</a>
			<li><a class="onPage" href="#generalizations">&#26174;&#31034;&#32487;&#25215;&#20851;&#31995;</a>
			<li><a class="onPage" href="#interfaces">&#21019;&#24314;&#24182;&#23454;&#29616;&#25509;&#21475;</a>
			<li><a class="onPage" href="#note">&#22312;&#27169;&#22411;&#22270;&#20013;&#22686;&#21152;&#20415;&#31614;</a>
			<li><a class="onPage" href="#tip">&#25216;&#24039;</a>
		</ul>
		<p></p>
		<p><img src="images/generic/rainbow2.gif" width="900" height="2" border="0"></p>
		<p class="head3"><a name="association"></a>&#21019;&#24314;&#20851;&#32852;</p>
        <p>&#20320;&#23558;&#22312; <b>AirlinePD</b> 
        &#21253;&#20013;&#24037;&#20316;. &#35831;&#22312; Designer
        &#38754;&#26495;&#20013;&#25171;&#24320;&#23427;&#30340;&#27169;&#22411;&#22270;.</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>&#25805;&#20316;&#27493;&#39588;:</b> 
                              &#21019;&#24314;&#20174; <b>Flight</b> &#21040; <b>FlightDescription</b>
                              &#30340;&#20851;&#32852;.</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<p></p>
		<table border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
			<tr>
				<td bgcolor="#CCCCCC">
					<table border="0" cellpadding="5" cellspacing="2">
						<tr>
							<td valign="top" bgcolor="white">&#39318;&#20808;&#28857;&#20987;&#22402;&#30452;&#24037;&#20855;&#26465;&#20013;&#30340;&#20851;&#32852;&#25353;&#32445;<nobr>(</nobr><nobr><img height="12" width="12" src="images/icons/associationicon.gif" alt="Association icon" hspace="1"></nobr><nobr>)</nobr>.
                              &#20851;&#32852;&#19982;&#20854;&#20182;&#27169;&#22411;&#22270;&#20013;&#30340;&#36830;&#25509;&#20803;&#32032;&#30340;&#24037;&#20316;&#26041;&#24335;&#19968;&#26679;.
                              &#24403;&#20320;&#23558;&#20809;&#26631;&#31227;&#21160;&#21040;&#26377;&#25928;&#30340;
                              client(&#24320;&#22987;&#28857;) &#21644; supplier(&#32467;&#26463;&#28857;)
                              &#26102;, Together
                              &#23558;&#22312;&#33410;&#28857;&#21608;&#22260;&#26174;&#31034;&#20809;&#22280;.<p>&#23558;&#20809;&#26631;&#20174; <b>Flight</b>
                              &#25302;&#21160;&#21040; <b>FlightDescription</b>,
                              &#28982;&#21518;&#37322;&#25918;&#40736;&#26631;. Designer
                              &#38754;&#26495;&#23558;&#26032;&#24314;&#30340;&#20851;&#32852;&#26174;&#31034;&#20026;&#34013;&#33394;&#32447;&#26465;.</p>
                              <p>&#21019;&#24314;&#20851;&#32852;&#21518;,
                              &#20320;&#23558;&#22312; Editor
                              &#20013;&#30475;&#21040; <b>Flight</b> 
                              &#31867;&#20013;&#20986;&#29616;&#20102;&#21517;&#20026; <b>lnkFlightDescription</b>
                              &#30340;&#26032;&#30340;&#25968;&#25454;&#25104;&#21592;. </p>
							</td>
							<td valign="top" bgcolor="white"><img src="images/airline/dragasso.png" width="386" height="180" border="0" alt="Dragging a link" hspace="5"></td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
        <p>&#27880;&#24847; <b>lnkFlightDescription</b> 
        &#27809;&#26377;&#20986;&#29616;&#22312; Designer
        &#38754;&#26495;&#30340; <b>Flight</b>   &#33410;&#28857;&#20869;&#37096;. Together
        &#23558;&#21517;&#31216;&#20197; &quot;<b>lnk</b>&quot;
        &#24320;&#22836;&#30340;&#29305;&#24615;&#35748;&#20026;&#26159; &quot;&#33258;&#21160;&quot;
        &#36830;&#25509;,
        &#32780;&#19988;&#23427;&#19981;&#23558;&#36825;&#26679;&#30340;&#29305;&#24615;&#26174;&#31034;&#22312;&#31867;&#33410;&#28857;&#20869;,
        &#38500;&#38750;&#20320;&#20462;&#25913;&#27169;&#22411;&#22270;&#35774;&#32622;.
        (&#22914;&#26524;&#20320;&#24076;&#26395;&#26032;&#24314;&#36830;&#25509;&#25104;&#21592;&#26174;&#31034;&#20026;&#19968;&#20010;&#29305;&#24615;,
        &#20320;&#21487;&#20197;&#23558;&#20854;&#21517;&#31216;&#20462;&#25913;&#20026;&#19981;&#20197;
        &quot;<b>lnk</b>&quot; &#24320;&#22836;.)</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>&#25805;&#20316;&#27493;&#39588;:</b> 
                              &#21019;&#24314;&#20004;&#20010;&#20851;&#32852;: 
								<ol>
									<li>&#20174; <b>Reservation</b> &#21040; <b>Ticket</b>
									<li>&#20174; <b>Agent</b> &#21040; <b>Flight</b>
								</ol>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<p>Together
        &#20801;&#35768;&#36873;&#25321;&#36830;&#25509;&#30340;&#26174;&#31034;&#26041;&#24335;: </p>
		<ul>
			<li>&#25240;&#32447;:
              &#36830;&#25509;&#32447;&#26174;&#31034;&#20026;&#19968;&#31995;&#21015;&#27700;&#24179;&#21644;&#22402;&#30452;&#32447;&#27573;. 			<li>&#30452;&#32447;:
              &#36830;&#25509;&#32447;&#26159;&#30452;&#32447;,
              &#20294;&#21487;&#33021;&#26159;&#20542;&#26012;&#30340;. (&#36830;&#25509;&#32447;&#20063;&#21487;&#20197;&#26159;&#20219;&#24847;&#20542;&#26012;&#24230;&#30340;&#19968;&#31995;&#21015;&#32447;&#27573;). 	</ul>
        <p>&#36830;&#25509;&#32447;&#26174;&#31034;&#26041;&#24335;&#22312;&#27169;&#22411;&#22270;&#35774;&#32622;&#20013;,
        &#21487;&#36890;&#36807;&#20027;&#33756;&#21333;&#20013;&#30340; <b>Tools | Options | Diagram Level</b> 
        &#21629;&#20196;&#35775;&#38382;.</p>
        <p>&#22823;&#22810;&#25968;&#36830;&#25509;&#20174;&#19968;&#20010;&#31867;&#21040;&#21478;&#19968;&#20010;&#31867;.
        &#20294;&#26377;&#26102;&#20505;&#21487;&#33021;&#36830;&#25509;&#21040;&#33258;&#36523;,
        &#24320;&#22987;&#28857;&#21644;&#32467;&#26463;&#28857;&#37117;&#22312;&#21516;&#19968;&#20010;&#31867;&#19978;.
        &#20320;&#21487;&#20197;&#22312;&#25105;&#20204;&#30340;&#27169;&#22411;&#22270;&#20013;&#25918;&#32622;&#19968;&#20010;&#33258;&#36830;&#25509;,
        &#20197;&#21306;&#21035;&#33322;&#29677;&#35745;&#21010;&#21644;&#23454;&#38469;&#30340;&#33322;&#29677;.</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>&#25805;&#20316;&#27493;&#39588;</b><b>:</b> 
                              &#23558;&#36830;&#25509;&#26174;&#31034;&#20026;&#30452;&#32447;,
                              &#28982;&#21518;&#22312; <b>Flight</b>
                              &#19978;&#30011;&#19968;&#20010;&#33258;&#36830;&#25509;.</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
        <p>&#19979;&#22270;&#26159;&#21040;&#30446;&#21069;&#20026;&#27490;&#27169;&#22411;&#22270;&#30340;&#26679;&#23376;.</p>
		<p><img src="images/airline/model.png" width="623" height="306" border="0" alt="Diagram pane" hspace="10" vspace="10"></p>
		<p></p>
		<hr>
        <p class="head3"><a name="onesource"></a>&#20462;&#25913;&#20851;&#32852;</p>
        <p>&#20851;&#32852;&#20063;&#26377;&#33258;&#24049;&#30340;&#21491;&#38190;&#33756;&#21333;&#21644;&#23646;&#24615;&#26597;&#30475;&#22120;.
        &#23545;&#36830;&#25509;&#36827;&#34892;&#30340;&#24456;&#22810;&#20462;&#25913;,
        &#37117;&#24517;&#39035;&#36890;&#36807;&#21491;&#38190;&#33756;&#21333;&#25110;&#23646;&#24615;&#26597;&#30475;&#22120;&#26469;&#23454;&#29616;.</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>&#25805;&#20316;&#27493;&#39588;</b><b>:</b> 
                              &#20026; <b>Flight</b> &#21040; <b>FlightDescription</b>
                              &#30340;&#20851;&#32852;&#35774;&#32622;&#21183;. 
								<ul>
									<li> client &#31471;(<b>Flight</b>)&#35774;&#32622;&#20026;
                                      <b>0..*</b>  
									<li> supplier &#31471;(<b>FlightDescription</b>)&#35774;&#32622;&#20026;
                                      <b>1</b>  
								</ul>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<p></p>
		<table border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
			<tr>
				<td bgcolor="#CCCCCC">
					<table border="0" cellpadding="5" cellspacing="2">
						<tr>
							<td valign="top" bgcolor="white">
                                <p>&#36830;&#25509;&#30340;&#21491;&#38190;&#33756;&#21333;&#30340;&#20869;&#23481;&#26681;&#25454;&#24403;&#21069;&#20809;&#26631;&#20301;&#32622;&#32780;&#21464;&#21270;.
                                &#35201;&#20462;&#25913;&#36830;&#25509;&#30340;&#21183;&#25110;&#32773;&#35282;&#33394;,
                                &#35831;&#22312;&#20854;&#26411;&#23614;&#22788;&#28857;&#20987;&#40736;&#26631;&#21491;&#38190;.</p>
                                <p>&#21491;&#38190;&#33756;&#21333;&#20013;&#26174;&#31034;&#20102;&#26368;&#24120;&#35265;&#30340;&#21183;.
                                &#22823;&#22810;&#25968;&#26102;&#20505;&#20320;&#21487;&#20197;&#30452;&#25509;&#36873;&#25321;,
                                &#32780;&#19981;&#38656;&#35201;&#22312;&#23646;&#24615;&#26597;&#30475;&#22120;&#36827;&#34892;&#20462;&#25913;.</p>
							</td>
							<td valign="top" bgcolor="white"><img src="images/airline/assocend.png" width="157" height="47" border="0" hspace="5" vspace="5"></td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<p></p>
		<table border="0" cellpadding="0" cellspacing="2" bgcolor="#993300" width="100%">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -