The element <reference> describes the engineering object of the graphical connection. This specifies, between which object type connections can be made and in which direction a connection can be made.
Further elements, which are required for specifying of connections:
Attribute name | Usage | Attribute values | Default value | Description |
---|---|---|---|---|
applicableTo | optional, only for type = connected | Formula, which determines, if the current reference fits to the given engineering object. | ||
connectedObjects | optional, only for type = connected | Formula for connected objects | ||
id | required | ID of the element | ||
src | optional | Formula for the validity of a source object type | ||
target | optional | Formula for the validity of a target object type | ||
type | required | connectable connected containment |
Defines the reference type: connected = determined by the model connectable = can be created in the diagram containment = describes the relation to nodes, which are placed in a container that is not part of the composition |
Allowed sub-elements | Quantity |
---|---|
backward | 0 through 1 |
forward | 0 through 1 |
sourceNodeType | 0 through 1 |
targetNodeType | 0 through 1 |
The project library contains executions, which are not located under the mechatronic component (e.g. TransportChain), but under the diagram component (see result, 1). The executions, which are arranged in the swim lanes, are located under the mechatronic component (see result, 2).
The first section defines that the component AQUIMO-Baukasten.Ablauf.Ablauf as superordinate component (target) collects all subordinate components (src) AQUIMO-Baukasten.Ablauf.Zustand_dyn. This means the diagram collects all swim lanes.
The first section defines that the component AQUIMO-Baukasten.Ablauf.Zustand as superordinate component (target) collects all subordinate components (src) AQUIMO-Baukasten.Ablauf.Ausfuehrung. This means the swim lanes collect all executions.
<reference id="ContainmentRefSwimlane"
type="containment"
src="=isInstanceOf('AQUIMO-Baukasten.Ablauf.Zustand_dyn')"
target="=isInstanceOf('AQUIMO-Baukasten.Ablauf.Ablauf')">
<forward connector="=diagramParent" multiplicity="*"/>
</reference>
<reference id="ContainmentRefAusfuehrung"
type="containment"
src="=isInstanceOf('AQUIMO-Baukasten.Ablauf.Ausfuehrung')"
target="=isInstanceOf('AQUIMO-Baukasten.Ablauf.Zustand_dyn')">
<forward connector="=parameter('Dynamischer_Zustand')" multiplicity="*"/>
</reference>
Result: