41 #ifdef CHECK_MEMORY_LEAKS
43 #endif // CHECK_MEMORY_LEAKS
59 oc.
addDescription(
"device.btreceiver.range",
"Communication",
"The period with which the vehicle shall be rerouted");
68 into.push_back(device);
77 :
MSDevice(holder, id), myRange(range) {
90 std::set<std::string> tmp;
92 std::set<std::string> inRange;
97 for (std::set<std::string>::const_iterator i = tmp.begin(); i != tmp.end(); ++i) {
104 for (MSLane::VehCont::const_iterator j = vehs.begin(); j != vehs.end(); ++j) {
105 if (static_cast<MSVehicle&>(
myHolder).getPosition().distanceTo((*j)->getPosition()) >
myRange) {
109 inRange.insert((*j)->getID());
123 if (inRange.find((*i).first) != inRange.end()) {
131 mySeen[(*i).first] = std::vector<SeenDevice*>();