OverSim
SendStrategyFactory Class Reference

#include <SendStrategyFactory.h>

Public Member Functions

 SendStrategyFactory ()
 .cc
virtual ~SendStrategyFactory ()

Static Public Member Functions

static AbstractSendStrategygetSendStrategyInstance (const std::string sendStrategyName)

Detailed Description

Definition at line 22 of file SendStrategyFactory.h.

Constructor & Destructor Documentation

SendStrategyFactory::SendStrategyFactory ( )

.cc

Author
Daniel Lienert

Definition at line 27 of file SendStrategyFactory.cc.

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

Definition at line 31 of file SendStrategyFactory.cc.

{
// TODO Auto-generated destructor stub
}

Member Function Documentation

AbstractSendStrategy * SendStrategyFactory::getSendStrategyInstance ( const std::string  sendStrategyName)
static

Definition at line 35 of file SendStrategyFactory.cc.

Referenced by GlobalViewBuilder::initializeViewBuilder().

{
EV << "|DD|> SendStrategyFactory::getSendStrategyInstance (" << "Using Strategy: " << sendStrategyName << ") <||" << endl;
if(sendStrategyName == "sendAll") {
return new StrategySendAll();
} else if (sendStrategyName == "simplifyCoords") {
return new StrategySimplifyCoords();
} else if (sendStrategyName == "removeRandom") {
return new StrategyRemoveRandom();
} else if (sendStrategyName == "removeInaccurate") {
} else if (sendStrategyName == "regions") {
return new StrategyRegions();
} else if (sendStrategyName == "treeTest") {
return new StrategyTreeTest();
} else if (sendStrategyName == "") {
throw cRuntimeError("SendStrategyFactory::getSendStrategyInstance(): No Strategy Name given.");
}
throw cRuntimeError("SendStrategyFactory::getSendStrategyInstance(): Strategy is not implemented.");
}

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