What is the meaning of the dashed arrow in a UML class diagram in general?
As an example: What is the meaning of the dashed arrow in this image (from client to ConcreteCommand):
Article: Command pattern
Pre-drawn UML class diagram symbols represent class, template class, object, item, package, interface, dependency, composition, and association, etc. These symbols help create accurate diagrams and documentation. UML class diagram templates offer you many useful shapes.
Arrow Diagram is used for scheduling activities in a project plan. Precedence relationships between activities are represented by circles connected by one or more arrows. The length of the arrow may be used to represent the duration of the relevant activity, or with a figure.
In my diagrams (and in UML in general) the arrow heads point in the direction of source code dependencies, not data or control flow. In graph theory in general, arrow points to parent (“descends from”).
This can be represented with the following class diagram. The fields and methods are annotated to indicate their access level: plus (+) for public, minus (-) for private, and hash (#) for protected.
Between Client and ConcreteCommand::
It means dependency.
Dependency: The definition or implementation of the dependent classifier might change if the classifier at the arrowhead end is changed.
Between ConcreteCommand and Command means Realization::
Realization: The class implements the operations and attributes defined by the interface. The interface is at the arrow end of the connector.
(Use the Inheritance tool to create a realization between a class and an interface.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With