Connector

Connector Overview

Connectors, visually represented as lines, serve as links between blocks by connecting their terminals. Each connector establishes the flow of data or control between the blocks. While a connector can have only one output terminal as its source, it can connect to multiple input terminals as its destinations.

When you left-click on a connector, it becomes selected and is highlighted, making it easier to identify and manage.

Data Type

Each connector is associated with a specific data type, determined by the highest data type among the connected terminals. When a connection is made between two different data types the end terminal will be implicitly upcasted. This ensures compatibility and smooth data flow within the program.

Adding a Connector

To add a connector:

  1. Drag from an input terminal to an output terminal or vice versa.

  2. Ensure the data types of the input and output terminals match.

If a block connected to a terminal is deleted, the corresponding connector is not automatically removed. In such cases, the connector will remain and must be reconnected to a valid terminal. The user can redraw the connector by dragging it from a valid terminal to another valid terminal.

Edit a Connector

Users can modify connectors to adjust their paths:

Move Segments: Drag the top or bottom segments of a connector to reposition it. Merge Segments: When multiple blocks are intend to connect to a single output terminal, it can be achieved by connecting the first block as usual and for the following other blocks start the connection form the input terminal of the block to the connector between the output terminal and the first blocks. It creates a branch connector segment.

Delete a Connector

By performing a right click on a connector and selectt Delete, the connector is deleted.

In connector deletion, if the connector has multiple end terminals, then the root path of the segments is only deleted.