SUMO - Simulation of Urban MObility
MSEmissionExport Class Reference

Realises dumping Emission Data. More...

#include <MSEmissionExport.h>

Collaboration diagram for MSEmissionExport:
Collaboration graph

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 57 of file MSEmissionExport.h.

Constructor & Destructor Documentation

MSEmissionExport::MSEmissionExport ( const MSEmissionExport )
private

Invalidated copy constructor.

Member Function Documentation

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

Invalidated assignment operator.

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 51 of file MSEmissionExport.cpp.

References OutputDevice::closeTag(), PollutantsInterface::Emissions::CO, PollutantsInterface::Emissions::CO2, PollutantsInterface::computeAll(), HelpersHarmonoise::computeNoise(), PollutantsInterface::Emissions::electricity, PollutantsInterface::Emissions::fuel, SUMOVehicle::getAcceleration(), SUMOVehicle::getAngle(), MSVehicleType::getEmissionClass(), Named::getID(), SUMOVehicle::getID(), MSVehicleType::getID(), MSNet::getInstance(), MSVehicle::getLane(), PollutantsInterface::getName(), SUMOVehicle::getPosition(), SUMOVehicle::getPositionOnLane(), SUMOVehicle::getRoute(), SUMOVehicle::getSlope(), SUMOVehicle::getSpeed(), MSNet::getVehicleControl(), SUMOVehicle::getVehicleType(), MSVehicle::getWaitingSeconds(), PollutantsInterface::Emissions::HC, SUMOVehicle::isOnRoad(), MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), GeomHelper::naviDegree(), PollutantsInterface::Emissions::NOx, OutputDevice::openTag(), OUTPUT_ACCURACY, PollutantsInterface::Emissions::PMx, OutputDevice::setPrecision(), time2string(), OutputDevice::writeAttr(), Position::x(), and Position::y().

Referenced by MSNet::writeOutput().


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