Tips and Tricks
Diagramming Topics

Using Reverse Connector

A connector is the line connecting two shapes. It is most likely to show the relationship between the two shapes. Sometimes, a connector added shows the opposite of the desired relationship. To reverse the connector line, simply use the Reverse Connector feature.

Let’s see the two examples shown below illustrating the Reverse Connector feature.

Example 1:

To model a shopping cart system in terms of class diagram, a Customer and Purchase Order class can be identified. The association between the Customer and Purchase Order classes is a one-to-many association in which one customer can place many purchase order while a purchase order is placed by one customer only.

Let’s assume the following class diagram is drawn.


From the above class diagram, the association added between the Customer and Purchase Order is inverted with respect to the identified association.

To reverse the connected association, right-click on the connector, select Reverse Connector from the pop-up menu.


The association is inverted which is the desired association as shown below.


Example 2:

Let’s assume the following sequence diagram is drawn to model the ATM system.


From the above sequence diagram, the step, “9: eject card” should be a message sent from the ATM System lifeline to the user, instead of sending from the user to the ATM System. To reverse the connector, simply right-click on the message, select Reverse Connector from the pop-up menu.


The sender and receiver of the message reversed automatically.

Related Articles

Resources

 
 
Last modified: 2005/12/02 04:42
 
 
Home | Recent Topics | Highlights | UML Diagrams | Tips and Tricks | Object-Relational Mapping
visual-paradigm.com Home | Training Center | UML Center | VP Gallery | Discussion Forum | UML Open Directory