21 #ifndef MSDevice_Emissions_h 22 #define MSDevice_Emissions_h static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSDevice *> &into)
Build devices for the given vehicle, if needed.
MSDevice_Emissions(SUMOVehicle &holder, const std::string &id)
Constructor.
bool notifyMove(SUMOVehicle &veh, double oldPos, double newPos, double newSpeed)
Computes current emission values and adds them to their sums.
MSDevice_Emissions & operator=(const MSDevice_Emissions &)
Invalidated assignment operator.
PollutantsInterface::Emissions myEmissions
Internal storages for pollutant/fuel sum in mg or ml.
void generateOutput() const
Called on writing tripinfo output.
Storage for collected values of all emission types.
~MSDevice_Emissions()
Destructor.
Representation of a vehicle.
Abstract in-vehicle device.
static void insertOptions()
Inserts MSDevice_Emissions-options.
const std::string deviceName() const
return the name for this type of device
A device which collects vehicular emissions.
Representation of a lane in the micro simulation.