Association Class | Enterprise Architect User Guide
文章推薦指數: 80 %
An Association Class is a UML construct that enables an Association to have attributes and operations (features). This results in a hybrid relation with the ... Products EnterpriseArchitect Whatisnewinv16.0 Whatwasnewinv15.2 Whatwasnewinv15.1 Whatwasnewinv15 Overview Professional Corporate Unified Ultimate CompareEditions FreeTrial RegisteredDownloads AdditionalInfo 30MinuteTour ReleaseHistory LicenseInfo FloatingLicenses AcademicPricing SystemRequirements EULA MDGExtensions 3rdPartyExtensions ProCloudServer Whatisnewinv5.0Whatwasnewinv4.2Whatwasnewinv4.1Whatwasnewinv4 Overview WebEA Integrations FloatingLicenseServer CompareEditions FreeTrial Downloads AdditionalInfo 30MinuteTour ReleaseHistory SystemRequirements EULA Prolaborate Whatisnewin4.2 Overview Introduction Resources Articles Documentation ReleaseNotes FAQ Events Videos FreeTrial Downloads AdditionalInfo RequestaDemo ProofofConcept ProlaborateSaaS EULA SystemRequirements Pricing EnterpriseArchitect ProCloudServer Prolaborate Support Forum UserGuide/Help ContactUs BugReport RequestaFeature ChangeYourEmail PriorityBugReport EmailSupport EmailSales FAQ Support Sales CompanyDetails NewsRoom Resellers Africa Asia Europe MiddleEast NorthAmerica Oceania SouthAmerica SparxServices NorthAmerica Australia CentralEurope MiddleEast UnitedKingdom SistersCompanies Argentina China CentralEurope MiddleEast India Japan Trainers/Consultants Africa NorthAmerica SouthAmerica Asia Europe Oceania MiddleEast Online Resources Video&Webinars DemoVideos UpcomingWebinars WebinarsLibrary SignUp PDFLibrary Fundamentals Modeling Collaboration Publishing Simulation ProjectManagement ViewEntireLibrary Other Whitepapers Tutorials CaseStudies LearningCenter DiagramGallery Brochures RegisteredUsers EnterpriseArchitect ProCloudServer AllUsers FreeDownloads DBMSRepositoryScripts UserSecurityKey AllResources> UMLTutorial Community DownloadNow EnterpriseArchitect ProCloudServer Prolaborate Login Index ModelDomainsModelingLanguagesUnifiedModelingLanguage(UML)UMLConnectorsUMLConnectorsAssociationClass Pleasenote:ThishelppageisnotforthelatestversionofEnterpriseArchitect.Thelatesthelpcanbefoundhere. Prev Next AssociationClass Description AnAssociationClassisaUMLconstructthatenablesanAssociationtohaveattributesandoperations(features).ThisresultsinahybridrelationwiththecharacteristicsofanAssociationandaClass. WhenyouaddanAssociationClassconnection,EnterpriseArchitectalsocreatesaClassthatisautomaticallyconnectedtotheAssociation.WhenyouhideordeletetheAssociation,theClassisalsohiddenordeleted. ToaddanAssociationClasstoaClassorDeploymentdiagram,clickonthe'AssociationClass'iconintheToolbox.Clickandholdonthesourceobjectinthediagramwhileyoudragthelinetothetargetelement,thenreleasethemousebutton.EnterpriseArchitectdrawstheconnectorandaddstheClass,thenpromptsyoutoaddtheClassname.NotethatthenamesoftheClassandtheconnectorarethesame.YoucanalsoconnectanewClasstoanexistingAssociation. YoucanhighlighttheClasspartofanAssociationClassintheBrowserwindow,byselectingthe'FindAssociationClass'contextmenuoptionontheAssociationconnector. Example ThisdiagramillustratesanAssociationClassbetweenmodelelements.NotethedottedlinefromtheClasstotheAssociation.Youcannotmoveordeletethisline. Notes IfyouareapplyingastereotypewithaShapeScripttoanAssociationClass,beawarethattheShapeScriptisappliedtoboththeClasspartandtheAssociationpart;therefore,youmighthavetoincludelogicintheshapemainthatteststhetypeoftheelementsothatyoucangiveseparatedrawinginstructionsforClassandforAssociation Suchlogicisnotnecessaryinthe: - Shapesourceorshapetarget,whichareignoredbyClasses,orthe - Decorationshapes,whichareignoredbyAssociationconnectors IfyoudissociatetheClassfromtheAssociationconnector,bothpartskeeptheirShapeScriptsuntilthestereotypesareremoved Toolboxicon Learnmore ClassDiagramConnectNewClasstoAssociation OMGUMLSpecification: TheOMGUMLspecification(UMLSuperstructureSpecification,v2.1.1,p.49)states: 'Amodelelementthathasbothassociationandclassproperties.AnAssociationClasscanbeseenasanassociationthatalsohasclassproperties,orasaclassthatalsohasassociationproperties.Itnotonlyconnectsasetofclassifiersbutalsodefinesasetoffeaturesthatbelongtotherelationshipitselfandnottoanyoftheclassifiers.' ConnectNewClasstoExistingAssociation Prev Next Products Products EnterpriseArchitect ProCloudServer Prolaborate UMLataGlance UMLataGlance UMLTools PHPUMLModeling BusinessProcessModeling ModelDrivenArchitecture RequirementsManagement SoftwareDevelopment Solutions Solutions Corporate Government Small/MediumEnterprise ITProfessionals Trainers Academic Resources Resources UML2.0Tutorial CorporateResources DeveloperResources MediaResources Support Support OnlineManual UserForum ReportaBug FeatureRequest CompareEditions SystemRequirements GlobalPartners GlobalPartners Trainers Resellers SisterCompanies TechnicalPartners StandardsOrganizations ©2000-2022 SparxSystemsPtyLtd. AllrightsReserved. Legal Privacy Aboutus
延伸文章資訊
- 1UML Association - Javatpoint
Association is the semantic relationship between classes that shows how one instance is connected...
- 2Association classes in UML diagrams - IBM
In UML diagrams, an association class is a class that is part of an association relationship betw...
- 3Class Diagram Relationships in UML Explained with Examples
Reflexive Association
- 4{UML 2.0} 關聯類別(association class) - Kenmingの鮮思維
An association class connection is a UML construct that allows an association connector to have a...
- 5UML Association vs Aggregation vs Composition
If two classes in a model need to communicate with each other, there must be a link between them,...