Eclipse SUMO - Simulation of Urban MObility
|
Realises dumping the complete network state. More...
#include <MSXMLRawOut.h>
Static Public Member Functions | |
static void | write (OutputDevice &of, const MSEdgeControl &ec, SUMOTime timestep, int precision) |
Writes the complete network state of the given edges into the given device. | |
static void | writeVehicle (OutputDevice &of, const MSBaseVehicle &veh) |
Writes the dump of the given vehicle into the given device. | |
Private Member Functions | |
MSXMLRawOut (const MSXMLRawOut &) | |
Invalidated copy constructor. | |
MSXMLRawOut & | operator= (const MSXMLRawOut &) |
Invalidated assignment operator. | |
Static Private Member Functions | |
static void | writeEdge (OutputDevice &of, const MSEdge &edge, SUMOTime timestep) |
Writes the dump of the given edge into the given device. | |
static void | writeLane (OutputDevice &of, const MSLane &lane) |
Writes the dump of the given lane into the given device. | |
static void | writeTransportable (OutputDevice &of, const MSTransportable *p, SumoXMLTag tag) |
write transportable | |
Realises dumping the complete network state.
The class offers a static method, which writes the complete dump of the given network into the given OutputDevice.
Definition at line 52 of file MSXMLRawOut.h.
|
private |
Invalidated copy constructor.
|
private |
Invalidated assignment operator.
|
static |
Writes the complete network state of the given edges into the given device.
Opens the current time step, goes through the edges and writes each using writeEdge.
[in] | of | The output device to use |
[in] | ec | The EdgeControl which holds the edges to write |
[in] | timestep | The current time step |
[in] | precision | The output precision |
IOError | If an error on writing occurs (!!! not yet implemented) |
Definition at line 47 of file MSXMLRawOut.cpp.
References OutputDevice::closeTag(), MSEdgeControl::getEdges(), gPrecision, OutputDevice::openTag(), OutputDevice::setPrecision(), time2string(), and writeEdge().
Referenced by MSNet::writeOutput().
|
staticprivate |
Writes the dump of the given edge into the given device.
If the edge is not empty or also empty edges shall be dumped, the edge description is opened and writeLane is called for each lane.
[in] | of | The output device to use |
[in] | edge | The edge to dump |
IOError | If an error on writing occurs (!!! not yet implemented) |
Definition at line 61 of file MSXMLRawOut.cpp.
References OutputDevice::closeTag(), MESegment::getCarNumber(), Named::getID(), MSEdge::getLanes(), MESegment::getNextSegment(), MELoop::getSegmentForEdge(), MSEdge::getSortedContainers(), MSEdge::getSortedPersons(), MSGlobals::gMesoNet, MSGlobals::gOmitEmptyEdgesOnDump, MSGlobals::gUseMesoSim, MSGlobals::gUsingInternalLanes, MSEdge::isNormal(), OutputDevice::openTag(), SUMO_TAG_CONTAINER, SUMO_TAG_PERSON, writeLane(), writeTransportable(), and MESegment::writeVehicles().
Referenced by write().
|
staticprivate |
Writes the dump of the given lane into the given device.
Opens the lane description and goes through all vehicles, calling writeVehicle for each.
[in] | of | The output device to use |
[in] | lane | The lane to dump |
IOError | If an error on writing occurs (!!! not yet implemented) |
Definition at line 120 of file MSXMLRawOut.cpp.
References OutputDevice::closeTag(), Named::getID(), MSLane::getVehiclesSecure(), OutputDevice::openTag(), MSLane::releaseVehicles(), SUMO_ATTR_ID, OutputDevice::writeAttr(), and writeVehicle().
Referenced by writeEdge().
|
staticprivate |
write transportable
Definition at line 170 of file MSXMLRawOut.cpp.
References OutputDevice::closeTag(), MSTransportable::getAngle(), MSTransportable::getCurrentStageDescription(), MSTransportable::getEdgePos(), Named::getID(), GeomHelper::naviDegree(), OutputDevice::openTag(), SUMO_ATTR_ANGLE, SUMO_ATTR_ID, SUMO_ATTR_POSITION, and OutputDevice::writeAttr().
Referenced by writeEdge(), and writeVehicle().
|
static |
Writes the dump of the given vehicle into the given device.
[in] | of | The output device to use |
[in] | veh | The vehicle to dump |
IOError | If an error on writing occurs (!!! not yet implemented) |
Definition at line 131 of file MSXMLRawOut.cpp.
References OutputDevice::closeTag(), MSBaseVehicle::getContainerNumber(), MSBaseVehicle::getContainers(), Named::getID(), MSVehicle::getLaneChangeModel(), MSVehicle::getLateralPositionOnLane(), MSBaseVehicle::getPersonNumber(), MSBaseVehicle::getPersons(), SUMOTrafficObject::getPositionOnLane(), SUMOTrafficObject::getSpeed(), MSAbstractLaneChangeModel::getSpeedLat(), MSGlobals::gSublane, MSGlobals::gUseMesoSim, MSBaseVehicle::isOnRoad(), OutputDevice::openTag(), SUMO_ATTR_CONTAINER_NUMBER, SUMO_ATTR_ID, SUMO_ATTR_PERSON_NUMBER, SUMO_ATTR_POSITION, SUMO_ATTR_POSITION_LAT, SUMO_ATTR_SPEED, SUMO_ATTR_SPEED_LAT, SUMO_TAG_CONTAINER, SUMO_TAG_PERSON, OutputDevice::writeAttr(), and writeTransportable().
Referenced by writeLane(), and MESegment::writeVehicles().