SUMO - Simulation of Urban MObility
|
Export the queueing length in front of a junction (very experimental!) More...
#include <MSQueueExport.h>
Static Public Member Functions | |
static void | write (OutputDevice &of, SUMOTime timestep) |
Export the queueing length in front of a junction (very experimental!) |
Private Member Functions | |
MSQueueExport (const MSQueueExport &) | |
Invalidated copy constructor. | |
MSQueueExport & | operator= (const MSQueueExport &) |
Invalidated assignment operator. |
Static Private Member Functions | |
static void | writeEdge (OutputDevice &of) |
Iterates through all the edges and extract the lanes. | |
static void | writeLane (OutputDevice &of, const MSLane &lane) |
Iterates through the lanes and check for available vehicle queues. |
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.
Definition at line 55 of file MSQueueExport.h.
|
private |
Invalidated copy constructor.
|
private |
Invalidated assignment operator.
|
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
[in] | of | The output device to use |
[in] | timestep | The current time step |
IOError | If an error on writing occurs (!!! not yet implemented) |
Definition at line 53 of file MSQueueExport.cpp.
References OutputDevice::closeTag(), OutputDevice::openTag(), time2string(), and writeEdge().
Referenced by MSNet::writeOutput().
|
staticprivate |
Iterates through all the edges and extract the lanes.
Definition at line 63 of file MSQueueExport.cpp.
References OutputDevice::closeTag(), MSNet::getEdgeControl(), MSEdgeControl::getEdges(), MSNet::getInstance(), MSEdge::getLanes(), OutputDevice::openTag(), and writeLane().
Referenced by write().
|
staticprivate |
Iterates through the lanes and check for available vehicle queues.
Definition at line 89 of file MSQueueExport.cpp.
References OutputDevice::closeTag(), Named::getID(), MSVehicle::getLane(), MSLane::getLength(), MSVehicleType::getLengthWithGap(), MSVehicle::getPositionOnLane(), MSVehicle::getSpeed(), MSLane::getVehicleNumber(), MSBaseVehicle::getVehicleType(), MSVehicle::getWaitingSeconds(), MSVehicle::isOnRoad(), MSLane::myVehBuffer, MSLane::myVehicles, and OutputDevice::openTag().
Referenced by writeEdge().