Object model

Object model

In computing, object model has two related but distinct meanings:

  1. The properties of objects in general in a specific computer programming language, technology, notation or methodology that uses them. For example, the Java objects model, the COM object model, or the object model of OMT. Such object models are usually defined using concepts such as class, generic function, message, inheritance, polymorphism, and encapsulation. There is an extensive literature on formalized object models as a subset of the formal semantics of programming languages.
  2. A collection of objects or classes through which a program can examine and manipulate some specific parts of its world. In other words, the object-oriented interface some service or system. Such an interface is said to be the object model of the represented service or system. For example, the Document Object Model (DOM) [1] is a collection of objects that represent a page in a web browser, used by script programs to examine and dynamically change the page. There is a Microsoft Excel object model [2] for controlling Microsoft Excel from another program, and the ASCOM Telescope Driver [3] is an object model for controlling an astronomical telescope.

An object Model consist of the following important features:

Object Reference: Objects can be accessed via object references. To invoke a method in an object,the object reference and method name are given, together with any arguments.

Interfaces: An interface provide a definition of the signature of a set of methods without specifying their implementation. An object will provide a particular interface if its class contains code that implement the method of that interface. an interface also define types that can be used to declare the type of variables or of parameters and return values of methods.

Actions: Action in an OOP is initiated by an object invoking a method in another object. An invocation can include additional information needed to carry out the method. The receiver execute the appropriate method and then return control to the invoking object, sometimes supplying a result.

Exceptions: Programs can encounter various errors and unexpected conditions of varying seriousness.During the execution of the method many different problems may be discovered.Exceptions provide a clean way to deal with error conditions without complicating the code. A block of code may be defined to throw an exception whenever particular unexpected conditions or errors arise.This means that control passes to another block of code that catches the exception.

Garbage collection: It is necessary to provide the means of freeing the space occupied by objects when they are no longer needed. For example, java can detect automatically when an object is no longer accessible recovers the space and makes it available for allocation to other objects. This process is called as garbage collection.


See also

Literature

  • Weisfeld, Matt (2003). The Object-Oriented Thought Process (2nd Edition). Sams. ISBN 0672326116. 
  • Fowler, Martin (1996). Analysis Patterns: Reusable Object Models. Addison-Wesley. ISBN 0201895420. 
  • K. Fisher, F. Honsell, and J.C. Mitchell (1994). "A Lambda Calculus of Objects and Method Specialization". Nordic Journal of Computing 1: 3–37. 
  • Marini, Joe (2002). Document Object Model: Processing Structured Documents. Osborne/McGray-Hill. ISBN 0072224363. 
  • Lippman, Stanley (1996). Inside the C++ Object Model. Addison-Wesley Professional. ISBN 0201834545. 

External links



Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Object model reference — provides detailed definitions (interfaces and classes) and specification of an object in an object oriented language. Right now, the only rendering is to the Java language. However, the specification has been created with C# in mind.[citation… …   Wikipedia

  • Component Object Model — Not to be confused with COM file. Component Object Model (COM) is a binary interface standard for software componentry introduced by Microsoft in 1993. It is used to enable interprocess communication and dynamic object creation in a large range… …   Wikipedia

  • Document Object Model — Not to be confused with Domain Object Model. HTML HTML and HTML5 Dynamic HTML XHTML XHTML Mobile Profile and C HTML Canvas element Character encodings Document Object Model Font family HTML editor HTML element HTML Fr …   Wikipedia

  • AppleEvent Object Model — The AppleEvent Object Model (AEOM) was a set of protocols built on top of AppleEvents by which applications running under Mac OS could control each other s functions. Applications that implemented some part of the AEOM were called scriptable ,… …   Wikipedia

  • IBM System Object Model — For the similarly named executable file format in the HP UX operating system, see System Object Model (file format) In computing, the System Object Model (SOM) is an object oriented shared library system developed by IBM. A distributed version… …   Wikipedia

  • Distributed Component Object Model — (DCOM) is a proprietary Microsoft technology for communication among software components distributed across networked computers. DCOM, which originally was called Network OLE , extends Microsoft s COM, and provides the communication substrate… …   Wikipedia

  • Component Object Model — В данной статье или разделе имеется список источников или внешних ссылок, но источники отдельных утверждений остаются неясными из за отсутствия сносок …   Википедия

  • Document Object Model —     HTML HTML и HTML5 Динамический HTML …   Википедия

  • Text Object Model — The Text Object Model (TOM) is a Microsoft Windows API that provides developers with object based rich text manipulation interfaces. It is implemented through COM, and can be accessed through Microsoft Word or additionally through the RichEdit… …   Wikipedia

  • Text Object Model — Значимость предмета статьи поставлена под сомнение. Пожалуйста, покажите в статье значимость её предмета, добавив в неё доказательства значимости по частным критериям значимости или, в случае если частные критерии значимости для… …   Википедия

Share the article and excerpts

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