diff --git a/src/gui/ctrl/bus-controller.cpp b/src/gui/ctrl/bus-controller.cpp index 7860d0da1..f4b5c2f17 100644 --- a/src/gui/ctrl/bus-controller.cpp +++ b/src/gui/ctrl/bus-controller.cpp @@ -87,7 +87,7 @@ namespace ctrl { BusTerm BusTerm::attach (ID identity, Tangible& newNode) { - return BusTerm(identity, theBus_.routeAdd(newNode)); + return BusTerm(identity, theBus_.routeAdd (identity,newNode)); } @@ -161,9 +161,9 @@ namespace ctrl { * @return corresponding up-link for the initiating node to use */ BusTerm& - BusTerm::routeAdd (Tangible& node) + BusTerm::routeAdd (ID identity, Tangible& node) { - return theBus_.routeAdd(node); + return theBus_.routeAdd (identity, node); } diff --git a/src/gui/ctrl/bus-term.hpp b/src/gui/ctrl/bus-term.hpp index fc2216a6d..e3847ff80 100644 --- a/src/gui/ctrl/bus-term.hpp +++ b/src/gui/ctrl/bus-term.hpp @@ -127,7 +127,7 @@ namespace ctrl{ , theBus_(attached_to) { } - virtual BusTerm& routeAdd(Tangible&); + virtual BusTerm& routeAdd(ID,Tangible&); virtual void routeDetach(ID) noexcept; }; diff --git a/src/gui/ctrl/nexus.hpp b/src/gui/ctrl/nexus.hpp index a61231805..0129e3d62 100644 --- a/src/gui/ctrl/nexus.hpp +++ b/src/gui/ctrl/nexus.hpp @@ -99,13 +99,15 @@ namespace ctrl{ } /** add a new down-link connection to the routing table + * @param identity the [endpoint-ID][BusTerm::endpointID_] used + * to address the new element to be connected to the bus. * @return backlink for the new Tangible's BusTerm to * attach itself to the Nexus. */ virtual BusTerm& - routeAdd (Tangible& newNode) override + routeAdd (ID identity, Tangible& newNode) override { - routingTable_[newNode] = &newNode; + routingTable_[identity] = &newNode; return *this; }