Changeset 6266 for source/ariba/overlay/modules
- Timestamp:
- Sep 25, 2009, 2:30:33 PM (15 years ago)
- Location:
- source/ariba/overlay/modules
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/OverlayInterface.h
r5870 r6266 116 116 virtual const EndpointDescriptor& resolveNode(const NodeID& node) = 0; 117 117 118 119 /** 120 * Returns true if this is the closest node to the given node 121 * identifier. 122 * 123 * @param node The node identifier to compare with 124 * @return True if this is the closest node to the given node identifier 125 */ 126 virtual bool isClosestNodeTo( const NodeID& node ) = 0; 127 118 128 /** 119 129 * Returns the nodes known to this overlay. -
source/ariba/overlay/modules/chord/Chord.cpp
r6198 r6266 181 181 if (item == NULL || item->info.isUnspecified()) return EndpointDescriptor::UNSPECIFIED(); 182 182 return baseoverlay.getEndpointDescriptor(item->info); 183 } 184 185 /// @see OverlayInterface.h 186 bool Chord::isClosestNodeTo( const NodeID& node ) { 187 return table->is_closest_to(node); 183 188 } 184 189 -
source/ariba/overlay/modules/chord/Chord.h
r5876 r6266 123 123 124 124 /// @see OverlayInterface.h 125 virtual bool isClosestNodeTo( const NodeID& node ); 126 127 /// @see OverlayInterface.h 125 128 virtual NodeList getKnownNodes(bool deep = true) const; 126 129 -
source/ariba/overlay/modules/onehop/OneHop.cpp
r5743 r6266 79 79 } 80 80 81 82 /// @see OverlayInterface.h 83 bool OneHop::isClosestNodeTo( const NodeID& node ) { 84 throw "NOT IMPLEMENTED!"; 85 return false; 86 } 87 81 88 void OneHop::routeMessage(const NodeID& destnode, Message* msg){ 82 89 -
source/ariba/overlay/modules/onehop/OneHop.h
r5624 r6266 81 81 82 82 /// @see OverlayInterface.h 83 virtual bool isClosestNodeTo( const NodeID& node ); 84 85 /// @see OverlayInterface.h 83 86 virtual const LinkID& getNextLinkId( const NodeID& id ) const; 84 87
Note:
See TracChangeset
for help on using the changeset viewer.