+
来自「关于面向构件的软件体系的文档资料 从思想开始更新开发模式」· 代码 · 共 1,459 行 · 第 1/5 页
TXT
1,459 行
element:
field-separator'></span></span><![endif]--><span lang=3DEN-US style=3D'colo=
r:#3366FF'><!--[if gte vml 1]><v:group
id=3D"_x0000_s1026" editas=3D"canvas" style=3D'width:273.75pt;height:232.5=
pt;
mso-position-horizontal-relative:char;mso-position-vertical-relative:line'
coordorigin=3D"2825,9425" coordsize=3D"4761,4050">
<o:lock v:ext=3D"edit" aspectratio=3D"t"/>
<v:shapetype id=3D"_x0000_t75" coordsize=3D"21600,21600" o:spt=3D"75"
o:preferrelative=3D"t" path=3D"m@4@5l@4@11@9@11@9@5xe" filled=3D"f" strok=
ed=3D"f">
<v:stroke joinstyle=3D"miter"/>
<v:formulas>
<v:f eqn=3D"if lineDrawn pixelLineWidth 0"/>
<v:f eqn=3D"sum @0 1 0"/>
<v:f eqn=3D"sum 0 0 @1"/>
<v:f eqn=3D"prod @2 1 2"/>
<v:f eqn=3D"prod @3 21600 pixelWidth"/>
<v:f eqn=3D"prod @3 21600 pixelHeight"/>
<v:f eqn=3D"sum @0 0 1"/>
<v:f eqn=3D"prod @6 1 2"/>
<v:f eqn=3D"prod @7 21600 pixelWidth"/>
<v:f eqn=3D"sum @8 21600 0"/>
<v:f eqn=3D"prod @7 21600 pixelHeight"/>
<v:f eqn=3D"sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok=3D"f" gradientshapeok=3D"t" o:connecttype=3D"rect"/>
<o:lock v:ext=3D"edit" aspectratio=3D"t"/>
</v:shapetype><v:shape id=3D"_x0000_s1027" type=3D"#_x0000_t75" style=3D'p=
osition:absolute;
left:2825;top:9425;width:4761;height:4050' o:preferrelative=3D"f">
<v:fill o:detectmouseclick=3D"t"/>
<v:path o:extrusionok=3D"t" o:connecttype=3D"none"/>
<o:lock v:ext=3D"edit" text=3D"t"/>
</v:shape><v:rect id=3D"_x0000_s1028" style=3D'position:absolute;left:2825=
;top:9917;
width:3255;height:3558;v-text-anchor:middle' fillcolor=3D"#ccecff">
<v:shadow on=3D"t"/>
</v:rect><v:shapetype id=3D"_x0000_t202" coordsize=3D"21600,21600" o:spt=
=3D"202"
path=3D"m,l,21600r21600,l21600,xe">
<v:stroke joinstyle=3D"miter"/>
<v:path gradientshapeok=3D"t" o:connecttype=3D"rect"/>
</v:shapetype><v:shape id=3D"_x0000_s1029" type=3D"#_x0000_t202" style=3D'=
position:absolute;
left:3416;top:10104;width:2070;height:704' fillcolor=3D"#ccecff" stroked=
=3D"f">
<v:textbox style=3D'mso-next-textbox:#_x0000_s1029'>
<![if !mso]>
<table cellpadding=3D0 cellspacing=3D0 width=3D"100%">
<tr>
<td><![endif]>
<div>
<p class=3DMsoNormal align=3Dcenter style=3D'text-align:center;mso-lay=
out-grid-align:
none;text-autospace:none'><b><span style=3D'font-size:15.0pt;font-fami=
ly:
SimSun;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bid=
i-font-family:
SimSun;color:black;mso-ansi-language:ZH-CN'>构件</span></b=
><b><span
style=3D'font-size:15.0pt;font-family:Arial;mso-bidi-font-family:SimSu=
n;
color:black;mso-ansi-language:ZH-CN'><o:p></o:p></span></b></p>
</div>
<![if !mso]></td>
</tr>
</table>
<![endif]></v:textbox>
</v:shape><v:line id=3D"_x0000_s1030" style=3D'position:absolute' from=3D"=
5586,11293"
to=3D"7463,11293" filled=3D"t" fillcolor=3D"#ccecff" strokeweight=3D"3pt">
<v:stroke endarrow=3D"classic"/>
</v:line><v:line id=3D"_x0000_s1031" style=3D'position:absolute' from=3D"5=
589,11785"
to=3D"7463,11788" filled=3D"t" fillcolor=3D"#ccecff" strokeweight=3D"3pt">
<v:stroke endarrow=3D"classic"/>
</v:line><v:line id=3D"_x0000_s1032" style=3D'position:absolute' from=3D"5=
589,12280"
to=3D"7463,12282" filled=3D"t" fillcolor=3D"#ccecff" strokeweight=3D"3pt">
<v:stroke endarrow=3D"classic"/>
</v:line><v:shape id=3D"_x0000_s1033" type=3D"#_x0000_t202" style=3D'posit=
ion:absolute;
left:6082;top:10610;width:1126;height:503;v-text-anchor:top-baseline'
fillcolor=3D"#ccecff" stroked=3D"f">
<v:textbox style=3D'mso-next-textbox:#_x0000_s1033'>
<![if !mso]>
<table cellpadding=3D0 cellspacing=3D0 width=3D"100%">
<tr>
<td><![endif]>
<div>
<p class=3DMsoNormal style=3D'mso-layout-grid-align:none;text-autospac=
e:none'><span
style=3D'font-size:12.0pt;font-family:SimSun;mso-ascii-font-family:Ari=
al;
mso-hansi-font-family:Arial;mso-bidi-font-family:SimSun;color:black;
mso-ansi-language:ZH-CN'>构件接口</span><span
style=3D'font-size:12.0pt;font-family:Arial;mso-bidi-font-family:SimSu=
n;
color:black;mso-ansi-language:ZH-CN'><o:p></o:p></span></p>
</div>
<![if !mso]></td>
</tr>
</table>
<![endif]></v:textbox>
</v:shape><v:rect id=3D"_x0000_s1034" style=3D'position:absolute;left:2825=
;top:9425;
width:2465;height:495;v-text-anchor:middle' fillcolor=3D"#ccecff">
<v:textbox style=3D'mso-next-textbox:#_x0000_s1034'>
<![if !mso]>
<table cellpadding=3D0 cellspacing=3D0 width=3D"100%">
<tr>
<td><![endif]>
<div>
<p class=3DMsoNormal align=3Dcenter style=3D'text-align:center;mso-lay=
out-grid-align:
none;text-autospace:none'><span style=3D'font-size:12.0pt;font-family:=
SimSun;
mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-=
family:
SimSun;color:black;mso-ansi-language:ZH-CN'>构件规&#=
26684;</span><span
style=3D'font-size:12.0pt;font-family:Arial;mso-bidi-font-family:SimSu=
n;
color:black;mso-ansi-language:ZH-CN'><o:p></o:p></span></p>
</div>
<![if !mso]></td>
</tr>
</table>
<![endif]></v:textbox>
</v:rect><v:line id=3D"_x0000_s1035" style=3D'position:absolute' from=3D"3=
516,11104"
to=3D"5390,11104" filled=3D"t" fillcolor=3D"#ccecff" strokecolor=3D"white"
strokeweight=3D"2.25pt"/>
<v:line id=3D"_x0000_s1036" style=3D'position:absolute' from=3D"3516,11400=
" to=3D"5390,11400"
filled=3D"t" fillcolor=3D"#ccecff" strokecolor=3D"white" strokeweight=3D"=
2.25pt"/>
<v:line id=3D"_x0000_s1037" style=3D'position:absolute' from=3D"3516,11696=
" to=3D"5390,11696"
filled=3D"t" fillcolor=3D"#ccecff" strokecolor=3D"white" strokeweight=3D"=
2.25pt"/>
<v:line id=3D"_x0000_s1038" style=3D'position:absolute' from=3D"3515,11993=
" to=3D"5389,11993"
filled=3D"t" fillcolor=3D"#ccecff" strokecolor=3D"white" strokeweight=3D"=
2.25pt"/>
<v:line id=3D"_x0000_s1039" style=3D'position:absolute' from=3D"3516,12290=
" to=3D"5390,12290"
filled=3D"t" fillcolor=3D"#ccecff" strokecolor=3D"white" strokeweight=3D"=
2.25pt"/>
<v:line id=3D"_x0000_s1040" style=3D'position:absolute' from=3D"3516,12587=
" to=3D"5390,12587"
filled=3D"t" fillcolor=3D"#ccecff" strokecolor=3D"white" strokeweight=3D"=
2.25pt"/>
<w:wrap type=3D"none"/>
<w:anchorlock/>
</v:group><![endif]--><![if !vml]><img width=3D368 height=3D316
src=3D"file9595.files/image001.gif" v:shapes=3D"_x0000_s1026 _x0000_s1027 _=
x0000_s1028 _x0000_s1029 _x0000_s1030 _x0000_s1031 _x0000_s1032 _x0000_s103=
3 _x0000_s1034 _x0000_s1035 _x0000_s1036 _x0000_s1037 _x0000_s1038 _x0000_s=
1039 _x0000_s1040"><![endif]></span><!--[if mso & !supportInlineShapes & su=
pportFields]><span
lang=3DEN-US style=3D'color:#3366FF'><v:shape id=3D"_x0000_i1025" type=3D"#=
_x0000_t75"
style=3D'width:273.75pt;height:232.5pt'>
<v:imagedata croptop=3D"-65520f" cropbottom=3D"65520f"/>
</v:shape><span style=3D'mso-element:field-end'></span></span><![endif]--><=
span
lang=3DEN-US style=3D'color:#3366FF'><o:p></o:p></span></p>
<p class=3DMsoBodyTextFirstIndent align=3Dcenter style=3D'text-align:center;
mso-char-indent-count:2.0;line-height:150%'><span style=3D'mso-bidi-font-si=
ze:
10.5pt;line-height:150%;font-family:SimSun;mso-ascii-font-family:"Times New=
Roman";
mso-hansi-font-family:"Times New Roman";color:#333333'>图</span><span
lang=3DEN-US style=3D'mso-bidi-font-size:10.5pt;line-height:150%;color:#333=
333'>3.1
</span><span style=3D'mso-bidi-font-size:10.5pt;line-height:150%;font-famil=
y:
SimSun;mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times=
New Roman";
color:#333333'>构件定义</span><span lang=3DEN-US
style=3D'mso-bidi-font-size:10.5pt;line-height:150%;color:#333333'><o:p></o=
:p></span></p>
<p class=3DMsoBodyTextFirstIndent style=3D'mso-char-indent-count:2.0;line-h=
eight:
150%'><span style=3D'mso-bidi-font-size:10.5pt;line-height:150%;font-family=
:SimSun;
mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Ro=
man";
color:#333333'>构件自身包括了=
500;件接口和构件规格两=
;部分,下边我们分开&#=
20171;绍构件接口与构件Š=
68;格。</span><span
lang=3DEN-US style=3D'mso-bidi-font-size:10.5pt;line-height:150%;color:#333=
333'><o:p></o:p></span></p>
<p class=3DMMTopic4><span style=3D'font-family:SimHei;mso-ascii-font-family=
:Arial'>构件接口</span></p>
<p class=3DMsoBodyTextFirstIndent style=3D'mso-char-indent-count:2.0;line-h=
eight:
150%'><span style=3D'mso-bidi-font-size:10.5pt;line-height:150%;font-family=
:SimSun;
mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Ro=
man";
color:#333333'>构件要求必须有=
968;个关于它所提供的服=
;务的抽象描述,以作&#=
20026;服务的客户方和提Ë=
79;方之间的契约。这个=
就是构件接口,构件=
5509;口也是构件复用的࣌=
2;础。接口和基于接口&=
#30340;设计提供了以面向=
500;件的方法来实现软件=
;解决方案所需的技术&#=
12290;</span><span
lang=3DEN-US style=3D'mso-bidi-font-size:10.5pt;line-height:150%;color:#333=
333'><o:p></o:p></span></p>
<p class=3DMsoBodyTextFirstIndent style=3D'mso-char-indent-count:2.0;line-h=
eight:
150%'><span style=3D'mso-bidi-font-size:10.5pt;line-height:150%;font-family=
:SimSun;
mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Ro=
man";
color:#333333'>构件接口(</span><span lang=3D=
EN-US
style=3D'mso-bidi-font-size:10.5pt;line-height:150%;color:#333333'>Component
Interface</span><span style=3D'mso-bidi-font-size:10.5pt;line-height:150%;
font-family:SimSun;mso-ascii-font-family:"Times New Roman";mso-hansi-font-f=
amily:
"Times New Roman";color:#333333'>)的完整定&#=
20041;如下:</span><span
lang=3DEN-US style=3D'mso-bidi-font-size:10.5pt;line-height:150%;color:#333=
333'><o:p></o:p></span></p>
<p class=3DMsoBodyTextFirstIndent style=3D'mso-char-indent-count:2.0;line-h=
eight:
150%'><span style=3D'mso-bidi-font-size:10.5pt;line-height:150%;font-family=
:SimSun;
mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Ro=
man";
color:#333333'>构件接口是一种=
865;约(</span><span
lang=3DEN-US style=3D'mso-bidi-font-size:10.5pt;line-height:150%;color:#333=
333'>Contract</span><span
style=3D'mso-bidi-font-size:10.5pt;line-height:150%;font-family:SimSun;
mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Ro=
man";
color:#333333'>),是数据(</span><span
lang=3DEN-US style=3D'mso-bidi-font-size:10.5pt;line-height:150%;color:#333=
333'>Data</span><span
style=3D'mso-bidi-font-size:10.5pt;line-height:150%;font-family:SimSun;
mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Ro=
man";
color:#333333'>)和操作(</span><span lang=3D=
EN-US
style=3D'mso-bidi-font-size:10.5pt;line-height:150%;color:#333333'>Operatio=
n</span><span
style=3D'mso-bidi-font-size:10.5pt;line-height:150%;font-family:SimSun;
mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Ro=
man";
color:#333333'>)的集合;构件=
509;口可以包含零到多个=
;数据、以及零到多个&#=
25805;作;包含零个数据Ø=
44;零个操作的构件接口=
称为“空构件接口(</sp=
an><span
lang=3DEN-US style=3D'mso-bidi-font-size:10.5pt;line-height:150%;color:#333=
333'>Empty
Component Interface</span><span style=3D'mso-bidi-font-size:10.5pt;line-hei=
ght:
150%;font-family:SimSun;mso-ascii-font-family:"Times New Roman";mso-hansi-f=
ont-family:
"Times New Roman";color:#333333'>)”。</span><span
lang=3DEN-US style=3D'mso-bidi-font-size:10.5pt;line-height:150%;color:#333=
333'><o:p></o:p></span></p>
<p class=3DMsoBodyTextFirstIndent style=3D'mso-char-indent-count:2.0;line-h=
eight:
150%'><span style=3D'mso-bidi-font-size:10.5pt;line-height:150%;font-family=
:SimSun;
mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Ro=
man";
color:#333333'>将构件接口(</span><span
lang=3DEN-US style=3D'mso-bidi-font-size:10.5pt;line-height:150%;color:#333=
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?