AbstractConnection
is the abstract super class for all connections: connection, delegation down, delegation up, bus connection, bus delegation
More...
Public Member Functions | |
AbstractConnection () | |
constructor | |
void | addDataLink (AbstractDataLink newDataElementLink) throws AXLException |
Adds a data element link. | |
int | compareTo (IAXLangElement axlOther) |
Define sorting order. | |
AbstractDataLink | createDataLink (DataElement sourceDataElement, DataElement targetDataElement) throws AXLException |
Creates a data link with source and target data element and adds it to the connection. | |
Collection< AbstractDataLink > | getDataLinks () |
Returns the data element links. | |
DataElement | getOutputDataElement (DataElement input) |
maps a data element at the input port of the connection to the data element at the output port of the connection that is associated to the input via a data element link of the connection | |
abstract Port | getSourcePort () |
Returns the referenced source port. | |
LocalPortInstance | getSourcePortInstance () |
Returns the source port instance if it exists. | |
SubComponent | getSourceSubComponent () |
Returns the referenced source subcomponent. | |
abstract Port | getTargetPort () |
Returns the referenced target port. | |
LocalPortInstance | getTargetPortInstance () |
Returns the target port instance if it exists. | |
SubComponent | getTargetSubComponent () |
Returns the referenced target subcomponent. | |
boolean | isConnection () |
Returns if the connection is a connection, not a delegation. | |
boolean | isDelegation () |
Returns if the connection is a delegation. | |
boolean | removeDataLink (AbstractDataLink dataLink) |
removes a data link | |
abstract boolean | removeSourcePort (Port oldSourcePort) |
Removes the reference to the old source port. | |
abstract boolean | removeTargetPort (Port oldTargetPort) |
Removes the reference to the old target port. | |
abstract void | setSourcePort (Port newSourcePort) throws AXLException |
Sets the reference to the new source port. | |
void | setSourcePortInstance (LocalPortInstance sourcePortInstance) throws AXLException |
Sets the source port instance, if it is possible. | |
void | setSourceSubComponent (SubComponent subcomponent) throws AXLException |
sets the source subcomponent if possible | |
abstract void | setTargetPort (Port newTargetPort) throws AXLException |
Sets the reference to the new target port. | |
void | setTargetPortInstance (LocalPortInstance targetPortInstance) throws AXLException |
Sets the target port instance, if it is possible. | |
void | setTargetSubComponent (SubComponent subcomponent) throws AXLException |
sets the target subcomponent if possible |
AbstractConnection
is the abstract super class for all connections: connection, delegation down, delegation up, bus connection, bus delegation
de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.AbstractConnection | ( | ) |
constructor
void de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.addDataLink | ( | AbstractDataLink | newDataElementLink | ) | throws AXLException |
Adds a data element link.
newDataElementLink | the new data element link |
AXLException | if element could not be added |
Reimplemented in de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractBusConnection.
int de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.compareTo | ( | IAXLangElement | axlOther | ) |
Define sorting order.
Sorting order (smaller elements first):
axlOther | other element |
<0 | this element is less than the other | |
0 | this element equals the other | |
>0 | this element is greater than the other |
Reimplemented from de.fraunhofer.isst.axbench.axlang.api.AbstractAXLangElement.
AbstractDataLink de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.createDataLink | ( | DataElement | sourceDataElement, | |
DataElement | targetDataElement | |||
) | throws AXLException |
Creates a data link with source and target data element and adds it to the connection.
sourceDataElement | the new source data element | |
targetDataElement | the new target data element |
AXLException | if element could not be added |
Collection<AbstractDataLink> de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.getDataLinks | ( | ) |
Returns the data element links.
DataElement de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.getOutputDataElement | ( | DataElement | input | ) |
maps a data element at the input port of the connection to the data element at the output port of the connection that is associated to the input via a data element link of the connection
input | a data element from the input port of the connection |
null | if no data element at the output port is linked to the input data element |
abstract Port de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.getSourcePort | ( | ) | [pure virtual] |
Returns the referenced source port.
Implemented in de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractBusConnection, de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.Connection, de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.DelegationDown, and de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.DelegationUp.
LocalPortInstance de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.getSourcePortInstance | ( | ) |
Returns the source port instance if it exists.
Reimplemented in de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractBusConnection.
SubComponent de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.getSourceSubComponent | ( | ) |
Returns the referenced source subcomponent.
null | if it does not exist |
Reimplemented in de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractBusConnection.
abstract Port de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.getTargetPort | ( | ) | [pure virtual] |
Returns the referenced target port.
Implemented in de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.BusConnection, de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.BusDelegation, de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.Connection, de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.DelegationDown, and de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.DelegationUp.
LocalPortInstance de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.getTargetPortInstance | ( | ) |
Returns the target port instance if it exists.
SubComponent de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.getTargetSubComponent | ( | ) |
Returns the referenced target subcomponent.
null | if it does not exist |
boolean de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.isConnection | ( | ) |
Returns if the connection is a connection, not a delegation.
true | connection | |
false | delegation |
boolean de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.isDelegation | ( | ) |
Returns if the connection is a delegation.
true | delegation | |
false | connection |
boolean de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.removeDataLink | ( | AbstractDataLink | dataLink | ) |
removes a data link
dataLink | the data link to be removed |
abstract boolean de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.removeSourcePort | ( | Port | oldSourcePort | ) | [pure virtual] |
Removes the reference to the old source port.
oldSourcePort | the old source port |
Implemented in de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractBusConnection, de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.Connection, de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.DelegationDown, and de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.DelegationUp.
abstract boolean de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.removeTargetPort | ( | Port | oldTargetPort | ) | [pure virtual] |
Removes the reference to the old target port.
oldSourcePort | the old target port |
Implemented in de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.BusConnection, de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.BusDelegation, de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.Connection, de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.DelegationDown, and de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.DelegationUp.
abstract void de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.setSourcePort | ( | Port | newSourcePort | ) | throws AXLException [pure virtual] |
Sets the reference to the new source port.
newSourcePort | the new source port |
AXLException | if the reference to the new source port cannot be set. |
Implemented in de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractBusConnection, de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.Connection, de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.DelegationDown, and de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.DelegationUp.
void de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.setSourcePortInstance | ( | LocalPortInstance | sourcePortInstance | ) | throws AXLException |
Sets the source port instance, if it is possible.
the | new source port instance |
AXLException | if the source port instance cannot be set |
Reimplemented in de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractBusConnection.
void de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.setSourceSubComponent | ( | SubComponent | subcomponent | ) | throws AXLException |
sets the source subcomponent if possible
subcomponent | the new source subcomponent |
AXLException | if the source subcomponent cannot be set |
Reimplemented in de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractBusConnection.
abstract void de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.setTargetPort | ( | Port | newTargetPort | ) | throws AXLException [pure virtual] |
Sets the reference to the new target port.
newSourcePort | the new target port |
AXLException | if the reference to the new target port cannot be set. |
Implemented in de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.BusConnection, de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.BusDelegation, de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.Connection, de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.DelegationDown, and de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.DelegationUp.
void de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.setTargetPortInstance | ( | LocalPortInstance | targetPortInstance | ) | throws AXLException |
Sets the target port instance, if it is possible.
the | new target port instance |
AXLException | if the source port instance cannot be set |
void de.fraunhofer.isst.axbench.axlang.elements.architecturemodel.AbstractConnection.setTargetSubComponent | ( | SubComponent | subcomponent | ) | throws AXLException |
sets the target subcomponent if possible
subcomponent | the new target subcomponent |
AXLException | if the target subcomponent cannot be set |