SUMO - Simulation of Urban MObility
MSFCDExport Class Reference

Realises dumping FCD Data. More...

#include <MSFCDExport.h>

Static Public Member Functions

static void write (OutputDevice &of, SUMOTime timestep)
 Writes the posion and the angle of each vehcile into the given device. More...
 

Private Member Functions

 MSFCDExport (const MSFCDExport &)
 Invalidated copy constructor. More...
 
MSFCDExportoperator= (const MSFCDExport &)
 Invalidated assignment operator. 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 57 of file MSFCDExport.h.

Constructor & Destructor Documentation

MSFCDExport::MSFCDExport ( const MSFCDExport )
private

Invalidated copy constructor.

Member Function Documentation

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

Invalidated assignment operator.

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

Writes the posion and the angle of each vehcile 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
Exceptions
IOErrorIf an error on writing occurs (!!! not yet implemented)

Definition at line 60 of file MSFCDExport.cpp.

References GeoConvHelper::cartesian2geo(), OutputDevice::closeTag(), GEO_OUTPUT_ACCURACY, MSVehicle::getAngle(), MSPerson::getAngle(), OptionsCont::getBool(), MSNet::getEdgeControl(), MSPerson::getEdgePos(), MSEdgeControl::getEdges(), GeoConvHelper::getFinal(), Named::getID(), MSBaseVehicle::getID(), MSVehicleType::getID(), MSPerson::getID(), MSNet::getInstance(), MSVehicle::getLane(), OptionsCont::getOptions(), MSVehicle::getPosition(), MSPerson::getPosition(), MSVehicle::getPositionOnLane(), MSLane::getShape(), MSVehicle::getSignals(), MSVehicle::getSpeed(), MSPerson::getSpeed(), MSNet::getVehicleControl(), MSBaseVehicle::getVehicleType(), MSVehicle::isOnRoad(), MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), OutputDevice::openTag(), OutputDevice::setPrecision(), PositionVector::slopeDegreeAtOffset(), SUMO_ATTR_ANGLE, SUMO_ATTR_EDGE, 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_TAG_PERSON, SUMO_TAG_VEHICLE, time2string(), toString(), OutputDevice::writeAttr(), Position::x(), and Position::y().

Referenced by MSNet::writeOutput().


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