`
shxiao
  • 浏览: 30511 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

whole-parts

阅读更多
整体-部分模式描述的是用一个整体来包装所属部分的模式。
   如何包装大致有3种类型
     1:assembly parts, 把部分集聚在一起,不对部分的类型有任何要求,
     但是部分是相对固定的,一个整体的所属部分不会发生改变的
      例如一个小车图形由相应的子件构成,其成分相对固定,各个组件关系紧密
     2:container-contents, 整体像容器那样包含部分,允许对部分进行添加,删除操作
      子件比集聚部分有松散的耦合。
      例如一个邮政包裹里面可以包含书,衣服等。这些都可以动态的变化
     3:collection-members集合成员类型。要求部分的类型一致,整体平等的对待每一个子件
      例如集合类型就是这样
 整体对外提供一致的接口,处理请求时会1:直接转发给相应的子件2:自己处理
 主要封装了对子件的直接访问了,组合子件会产生一个新的行为,
分享到:
评论

相关推荐

    GEF-whole-upload.pdf

    根据提供的文档内容,本文将详细解释“GEF-whole-upload.pdf”中提到的关键知识点,包括RCP项目的建立、在RCP中显示Editor以及GEF的基本结构。 ### GEF概述及应用 GEF(Graphical Editing Framework)是Eclipse...

    GEF-whole-upload

    根据给定的信息,本文将详细解释“GEF-whole-upload”这一主题,主要涉及GEF的基本结构及其在RCP项目中的应用。 ### GEF的基本结构理解 #### GEF简介 GEF (Graphical Editing Framework) 是Eclipse平台提供的一个...

    GEF最好的学习文档,入门必读(GEF-whole-upload.pdf)

    - `gef.tutorial.step.parts` 或 `gef.tutorial.step.editparts`:存放与控制器相关的类,例如EditPart。 - `gef.tutorial.step.ui`:存放与视图相关的类,如Editor实现。 #### 七、创建Editor插件 最后一步是创建...

    JavaScript: The Good Parts

    The Good Parts defines a subset of JavaScript that's more reliable, readable, and maintainable than the language as a whole. Author Douglas Crockford, a member of JavaScript 2.0 committee at ECMA, is...

    Universal-USB-Installer

    These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in ...

    XviD源代码

    The XviD package currently consists of three parts: - xvidcore: the main MPEG-4 de-/encoding library, and simple example programs - dshow: windows direct show decoder filter which links against ...

    boxcount.zip_Minkowski-Bouligand_The Cover_box-counting_boxcount

    an image) is called "fractal" if it displays self-similarity: it can be split into parts, each of which is (at least approximately) a reduced-size copy of the whole. A possible characterisation of a...

    The Mythical Man Month(人月神话)20周年英文文字版

    Chapter 13 The Whole and the Parts 141 Chapter 14 Hatching a Catastrophe , 153 Chapter 15 The Other Face 163 Chapter 16 No Silver Bullet—Essence and Accident 177 Chapter 17 "No Silver Bullet"Refired ...

    MATLAB用于支持向量机-svm_v251.rar

    - New default values for parameter qpsize that make the whole toolbox  *much* faster - Workaround for a Matlab bug with sparse matrices - Changed the definition of the RBF-Kernel: from |x-y|^2/ ...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    All parts outside will paints of the TFlexPanel.Brush. When returning from ftmPanning mode the complete client area repainting will perform. - ADD: Added TFlexPanel.FrostPanFullDoc property. When ...

    A tutorial on SE(3) transformation parameterizations

    rotational parts as a whole), (ii) how to compose poses with poses and poses with points in each representation and (iii) how the uncertainty of the poses (when modeled as Gaussian distributions) is ...

    HPL: Vol. IV: Functional and Logic Programming Languages

    2.2.1. Parts of Lisp 2.3. Example: Two Plus Two 2.4. Evaluation 2.5. A Function Definition 2.5.1. An Example of a Search Within a Buffer 2.5.2. An Example: multiply-by-seven 2.6. Variables 2.7....

    Fluid Mechanics for Engineers

    All rights are reserved, whether the whole or part of the mate- rial is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction ...

    Object Segmentation by Long Term Analysis of

    segmentation of objects or parts of objects. While pure bottom-up segmentation from static cues is well known to be ambiguous at the object level, the story changes as soon as objects move. In this ...

    Pro JavaFX8

    whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other...

    Java反编译软件JAD1

    -dead - try to decompile dead parts of code (if any) (default: no) -disass - disassemble method bytecodes (no JAVA source generated) -f - output fully qualified names for classes/fields/methods -...

    test-driven-java-development-2nd2018

    Chapter 8, BDD – Working Together with the Whole Team, discusses developing a book store application by using the BDD approach. We'll define the acceptance criteria in the BDD format, carry out the ...

    os3d_exportobj

    This takes the group you have selected and snapshots all the parts attaches them together into one mesh, it then exports that mesh. This makes one mesh out of the whole group. This might be useful ...

Global site tag (gtag.js) - Google Analytics