Association Class | Enterprise Architect User Guide

文章推薦指數: 80 %
投票人數:10人

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



請為這篇文章評分?