Aggregation relationships in UML models - IBM
文章推薦指數: 80 %
In UML models, an aggregation relationship shows a classifier as a part of or subordinate to another classifier. An aggregation is a special type of association ... Aggregationrelationships In UMLmodels,anaggregationrelationshipshowsaclassifierasapartofor subordinatetoanotherclassifier.Anaggregationisaspecialtypeofassociationinwhichobjectsareassembled orconfiguredtogethertocreateamorecomplexobject.Anaggregationdescribes agroupofobjectsandhowyouinteractwiththem.Aggregationprotectsthe integrityofanassemblyofobjectsbydefiningasinglepointofcontrol, calledtheaggregate,intheobjectthatrepresentstheassembly.Aggregation alsousesthecontrolobjecttodecidehowtheassembledobjectsrespondto changesorinstructionsthatmightaffectthecollection. Dataflowsfromthewholeclassifier,oraggregate,tothepart.Apart classifiercanbelongtomorethanoneaggregateclassifieranditcanexist independentlyoftheaggregate.Forexample,aDepartmentclasscanhavean aggregationrelationshipwithaCompanyclass,whichindicatesthatthedepartment ispartofthecompany.Aggregationsarecloselyrelatedtocompositions. Youcannameanassociationtodescribethenatureoftherelationship betweentwoclassifiers;however,namesareunnecessaryifyouuseassociation endnames. Asthefollowingfigureillustrates,anaggregationassociationappears asasolidlinewithanunfilleddiamondattheassociationend,whichis connectedtotheclassifierthatrepresentstheaggregate.Aggregationrelationships donothavetobeunidirectional. Relatedtasks Specifyingrelationshipsindiagrams Feedback
延伸文章資訊
- 1UML類別圖:Aggregation vs. Composition - 自學程式誌
Aggregation. 圖三. Aggregation範例。左邊:類別圖右邊:原始碼 ...
- 2UML Association Vs. Aggregation Vs. Composition [EXAMPLE]
An aggregation is a subtype of an association relationship in UML. Aggregation and composition ar...
- 3UML Association vs Aggregation vs Composition - Javatpoint
Aggregation is a subset of association, is a collection of different things. It represents has a ...
- 4【UML】Class Diagram 類別圖(下):Relationships 關係
Relationships 關係. Instance-level 物件層級. Dependency 依賴; Association 關聯; Aggregation 聚合; Composition...
- 5軟體路上不孤單Day17-UML介紹2-關係(1) - iT 邦幫忙
今天就是要跟大家介紹圖形與圖形之間的關係! 接下來要幫大家介紹的是:. Shared aggregation; Composite aggregation; Association; Gener...