42 if(strategyMode ==
"limitCoords") {
46 }
else if (strategyMode ==
"limitTraffic") {
50 }
else if (strategyMode ==
"percentage") {
54 }
else if (strategyMode ==
"") {
55 throw cRuntimeError(
"StrategyRemoveCoordinates::processCoordinates(): No Strategy Mode given.");
58 throw cRuntimeError(
"StrategyRemoveCoordinates::processCoordinates(): Unknown Strategy Mode given.");
63 throw cRuntimeError(
"StrategyRemoveCoordinates::processCoordinates(): Choice Strategy not implemented.");
67 int entrysToRemove =
static_cast<int>(coords->size() * (percentage / 100));
72 int entrysToRemove = coords->size() - coordLimit;
85 std::stringstream tempStr;
88 tempStr << strategyMode;
91 if(strategyMode ==
"limitCoords") {
94 }
else if (strategyMode ==
"limitTraffic") {
97 }
else if (strategyMode ==
"percentage") {
101 return tempStr.str();