}
return ambif;
}
-
AMBIF::AMBIF(AbstractRoutingEngine *engine,
std::map<std::string, std::string> config) :
AbstractSource(engine, config)
<< "\n";
}
}
- routingEngine->setSupported(supported(), this);
+ routingEngine->updateSupported(supported(), PropertyList(), this);
DebugOut(1) << "INFO CHG_VIC_INF The number of AMB vehicle info is " << vehicleinfoArray.size() << ".\n";
return true;
}
<< vehicleinfo->name << "\n";
if (find(vehicleinfo->name) != NULL) {
vehicleinfo->value->zone = vehicleinfo->zone;
+ vehicleinfo->value->priority = AbstractPropertyType::Instant;
DebugOut(50) << "AMBIF requestUpdate request property name is "
<< vehicleinfo->name << ", zone is " << vehicleinfo->zone << "\n";
updateProperty(vehicleinfo);
}
#if LATER1024
-PropertyInfo AMBIF::getPropertyInfo(VehicleProperty::Property property) {
+PropertyInfo AMBIF::getPropertyInfo(const VehicleProperty::Property & property) {
if (propertyInfoMap.find(property) != propertyInfoMap.end()) {
return propertyInfoMap[property];
}
- std::list<Zone::Type> zones;
+ Zone::ZoneList zones;
AMBVehicleInfo vi;
vi.name = property;
std::vector<AMBVehicleInfo>::iterator itr, itr_idx, itr_end;