 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
17 #ifndef MSDevice_Emissions_h
18 #define MSDevice_Emissions_h
122 const double frontOnLane,
123 const double timeOnLane,
124 const double meanSpeedFrontOnLane,
125 const double meanSpeedVehicleOnLane,
126 const double travelledDistanceFrontOnLane,
127 const double travelledDistanceVehicleOnLane,
128 const double meanLengthOnLane);
static void insertOptions()
Inserts MSDevice_Emissions-options.
Representation of a vehicle or person.
Representation of a lane in the micro simulation.
~MSDevice_Emissions()
Destructor.
Representation of a vehicle.
bool notifyMove(SUMOTrafficObject &veh, double oldPos, double newPos, double newSpeed)
Computes current emission values and adds them to their sums.
MSDevice_Emissions(const MSDevice_Emissions &)
Invalidated copy constructor.
MSDevice_Emissions(SUMOVehicle &holder, const std::string &id)
Constructor.
const std::string deviceName() const
return the name for this type of device
Storage for collected values of all emission types.
void notifyMoveInternal(const SUMOTrafficObject &veh, const double frontOnLane, const double timeOnLane, const double meanSpeedFrontOnLane, const double meanSpeedVehicleOnLane, const double travelledDistanceFrontOnLane, const double travelledDistanceVehicleOnLane, const double meanLengthOnLane)
Internal notification about the vehicle moves, see MSMoveReminder::notifyMoveInternal()
A device which collects vehicular emissions.
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSVehicleDevice * > &into)
Build devices for the given vehicle, if needed.
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.
Abstract in-vehicle device.