Eclipse 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 47 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 40 of file MSQueueExport.cpp.
References OutputDevice::closeTag(), OptionsCont::getOptions(), OutputDevice::openTag(), string2time(), time2string(), OutputDevice::writeAttr(), and writeEdge().
Referenced by MSNet::writeOutput().
|
staticprivate |
Iterates through all the edges and extract the lanes.
Definition at line 53 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 69 of file MSQueueExport.cpp.
References OutputDevice::closeTag(), MSLane::empty(), Named::getID(), MSVehicle::getLane(), MSLane::getLength(), MSVehicleType::getLength(), MSVehicle::getPositionOnLane(), MSVehicle::getSpeed(), MSBaseVehicle::getVehicleType(), MSBaseVehicle::getWaitingSeconds(), MSVehicle::isOnRoad(), MAX2(), MSLane::myVehicles, OutputDevice::openTag(), and OutputDevice::writeAttr().
Referenced by writeEdge().