Eclipse SUMO - Simulation of Urban MObility
|
Realises dumping the complete network state. More...
#include <MSAmitranTrajectories.h>
Static Public Member Functions | |
static void | write (OutputDevice &of, const SUMOTime timestep) |
Writes the complete network state into the given device. | |
Private Member Functions | |
MSAmitranTrajectories (const MSAmitranTrajectories &) | |
Invalidated copy constructor. | |
MSAmitranTrajectories & | operator= (const MSAmitranTrajectories &) |
Invalidated assignment operator. | |
Static Private Member Functions | |
static void | writeVehicle (OutputDevice &of, const SUMOVehicle &veh, const SUMOTime timestep) |
Writes the dump of the given vehicle into the given device. | |
Static Private Attributes | |
static std::set< std::string > | myWrittenTypes |
static std::map< std::string, int > | myWrittenVehicles |
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 48 of file MSAmitranTrajectories.h.
|
private |
Invalidated copy constructor.
|
private |
Invalidated assignment operator.
|
static |
Writes the complete network state into the given device.
Opens the current time step, goes through the vehicles and writes each using writeVehicle.
[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 43 of file MSAmitranTrajectories.cpp.
References MSNet::getInstance(), MSNet::getVehicleControl(), MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), and writeVehicle().
Referenced by MSNet::writeOutput().
|
staticprivate |
Writes the dump of the given vehicle into the given device.
[in] | of | The output device to use |
[in] | veh | The vehicle to dump |
[in] | timestep | The current time step |
IOError | If an error on writing occurs (!!! not yet implemented) |
Definition at line 52 of file MSAmitranTrajectories.cpp.
References OutputDevice::closeTag(), SUMOTrafficObject::getAcceleration(), PollutantsInterface::getAmitranVehicleClass(), SUMOVehicle::getDeparture(), MSVehicleType::getEmissionClass(), PollutantsInterface::getEuroClass(), PollutantsInterface::getFuel(), MSVehicleType::getID(), Named::getID(), MSVehicleType::getNumericalID(), SUMOTrafficObject::getSpeed(), SUMOTrafficObject::getVehicleType(), PollutantsInterface::getWeight(), SUMOVehicle::isOnRoad(), myWrittenTypes, myWrittenVehicles, OutputDevice::openTag(), STEPS2MS, SUMO_ATTR_ACCELERATION, SUMO_ATTR_ACTORCONFIG, SUMO_ATTR_EMISSIONCLASS, SUMO_ATTR_ID, SUMO_ATTR_REF, SUMO_ATTR_SPEED, SUMO_ATTR_STARTTIME, SUMO_ATTR_TIME, SUMO_ATTR_VEHICLE, SUMO_ATTR_VEHICLECLASS, SUMO_ATTR_WEIGHT, SUMO_TAG_ACTORCONFIG, SUMO_TAG_MOTIONSTATE, SUMO_TAG_VEHICLE, toString(), and OutputDevice::writeAttr().
Referenced by write().
|
staticprivate |
Definition at line 74 of file MSAmitranTrajectories.h.
Referenced by writeVehicle().
|
staticprivate |
Definition at line 75 of file MSAmitranTrajectories.h.
Referenced by writeVehicle().