Eclipse SUMO - Simulation of Urban MObility
MSEmissionExport Class Reference

Realises dumping Emission Data. More...

#include <MSEmissionExport.h>

Static Public Member Functions

static void write (OutputDevice &of, SUMOTime timestep, int precision)
 Writes the complete network state of the given edges into the given device. More...
 

Private Member Functions

 MSEmissionExport (const MSEmissionExport &)
 Invalidated copy constructor. More...
 
MSEmissionExportoperator= (const MSEmissionExport &)
 Invalidated assignment operator. More...
 

Detailed Description

Realises dumping Emission Data.

The class offers a static method, which writes all available emission factors of each vehicles of the network into the given OutputDevice.

Todo:
consider error-handling on write (using IOError)

Definition at line 47 of file MSEmissionExport.h.

Constructor & Destructor Documentation

◆ MSEmissionExport()

MSEmissionExport::MSEmissionExport ( const MSEmissionExport )
private

Invalidated copy constructor.

Member Function Documentation

◆ operator=()

MSEmissionExport& MSEmissionExport::operator= ( const MSEmissionExport )
private

Invalidated assignment operator.

◆ write()

void MSEmissionExport::write ( OutputDevice of,
SUMOTime  timestep,
int  precision 
)
static

Writes the complete network state of the given edges into the given device.

Opens the current time step and export the emission factors of all availabel vehicles

Parameters
[in]ofThe output device to use
[in]timestepThe current time step
Exceptions
IOErrorIf an error on writing occurs (!!! not yet implemented)

Definition at line 43 of file MSEmissionExport.cpp.

References PollutantsInterface::Emissions::addScaled(), GeoConvHelper::cartesian2geo(), OutputDevice::closeTag(), PollutantsInterface::Emissions::CO, PollutantsInterface::Emissions::CO2, PollutantsInterface::computeAll(), HelpersHarmonoise::computeNoise(), PollutantsInterface::Emissions::electricity, PollutantsInterface::Emissions::fuel, SUMOTrafficObject::getAcceleration(), SUMOVehicle::getAngle(), OptionsCont::getBool(), SUMOTrafficObject::getDevice(), SUMOTrafficObject::getEdge(), MSVehicleType::getEmissionClass(), SUMOVehicle::getEmissionParameters(), GeoConvHelper::getFinal(), MSVehicleType::getID(), Named::getID(), MSNet::getInstance(), MSVehicle::getLane(), PollutantsInterface::getName(), OptionsCont::getOptions(), SUMOTrafficObject::getPosition(), SUMOTrafficObject::getPositionOnLane(), SUMOVehicle::getRoute(), SUMOTrafficObject::getSlope(), SUMOTrafficObject::getSpeed(), OptionsCont::getString(), MSNet::getVehicleControl(), SUMOTrafficObject::getVehicleType(), MSBaseVehicle::getWaitingSeconds(), gPrecision, gPrecisionGeo, MSGlobals::gUseMesoSim, PollutantsInterface::Emissions::HC, SUMOVehicle::isIdling(), SUMOVehicle::isOnRoad(), MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), MAX2(), GeomHelper::naviDegree(), PollutantsInterface::Emissions::NOx, OutputDevice::openTag(), PollutantsInterface::Emissions::PMx, OutputDevice::setPrecision(), string2time(), SUMO_ATTR_X, SUMO_ATTR_Y, SUMO_ATTR_Z, time2string(), TS, OutputDevice::writeAttr(), Position::x(), Position::y(), and Position::z().

Referenced by MSNet::writeOutput().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: