a dependency is displayed in the diagram editor as a dashed line with an open arrow that points from the client to the supplier.
![Two classes are connected by a dashed line with an open arrow](https://www.ibm.com/support/knowledgecenter/SS5JSH_9.0.0/com.ibm.xtools.modeler.doc/images/depend.gif)
![SearchController depends on (requires) SiteSearch interface. SearchController depends on (requires) SiteSearch interface.](https://www.uml-diagrams.org/dependency/required-interface.png)
Class SearchController depends on (requires) SiteSearch interface.
In this case, the dependency is an instantiate dependency, where the Car class is an instance of the CarFactory class."
![UML spec inferior example: Car class has an instantiate dependency on the CarFactory class. UML spec inferior example: Car class has an instantiate dependency on the CarFactory class.](https://www.uml-diagrams.org/dependency/instantiate.png)
Wrong: Car class has a dependency on the CarFactory class.
Right: CarFactory class depends on the Car class.
Right: CarFactory class depends on the Car class.
![Web Shopping package uses (depends on) Payment package. Web Shopping package uses (depends on) Payment package.](https://www.uml-diagrams.org/dependency/use-package.png)
Web Shopping package uses (depends on) Payment package.
Create is a usage dependency denoting that the client classifier creates instances of the supplier classifier. It is denoted with the standard stereotype «create».
![Client classifier creates instances of the supplier classifier. Client classifier creates instances of the supplier classifier.](https://www.uml-diagrams.org/uml-core/class-dependency-create.png)
Class DataSource creates Connection.
![](https://csharpcorner-mindcrackerinc.netdna-ssl.com/UploadFile/b1df45/dependency-generalization-association-aggregation-compos/Images/Dependency1.jpg)
Generalization
![](https://csharpcorner-mindcrackerinc.netdna-ssl.com/UploadFile/b1df45/dependency-generalization-association-aggregation-compos/Images/Generalization1.jpg)
Association
that conceptually means that the two components are linked to each other.
This association is represented by the following symbol in UML:
![](https://csharpcorner-mindcrackerinc.netdna-ssl.com/UploadFile/b1df45/dependency-generalization-association-aggregation-compos/Images/Association1.jpg)
![](https://csharpcorner-mindcrackerinc.netdna-ssl.com/UploadFile/b1df45/dependency-generalization-association-aggregation-compos/Images/Association1.jpg)
No comments:
Post a Comment