Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSAmitranTrajectories Class Reference

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.
 
MSAmitranTrajectoriesoperator= (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
 

Detailed Description

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.

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

Definition at line 48 of file MSAmitranTrajectories.h.

Constructor & Destructor Documentation

◆ MSAmitranTrajectories()

MSAmitranTrajectories::MSAmitranTrajectories ( const MSAmitranTrajectories )
private

Invalidated copy constructor.

Member Function Documentation

◆ operator=()

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

Invalidated assignment operator.

◆ write()

void MSAmitranTrajectories::write ( OutputDevice of,
const SUMOTime  timestep 
)
static

Writes the complete network state into the given device.

Opens the current time step, goes through the vehicles and writes each using writeVehicle.

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 43 of file MSAmitranTrajectories.cpp.

References MSNet::getInstance(), MSNet::getVehicleControl(), MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), and writeVehicle().

Referenced by MSNet::writeOutput().

Here is the caller graph for this function:

◆ writeVehicle()

void MSAmitranTrajectories::writeVehicle ( OutputDevice of,
const SUMOVehicle veh,
const SUMOTime  timestep 
)
staticprivate

Field Documentation

◆ myWrittenTypes

std::set< std::string > MSAmitranTrajectories::myWrittenTypes
staticprivate

Definition at line 74 of file MSAmitranTrajectories.h.

Referenced by writeVehicle().

◆ myWrittenVehicles

std::map< std::string, int > MSAmitranTrajectories::myWrittenVehicles
staticprivate

Definition at line 75 of file MSAmitranTrajectories.h.

Referenced by writeVehicle().


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