Object graph

Object graph

An Object graph is a view of an object system at a particular point in time. Whereas a normal data model such as a UML Class diagram details the relationships between classes, the object graph relates their instances. Object diagrams are subsets of the overall object graph. Object-oriented applications contain complex webs of interrelated objects. Objects are linked to each other by one object either owning or containing another object or holding a reference to another object. This web of objects is called an object graph and it is the more abstract structure that can be used in discussing an application's state.

Physical representation

An object graph is a directed graph, which might be cyclic. When stored in RAM, objects occupy different segments of the memory with their attributes and function table, while relationships are represented by pointers or a different type of global handler in higher-level languages.

Examples

For instance, a Car class can compose a Wheel one. In the object graph a Car instance will have up to four links to its wheels, which can be named frontLeft, frontRight, backLeft and backRight. Example of an adjacency list representation: c:Car → {frontLeft:Wheel, frontRight:Wheel, backLeft:Wheel, backRight:Wheel}.

See also


Wikimedia Foundation. 2010.

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

Look at other dictionaries:

  • Object-Graph Navigation Language — Object Graph Navigation Language, abgekürzt als OGNL ist eine expression language zum Lesen und Schreiben von Eigenschaften in Java Objekten. Dazu werden zum Setzen und zum Lesen des Wertes einer Eigenschaft die gleichen Ausdrücke verwendet. Zum… …   Deutsch Wikipedia

  • Object Desktop — ObjectBar used with DesktopX to create a theme Developer(s) Stardock …   Wikipedia

  • graph´i|ti|za´tion — graph|i|tize «GRAF uh tyz», transitive verb, tized, tiz|ing. 1. to convert (carbon) into graphite. 2. to cover (the surface of an object) with graphite. –graph´i|ti|za´tion, noun …   Useful english dictionary

  • graph|i|tize — «GRAF uh tyz», transitive verb, tized, tiz|ing. 1. to convert (carbon) into graphite. 2. to cover (the surface of an object) with graphite. –graph´i|ti|za´tion, noun …   Useful english dictionary

  • Object Process Graph — An Object Process Graph (OPG) is a general purpose executable graph that incorporates every aspect of an application, including process, user interface, and database.[1][2][3] No programming language, tool, or database is required to handle any… …   Wikipedia

  • Object-based spatial database — An object based spatial database is a spatial database that stores the location as objects. The object based spatial model treats the world as surface littered with recognizable objects (e.g. cities, rivers), which exist independent of their… …   Wikipedia

  • Graph (mathematics) — This article is about sets of vertices connected by edges. For graphs of mathematical functions, see Graph of a function. For statistical graphs, see Chart. Further information: Graph theory A drawing of a labeled graph on 6 vertices and 7 edges …   Wikipedia

  • Object database — Example of an object oriented model.[1] An object database (also object oriented database management system) is a database management system in which information is represented in the form of objects as used in object oriented programming. Object …   Wikipedia

  • Object-oriented design — OOD redirects here. OOD may also refer to Officer of the Deck, Officer of the day, or the Ood. Object oriented design is the process of planning a system of interacting objects for the purpose of solving a software problem. It is one approach to… …   Wikipedia

  • Object-relational impedance mismatch — The object relational impedance mismatch is a set of conceptual and technical difficulties that are often encountered when a relational database management system (RDBMS) is being used by a program written in an object oriented programming… …   Wikipedia

Share the article and excerpts

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