Abstraction layer

Abstraction layer

:"This is about the concept in computer science, for the concept in grouping, see Principle of abstraction."

An abstraction layer (or abstraction level) is a way of hiding the implementation details of a particular set of functionality. Software models that use layers of abstraction include the OSI 7 Layer model for computer network protocols, the OpenGL graphics drawing library, and the byte stream input/output (I/O) model originated by Unix and adopted by MSDOS, Linux, and most other modern operating systems.

In the Unix operating system, most types of input and output operations are considered to be streams of bytes being read from a device or being written to a device. This stream of bytes model is used for file I/O, socket I/O, and terminal I/O in order to provide device independence. In order to read and write to a device at the application level, the program calls a function to open the device which may be a real device such as a terminal or a virtual device such as a network port or a file in a file system. The device's physical characteristics are mediated by the operating system which in turn presents an abstract interface that allows the programmer to read and write bytes from/to the device. The operating system then performs the actual transformation needed to read and write the stream of bytes to the device.

Most graphics libraries such as OpenGL provide an abstract graphical device model as an interface. The library is responsible for translating the commands provided by the programmer into the specific device commands needed to draw the graphical elements and objects. The specific device commands for a plotter are different from the device commands for a CRT monitor but the graphics library hides the implementation and device dependent details by providing an abstract interface which provides a set of primitives that are generally useful for drawing graphical objects.

In computer science, an abstraction level is a generalization of a model or algorithm, away from any specific implementation. These generalizations arise from broad similarities that are best encapsulated by models that express similarities present in various specific implementations. The simplification provided by a good abstraction layer allows for easy reuse by distilling a useful concept or metaphor so that situations where it may be accurately applied can be quickly recognized.

A good abstraction will generalize that which can be made abstract; while allowing specificity where the abstraction breaks down and its successful application requires customization to each unique requirement or problem.

Frequently abstraction layers can be composed into a hierarchy of abstraction levels. The ISO-OSI networking model comprises seven abstraction layers. Each layer of the OSI ISO networking model encapsulates and addresses a different part of the needs of much digital communications thereby reducing the complexity of the associated engineering solutions.

A famous aphorism of Butler Lampson goes: "All problems in computer science can be solved by another level of indirection"; this is often deliberately mis-quoted with "abstraction" substituted for "indirection". Kevlin Henney's corollary to this is, "...except for the problem of too many layers of indirection."

Computer architecture

In computer architecture, a computer system is usually represented as consisting of five abstraction levels: hardware, firmware, assembler, operating system and processes (Tanenbaum 79).

Bibliography

*cite book |last= Tanenbaum |first=Andrew S. |authorlink=Andrew S. Tanenbaum |title=Structured Computer Organization |year=1979 |publisher=Prentice-Hall |location=Englewood Cliffs, New Jersey |id=ISBN 0-13-148521-0

See also

*Layer for object-oriented meaning
*Information hiding
*Abstraction (computer science)
*Transparency (computing)
*Protection ring
*Computer software
*Application programming interface
*Software engineering
*Software
*Hardware
*Database
*Network


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Database abstraction layer — A database abstraction layer is an application programming interface which unifies the communication between a computer application and databases such as SQL Server, DB2, MySQL, PostgreSQL, Oracle or SQLite. Traditionally, all database vendors… …   Wikipedia

  • Message Abstraction Layer — The Spacecraft Monitoring Control (SM C) Working Group of the Consultative Committee for Space Data Systems (CCSDS), which sees the active participation of 10 space agencies and of the Space Domain Task Force of the Object Management Group (OMG) …   Wikipedia

  • Physics Abstraction Layer — Developer(s) http://sourceforge.net/projects/pal …   Wikipedia

  • Operating System Abstraction Layer — An Operating System Abstraction Layer (OSAL) provides an application programming interface (API) to an abstract operating system making it easier and quicker to develop code for multiple software or hardware platforms. OS abstraction layers deal… …   Wikipedia

  • Hardware abstraction layer — A hardware abstraction layer (HAL) is an abstraction layer, implemented in software, between the physical hardware of a computer and the software that runs on that computer. Its function is to hide differences in hardware from most of the… …   Wikipedia

  • Hardware abstraction layer — У этого термина существуют и другие значения, см. HAL. Hardware Abstraction Layer (HAL, Слой аппаратных абстракций)  слой абстрагирования, реализованный в программном обеспечении, находящийся между физическим уровнем аппаратного обеспечения… …   Википедия

  • Hardware abstraction layer — Couche d abstraction matérielle Pour les articles homonymes, voir HAL. La couche d abstraction matérielle (Hardware Abstraction Layer ou HAL) est une spécification et un utilitaire logiciel qui traque les périphériques du système informatique. Le …   Wikipédia en Français

  • Hardware Abstraction Layer — Eine Hardwareabstraktionsschicht (engl. HAL, Hardware Abstraction Layer) ist eine architektonische Ebene größerer Computerprogramme oder Systeme solcher Programme, die dafür sorgt, dass andere Software Komponenten nicht auf die Spezifikationen… …   Deutsch Wikipedia

  • Network Abstraction Layer — The Network Abstraction Layer (NAL) is a part of the H.264/AVC Video Coding Standard. The main goal of the H.264/AVC NAL is the provision of a network friendly video representation addressing conversational (video telephony) and non… …   Wikipedia

  • Hardware Abstraction Layer — Hardware Abstraction Layer,   HAL …   Universal-Lexikon

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”