Eclipse SUMO - Simulation of Urban MObility
MSStopOut Class Reference

Realises dumping the complete network state. More...

#include <MSStopOut.h>

Collaboration diagram for MSStopOut:

Data Structures

struct  StopInfo
 

Public Member Functions

void loadedContainers (const SUMOVehicle *veh, int n)
 
void loadedPersons (const SUMOVehicle *veh, int n)
 
 MSStopOut (OutputDevice &dev)
 constructor. More...
 
void stopEnded (const SUMOVehicle *veh, const SUMOVehicleParameter::Stop &stop, const std::string &laneOrEdgeID)
 
void stopStarted (const SUMOVehicle *veh, int numPersons, int numContainers, SUMOTime time)
 
void unloadedContainers (const SUMOVehicle *veh, int n)
 
void unloadedPersons (const SUMOVehicle *veh, int n)
 
virtual ~MSStopOut ()
 Destructor. More...
 

Static Public Member Functions

static bool active ()
 
static void cleanup ()
 
static MSStopOutgetInstance ()
 
static void init ()
 Static intialization. More...
 

Private Types

typedef std::map< const SUMOVehicle *, StopInfoStopped
 

Private Member Functions

 MSStopOut (const MSStopOut &)
 Invalidated copy constructor. More...
 
MSStopOutoperator= (const MSStopOut &)
 Invalidated assignment operator. More...
 

Private Attributes

OutputDevicemyDevice
 
Stopped myStopped
 

Static Private Attributes

static MSStopOutmyInstance = nullptr
 

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 50 of file MSStopOut.h.

Member Typedef Documentation

◆ Stopped

typedef std::map<const SUMOVehicle*, StopInfo> MSStopOut::Stopped
private

Definition at line 117 of file MSStopOut.h.

Constructor & Destructor Documentation

◆ MSStopOut() [1/2]

MSStopOut::MSStopOut ( OutputDevice dev)

constructor.

Definition at line 56 of file MSStopOut.cpp.

Referenced by init().

◆ ~MSStopOut()

MSStopOut::~MSStopOut ( )
virtual

Destructor.

Definition at line 60 of file MSStopOut.cpp.

◆ MSStopOut() [2/2]

MSStopOut::MSStopOut ( const MSStopOut )
private

Invalidated copy constructor.

Member Function Documentation

◆ active()

◆ cleanup()

void MSStopOut::cleanup ( )
static

Definition at line 48 of file MSStopOut.cpp.

References myInstance.

Referenced by MSNet::clearAll().

◆ getInstance()

◆ init()

void MSStopOut::init ( )
static

Static intialization.

Definition at line 41 of file MSStopOut.cpp.

References OutputDevice::getDeviceByOption(), OptionsCont::getOptions(), MSStopOut(), and myInstance.

Referenced by MSFrame::buildStreams().

◆ loadedContainers()

void MSStopOut::loadedContainers ( const SUMOVehicle veh,
int  n 
)

◆ loadedPersons()

void MSStopOut::loadedPersons ( const SUMOVehicle veh,
int  n 
)

◆ operator=()

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

Invalidated assignment operator.

◆ stopEnded()

◆ stopStarted()

void MSStopOut::stopStarted ( const SUMOVehicle veh,
int  numPersons,
int  numContainers,
SUMOTime  time 
)

◆ unloadedContainers()

void MSStopOut::unloadedContainers ( const SUMOVehicle veh,
int  n 
)

Definition at line 94 of file MSStopOut.cpp.

References myStopped.

Referenced by MSDevice_Transportable::notifyMove().

◆ unloadedPersons()

void MSStopOut::unloadedPersons ( const SUMOVehicle veh,
int  n 
)

Definition at line 84 of file MSStopOut.cpp.

References myStopped.

Referenced by MSDevice_Transportable::notifyMove().

Field Documentation

◆ myDevice

OutputDevice& MSStopOut::myDevice
private

Definition at line 120 of file MSStopOut.h.

Referenced by stopEnded().

◆ myInstance

MSStopOut * MSStopOut::myInstance = nullptr
staticprivate

Definition at line 122 of file MSStopOut.h.

Referenced by active(), cleanup(), getInstance(), and init().

◆ myStopped

Stopped MSStopOut::myStopped
private

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