| dbpprop:abstract
|
- In computer science, object composition (not to be confused with function composition) is a way to combine simple objects or data types into more complex ones. Compositions are a critical building block of many basic data structures, including the tagged union, the linked list, and the binary tree, as well as the object used in object-oriented programming. Composited (composed) objects are often referred to as having a "has a" relationship. A real-world example of composition may be seen in an automobile: the objects wheel, steering wheel, seat, gearbox and engine may have no functionality by themselves, but an object called automobile containing all of those objects would serve a higher function, greater than the sum of its parts. When, in a language, objects are typed, types can often be divided into composite and noncomposite types, and composition can be regarded as a relationship between types: an object of a composite type (e.g. car) "has an" object of a simpler type (e.g. wheel). Composition must be distinguished from subtyping, which is the process of adding detail to a general data type to create a more specific data type. For instance, cars may be a specific type of vehicle: car is a vehicle. Subtyping doesn't describe a relationship between different objects, but instead, says that objects of a type are simultaneously objects of another type. In programming languages, composite objects are usually expressed by means of references from one object to another; depending on the language, such references may be known as fields, members, properties or attributes, and the resulting composition as a structure, storage record, tuple, user-defined type (UDT), or composite type. Fields are given a unique name so that each one can be distinguished from the others. However, having such references doesn't necessarily mean that an object is a composite. We only call it composite if the objects it refers to are really its parts, i.e. have no independent existence. For details, see the aggregation section below.
- Eine Aggregation in der Informatik ist entweder eine Verbindung zwischen Daten bzw. Objekten oder der Prozess der Erstellung von Metadaten aus Daten. Die Daten werden dabei einer bestimmten Gruppe zugeordnet und es werden allgemeine Aussagen über die Gruppe gemacht. Für die Untergebiete der Informatik gibt es jedoch noch zusätzliche Bedeutungen.
- Un lien de composition symbolise l'existence d'une agrégation particulière entre deux entités (classes). ex. : un mariage est une composition de deux individus. Une composition est définie par les points suivants : •Durée de vie : la classe utilisée meurt ou est créée quand la classe qui l’utilise meurt ou est créée. •Exclusivité : elle ne peut être utilisée que par une seule autre classe. •Notion de « fait partie de » Non seulement le mariage est un agrégat de deux individus, mais il disparaît lors du retrait de l'un des deux individus. En UML, la composition se représente par un trait plein orné d'un losange noir du côté de la classe composite.
- 構造体(こうぞうたい)はプログラミング言語におけるデータ型の一つで、1つもしくは複数の値をまとめて格納できる型。それぞれのメンバは型が異なっていてもよい点が配列と異なる。またVisual Basicのユーザー定義型や、PascalやAdaのrecord型も構造体に相当する。 C/C++などでサポートされている。(struct)オブジェクト指向言語では、より純粋なオブジェクト指向を目指して削除されることも多い。構造体がない言語では、クラスで代用される。逆にオブジェクト指向言語でないCなどでオブジェクト指向プログラミングを模倣するために構造体を使うこともある。標準ライブラリのFILE型がその典型的な例である。
- Agregacja (inaczej zawieranie się, gromadzenie) w programowaniu obiektowym nazywa się sytuację, gdy tworzy się nową klasę, używając klas już istniejących (często nazywa się to "tworzeniem obiektu składowego"). Nowa klasa może być zbudowana z dowolnej liczby obiektów (obiekty te mogą być dowolnych typów) i w dowolnej kombinacji, by uzyskać żądany efekt. Agregacja jest często określana jako relacja typu "zawiera" np: "samochód zawiera silnik" - gdzie "samochód" i "silnik" są klasami, oraz klasa "samochód" zawiera w sobie obiekt typu "silnik". Agregacja jest często przedstawiana w opozycji do dziedziczenia, które polega na uszczegóławianiu typu ogólnego w celu utworzenia typu szczególnego. Agregacja nie tworzy podtypu, lecz nowy typ. Na diagramach UML agregację oznacza się pustym rombem.
- Агрегирование в общем смысле — это объединение нескольких элементов в единое целое. Результат агрегирования называют агрегатом. В программировании под агрегированием подразумевают методику создания нового класса из уже существующих классов. Об агрегировании также часто говорят как об «отношении принадлежности» по принципу «у машины есть корпус, колеса и двигатель». Вложенные объекты нового класса обычно объявляются закрытыми, что делает их недоступными для прикладных программистов, работающих с классом. С другой стороны, создатель класса может изменять эти объекты, не нарушая работы существующего клиентского кода. Кроме того, замена вложенных объектов на стадии выполнения программы позволяет динамически изменять её поведение. Механизм наследования такой гибкостью не обладает, поскольку для производных классов устанавливаются ограничения, проверяемые на стадии компиляции. На базе агрегирования реализуется методика делегирования, когда поставленная перед внешним объектом задача перепоручается внутреннему объекту, специализирующемуся на решении задач такого рода.
- Агрегація — злипання частинок у багатокомпонентний утвір — агрегат. Результат агрегатування. Агрегація у програмуванні - це Композиція.
|
| rdfs:comment
|
- In computer science, object composition (not to be confused with function composition) is a way to combine simple objects or data types into more complex ones. Compositions are a critical building block of many basic data structures, including the tagged union, the linked list, and the binary tree, as well as the object used in object-oriented programming. Composited (composed) objects are often referred to as having a "has a" relationship.
- Eine Aggregation in der Informatik ist entweder eine Verbindung zwischen Daten bzw. Objekten oder der Prozess der Erstellung von Metadaten aus Daten. Die Daten werden dabei einer bestimmten Gruppe zugeordnet und es werden allgemeine Aussagen über die Gruppe gemacht. Für die Untergebiete der Informatik gibt es jedoch noch zusätzliche Bedeutungen.
- Un lien de composition symbolise l'existence d'une agrégation particulière entre deux entités (classes). ex. : un mariage est une composition de deux individus. Une composition est définie par les points suivants : •Durée de vie : la classe utilisée meurt ou est créée quand la classe qui l’utilise meurt ou est créée. •Exclusivité : elle ne peut être utilisée que par une seule autre classe.
- Agregacja (inaczej zawieranie się, gromadzenie) w programowaniu obiektowym nazywa się sytuację, gdy tworzy się nową klasę, używając klas już istniejących (często nazywa się to "tworzeniem obiektu składowego"). Nowa klasa może być zbudowana z dowolnej liczby obiektów (obiekty te mogą być dowolnych typów) i w dowolnej kombinacji, by uzyskać żądany efekt.
- Агрегирование в общем смысле — это объединение нескольких элементов в единое целое. Результат агрегирования называют агрегатом. В программировании под агрегированием подразумевают методику создания нового класса из уже существующих классов.
- Агрегація — злипання частинок у багатокомпонентний утвір — агрегат. Результат агрегатування. Агрегація у програмуванні - це Композиція.
|