|
OverSim
|
#include <StrategyRegions.h>
Public Member Functions | |
| StrategyRegions () | |
| .cc | |
| virtual | ~StrategyRegions () |
| 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 | setMyCoordinates (const AbstractNcsNodeInfo &ncsInfo) |
| 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 | |
| void | debugRegionData () |
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< long > | regionVector |
| The regionVector is a vector of integer values, each value represents a coordinate vector. | |
| typedef std::pair < TransportAddress, regionCountMap > | nodeRegionData |
| typedef UNORDERED_MAP < TransportAddress, regionCountMap, TransportAddress::hashFcn > | branchRegionDataMap |
Protected Member Functions | |
| long | convertCoordVectorToRegion (std::vector< double > coordVector) |
| convert a vector of doubles (=dimensions) to a single integer | |
| std::vector< double > | convertRegionToCoordVector (int region, int dimCount) |
| convert the region ID to a vector of doubles | |
| const regionCountMap | getCombinedRegionsMap () |
| void | setBranchCoordinates (const NodeHandle &node, regionCountMap countMap) |
| set the regions delivered by a child to our regionCountMap | |
| int | getSizePerDim () |
| int | getMaxSpread () |
| double | checkMaxSpread (double dimValue) |
Protected Attributes | |
| branchRegionDataMap | regionData |
Protected Attributes inherited from AbstractSendStrategy | |
| NodeHandle | thisNode |
| GlobalViewBuilder * | globalViewBuilder |
| int | lastSendCount |
| the quantity of coordinates sent by last message | |
Definition at line 37 of file StrategyRegions.h.
|
protected |
Definition at line 64 of file StrategyRegions.h.
|
protected |
Definition at line 63 of file StrategyRegions.h.
|
protected |
The regionVector is a vector of integer values, each value represents a coordinate vector.
Definition at line 61 of file StrategyRegions.h.
| StrategyRegions::StrategyRegions | ( | ) |
.cc
Definition at line 29 of file StrategyRegions.cc.
|
virtual |
Definition at line 35 of file StrategyRegions.cc.
|
protected |
Definition at line 172 of file StrategyRegions.cc.
Referenced by convertCoordVectorToRegion().
|
virtual |
cleanup the coordinate map and remove data of nodes which are not longer in the branch
Reimplemented from AbstractSendStrategy.
Definition at line 290 of file StrategyRegions.cc.
|
protected |
convert a vector of doubles (=dimensions) to a single integer
| std::vector<double> | coordVector |
Definition at line 193 of file StrategyRegions.cc.
Referenced by setMyCoordinates().
|
protected |
convert the region ID to a vector of doubles
| int | region |
| int | dimCount count of dimension of the original coordVector |
Definition at line 239 of file StrategyRegions.cc.
Referenced by getGlobalViewData().
| void StrategyRegions::debugRegionData | ( | ) |
|
protected |
Definition at line 65 of file StrategyRegions.cc.
Referenced by getCoordinateMessage(), getGlobalViewData(), and getStrategyDataStatus().
|
virtual |
Reimplemented from AbstractSendStrategy.
Definition at line 41 of file StrategyRegions.cc.
|
virtual |
return the decodes global View Data
Implements AbstractSendStrategy.
Definition at line 120 of file StrategyRegions.cc.
|
protected |
Definition at line 283 of file StrategyRegions.cc.
Referenced by checkMaxSpread(), convertCoordVectorToRegion(), convertRegionToCoordVector(), and getStrategyCombinedParams().
|
protected |
Definition at line 275 of file StrategyRegions.cc.
Referenced by convertCoordVectorToRegion(), convertRegionToCoordVector(), and getStrategyCombinedParams().
|
virtual |
return a string of the currently used strategy params
Implements AbstractSendStrategy.
Definition at line 53 of file StrategyRegions.cc.
|
virtual |
return a short status of the running send strategy
Reimplemented from AbstractSendStrategy.
Definition at line 102 of file StrategyRegions.cc.
|
virtual |
Reimplemented from AbstractSendStrategy.
Definition at line 93 of file StrategyRegions.cc.
|
protected |
set the regions delivered by a child to our regionCountMap
| node | NodeHandle assign the map to this node |
| countMap | regionCountMap the map of the node |
Definition at line 162 of file StrategyRegions.cc.
Referenced by handleCoordinateRpcCall(), and setMyCoordinates().
|
virtual |
Reimplemented from AbstractSendStrategy.
Definition at line 152 of file StrategyRegions.cc.
|
protected |
Definition at line 66 of file StrategyRegions.h.
Referenced by cleanUpCoordData(), getCombinedRegionsMap(), getStrategyDataStatus(), and setBranchCoordinates().