SUMO - Simulation of Urban MObility
MSStopOut Class Reference

Realises dumping the complete network state. More...

#include <MSStopOut.h>

Collaboration diagram for MSStopOut:
Collaboration graph

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 MSVehicle::Stop &stop)
 
void stopStarted (const SUMOVehicle *veh, int numPersons, int numContainers)
 
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 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 = 0
 

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

Member Typedef Documentation

◆ Stopped

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

Definition at line 121 of file MSStopOut.h.

Constructor & Destructor Documentation

◆ MSStopOut() [1/2]

MSStopOut::MSStopOut ( OutputDevice dev)

constructor.

Definition at line 55 of file MSStopOut.cpp.

Referenced by getInstance(), and init().

◆ ~MSStopOut()

MSStopOut::~MSStopOut ( )
virtual

Destructor.

Definition at line 59 of file MSStopOut.cpp.

Referenced by getInstance().

◆ MSStopOut() [2/2]

MSStopOut::MSStopOut ( const MSStopOut )
private

Invalidated copy constructor.

Member Function Documentation

◆ active()

◆ getInstance()

◆ init()

void MSStopOut::init ( )
static

Static intialization.

Definition at line 45 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 
)

◆ unloadedContainers()

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

Definition at line 88 of file MSStopOut.cpp.

References myStopped.

Referenced by getInstance(), and MSDevice_Transportable::notifyMove().

◆ unloadedPersons()

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

Definition at line 78 of file MSStopOut.cpp.

References myStopped.

Referenced by getInstance(), and MSDevice_Transportable::notifyMove().

Field Documentation

◆ myDevice

OutputDevice& MSStopOut::myDevice
private

Definition at line 124 of file MSStopOut.h.

Referenced by stopEnded().

◆ myInstance

MSStopOut * MSStopOut::myInstance = 0
staticprivate

Definition at line 126 of file MSStopOut.h.

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

◆ myStopped

Stopped MSStopOut::myStopped
private

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