![]() |
SUMO - Simulation of Urban MObility
|
Realises dumping the complete network state. More...
#include <MSStopOut.h>

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 MSStopOut * | getInstance () |
| static void | init () |
| Static intialization. More... | |
Private Types | |
| typedef std::map< const SUMOVehicle *, StopInfo > | Stopped |
Private Member Functions | |
| MSStopOut (const MSStopOut &) | |
| Invalidated copy constructor. More... | |
| MSStopOut & | operator= (const MSStopOut &) |
| Invalidated assignment operator. More... | |
Private Attributes | |
| OutputDevice & | myDevice |
| Stopped | myStopped |
Static Private Attributes | |
| static MSStopOut * | myInstance = 0 |
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 56 of file MSStopOut.h.
|
private |
Definition at line 121 of file MSStopOut.h.
| MSStopOut::MSStopOut | ( | OutputDevice & | dev | ) |
|
virtual |
|
private |
Invalidated copy constructor.
|
inlinestatic |
Definition at line 63 of file MSStopOut.h.
References myInstance.
Referenced by MSDevice_Transportable::addTransportable(), MSDevice_Transportable::notifyMove(), MSVehicle::processNextStop(), MSDevice_Transportable::removeTransportable(), and MSVehicle::resumeFromStopping().
|
inlinestatic |
Definition at line 67 of file MSStopOut.h.
References loadedContainers(), loadedPersons(), MSStopOut(), myInstance, stopEnded(), stopStarted(), unloadedContainers(), unloadedPersons(), and ~MSStopOut().
Referenced by MSDevice_Transportable::addTransportable(), MSDevice_Transportable::notifyMove(), MSVehicle::processNextStop(), MSDevice_Transportable::removeTransportable(), and MSVehicle::resumeFromStopping().
|
static |
Static intialization.
Definition at line 45 of file MSStopOut.cpp.
References OutputDevice::getDeviceByOption(), OptionsCont::getOptions(), MSStopOut(), and myInstance.
Referenced by MSFrame::buildStreams().
| void MSStopOut::loadedContainers | ( | const SUMOVehicle * | veh, |
| int | n | ||
| ) |
Definition at line 83 of file MSStopOut.cpp.
References myStopped.
Referenced by MSDevice_Transportable::addTransportable(), getInstance(), and MSDevice_Transportable::removeTransportable().
| void MSStopOut::loadedPersons | ( | const SUMOVehicle * | veh, |
| int | n | ||
| ) |
Definition at line 73 of file MSStopOut.cpp.
References myStopped.
Referenced by MSDevice_Transportable::addTransportable(), getInstance(), and MSDevice_Transportable::removeTransportable().
| void MSStopOut::stopEnded | ( | const SUMOVehicle * | veh, |
| const MSVehicle::Stop & | stop | ||
| ) |
Definition at line 93 of file MSStopOut.cpp.
References MSVehicle::Stop::busstop, MSVehicle::Stop::chargingStation, OutputDevice::closeTag(), MSVehicle::Stop::containerstop, Named::getID(), SUMOVehicle::getID(), MSVehicleType::getID(), MSNet::getInstance(), SUMOVehicle::getPositionOnLane(), SUMOVehicle::getVehicleType(), MSStopOut::StopInfo::initialNumContainers, MSStopOut::StopInfo::initialNumPersons, MSVehicle::Stop::lane, MSStopOut::StopInfo::loadedContainers, MSStopOut::StopInfo::loadedPersons, myDevice, myStopped, OutputDevice::openTag(), SUMOVehicleParameter::Stop::parking, MSVehicle::Stop::parkingarea, MSVehicle::Stop::pars, MSStopOut::StopInfo::started, STEPS2TIME, SUMO_ATTR_BUS_STOP, SUMO_ATTR_CHARGING_STATION, SUMO_ATTR_CONTAINER_STOP, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_PARKING, SUMO_ATTR_PARKING_AREA, SUMO_ATTR_POSITION, SUMO_ATTR_TYPE, time2string(), MSStopOut::StopInfo::unloadedContainers, MSStopOut::StopInfo::unloadedPersons, SUMOVehicleParameter::Stop::until, WRITE_WARNING, and OutputDevice::writeAttr().
Referenced by getInstance(), and MSVehicle::resumeFromStopping().
| void MSStopOut::stopStarted | ( | const SUMOVehicle * | veh, |
| int | numPersons, | ||
| int | numContainers | ||
| ) |
Definition at line 63 of file MSStopOut.cpp.
References SUMOVehicle::getID(), MSNet::getInstance(), myStopped, and WRITE_WARNING.
Referenced by getInstance(), and MSVehicle::processNextStop().
| 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().
| 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().
|
private |
Definition at line 124 of file MSStopOut.h.
Referenced by stopEnded().
|
staticprivate |
Definition at line 126 of file MSStopOut.h.
Referenced by active(), getInstance(), and init().
|
private |
Definition at line 122 of file MSStopOut.h.
Referenced by loadedContainers(), loadedPersons(), stopEnded(), stopStarted(), unloadedContainers(), and unloadedPersons().