Eclipse SUMO - Simulation of Urban MObility
MSFCDExport Class Reference

Realises dumping FCD Data. More...

#include <MSFCDExport.h>

Collaboration diagram for MSFCDExport:

Static Public Member Functions

static void write (OutputDevice &of, SUMOTime timestep, bool elevation)
 Writes the position and the angle of each vehicle into the given device. More...
 

Private Member Functions

 MSFCDExport (const MSFCDExport &)
 Invalidated copy constructor. More...
 
MSFCDExportoperator= (const MSFCDExport &)
 Invalidated assignment operator. More...
 

Static Private Member Functions

static void writeTransportable (OutputDevice &of, const MSEdge *e, MSTransportable *p, SumoXMLTag tag, bool useGeo, bool elevation)
 write transportable More...
 

Detailed Description

Realises dumping FCD Data.

The class offers a static method, which writes Position of each vehicle of the network into the given OutputDevice.

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

Definition at line 50 of file MSFCDExport.h.

Constructor & Destructor Documentation

◆ MSFCDExport()

MSFCDExport::MSFCDExport ( const MSFCDExport )
private

Invalidated copy constructor.

Member Function Documentation

◆ operator=()

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

Invalidated assignment operator.

◆ write()

void MSFCDExport::write ( OutputDevice of,
SUMOTime  timestep,
bool  elevation 
)
static

Writes the position and the angle of each vehicle into the given device.

Opens the current time step and export the values vehicle id, position and angle

Parameters
[in]ofThe output device to use
[in]timestepThe current time step
[in]elevationWhether elevation data shall be written
Exceptions
IOErrorIf an error on writing occurs (!!! not yet implemented)

Definition at line 50 of file MSFCDExport.cpp.

References GeoConvHelper::cartesian2geo(), OutputDevice::closeTag(), SUMOVehicle::getAngle(), OptionsCont::getBool(), SUMOVehicle::getContainers(), SUMOVehicle::getDevice(), MSEdge::getDistance(), MSRoute::getDistanceBetween(), SUMOTrafficObject::getEdge(), MSBaseVehicle::getEdge(), MSLane::getEdge(), MSNet::getEdgeControl(), MSDevice_FCD::getEdgeFilter(), MSEdgeControl::getEdges(), GeoConvHelper::getFinal(), SUMOTrafficObject::getID(), Named::getID(), MSVehicleType::getID(), MSNet::getInstance(), SUMOVehicle::getLane(), MSVehicle::getLane(), OptionsCont::getOptions(), SUMOVehicle::getPersons(), SUMOTrafficObject::getPosition(), SUMOTrafficObject::getPositionOnLane(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getRoute(), MSVehicle::getRoutePosition(), MSVehicle::getSignals(), SUMOTrafficObject::getSlope(), SUMOTrafficObject::getSpeed(), MSNet::getVehicleControl(), SUMOTrafficObject::getVehicleType(), gPrecisionGeo, MSLane::isInternal(), SUMOVehicle::isOnRoad(), SUMOVehicle::isParking(), SUMOVehicle::isRemoteControlled(), MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), GeomHelper::naviDegree(), OutputDevice::openTag(), OutputDevice::setPrecision(), string2time(), SUMO_ATTR_ANGLE, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_POSITION, SUMO_ATTR_SLOPE, SUMO_ATTR_SPEED, SUMO_ATTR_TIME, SUMO_ATTR_TYPE, SUMO_ATTR_X, SUMO_ATTR_Y, SUMO_ATTR_Z, SUMO_TAG_CONTAINER, SUMO_TAG_PERSON, SUMO_TAG_VEHICLE, time2string(), toString(), OutputDevice::writeAttr(), writeTransportable(), Position::x(), Position::y(), and Position::z().

Referenced by MSNet::writeOutput().

◆ writeTransportable()


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