2013年9月9日星期一

Pattern differences and experimental applications


· Object Adapter Mode - In this mode, the adapter, the adapter accommodates one which I wrapped class. In this case, the adapter calls the object wrapped physical entity.
· Class Adapter pattern - this adapter mode, the adapter implementation classes inherit their own (usually multiple inheritance).
Adapter does not have the data rate conversion.
Experimental application
A laboratory centrifuge normally can be equipped with a plurality of rotor, capacity sizes when the same centrifuge capacity needs with the same type but of varying two rotors, valve block you can consider a large capacity to put a hole in the tube adapter in order to achieve suitable for small-capacity test tube test tube hole, so you only need to add a rotor coupled with high capacity to meet the requirements of a set of adapters, so that both can dispense change when dismantling the rotor complex processes, but also save money because of a adapter's price is far lower a rotor price.

没有评论:

发表评论