org.fortiss.af3.platform.utils.PlatformModelElementFactory: remove / review createTransmissionConnection(IHierarchicElement parent, Transceiver source, Transceiver target)
- The implementation of createTransmissionConnection(IHierarchicElement parent, Transceiver source, Transceiver target) will create a TransmissionConnection and add it to the PlatformArchitecture.
- This is dangerous in the case of hierarchical platforms where TransmissionConnections are added to the immediate parent of two platform elements. The type of the 1st parameter of this method (IHierarchicElement parent) could lead developers to using this method (instead of the createTransmissionConnection() that is usually used), and create wrong models where all TransmissionConnection are owned by the PlatformArchitecture.
- Proposed short-term solution: Switch non-hierarchical platforms to createTransmissionConnection(PlatformArchitecture plarch, Transceiver source, Transceiver target) and abolish this overrride
- Proposed long term-solution: base non-hierarchical platforms on the code base for hierarchical platforms
(from redmine: issue id 2175, created on 2014-11-28, closed on 2015-06-03)
- Relations:
- relates #2059 (closed)
- parent #2099 (closed)