Changeset 3718 for source/ariba/overlay/modules
- Timestamp:
- May 27, 2009, 8:13:08 AM (16 years ago)
- Location:
- source/ariba/overlay/modules
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/OverlayFactory.cpp
r3690 r3718 53 53 54 54 switch( param.getOverlayStructure() ){ 55 case OverlayParameterSet::OverlayStructureOneHop:56 return new OneHop( baseoverlay, nodeid, routeReceiver );57 55 58 56 case OverlayParameterSet::OverlayStructureChord: 59 return new Chord( baseoverlay, nodeid, routeReceiver );57 return new Chord( baseoverlay, nodeid, routeReceiver, param ); 60 58 61 case OverlayParameterSet::OverlayStructure Kademlia:62 return NULL;59 case OverlayParameterSet::OverlayStructureOneHop: 60 return new OneHop( baseoverlay, nodeid, routeReceiver, param ); 63 61 64 62 default: -
source/ariba/overlay/modules/OverlayInterface.cpp
r3705 r3718 46 46 ServiceID OverlayInterface::OVERLAY_SERVICE_ID(0); 47 47 48 OverlayInterface::OverlayInterface(BaseOverlay& _baseoverlay, 49 const NodeID& _nodeid, OverlayStructureEvents* _eventsReceiver) : 50 baseoverlay(_baseoverlay), nodeid(_nodeid), eventsReceiver(_eventsReceiver) { 48 OverlayInterface::OverlayInterface(BaseOverlay& _baseoverlay, const NodeID& _nodeid, 49 OverlayStructureEvents* _eventsReceiver, OverlayParameterSet _parameters) : 50 baseoverlay(_baseoverlay), nodeid(_nodeid), 51 eventsReceiver(_eventsReceiver), parameters(_parameters) { 51 52 52 53 _baseoverlay.bind(this, OVERLAY_SERVICE_ID); … … 82 83 } 83 84 85 const OverlayParameterSet& OverlayInterface::getParameters() const { 86 return parameters; 87 } 88 84 89 }} // namespace ariba, overlay -
source/ariba/overlay/modules/OverlayInterface.h
r3690 r3718 45 45 #include "ariba/utility/types/NodeID.h" 46 46 #include "ariba/utility/types/ServiceID.h" 47 #include "ariba/utility/types/OverlayParameterSet.h" 47 48 48 49 using ariba::CommunicationListener; … … 51 52 using ariba::utility::NodeID; 52 53 using ariba::utility::ServiceID; 54 using ariba::utility::OverlayParameterSet; 53 55 54 56 namespace ariba { … … 75 77 BaseOverlay& _baseoverlay, 76 78 const NodeID& _nodeid, 77 OverlayStructureEvents* _eventsReceiver ); 79 OverlayStructureEvents* _eventsReceiver, 80 OverlayParameterSet _parameters 81 ); 78 82 79 83 /** … … 154 158 const LinkID& lnk = LinkID::UNSPECIFIED); 155 159 160 161 const OverlayParameterSet& getParameters() const; 162 156 163 protected: 157 164 158 165 /// Reference to an active base overlay 159 166 BaseOverlay& baseoverlay; 167 168 /// The parameters of the overlay structure 169 OverlayParameterSet parameters; 160 170 161 171 /// The node identifier to use with this overlay -
source/ariba/overlay/modules/chord/Chord.cpp
r3713 r3718 53 53 54 54 Chord::Chord(BaseOverlay& _baseoverlay, const NodeID& _nodeid, 55 OverlayStructureEvents* _eventsReceiver ) :56 OverlayInterface(_baseoverlay, _nodeid, _eventsReceiver ) {55 OverlayStructureEvents* _eventsReceiver, const OverlayParameterSet& param) : 56 OverlayInterface(_baseoverlay, _nodeid, _eventsReceiver, param) { 57 57 58 58 // create routing table -
source/ariba/overlay/modules/chord/Chord.h
r3690 r3718 89 89 public: 90 90 Chord(BaseOverlay& _baseoverlay, const NodeID& _nodeid, 91 OverlayStructureEvents* _eventsReceiver );91 OverlayStructureEvents* _eventsReceiver, const OverlayParameterSet& param); 92 92 virtual ~Chord(); 93 93 -
source/ariba/overlay/modules/onehop/OneHop.cpp
r3705 r3718 49 49 use_logging_cpp( OneHop ); 50 50 51 OneHop::OneHop(BaseOverlay& _baseoverlay, const NodeID& _nodeid, OverlayStructureEvents* _eventsReceiver) 52 : OverlayInterface( _baseoverlay, _nodeid, _eventsReceiver ), 51 OneHop::OneHop(BaseOverlay& _baseoverlay, const NodeID& _nodeid, 52 OverlayStructureEvents* _eventsReceiver, const OverlayParameterSet& param) 53 : OverlayInterface( _baseoverlay, _nodeid, _eventsReceiver, param ), 53 54 state ( OneHopStateInvalid ), 54 55 bootstrapLink ( LinkID::UNSPECIFIED ), -
source/ariba/overlay/modules/onehop/OneHop.h
r3705 r3718 55 55 public: 56 56 OneHop(BaseOverlay& _overlay, const NodeID& _nodeid, 57 OverlayStructureEvents* _eventsReceiver );57 OverlayStructureEvents* _eventsReceiver, const OverlayParameterSet& param); 58 58 59 59 virtual ~OneHop();
Note:
See TracChangeset
for help on using the changeset viewer.