整体-部分模式描述的是用一个整体来包装所属部分的模式。
如何包装大致有3种类型
1:assembly parts, 把部分集聚在一起,不对部分的类型有任何要求,
但是部分是相对固定的,一个整体的所属部分不会发生改变的
例如一个小车图形由相应的子件构成,其成分相对固定,各个组件关系紧密
2:container-contents, 整体像容器那样包含部分,允许对部分进行添加,删除操作
子件比集聚部分有松散的耦合。
例如一个邮政包裹里面可以包含书,衣服等。这些都可以动态的变化
3:collection-members集合成员类型。要求部分的类型一致,整体平等的对待每一个子件
例如集合类型就是这样
整体对外提供一致的接口,处理请求时会1:直接转发给相应的子件2:自己处理
主要封装了对子件的直接访问了,组合子件会产生一个新的行为,
分享到:
相关推荐
根据提供的文档内容,本文将详细解释“GEF-whole-upload.pdf”中提到的关键知识点,包括RCP项目的建立、在RCP中显示Editor以及GEF的基本结构。 ### GEF概述及应用 GEF(Graphical Editing Framework)是Eclipse...
根据给定的信息,本文将详细解释“GEF-whole-upload”这一主题,主要涉及GEF的基本结构及其在RCP项目中的应用。 ### GEF的基本结构理解 #### GEF简介 GEF (Graphical Editing Framework) 是Eclipse平台提供的一个...
- `gef.tutorial.step.parts` 或 `gef.tutorial.step.editparts`:存放与控制器相关的类,例如EditPart。 - `gef.tutorial.step.ui`:存放与视图相关的类,如Editor实现。 #### 七、创建Editor插件 最后一步是创建...
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...
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 ...
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 ...
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...
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 ...
- 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/ ...
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 ...
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 ...
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....
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 ...
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 ...
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...
-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 -...
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 ...
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 ...