SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MSQueueExport Class Reference

Export the queueing length in front of a junction (very experimental!) More...

#include <MSQueueExport.h>

Collaboration diagram for MSQueueExport:
Collaboration graph

Static Public Member Functions

static void write (OutputDevice &of, SUMOTime timestep)
 Export the queueing length in front of a junction (very experimental!) More...
 

Private Member Functions

 MSQueueExport (const MSQueueExport &)
 Invalidated copy constructor. More...
 
MSQueueExportoperator= (const MSQueueExport &)
 Invalidated assignment operator. More...
 

Static Private Member Functions

static void writeEdge (OutputDevice &of)
 Iterates through all the edges and extract the lanes. More...
 
static void writeLane (OutputDevice &of, const MSLane &lane)
 Iterates through the lanes and check for available vehicle queues. More...
 

Detailed Description

Export the queueing length in front of a junction (very experimental!)

The class offers a static method, which writes the actual queueing length of the network into the given OutputDevice.

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

Definition at line 57 of file MSQueueExport.h.

Constructor & Destructor Documentation

MSQueueExport::MSQueueExport ( const MSQueueExport )
private

Invalidated copy constructor.

Member Function Documentation

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

Invalidated assignment operator.

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

Export the queueing length in front of a junction (very experimental!)

Opens the current time step, goes through the lanes check for a traffic jam in front of a junction

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 57 of file MSQueueExport.cpp.

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

Referenced by MSNet::writeOutput().

void MSQueueExport::writeEdge ( OutputDevice of)
staticprivate

Iterates through all the edges and extract the lanes.

Definition at line 65 of file MSQueueExport.cpp.

References OutputDevice::closeTag(), MSNet::getEdgeControl(), MSEdgeControl::getEdges(), MSNet::getInstance(), MSEdge::getLanes(), OutputDevice::openTag(), and writeLane().

Referenced by write().


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