Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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.
 

Private Member Functions

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

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(), MSDevice_Emissions::getWrittenAttributes(), 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_ANGLE, SUMO_ATTR_CO, SUMO_ATTR_CO2, SUMO_ATTR_ECLASS, SUMO_ATTR_EDGE, SUMO_ATTR_ELECTRICITY, SUMO_ATTR_FUEL, SUMO_ATTR_HC, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_NOISE, SUMO_ATTR_NOX, SUMO_ATTR_PMX, SUMO_ATTR_POSITION, SUMO_ATTR_ROUTE, SUMO_ATTR_SPEED, SUMO_ATTR_TYPE, SUMO_ATTR_WAITING, SUMO_ATTR_X, SUMO_ATTR_Y, SUMO_ATTR_Z, time2string(), TS, OutputDevice::writeAttr(), OutputDevice::writeOptionalAttr(), 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: