Introduction to Adapters

Introduction to Adapters

Adapter is one of the very fundamental design patterns having applications in almost every stream of systems engineering or I can say that it is very difficult to find a well designed system without some form of adapters used with in the same.

Let me again share with you an example which I have repeatedly shared in various other articles.

Myself and Ramesh are very good friends and wants to talk to each other, the only problem being that I can only communicate in French and Ramesh can only communicate in Spanish ie technically there are two objects with heterogeneous interfaces trying to communicate with each other. As the interfaces are heterogeneous(incompatible) both of us cannot interact with each other directly … so how do both of us communicate with each other?

As anyone can guess we need a translator or an adapter to facilitate the intercommunication . For the translator or the adapter to facilitate this intercommunication the prerequisite being that the translator should know both the languages or the adapter should know both the interfaces being adapted.

This is one of the simplest examples of an adapter. We now know adapters are needed to as to facilitate communication between systems with heterogeneous interfaces.

We also know systems can be very complex wherein large number of subsystems interact with each other to give various behaviors. Within a system it is very difficult to find out all the systems /subsystems to have homogenous interfaces using which they can communicate very smoothly. Generally in the real world of systems there will be one or more systems with some kind of heterogeneity in their interfaces and hence other systems may not be able to communicate with them in a seamless manner. This is where adapters are needed to facilitate the communication between disparate systems. This is the reason adapters play a very important role in any kind of system in every stream of engineering.

Let me give you a very quick example.. let say a person has purchased an electrical/electronics gadget somewhere from the European market … if we make it work in India .. it won’t work directly because the European systems are designed for 60Hz while the Indian systems are designed from 50Hz … So how can we make it work in India .. Simply go to the market .. purchase an adapter and make it work.

Similarly again if a person has purchased an electrical/electronics gadget somewhere from the European market … if we make it work in India .. it won’t work directly because most of their plugs have rectangular pins while India conventionally has circular sockets. Again go to the market purchase an adapter and get it working.

Adapters are very commonly used for adapting various types of mobile charging pins.

 
Hemant Jha
Founder - VPlanSolutions
Researcher, Trainer

www.VPlanSolutions.co.in