Share to: share facebook share twitter share wa share telegram print page

Object (computer science)

In computer science, an object is an entity with well-defined behavior.[1]: 38 

Any language that supports a construct with state, behavior (modified via associated procedures), and identity is classified as object-based. Object-oriented programming (OOP) is object-based with the addition of polymorphism and inheritance. An object-oriented system integrates code (behavior) and data (state) into objects. In a class-based language, an object is an instance of a class.

In the relational model of database management, aspects such as table and column may act as objects.[2]

Information systems can be modeled with objects representing their components and interfaces.[1]: 39 [citation needed]

Object-based languages

An important distinction in programming languages is the difference between an object-oriented language and an object-based language. A language is usually considered object-based if it includes the basic capabilities for an object: identity, properties, and attributes. A language is considered object-oriented if it is object-based and also has the capability of polymorphism, inheritance, encapsulation, and, possibly, composition.[1]: 41 [citation needed]

Not all object-based (or object-oriented) languages are class-based. One prominent alternative paradigm is prototype-based programming, used by JavaScript and Lua, among others.

Distributed objects

The object-oriented approach is not just a programming model. It can be used equally well as an interface definition language for distributed systems. The objects in a distributed computing model tend to be larger grained, longer lasting, and more service-oriented than programming objects.

A standard method to package distributed objects is via an Interface Definition Language (IDL). An IDL shields the client of all of the details of the distributed server object. Details such as which computer the object resides on, what programming language it uses, what operating system, and other platform-specific issues. The IDL is also usually part of a distributed environment that provides services such as transactions and persistence to all objects in a uniform manner. Two of the most popular standards for distributed objects are the Object Management Group's CORBA standard and Microsoft's DCOM.[3]

In addition to distributed objects, a number of other extensions to the basic concept of an object have been proposed to enable distributed computing:

  • Protocol objects are components of a protocol stack that enclose network communication within an object-oriented interface.
  • Replicated objects are groups of distributed objects (called replicas) that run a distributed multi-party protocol to achieve high consistency between their internal states, and that respond to requests in a coordinated way. Examples include fault-tolerant CORBA objects.
  • Live distributed objects (or simply live objects)[4] generalize the replicated object concept to groups of replicas that might internally use any distributed protocol, perhaps resulting in only a weak consistency between their local states.

Some of these extensions, such as distributed objects and protocol objects, are domain-specific terms for special types of "ordinary" objects used in a certain context (such as remote method invocation or protocol composition). Others, such as replicated objects and live distributed objects, are more non-standard, in that they abandon the usual case that an object resides in a single location at a time, and apply the concept to groups of entities (replicas) that might span across multiple locations, might have only weakly consistent state, and whose membership might dynamically change.

The Semantic Web

The Semantic Web is essentially a distributed-objects framework. Two key technologies in the Semantic Web are the Web Ontology Language (OWL) and the Resource Description Framework (RDF). RDF provides the capability to define basic objects—names, properties, attributes, relations—that are accessible via the Internet. OWL adds a richer object model, based on set theory, that provides additional modeling capabilities such as multiple inheritance.

OWL objects are not like standard large-grained distributed objects accessed via an Interface Definition Language. Such an approach would not be appropriate for the Internet because the Internet is constantly evolving and standardization on one set of interfaces is difficult to achieve. OWL objects tend to be similar to the kinds of objects used to define application domain models in programming languages such as Java and C++.

However, there are important distinctions between OWL objects and traditional object-oriented programming objects. Traditional objects get compiled into static hierarchies usually with single inheritance, but OWL objects are dynamic. An OWL object can change its structure at run time and can become an instance of new or different classes.

Another critical difference is the way the model treats information that is currently not in the system. Programming objects and most database systems use the "closed-world assumption". If a fact is not known to the system that fact is assumed to be false. Semantic Web objects use the open-world assumption, a statement is only considered false if there is actual relevant information that it is false, otherwise it is assumed to be unknown, neither true nor false.

OWL objects are actually most like objects in artificial intelligence frame languages such as KL-ONE and Loom.

The following table contrasts traditional objects from Object-Oriented programming languages such as Java or C++ with Semantic Web Objects:[5][6]

OOP Objects Semantic Web Objects
Classes are regarded as types for instances. Classes are regarded as sets of individuals.
Instances can not change their type at runtime. Class membership may change at runtime.
The list of classes is fully known at compile-time and cannot change after that. Classes can be created and changed at runtime.
Compilers are used at build-time. Compile-time errors indicate problems. Reasoners can be used for classification and consistency checking at runtime or build-time.
Classes encode much of their meaning and behavior through imperative functions and methods. Classes make their meaning explicit in terms of OWL statements. No imperative code can be attached.
Instances are anonymous insofar that they cannot easily be addressed from outside of an executing program. All named RDF and OWL resources have a unique URI under which they can be referenced.
Closed world: If there is not enough information to prove a statement true, then it is assumed to be false. Open world: If there is not enough information to prove a statement true, then it may be true or false.[7]

See also

  • Object lifetime – Time period between the creation and destruction of an object-oriented programming instance
  • Object copying – Techniques for copying an object in object-oriented programming
  • Business object – Entity within a multi-tiered software application
  • Actor model – Model of concurrent computation

References

  1. ^ a b c Grady Booch; Robert Maksimchuk; Michael Engle; Bobbi Young; Jim Conallen; Kelli Houston (April 30, 2007). Object-Oriented Analysis and Design with Applications (3 ed.). Addison-Wesley Professional. ISBN 020189551X.
  2. ^ Oppel, Andy (2005). SQL Demystified. McGraw Hill. p. 7. ISBN 0-07-226224-9.
  3. ^ Orfali, Robert (1996). The Essential Client/Server Survival Guide. New York: Wiley Computer Publishing. pp. 399–403. ISBN 0-471-15325-7.
  4. ^ Ostrowski, K., Birman, K., Dolev, D., and Ahnn, J. (2008). "Programming with Live Distributed Objects", Proceedings of the 22nd European Conference on Object-Oriented Programming, Paphos, Cyprus, July 07–11, 2008, J. Vitek, Ed., Lecture Notes in Computer Science, vol. 5142, Springer-Verlag, Berlin, Heidelberg, 463-489, http://portal.acm.org/citation.cfm?id=1428508.1428536.
  5. ^ Berners-Lee, Tim; James Hendler; Ora Lassila (May 17, 2001). "The Semantic Web A new form of Web content that is meaningful to computers will unleash a revolution of new possibilities". Scientific American. 284: 34–43. doi:10.1038/scientificamerican0501-34. Archived from the original on April 24, 2013.
  6. ^ Knublauch, Holger; Oberle, Daniel; Tetlow, Phil; Wallace, Evan (2006-03-09). "A Semantic Web Primer for Object-Oriented Software Developers". W3C. Retrieved 2008-07-30.
  7. ^ Table excerpted from tables in: http://www.w3.org/2001/sw/BestPractices/SE/ODSD/

Read other articles:

Spanish guitarist and luthier (1817-1892) Antonio de Torres JuradoBornAntonio de Torres Jurado(1817-06-13)13 June 1817Almería, Andalucía, SpainDied19 November 1892(1892-11-19) (aged 75)La Cañada de San Urbano, Almería, Andalucía, SpainNationalitySpanishOccupationsGuitaristluthierSpouses Juana María López ​ ​(m. 1835; died 1845)​ Josefa Martín Rosada ​ ​(m. 1868; died 1883)​ ParentsJuan...

NBA franchise in Indianapolis, Indiana Indiana Pacers 2023–24 Indiana Pacers seasonConferenceEasternDivisionCentralFounded1967HistoryIndiana Pacers1967–1976 (ABA)1976–present (NBA)[1][2][3]ArenaGainbridge FieldhouseLocationIndianapolis, IndianaTeam colorsNavy blue, gold, cool gray[4][5][6]     Main sponsorMotorola[7]PresidentKevin PritchardGeneral managerChad BuchananHead coachRick CarlisleOwnershipHerbert SimonAffil...

Pemilihan umum Gubernur Gorontalo 20242017202927 November 2024 Peta lokasi Gorontalo Gubernur petahanaRusli Habibie dan Idris Rahim Partai Golongan Karya Gubernur terpilih belum diketahui L • BBantuan penggunaan templat ini Pemilihan Umum Gubernur Gorontalo 2024 (selanjutnya disebut Pilgub Gorontalo 2024) dilaksanakan pada 27 November 2024 untuk memilih Gubernur Gorontalo periode 2024-2029.[1] Pemilihan Gubernur (Pilgub) Gorontalo tahun tersebut akan diselenggarakan setelah Pem...

العلاقات البرازيلية - الإسرائيلية   البرازيل   إسرائيل الحدود لا حدود برية بين البلدين تعديل مصدري - تعديل   البرازيل لديها سفارة في تل أبيب وقنصلية شرفية في حيفا. ولدى إسرائيل سفارة في برازيليا وقنصلية عامة في ساو باولو. تحافظ الدولتين على علاقات وثيقة في المجال

Beauty and the Beast-themed restaurant 28°25′17″N 81°34′51″W / 28.421424°N 81.5808468°W / 28.421424; -81.5808468 Be Our Guest RestaurantRestaurant informationEstablishedNovember 19, 2012(soft opening)[1]December 6, 2012(grand opening)[1]Food typeAmerican & FrenchCityBay LakeCountyOrange CountyStateFloridaCountryUnited StatesThemeBeauty and the Beast Be Our Guest Restaurant is a table service restaurant in Fantasyland at Magic Kingdom in ...

Четверта лінія Метрополітен Торонто Відкриття першої ділянки 2002 рік Довжина, км 5,5 км Кількість станцій 5 Максимальна кількість вагонів у складі поїзда 6 Кількість вагонів у складі поїзда 4 Наземні ділянки Повністю підземна Четверта лінія (метрополітен Торонто) також відо

Joe Frank Harris Joe Frank Harris (* 16. Februar 1936 in Atco, Bartow County, Georgia) ist ein US-amerikanischer Politiker und war von 1983 bis 1991 Gouverneur von Georgia. Inhaltsverzeichnis 1 Jugend und politischer Aufstieg 2 Gouverneur von Georgia 3 Lebensabend 4 Literatur 5 Weblinks Jugend und politischer Aufstieg Harris absolvierte 1958 die University of Georgia. Anschließend beteiligte er sich an der Betonfirma seiner Familie, ehe er 1964 von lokalen Politikern zu einer Kandidatur für...

This article relies largely or entirely on a single source. Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources.Find sources: Bab al-Ahmar – news · newspapers · books · scholar · JSTOR (March 2021) Bab al-Ahmar (Arabic: بَاب الْأَحْمَر, romanized: Bāb al-ʾAḥmar) meaning the Red Gate, was one of the nine historical gates of the Ancient City of Aleppo, S...

Віталій Терлецький Особисті дані Повне ім'я Віталій Анатолійович Терлецький Народження 23 квітня 1962(1962-04-23) (61 рік)   Українська РСР Громадянство  СРСР Україна Професіональні клуби (футзал) Роки Клуб І (г) 1993—1994 «Енергія» (Херсон) ? (?) 2001—2002 «Енергія» (Херсон) ? (?)...

Book by Winston Churchill The Dwelling-Place of Light AuthorWinston ChurchillCountryUnited StatesLanguageEnglishGenreNovelPublisherMacmillanPublication dateOctober 1917Media typePrint (Hardcover)Pages462 The Dwelling-Place of Light is a 1917 best-selling novel by American writer Winston Churchill, the last of his twenty-year run of best-sellers.[1] Like The Inside of the Cup and A Far Country, the title has a biblical allusion: Where is the way to the dwelling of light?[2]...

His Serene HighnessPangeran Felix dari SchwarzenbergMenteri-Presiden Kekaisaran Austria 6thMasa jabatan21 November 1848 – 5 April 1852Penguasa monarkiFerdinand IFranz Joseph IPendahuluJohann Feirherr von Wessenberg-AmpringenPenggantiKarl Ferdinand Graf von Buol (sebagai ketua Konferensi Para Menteri)Menteri Luar Negeri Kekaisaran Austria ke-5Masa jabatan21 November 1848 – 5 April 1852Penguasa monarkiFerdinand IFranz Joseph IPendahuluJohann Feirherr von Wessenberg...

  لمعانٍ أخرى، طالع الحضن (توضيح). قرية الحضن  - قرية -  تقسيم إداري البلد  اليمن المحافظة محافظة المحويت المديرية مديرية ملحان العزلة عزلة جبع السكان التعداد السكاني 2004 السكان 227   • الذكور 120   • الإناث 107   • عدد الأسر 35   • عدد المساكن 33 معلومات أ...

Play about 1941 atom bomb meeting This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Copenhagen play – news · newspapers · books · scholar · JSTOR (March 2023) (Learn how and when to remove this template message) Copenhagen1998 Premiere season programmeWritten byMichael FraynCharactersNiels BohrMargrethe B...

American actor (1899–1957) For the mayor of St. John's, Newfoundland and Labrador, see Dennis O'Keefe (politician). For the English professor of social science, see Dennis O'Keeffe. Dennis O'KeefeO'Keefe in 1940BornEdward Vance Flanagan(1908-03-29)March 29, 1908Fort Madison, Iowa, U.S.DiedAugust 31, 1968(1968-08-31) (aged 60)Santa Monica, California, U.S.Resting placeForest Lawn Memorial Park, Glendale, CaliforniaOther namesBud FlanaganJonathan RixAl Everett DennisOccupations Acto...

United States historic placeCaptain Michael Cooney HouseU.S. National Register of Historic Places Location309 McCutcheon Ave., Socorro, New MexicoCoordinates34°03′19″N 106°53′40″W / 34.05528°N 106.89444°W / 34.05528; -106.89444 (Captain Michael Cooney House)Arealess than one acreBuilt1889Architectural styleLate Victorian, Vernacular brickMPSDomestic Architecture in Socorro MPSNRHP reference No.91000029[1]Added to NRHPFebruary ...

Lý An李安Sinh23 tháng 10 năm 1954 (69 tuổi)Triều Châu, Bình Đông, Đài LoanQuốc tịch Đài LoanTên khácAng LeeDân tộcHánHọc vịĐại học Nghệ thuật Quốc gia Đài LoanĐại học Illinois tại Urbana-ChampaignĐại học New YorkTrường lớpTisch School of the Arts của Đại học New YorkNăm hoạt động1990–nayQuê quánĐức An, Giang Tây, Trung Quốc[1]Phối ngẫuLâm Huệ Gia (1983–nay)Con cáiHaan Lee (s. 1984)M...

Japanese singer-songwriter (born 1987) Not to be confused with Lisa (Japanese musician, born 1974); Lisa Komine; or Lisa (rapper). LisaLisa in 2018BornRisa Oribe (1987-06-24) June 24, 1987 (age 36)Seki, Gifu, JapanOccupations Singer songwriter Years active2005–presentSpouse Tatsuhisa Suzuki ​(m. 2020)​Children1Musical careerGenres J-pop Anison[1] rock punk rock pop punk Labels Key Sounds Label (2010) Aniplex (2011–2017) Sacra Music (2017–pr...

Medieval German state Duchy of Saxony(and the Palatinate of Saxony)ᚼᛅᚱᛐᚮᚵᛐᚢᛗ ᛊᚨᚼᛊᛁᚾ (Saxon)804–1296 Left: Arms of Ascanians (from around 1000), who ruled the Duchy of Saxony lastRight: Coat of arms of the Palatinate of Saxony (institutied in the southern part of the duchy)Attributed arms of the Duchy of SaxonyThe Saxon Steed[Note 1]Saxony around 1000 CE, within the German KingdomStatus Stem duchy of the Carolingian Empire (843–911) of East Franci...

Roller coaster at Islands of Adventure The Incredible Hulk CoasterAttraction logo (above) Attraction (below)Universal's Islands of AdventureLocationUniversal's Islands of AdventurePark sectionMarvel Super Hero IslandCoordinates28°28′16″N 81°28′06″W / 28.471168°N 81.468424°W / 28.471168; -81.468424StatusOperatingSoft opening dateMarch 27, 1999 (1999-03-27)Opening dateMay 28, 1999 (1999-05-28)General statisticsTypeSteel – ...

Віктор Васнецов. Витязь на роздоріжжі. 1882 У Вікіпедії є статті про інші значення цього терміна: Рішення. Тео́рія рі́шень — царина досліджень, яка математичними методами досліджує закономірності людського вибору найвигідніших із можливих альтернатив і має застосуван...

Kembali kehalaman sebelumnya