Implements relationships in domain modeling class diagrams

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

In domain modeling class diagrams, an implements relationship exists between two classes when one of them must implement, or realize, the behavior specified by ... Implementsrelationshipsindomainmodelingclassdiagrams Indomainmodelingclassdiagrams,animplementsrelationship existsbetweentwoclasseswhenoneofthemmustimplement,orrealize, thebehaviorspecifiedbytheother.Theclassthatspecifiesthebehavioriscalledthesupplier,and theclassthatimplementsthebehavioriscalledtheclient.Animplements relationshipcanincludethosebetweeninterfacesandclasses. Forexample,animplementsrelationshipconnectsaninterfaceto asubsystem.Theinterfacespecifiesthebehaviors,andthesubsystem implementsthebehaviors. Indomainmodelingclassdiagrams,animplementsrelationshiprepresents aclassthatimplementstheoperationsinaJava™interface. Asthefollowingfigureillustrates,animplementsrelationship isdisplayedasadashedlinewithanunfilledarrowhead.Theconnector pointsfromtheclient(thatrealizesthebehavior)tothesupplier (thatspecifiesthebehavior). Javasourcecode UMLvisualrepresentation Relatedconcepts: Associationrelationshipsindomainmodelingclassdiagrams Extendsrelationshipsindomainmodelingclassdiagrams Relatedtasks: ShowingrelatedJavaelementsindomainmodelingclassdiagramsbasedonoutgoingrelationships ShowingrelatedJavaelementsindomainmodelingclassdiagramsbasedonincomingrelationships PopulatingdomainmodelingclassdiagramswithJavasourceelementsbasedontype CreatingimplementsrelationshipsbetweenJavaclassesandinterfacesindomainmodelingclassdiagrams Feedback



請為這篇文章評分?