OverSim
AbstractSendStrategy Class Reference

#include <AbstractSendStrategy.h>

Inheritance diagram for AbstractSendStrategy:
StrategyRegions StrategySendAll StrategySimplifyCoords StrategyTreeTest StrategyRemoveCoords StrategyRemoveInaccurate StrategyRemoveRandom

Public Member Functions

 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 handleCoordinateRpcCall (GlobalViewBuilderCall *globalViewBuilderCall)
virtual GlobalViewBuilderCallgetCoordinateMessage ()
virtual void setMyCoordinates (const AbstractNcsNodeInfo &ncsInfo)
virtual std::vector
< std::vector< double > > 
getGlobalViewData ()=0
 return the decodes global View Data
virtual void setThisNode (const NodeHandle thisNode)
 Set the Nodehandle of the own node to identify the own coordinates.
virtual std::string getStrategyDataStatus ()
 return a short status of the running send strategy
virtual std::string getStrategyCombinedParams ()=0
 return a string of the currently used strategy params
virtual void cleanUpCoordData (const treeNodeMap &currentTreeChildNodes)
 cleanup the coordinate map and remove data of nodes which are not longer in the branch

Protected Attributes

NodeHandle thisNode
GlobalViewBuilderglobalViewBuilder
int lastSendCount
 the quantity of coordinates sent by last message

Detailed Description

Definition at line 35 of file AbstractSendStrategy.h.

Constructor & Destructor Documentation

AbstractSendStrategy::AbstractSendStrategy ( )

.cc

Author
Daniel Lienert

Definition at line 27 of file AbstractSendStrategy.cc.

{
// TODO Auto-generated constructor stub
}
AbstractSendStrategy::~AbstractSendStrategy ( )
virtual

Definition at line 31 of file AbstractSendStrategy.cc.

{
// TODO Auto-generated destructor stub
}

Member Function Documentation

void AbstractSendStrategy::cleanUpCoordData ( const treeNodeMap currentTreeChildNodes)
virtual

cleanup the coordinate map and remove data of nodes which are not longer in the branch

Reimplemented in StrategyTreeTest, StrategyRegions, StrategySimplifyCoords, and StrategySendAll.

Definition at line 63 of file AbstractSendStrategy.cc.

Referenced by GlobalViewBuilder::cleanup(), and GlobalViewBuilder::handleCoordSendTimer().

{
}
GlobalViewBuilderCall * AbstractSendStrategy::getCoordinateMessage ( )
virtual
virtual std::vector<std::vector<double> > AbstractSendStrategy::getGlobalViewData ( )
pure virtual

return the decodes global View Data

Implemented in StrategyTreeTest, StrategySendAll, StrategyRegions, and StrategySimplifyCoords.

Referenced by GlobalViewBuilder::spreadGlobalView().

virtual std::string AbstractSendStrategy::getStrategyCombinedParams ( )
pure virtual

return a string of the currently used strategy params

Implemented in StrategyTreeTest, StrategyRegions, StrategySimplifyCoords, StrategySendAll, and StrategyRemoveCoords.

std::string AbstractSendStrategy::getStrategyDataStatus ( )
virtual

return a short status of the running send strategy

Reimplemented in StrategyTreeTest, StrategySendAll, StrategyRegions, and StrategySimplifyCoords.

Definition at line 59 of file AbstractSendStrategy.cc.

Referenced by GlobalViewBuilder::handleCoordSendTimer().

{
return "-";
}
void AbstractSendStrategy::handleCoordinateRpcCall ( GlobalViewBuilderCall globalViewBuilderCall)
virtual
void AbstractSendStrategy::initialize ( GlobalViewBuilder globalViewBuilder)
virtual

set a pointer to the neighborCache to access the optional parameters for the strategies

Parameters
neighborCache

Definition at line 35 of file AbstractSendStrategy.cc.

Referenced by GlobalViewBuilder::initializeViewBuilder().

{
this->globalViewBuilder = globalViewBuilder;
}
void AbstractSendStrategy::initializeStrategy ( )
virtual

stub method to initialize the concrete strategy

Definition at line 41 of file AbstractSendStrategy.cc.

Referenced by initialize().

{
}
void AbstractSendStrategy::setMyCoordinates ( const AbstractNcsNodeInfo ncsInfo)
virtual
void AbstractSendStrategy::setThisNode ( const NodeHandle  thisNode)
virtual

Set the Nodehandle of the own node to identify the own coordinates.

Definition at line 66 of file AbstractSendStrategy.cc.

Referenced by GlobalViewBuilder::cleanup(), and GlobalViewBuilder::handleCoordSendTimer().

{
this->thisNode = thisNode;
}

Member Data Documentation

int AbstractSendStrategy::lastSendCount
protected

The documentation for this class was generated from the following files: