![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Realises dumping FCD Data. More...
#include <MSFCDExport.h>
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... | |
MSFCDExport & | operator= (const MSFCDExport &) |
Invalidated assignment operator. More... | |
Static Private Member Functions | |
static void | writeTransportable (OutputDevice &of, const MSEdge *e, MSTransportable *p, bool inRadius, SumoXMLTag tag, bool useGeo, bool elevation) |
write transportable More... | |
Realises dumping FCD Data.
The class offers a static method, which writes Position of each vehicle of the network into the given OutputDevice.
Definition at line 47 of file MSFCDExport.h.
|
private |
Invalidated copy constructor.
|
private |
Invalidated assignment operator.
|
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
[in] | of | The output device to use |
[in] | timestep | The current time step |
[in] | elevation | Whether elevation data shall be written |
IOError | If an error on writing occurs (!!! not yet implemented) |
Definition at line 49 of file MSFCDExport.cpp.
References GeoConvHelper::cartesian2geo(), OutputDevice::closeTag(), libsumo::CMD_GET_PERSON_VARIABLE, libsumo::CMD_GET_VEHICLE_VARIABLE, libsumo::Helper::collectObjectsInRange(), StringUtils::escapeXML(), MSVehicle::getAcceleration(), MSAbstractLaneChangeModel::getAccelerationLat(), SUMOVehicle::getAngle(), OptionsCont::getBool(), SUMOVehicle::getContainers(), SUMOVehicle::getDevice(), MSEdge::getDistance(), MSRoute::getDistanceBetween(), MSBaseVehicle::getEdge(), MSLane::getEdge(), SUMOTrafficObject::getEdge(), MSNet::getEdgeControl(), MSDevice_FCD::getEdgeFilter(), MSEdgeControl::getEdges(), GeoConvHelper::getFinal(), OptionsCont::getFloat(), MSVehicleType::getID(), Named::getID(), MSNet::getInstance(), MSVehicle::getLane(), SUMOTrafficObject::getLane(), MSVehicle::getLaneChangeModel(), MSVehicle::getLeader(), MSVehicleType::getMinGap(), OptionsCont::getOptions(), SUMOVehicle::getPersons(), SUMOTrafficObject::getPosition(), MSVehicle::getPositionOnLane(), SUMOTrafficObject::getPositionOnLane(), MSBaseVehicle::getPrefixedParameter(), MSBaseVehicle::getRoute(), MSBaseVehicle::getRoutePosition(), MSVehicle::getSignals(), SUMOTrafficObject::getSlope(), SUMOTrafficObject::getSpeed(), OptionsCont::getStringVector(), MSNet::getVehicleControl(), MSBaseVehicle::getVehicleType(), SUMOTrafficObject::getVehicleType(), gPrecisionGeo, MSGlobals::gSublane, MSLane::isInternal(), SUMOVehicle::isOnRoad(), SUMOVehicle::isParking(), SUMOVehicle::isRemoteControlled(), MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), GeomHelper::naviDegree(), OutputDevice::openTag(), OutputDevice::setPrecision(), string2time(), SUMO_ATTR_ACCELERATION, SUMO_ATTR_ACCELERATION_LAT, SUMO_ATTR_ANGLE, SUMO_ATTR_DISTANCE, SUMO_ATTR_EDGE, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_LEADER_GAP, SUMO_ATTR_LEADER_ID, SUMO_ATTR_LEADER_SPEED, SUMO_ATTR_POSITION, SUMO_ATTR_SIGNALS, 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().
|
staticprivate |
write transportable
Definition at line 204 of file MSFCDExport.cpp.
References GeoConvHelper::cartesian2geo(), OutputDevice::closeTag(), MSTransportable::getAngle(), MSTransportable::getDevice(), MSTransportable::getEdgePos(), GeoConvHelper::getFinal(), Named::getID(), MSEdge::getLanes(), MSTransportable::getPosition(), MSTransportable::getSpeed(), gPrecisionGeo, GeomHelper::naviDegree(), OutputDevice::openTag(), OutputDevice::setPrecision(), SUMO_ATTR_ANGLE, SUMO_ATTR_EDGE, SUMO_ATTR_ID, SUMO_ATTR_POSITION, SUMO_ATTR_SLOPE, SUMO_ATTR_SPEED, SUMO_ATTR_X, SUMO_ATTR_Y, SUMO_ATTR_Z, OutputDevice::writeAttr(), Position::x(), Position::y(), and Position::z().
Referenced by write().