|
OverSim
|
#include <StrategySendAll.h>
Public Member Functions | |
| StrategySendAll () | |
| .cc | |
| virtual | ~StrategySendAll () |
| virtual void | setMyCoordinates (const AbstractNcsNodeInfo &ncsInfo) |
| virtual GlobalViewBuilderCall * | getCoordinateMessage () |
| virtual void | handleCoordinateRpcCall (GlobalViewBuilderCall *globalViewBuilderCall) |
| virtual std::string | getStrategyDataStatus () |
| return a short status of the running send strategy | |
| virtual std::vector < std::vector< double > > | getGlobalViewData () |
| return the decodes global View Data | |
| virtual void | cleanUpCoordData (const treeNodeMap ¤tTreeChildNodes) |
| cleanup the coordinate map and remove data of nodes which are not longer in the branch | |
| virtual std::string | getStrategyCombinedParams () |
| return a string of the currently used strategy params | |
Public Member Functions inherited from AbstractSendStrategy | |
| AbstractSendStrategy () | |
| .cc | |
| virtual | ~AbstractSendStrategy () |
| virtual void | initialize (GlobalViewBuilder *globalViewBuilder) |
| set a pointer to the neighborCache to access the optional parameters for the strategies | |
| virtual void | initializeStrategy () |
| stub method to initialize the concrete strategy | |
| virtual void | setThisNode (const NodeHandle thisNode) |
| Set the Nodehandle of the own node to identify the own coordinates. | |
Protected Types | |
| typedef std::vector < std::vector< double > > | coordinatesVector |
| The coordinatesVector is a vector of coordinates, where a coordinate itself is a vector of doubles (=Dimensions) | |
| typedef std::pair < TransportAddress, coordinatesVector > | nodeCoordData |
| typedef UNORDERED_MAP < TransportAddress, coordinatesVector, TransportAddress::hashFcn > | coordDataMap |
Protected Member Functions | |
| void | setBranchCoordinates (const NodeHandle &node, coordinatesVector coordsVector) |
| Set the CoordinatesVector to the map, identified by the sender node. | |
| const std::vector< std::vector < double > > | getCombinedCoordsVector () |
| Combine the coordinates of coordData map Structure to a single Vector of coordinates. | |
| virtual int | getSizeOfCoordVector (const coordinatesVector &combinedCoordsVector) |
| calculate and return the size of the used coordinate data structure return int size | |
| virtual int | getSizeOfSingleCoordinate (const coordinatesVector &combinedCoordsVector) |
Protected Attributes | |
| coordDataMap | coordData |
Protected Attributes inherited from AbstractSendStrategy | |
| NodeHandle | thisNode |
| GlobalViewBuilder * | globalViewBuilder |
| int | lastSendCount |
| the quantity of coordinates sent by last message | |
Definition at line 36 of file StrategySendAll.h.
|
protected |
Definition at line 59 of file StrategySendAll.h.
|
protected |
The coordinatesVector is a vector of coordinates, where a coordinate itself is a vector of doubles (=Dimensions)
Definition at line 57 of file StrategySendAll.h.
|
protected |
Definition at line 58 of file StrategySendAll.h.
| StrategySendAll::StrategySendAll | ( | ) |
|
virtual |
Definition at line 35 of file StrategySendAll.cc.
|
virtual |
cleanup the coordinate map and remove data of nodes which are not longer in the branch
Reimplemented from AbstractSendStrategy.
Definition at line 108 of file StrategySendAll.cc.
|
protected |
Combine the coordinates of coordData map Structure to a single Vector of coordinates.
Definition at line 86 of file StrategySendAll.cc.
Referenced by StrategyRemoveCoords::getCoordinateMessage(), getCoordinateMessage(), and getGlobalViewData().
|
virtual |
Reimplemented from AbstractSendStrategy.
Reimplemented in StrategyRemoveCoords.
Definition at line 63 of file StrategySendAll.cc.
|
virtual |
return the decodes global View Data
Implements AbstractSendStrategy.
Definition at line 166 of file StrategySendAll.cc.
|
protectedvirtual |
calculate and return the size of the used coordinate data structure return int size
Definition at line 138 of file StrategySendAll.cc.
|
protectedvirtual |
Definition at line 161 of file StrategySendAll.cc.
Referenced by StrategyRemoveCoords::removeCoordinatesByTrafficLimit().
|
virtual |
return a string of the currently used strategy params
Implements AbstractSendStrategy.
Reimplemented in StrategyRemoveCoords.
Definition at line 129 of file StrategySendAll.cc.
|
virtual |
return a short status of the running send strategy
Reimplemented from AbstractSendStrategy.
Definition at line 121 of file StrategySendAll.cc.
|
virtual |
Reimplemented from AbstractSendStrategy.
Definition at line 79 of file StrategySendAll.cc.
|
protected |
Set the CoordinatesVector to the map, identified by the sender node.
| node | NodeHandle to identify the sending node |
| coordsVector | coordinatesVector with the coordinates of all nodes in this branch |
Definition at line 52 of file StrategySendAll.cc.
Referenced by handleCoordinateRpcCall(), StrategyRemoveInaccurate::setMyCoordinates(), and setMyCoordinates().
|
virtual |
Reimplemented from AbstractSendStrategy.
Reimplemented in StrategyRemoveInaccurate.
Definition at line 41 of file StrategySendAll.cc.
|
protected |
Definition at line 62 of file StrategySendAll.h.
Referenced by cleanUpCoordData(), getCombinedCoordsVector(), and setBranchCoordinates().