|
OverSim
|
#include <StrategySimplifyCoords.h>
Public Member Functions | |
| StrategySimplifyCoords () | |
| .cc | |
| virtual | ~StrategySimplifyCoords () |
| 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 | |
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::pair < TransportAddress, simpleCoordCountMap > | nodeCoordData |
| typedef UNORDERED_MAP < TransportAddress, simpleCoordCountMap, TransportAddress::hashFcn > | branchCoordDataMap |
Protected Member Functions | |
| void | setBranchCoordinates (const NodeHandle &node, simpleCoordCountMap countMap) |
| set the coordCountMap delivered by a child to our coordCountMap | |
| SimpleCoordinate | simplify (std::vector< double > coordVector) |
| simplify every dimension of the given coordVector by the simplifyFactor | |
| std::vector< double > | decode (SimpleCoordinate simplifiedVector) |
| decode the simplified vector to the original interval | |
| const simpleCoordCountMap | getCombinedCoordCountMap () |
Protected Attributes | |
| branchCoordDataMap | coordData |
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 StrategySimplifyCoords.h.
|
protected |
Definition at line 57 of file StrategySimplifyCoords.h.
|
protected |
Definition at line 56 of file StrategySimplifyCoords.h.
| StrategySimplifyCoords::StrategySimplifyCoords | ( | ) |
.cc
Definition at line 27 of file StrategySimplifyCoords.cc.
|
virtual |
Definition at line 31 of file StrategySimplifyCoords.cc.
|
virtual |
cleanup the coordinate map and remove data of nodes which are not longer in the branch
Reimplemented from AbstractSendStrategy.
Definition at line 142 of file StrategySimplifyCoords.cc.
|
protected |
decode the simplified vector to the original interval
| std::vector<int> | simplifiedVector |
Definition at line 175 of file StrategySimplifyCoords.cc.
Referenced by getGlobalViewData().
|
protected |
Definition at line 66 of file StrategySimplifyCoords.cc.
Referenced by getCoordinateMessage(), getGlobalViewData(), and getStrategyDataStatus().
|
virtual |
Reimplemented from AbstractSendStrategy.
Definition at line 53 of file StrategySimplifyCoords.cc.
|
virtual |
return the decodes global View Data
Implements AbstractSendStrategy.
Definition at line 194 of file StrategySimplifyCoords.cc.
|
virtual |
return a string of the currently used strategy params
Implements AbstractSendStrategy.
Definition at line 131 of file StrategySimplifyCoords.cc.
|
virtual |
return a short status of the running send strategy
Reimplemented from AbstractSendStrategy.
Definition at line 101 of file StrategySimplifyCoords.cc.
|
virtual |
Reimplemented from AbstractSendStrategy.
Definition at line 95 of file StrategySimplifyCoords.cc.
|
protected |
set the coordCountMap delivered by a child to our coordCountMap
| node | NodeHandle assign the map to this node |
| countMap | simpleCoordCountMap the map of the node |
Definition at line 44 of file StrategySimplifyCoords.cc.
Referenced by handleCoordinateRpcCall(), and setMyCoordinates().
|
virtual |
Reimplemented from AbstractSendStrategy.
Definition at line 35 of file StrategySimplifyCoords.cc.
|
protected |
simplify every dimension of the given coordVector by the simplifyFactor
| std::vector<double> | coordvector original double vector |
Definition at line 158 of file StrategySimplifyCoords.cc.
Referenced by setMyCoordinates().
|
protected |
Definition at line 59 of file StrategySimplifyCoords.h.
Referenced by cleanUpCoordData(), getCombinedCoordCountMap(), and setBranchCoordinates().