The Adapter Can Operate Over A Wide Voltage Range

Adapter is an interface converter, it can be a separate hardware interface device, allowing hardware or electronic interface with other hardware or electronic interface can also be information interface. For example: adapter, tripod base adapter parts, USB and serial port transfer equipment.

In a computer, the adapter is usually built into a card that can be plugged into a slot on the motherboard (also external). The adaptation information in the card is exchanged with the devices supported by the processor and the adapter.

The adapter is a small portable electronic equipment and electrical and electronic power supply conversion equipment, generally by the shell, power transformers and rectifier circuit, Adapter according to its output type can be divided into AC output and DC output type; according to the connection can be divided into wall And desktop. The mobile PC is particularly important because there is no battery.

The adapters include: SNMP, TL1, RMI, CORBA, HTTP and HTML adapters.

In the actual development process, we often encounter such a thing, we according to the initial needs of the development of a base class, in the development process to understand the detailed needs or demand has changed. And the development of the interface has long been defined in the interface, Adapter and has been large-scale coding. At this point if the definition of changes in the interface will cause a lot of coding on the repetitive modification work, and thus may cause incomplete changes caused by semantic errors or logic errors. Adapter Semantic errors can still be found in the compilation phase, and in the event of a logical error, the consequences will be very serious, even enough to cause the system to crash. At this point you need to use the adapter model design method.

In computer programming, the adapter pattern (sometimes called the wrapper style or wrapper) adapts a class of interfaces to what the user expects. An adaptation allows classes that are usually not compatible with the interface and can not work together, by wrapping their own interfaces in an existing class.

Adapter mode is mainly used when the interface defined in the method can not meet the needs of customers, Adapter or interface to define the method name or method interface and customer needs conflict situation.

How to use the adapter mode:

Using a class to inherit the interface and the known class at the same time, use the methods and properties defined in the known class to implement the definition of the interface (mainly using the method of overloading the interface method). Use this class as the base class for other business classes, that is, Adapter this class fits the interface and the known class. If the known class changes, just modify the class adapter, you can meet the interface implementation.

Adapters are mostly switching power supplies. Switching power supply is a power supply that maintains a stable output voltage by means of modern electronic technology to control the time ratio of turn-on and turn-off of the switch. Adapter The switching power supply of the adapter is generally composed of a pulse-width modulation (PWM) control IC and a MOSFET. High efficiency, small size, can work in a wide voltage range. Insufficient: fault occurs when the repair more difficult, a greater interference to the power supply circuit.