Search code examples
umlclass-diagramcommand-pattern

What is the meaning of dashed arrow in UML class diagram?


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):

enter image description here

Article: Command pattern


Solution

  • 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.)