Describes a connection between two nodes of the diagram.
Further elements, which are required for specifying of connections:
Attribute name | Usage | Attribute values | Default value | Description |
---|---|---|---|---|
color | optional | RGB value 0,0,0 to 255,255,255 |
Connection color as RGB value | |
id | required | ID of the element | ||
labelFont | optional | Font-style-size | Font type, style, and size for displaying text | |
name | optional | YES NO |
NO | Formula,which returns a list of depending objects |
reference | optional | ID of the reference element, that represents the connection as the EO | ||
router | optional | |||
selectable | optional | |||
sourceDeco | aggregation arrow composition diamond empty filled-arrow circle filled-circle triangle filled-triangle square filled-square |
empty | End style of the line aggregation = empty rhombus arrow = arrow from lines composition = filled rhombus diamond = filled diamond empty = without shape filled-arrow = filled arrow circle = circle filled-circle = filled circle triangle = triangle filled-triangle = filled triangle square = square filled-square = filled square |
|
sourceLabel | optional | Shows a label at the starting point of the connection | ||
sourceLabelFont | optional | Font-style-size | Font type, style and size for displaying the label text at the starting point of the connection | |
style | optional | line type | ||
super | optional | NSEW | Specifies the router ID of the router, which shall be used for the current <node> element, if it has an own connection layer. | |
targetDeco | aggregation arrow composition diamond empty filled-arrow circle filled-circle triangle filled-triangle square filled-square |
empty | End style of the line aggregation = empty rhombus arrow = arrow from lines composition = filled rhombus diamond = filled diamond empty = without shape filled-arrow = filled arrow circle = circle filled-circle = filled circle triangle = triangle filled-triangle = filled triangle square = square filled-square = filled square |
|
targetLabel | optional | Shows a label at the endpoint of the connection | ||
targetLabelFont | optional | Font-style-size | Font type, style and size for displaying the label text at the end point of the connection | |
tooltip | optional | Text displayed as a tooltip. If a formula is used, it can be referenced to the start node with src and to the destination node with target. | ||
visible | optional | true, false | Visibility true = visible false = hidden The following variables are also available to control visibility by way of the formula: - src: supplies the source object of the connection - target: supplies the target object of the connection - diagram: supplies the diagram object - diagramParent: supplies the parent project component of the diagram |
|
width | optional | line width |
Allowed sub-elements | Quantity |
---|---|
none |
Shapes of connections (attributes sourceDeco and targetDeco):
Attribute value | Representation |
---|---|
aggregation | |
arrow | |
composition | |
diamond | |
empty | |
filled-arrow | |
circle | |
filled-circle | |
triangle | |
filled-triangle | |
square | |
filled-square |
This example shows the configuration of connections in the Planning_Diagram of the BodyshellWork model. The representation of the connections is specified by the <connection> element and the reference attribute defines, for what connection this representation applies.
<reference id="OrderReference" type="connectable" src="=isInstanceEO() and
isInstanceOf('BodyShellWork_Architecture.LevelComponents.Function')"
target="=isInstanceEO() and
isInstanceOf('BodyShellWork_Architecture.LevelComponents.Function')">
<forward multiplicity="*" connector="=getParameter('Successor')"/>
<backward multiplicity="*" connector="=getParameter('Predecessor')"/>
</reference>
<connection id="Order"
reference="OrderReference"
width="3"
color="17,240,70"
sourceDeco="empty"
targetDeco="filled-arrow"/>
This example code shows a connection with a tooltip, which indicates the names of the start and destination nodes.
<connection id="Order"
reference="OrderReference"
width="3"
color="17,240,70"
sourceDeco="empty"
targetDeco="filled-arrow"
tooltip= "='Predecessor: ' + src.getName() + '|' + 'Successor: ' + target.getName()" />
Result: