Eclipse SUMO - Simulation of Urban MObility
MSFullExport Class Reference

Dumping a hugh List of Parameters available in the Simulation. More...

#include <MSFullExport.h>

Static Public Member Functions

static void write (OutputDevice &of, SUMOTime timestep)
 Dumping a hugh List of Parameters available in the Simulation. More...
 

Private Member Functions

 MSFullExport (const MSFullExport &)
 Invalidated copy constructor. More...
 
MSFullExportoperator= (const MSFullExport &)
 Invalidated assignment operator. More...
 

Static Private Member Functions

static void writeEdge (OutputDevice &of)
 Writes the XML Nodes for the edges (e.g. traveltime) More...
 
static void writeLane (OutputDevice &of, const MSLane &lane)
 Writes the XML Nodes for the lanes (e.g. emissions, occupancy) More...
 
static void writeTLS (OutputDevice &of, SUMOTime timestep)
 Writes the XML Nodes for the traffic lights (e.g. actual state) More...
 
static void writeVehicles (OutputDevice &of)
 Writes the XML Nodes for the vehicles (e.g. speed, position, emissions) More...
 

Detailed Description

Dumping a hugh List of Parameters available in the Simulation.

The class offers a static method, which writes a hugh List of Parameters available in the Simulation into the given OutputDevice.

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

Definition at line 47 of file MSFullExport.h.

Constructor & Destructor Documentation

◆ MSFullExport()

MSFullExport::MSFullExport ( const MSFullExport )
private

Invalidated copy constructor.

Member Function Documentation

◆ operator=()

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

Invalidated assignment operator.

◆ write()

void MSFullExport::write ( OutputDevice of,
SUMOTime  timestep 
)
static

Dumping a hugh List of Parameters available in the Simulation.

The class offers a static method, which writes a hugh List of Parameters available in the Simulation into the given OutputDevice.

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 44 of file MSFullExport.cpp.

References OutputDevice::closeTag(), OutputDevice::openTag(), time2string(), writeEdge(), writeTLS(), and writeVehicles().

Referenced by MSNet::writeOutput().

Here is the caller graph for this function:

◆ writeEdge()

void MSFullExport::writeEdge ( OutputDevice of)
staticprivate

Writes the XML Nodes for the edges (e.g. traveltime)

Definition at line 88 of file MSFullExport.cpp.

References OutputDevice::closeTag(), MSEdge::getCurrentTravelTime(), MSNet::getEdgeControl(), MSEdgeControl::getEdges(), Named::getID(), MSNet::getInstance(), MSEdge::getLanes(), MSGlobals::gUsingInternalLanes, MSEdge::isNormal(), OutputDevice::openTag(), OutputDevice::writeAttr(), and writeLane().

Referenced by write().

Here is the caller graph for this function:

◆ writeLane()

void MSFullExport::writeLane ( OutputDevice of,
const MSLane lane 
)
staticprivate

Writes the XML Nodes for the lanes (e.g. emissions, occupancy)

Definition at line 109 of file MSFullExport.cpp.

References OutputDevice::closeTag(), PollutantsInterface::CO, PollutantsInterface::CO2, PollutantsInterface::ELEC, PollutantsInterface::FUEL, MSLane::getEmissions(), MSLane::getHarmonoise_NoiseEmissions(), Named::getID(), MSLane::getMeanSpeed(), MSLane::getNettoOccupancy(), MSLane::getSpeedLimit(), MSLane::getVehicleNumber(), PollutantsInterface::HC, PollutantsInterface::NO_X, OutputDevice::openTag(), PollutantsInterface::PM_X, and OutputDevice::writeAttr().

Referenced by writeEdge().

Here is the caller graph for this function:

◆ writeTLS()

void MSFullExport::writeTLS ( OutputDevice of,
SUMOTime  timestep 
)
staticprivate

Writes the XML Nodes for the traffic lights (e.g. actual state)

Definition at line 120 of file MSFullExport.cpp.

References OutputDevice::closeTag(), MSTLLogicControl::get(), MSTLLogicControl::TLSLogicVariants::getActive(), MSTLLogicControl::getAllTLIds(), MSTrafficLightLogic::getCurrentPhaseDef(), MSNet::getInstance(), MSTrafficLightLogic::getLaneVectors(), MSPhaseDefinition::getState(), MSNet::getTLSControl(), OutputDevice::openTag(), and OutputDevice::writeAttr().

Referenced by write().

Here is the caller graph for this function:

◆ writeVehicles()


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