Eclipse SUMO - Simulation of Urban MObility
MSTransportableControl Class Reference

#include <MSTransportableControl.h>

Inheritance diagram for MSTransportableControl:
[legend]
Collaboration diagram for MSTransportableControl:
[legend]

Public Types

typedef std::map< std::string, MSTransportable * >::const_iterator constVehIt
 Definition of the internal transportables map iterator. More...
 
typedef std::vector< MSTransportable * > TransportableVector
 Definition of a list of transportables. More...
 

Public Member Functions

void abortAnyWaitingForVehicle ()
 aborts the plan for any transportable that is still waiting for a ride More...
 
void abortWaiting (MSTransportable *t)
 aborts waiting stage of transportable More...
 
void abortWaitingForVehicle (MSTransportable *t)
 let the given transportable abort waiting for a vehicle (when removing stage via TraCI) More...
 
bool add (MSTransportable *transportable)
 Adds a single transportable, returns false if an id clash occurred. More...
 
void addArrived ()
 
void addDiscarded ()
 
void addWaiting (const MSEdge *edge, MSTransportable *person)
 adds a transportable to the list of transportables waiting for a vehicle on the specified edge More...
 
virtual MSTransportablebuildContainer (const SUMOVehicleParameter *pars, MSVehicleType *vtype, MSTransportable::MSTransportablePlan *plan) const
 Builds a new container. More...
 
virtual MSTransportablebuildPerson (const SUMOVehicleParameter *pars, MSVehicleType *vtype, MSTransportable::MSTransportablePlan *plan, SumoRNG *rng) const
 Builds a new person. More...
 
void checkWaiting (MSNet *net, const SUMOTime time)
 checks whether any transportables waiting time is over More...
 
void clearState ()
 Resets transportables when quick-loading state. More...
 
virtual void erase (MSTransportable *transportable)
 removes a single transportable More...
 
void fixLoadCount (const MSTransportable *transportable)
 decrement counter to avoid double counting transportables loaded from state More...
 
void forceDeparture ()
 register forced (traci) departure More...
 
MSTransportableget (const std::string &id) const
 Returns the named transportable, if existing. More...
 
int getActiveCount ()
 return the number of active transportable objects More...
 
MSPModelgetMovementModel ()
 Returns the default movement model for this kind of transportables. More...
 
MSPModelgetNonInteractingModel ()
 Returns the non interacting movement model (for tranship and "beaming") More...
 
bool hasAnyWaiting (const MSEdge *edge, SUMOVehicle *vehicle) const
 check whether any transportables are waiting for the given vehicle More...
 
bool hasNonWaiting () const
 checks whether any transportable is still engaged in walking / stopping More...
 
bool hasTransportables () const
 checks whether any transportable waits to finish her plan More...
 
bool loadAnyWaiting (const MSEdge *edge, SUMOVehicle *vehicle, SUMOTime &timeToLoadNext, SUMOTime &stopDuration)
 load any applicable transportables Loads any person / container that is waiting on that edge for the given vehicle and removes them from myWaiting More...
 
constVehIt loadedBegin () const
 Returns the begin of the internal transportables map. More...
 
constVehIt loadedEnd () const
 Returns the end of the internal transportables map. More...
 
void loadState (const std::string &state)
 Reconstruct the current state. More...
 
 MSTransportableControl (const bool isPerson)
 Constructor. More...
 
void registerJammed ()
 register a jammed transportable More...
 
void saveState (OutputDevice &out)
 Saves the current state into the given stream. More...
 
void setWaitEnd (SUMOTime time, MSTransportable *transportable)
 sets the arrival time for a waiting transportable More...
 
int size () const
 Returns the number of known transportables. More...
 
virtual ~MSTransportableControl ()
 Destructor. More...
 
Retrieval of transportable statistics (always accessible)
int getLoadedNumber () const
 Returns the number of build transportables. More...
 
int getDepartedNumber () const
 
int getRunningNumber () const
 Returns the number of build and inserted, but not yet deleted transportables. More...
 
int getJammedNumber () const
 Returns the number of times a transportables was jammed. More...
 
int getWaitingForVehicleNumber () const
 Returns the number of transportables waiting for a ride. More...
 
int getWaitingUntilNumber () const
 Returns the number of transportables waiting for a specified amount of time. More...
 
int getMovingNumber () const
 Returns the number of transportables moving by themselvs (i.e. walking) More...
 
int getRidingNumber () const
 Returns the number of transportables riding a vehicle. More...
 
int getEndedNumber () const
 Returns the number of transportables that exited the simulation. More...
 
int getArrivedNumber () const
 Returns the number of transportables that arrived at their destination. More...
 

Protected Attributes

int myArrivedNumber
 The number of transportables that arrived at their destination. More...
 
int myDiscardedNumber
 The number of discarded transportables. More...
 
int myEndedNumber
 The number of transportables that exited the simulation. More...
 
bool myHaveNewWaiting
 whether a new transportable waiting for a vehicle has been added in the last step More...
 
int myJammedNumber
 The number of jammed transportables. More...
 
int myLoadedNumber
 The number of build transportables. More...
 
int myRunningNumber
 The number of transportables within the network (build and inserted but not removed) More...
 
std::map< std::string, MSTransportable * > myTransportables
 all currently created transportables by id More...
 
std::map< SUMOTime, TransportableVectormyWaiting4Departure
 Transportables waiting for departure. More...
 
std::map< const MSEdge *, TransportableVectormyWaiting4Vehicle
 the lists of waiting transportables More...
 
int myWaitingForDepartureNumber
 The number of transportables waiting for departure. More...
 
int myWaitingForVehicleNumber
 The number of transportables waiting for vehicles. More...
 
std::map< SUMOTime, TransportableVectormyWaitingUntil
 the lists of walking / stopping transportables More...
 
int myWaitingUntilNumber
 The number of transportables waiting for a specified time. More...
 

Private Member Functions

MSTransportableControloperator= (const MSTransportableControl &src)=delete
 invalidated assignment operator More...
 

Private Attributes

SUMOTime myAbortWaitingTimeout
 The time until waiting for a ride is aborted. More...
 
MSPModelmyMovementModel
 
MSPModelmyNonInteractingModel
 
MSDevice_Vehroutes::SortedRouteInfo myRouteInfos
 Information needed to sort transportable output by departure time. More...
 

Detailed Description

The class is used to handle transportables (persons and containers) who are not using a transportation system but are walking or waiting. This includes waiting for the arrival or departure time / the time the waiting is over.

Definition at line 51 of file MSTransportableControl.h.

Member Typedef Documentation

◆ constVehIt

typedef std::map<std::string,MSTransportable*>::const_iterator MSTransportableControl::constVehIt

Definition of the internal transportables map iterator.

Definition at line 57 of file MSTransportableControl.h.

◆ TransportableVector

Definition of a list of transportables.

Definition at line 54 of file MSTransportableControl.h.

Constructor & Destructor Documentation

◆ MSTransportableControl()

◆ ~MSTransportableControl()

MSTransportableControl::~MSTransportableControl ( )
virtual

Destructor.

Definition at line 82 of file MSTransportableControl.cpp.

References clearState(), myMovementModel, and myNonInteractingModel.

Member Function Documentation

◆ abortAnyWaitingForVehicle()

void MSTransportableControl::abortAnyWaitingForVehicle ( )

aborts the plan for any transportable that is still waiting for a ride

Definition at line 345 of file MSTransportableControl.cpp.

References erase(), MSTransportable::getCurrentStage(), Named::getID(), MSTransportable::getObjectType(), MSStageDriving::getWaitingDescription(), myAbortWaitingTimeout, myWaiting4Vehicle, myWaitingForVehicleNumber, MSEdge::removeTransportable(), MSTransportable::setAbortWaiting(), and WRITE_WARNING.

Referenced by MSNet::adaptToState().

Here is the caller graph for this function:

◆ abortWaiting()

void MSTransportableControl::abortWaiting ( MSTransportable t)

aborts waiting stage of transportable

Definition at line 380 of file MSTransportableControl.cpp.

References myWaiting4Departure, and myWaitingUntil.

Referenced by MSStageWaiting::abort().

Here is the caller graph for this function:

◆ abortWaitingForVehicle()

void MSTransportableControl::abortWaitingForVehicle ( MSTransportable t)

let the given transportable abort waiting for a vehicle (when removing stage via TraCI)

Definition at line 364 of file MSTransportableControl.cpp.

References MSTransportable::getEdge(), myAbortWaitingTimeout, and myWaiting4Vehicle.

Referenced by MSStageDriving::abort().

Here is the caller graph for this function:

◆ add()

bool MSTransportableControl::add ( MSTransportable transportable)

Adds a single transportable, returns false if an id clash occurred.

Parameters
[in]transportableThe transportable to add
Returns
Whether the transportable could be added (none with the same id existed before)

Definition at line 92 of file MSTransportableControl.cpp.

References DELTA_T, SUMOVehicleParameter::depart, MSTransportable::getParameter(), SUMOVehicleParameter::id, myLoadedNumber, myTransportables, myWaiting4Departure, and myWaitingForDepartureNumber.

Referenced by LIBSUMO_NAMESPACE::Person::add(), and MSRouteHandler::addFlowTransportable().

Here is the caller graph for this function:

◆ addArrived()

void MSTransportableControl::addArrived ( )
inline

Definition at line 252 of file MSTransportableControl.h.

References myArrivedNumber.

Referenced by MSTransportable::proceed().

Here is the caller graph for this function:

◆ addDiscarded()

void MSTransportableControl::addDiscarded ( )
inline

Definition at line 256 of file MSTransportableControl.h.

References myDiscardedNumber, and myLoadedNumber.

Referenced by MSRouteHandler::addFlowTransportable().

Here is the caller graph for this function:

◆ addWaiting()

void MSTransportableControl::addWaiting ( const MSEdge edge,
MSTransportable person 
)

adds a transportable to the list of transportables waiting for a vehicle on the specified edge

Definition at line 232 of file MSTransportableControl.cpp.

References myAbortWaitingTimeout, myHaveNewWaiting, myWaiting4Vehicle, myWaitingForVehicleNumber, and MSTransportable::setAbortWaiting().

Referenced by MSStageDriving::registerWaiting().

Here is the caller graph for this function:

◆ buildContainer()

MSTransportable * MSTransportableControl::buildContainer ( const SUMOVehicleParameter pars,
MSVehicleType vtype,
MSTransportable::MSTransportablePlan plan 
) const
virtual

Builds a new container.

Parameters
[in]parsThe parameter
[in]vtypeThe type (reusing vehicle type container here)
[in]planThis container's plan

Reimplemented in GUITransportableControl.

Definition at line 407 of file MSTransportableControl.cpp.

Referenced by MSRouteHandler::addFlowTransportable().

Here is the caller graph for this function:

◆ buildPerson()

MSTransportable * MSTransportableControl::buildPerson ( const SUMOVehicleParameter pars,
MSVehicleType vtype,
MSTransportable::MSTransportablePlan plan,
SumoRNG rng 
) const
virtual

Builds a new person.

Parameters
[in]parsThe parameter
[in]vtypeThe type (reusing vehicle type container here)
[in]planThis person's plan
[in]rngThe RNG to compute the optional speed deviation

Reimplemented in GUITransportableControl.

Definition at line 399 of file MSTransportableControl.cpp.

References MSVehicleType::computeChosenSpeedDeviation().

Referenced by LIBSUMO_NAMESPACE::Person::add(), and MSRouteHandler::addFlowTransportable().

Here is the caller graph for this function:

◆ checkWaiting()

◆ clearState()

void MSTransportableControl::clearState ( )

Resets transportables when quick-loading state.

Definition at line 432 of file MSTransportableControl.cpp.

References MSPModel::clearState(), myArrivedNumber, myDiscardedNumber, myEndedNumber, myHaveNewWaiting, myJammedNumber, myLoadedNumber, myMovementModel, myNonInteractingModel, myRunningNumber, myTransportables, myWaiting4Departure, myWaiting4Vehicle, myWaitingForDepartureNumber, myWaitingForVehicleNumber, myWaitingUntil, and myWaitingUntilNumber.

Referenced by MSNet::clearState(), and ~MSTransportableControl().

Here is the caller graph for this function:

◆ erase()

void MSTransportableControl::erase ( MSTransportable transportable)
virtual

◆ fixLoadCount()

void MSTransportableControl::fixLoadCount ( const MSTransportable transportable)

decrement counter to avoid double counting transportables loaded from state

Definition at line 107 of file MSTransportableControl.cpp.

References DELTA_T, SUMOVehicleParameter::depart, MSTransportable::getParameter(), MSTransportable::hasDeparted(), myLoadedNumber, and myWaiting4Departure.

Referenced by MSStateHandler::myEndElement().

Here is the caller graph for this function:

◆ forceDeparture()

void MSTransportableControl::forceDeparture ( )

register forced (traci) departure

Definition at line 226 of file MSTransportableControl.cpp.

References myRunningNumber.

Referenced by MSStageWaiting::abort().

Here is the caller graph for this function:

◆ get()

MSTransportable * MSTransportableControl::get ( const std::string &  id) const

Returns the named transportable, if existing.

Parameters
[in]idThe id of the transportable
Returns
The named transportable, if existing, otherwise nullptr

Definition at line 125 of file MSTransportableControl.cpp.

References myTransportables.

Referenced by MSRouteHandler::addFlowTransportable(), libsumo::Helper::getPerson(), LIBSUMO_NAMESPACE::Polygon::getTrafficObject(), libsumo::Helper::handleSubscriptions(), MSStateHandler::myEndElement(), TraCIServer::postProcessSimulationStep(), and TraCIServerAPI_Person::processSet().

Here is the caller graph for this function:

◆ getActiveCount()

int MSTransportableControl::getActiveCount ( )

return the number of active transportable objects

Definition at line 323 of file MSTransportableControl.cpp.

References myRunningNumber, myWaiting4Departure, and myWaitingForVehicleNumber.

Referenced by LIBSUMO_NAMESPACE::Simulation::getMinExpectedNumber().

Here is the caller graph for this function:

◆ getArrivedNumber()

int MSTransportableControl::getArrivedNumber ( ) const
inline

Returns the number of transportables that arrived at their destination.

Definition at line 232 of file MSTransportableControl.h.

References myArrivedNumber.

Referenced by MSNet::writeSummaryOutput().

Here is the caller graph for this function:

◆ getDepartedNumber()

int MSTransportableControl::getDepartedNumber ( ) const

Definition at line 340 of file MSTransportableControl.cpp.

References myDiscardedNumber, myLoadedNumber, and myWaitingForDepartureNumber.

Referenced by MSNet::writeSummaryOutput().

Here is the caller graph for this function:

◆ getEndedNumber()

int MSTransportableControl::getEndedNumber ( ) const
inline

Returns the number of transportables that exited the simulation.

Definition at line 225 of file MSTransportableControl.h.

References myEndedNumber.

Referenced by MSNet::writeSummaryOutput().

Here is the caller graph for this function:

◆ getJammedNumber()

int MSTransportableControl::getJammedNumber ( ) const
inline

Returns the number of times a transportables was jammed.

Returns
The number of times transportables were jammed

Definition at line 198 of file MSTransportableControl.h.

References myJammedNumber.

Referenced by MSNet::generateStatistics(), GUINet::getParameterWindow(), MSNet::writeStatistics(), and MSNet::writeSummaryOutput().

Here is the caller graph for this function:

◆ getLoadedNumber()

int MSTransportableControl::getLoadedNumber ( ) const
inline

Returns the number of build transportables.

Returns
The number of loaded (build) transportables

Definition at line 182 of file MSTransportableControl.h.

References myLoadedNumber.

Referenced by MSRouteHandler::addFlowTransportable(), MSNet::generateStatistics(), GUINet::getParameterWindow(), MSNet::writeStatistics(), and MSNet::writeSummaryOutput().

Here is the caller graph for this function:

◆ getMovementModel()

MSPModel * MSTransportableControl::getMovementModel ( )
inline

Returns the default movement model for this kind of transportables.

Returns
The movement model

Definition at line 241 of file MSTransportableControl.h.

References myMovementModel.

Referenced by MSPerson::MSPersonStage_Walking::abort(), MSLink::getLeaderInfo(), MSLane::hasPedestrians(), MSPerson::MSPersonStage_Walking::loadState(), MSPModel_Striping::PState::moveToXY(), MSLane::nextBlocking(), MSPerson::MSPersonStage_Walking::proceed(), and MSPerson::MSPersonStage_Walking::walkDistance().

Here is the caller graph for this function:

◆ getMovingNumber()

int MSTransportableControl::getMovingNumber ( ) const

Returns the number of transportables moving by themselvs (i.e. walking)

Definition at line 329 of file MSTransportableControl.cpp.

References MSPModel::getActiveNumber(), and myMovementModel.

Referenced by getRidingNumber(), and MSNet::writeSummaryOutput().

Here is the caller graph for this function:

◆ getNonInteractingModel()

MSPModel * MSTransportableControl::getNonInteractingModel ( )
inline

Returns the non interacting movement model (for tranship and "beaming")

Returns
The non interacting movement model

Definition at line 248 of file MSTransportableControl.h.

References myNonInteractingModel.

Referenced by MSStageTranship::proceed().

Here is the caller graph for this function:

◆ getRidingNumber()

int MSTransportableControl::getRidingNumber ( ) const

Returns the number of transportables riding a vehicle.

Definition at line 335 of file MSTransportableControl.cpp.

References getMovingNumber(), myRunningNumber, myWaitingForVehicleNumber, and myWaitingUntilNumber.

Referenced by MSNet::writeSummaryOutput().

Here is the caller graph for this function:

◆ getRunningNumber()

int MSTransportableControl::getRunningNumber ( ) const
inline

Returns the number of build and inserted, but not yet deleted transportables.

Returns
The number of simulated transportables

Definition at line 191 of file MSTransportableControl.h.

References myRunningNumber.

Referenced by MSNet::generateStatistics(), GUINet::getParameterWindow(), GUIApplicationWindow::handleEvent_SimulationStep(), MSNet::simulationStep(), and MSNet::writeStatistics().

Here is the caller graph for this function:

◆ getWaitingForVehicleNumber()

int MSTransportableControl::getWaitingForVehicleNumber ( ) const
inline

Returns the number of transportables waiting for a ride.

Definition at line 204 of file MSTransportableControl.h.

References myWaitingForVehicleNumber.

Referenced by GUIApplicationWindow::checkGamingEventsDRT(), and MSNet::writeSummaryOutput().

Here is the caller graph for this function:

◆ getWaitingUntilNumber()

int MSTransportableControl::getWaitingUntilNumber ( ) const
inline

Returns the number of transportables waiting for a specified amount of time.

Definition at line 211 of file MSTransportableControl.h.

References myWaitingUntilNumber.

Referenced by MSNet::writeSummaryOutput().

Here is the caller graph for this function:

◆ hasAnyWaiting()

bool MSTransportableControl::hasAnyWaiting ( const MSEdge edge,
SUMOVehicle vehicle 
) const

check whether any transportables are waiting for the given vehicle

Definition at line 243 of file MSTransportableControl.cpp.

References SUMOVehicle::allowsBoarding(), MSTransportable::getEdgePos(), MSGlobals::gStopTolerance, SUMOVehicle::isStoppedInRange(), MSTransportable::isWaitingFor(), and myWaiting4Vehicle.

Referenced by MSVehicle::processNextStop().

Here is the caller graph for this function:

◆ hasNonWaiting()

bool MSTransportableControl::hasNonWaiting ( ) const

checks whether any transportable is still engaged in walking / stopping

Definition at line 317 of file MSTransportableControl.cpp.

References myHaveNewWaiting, myRunningNumber, myWaiting4Departure, and myWaitingForVehicleNumber.

Referenced by MSNet::simulationState().

Here is the caller graph for this function:

◆ hasTransportables()

bool MSTransportableControl::hasTransportables ( ) const

checks whether any transportable waits to finish her plan

Definition at line 311 of file MSTransportableControl.cpp.

References myTransportables.

Referenced by MSNet::simulationStep(), and MSFCDExport::write().

Here is the caller graph for this function:

◆ loadAnyWaiting()

bool MSTransportableControl::loadAnyWaiting ( const MSEdge edge,
SUMOVehicle vehicle,
SUMOTime timeToLoadNext,
SUMOTime stopDuration 
)

load any applicable transportables Loads any person / container that is waiting on that edge for the given vehicle and removes them from myWaiting

Parameters
[in]edgethe edge on which the loading should take place
[in]vehiclethe vehicle which is taking on containers
[in,out]timeToLoadNextearliest time for the next loading process (gets updated)
[in,out]stopDurationthe duration of the stop where the loading takes place (might be extended)
Returns
Whether any transportables have been loaded

Definition at line 259 of file MSTransportableControl.cpp.

References SUMOVehicle::addTransportable(), SUMOVehicle::allowsBoarding(), DELTA_T, MSTransportable::getCurrentStage(), MSTransportable::getEdgePos(), MSVehicleType::getLoadingDuration(), MSStage::getOriginStop(), SUMOTrafficObject::getVehicleType(), MSGlobals::gStopTolerance, MSTransportable::isPerson(), SUMOVehicle::isStoppedInRange(), MSTransportable::isWaitingFor(), MAX2(), myAbortWaitingTimeout, myWaiting4Vehicle, myWaitingForVehicleNumber, MSStoppingPlace::removeTransportable(), MSEdge::removeTransportable(), MSTransportable::setAbortWaiting(), and SIMSTEP.

Referenced by MSVehicle::boardTransportables(), MEVehicle::mayProceed(), and MEVehicle::processStop().

Here is the caller graph for this function:

◆ loadedBegin()

constVehIt MSTransportableControl::loadedBegin ( ) const
inline

Returns the begin of the internal transportables map.

Returns
The begin of the internal transportables map

Definition at line 148 of file MSTransportableControl.h.

References myTransportables.

Referenced by MSDevice_BTreceiver::BTreceiverUpdate::execute(), MSDevice_Tripinfo::generateOutputForUnfinished(), and MSDevice_Vehroutes::generateOutputForUnfinished().

Here is the caller graph for this function:

◆ loadedEnd()

constVehIt MSTransportableControl::loadedEnd ( ) const
inline

Returns the end of the internal transportables map.

Returns
The end of the internal transportables map

Definition at line 156 of file MSTransportableControl.h.

References myTransportables.

Referenced by MSDevice_BTreceiver::BTreceiverUpdate::execute(), MSDevice_Tripinfo::generateOutputForUnfinished(), and MSDevice_Vehroutes::generateOutputForUnfinished().

Here is the caller graph for this function:

◆ loadState()

void MSTransportableControl::loadState ( const std::string &  state)

Reconstruct the current state.

Definition at line 425 of file MSTransportableControl.cpp.

References myArrivedNumber, myDiscardedNumber, myEndedNumber, myHaveNewWaiting, myJammedNumber, myLoadedNumber, myRunningNumber, myWaitingForDepartureNumber, myWaitingForVehicleNumber, and myWaitingUntilNumber.

Referenced by MSStateHandler::myStartElement().

Here is the caller graph for this function:

◆ operator=()

MSTransportableControl & MSTransportableControl::operator= ( const MSTransportableControl src)
privatedelete

invalidated assignment operator

◆ registerJammed()

void MSTransportableControl::registerJammed ( )
inline

register a jammed transportable

Definition at line 169 of file MSTransportableControl.h.

References myJammedNumber.

Referenced by MSPModel_Striping::PState::walk().

Here is the caller graph for this function:

◆ saveState()

void MSTransportableControl::saveState ( OutputDevice out)

Saves the current state into the given stream.

Definition at line 413 of file MSTransportableControl.cpp.

References myArrivedNumber, myDiscardedNumber, myEndedNumber, myHaveNewWaiting, myJammedNumber, myLoadedNumber, myRunningNumber, myTransportables, myWaitingForDepartureNumber, myWaitingForVehicleNumber, myWaitingUntilNumber, SUMO_ATTR_STATE, and OutputDevice::writeAttr().

Referenced by MSStateHandler::saveState().

Here is the caller graph for this function:

◆ setWaitEnd()

void MSTransportableControl::setWaitEnd ( SUMOTime  time,
MSTransportable transportable 
)

sets the arrival time for a waiting transportable

Definition at line 170 of file MSTransportableControl.cpp.

References DELTA_T, myWaitingUntil, and myWaitingUntilNumber.

Referenced by MSStageWaiting::loadState(), and MSStageWaiting::proceed().

Here is the caller graph for this function:

◆ size()

int MSTransportableControl::size ( ) const
inline

Returns the number of known transportables.

Returns
The number of stored transportables

Definition at line 164 of file MSTransportableControl.h.

References myTransportables.

Field Documentation

◆ myAbortWaitingTimeout

SUMOTime MSTransportableControl::myAbortWaitingTimeout
private

The time until waiting for a ride is aborted.

Definition at line 324 of file MSTransportableControl.h.

Referenced by abortAnyWaitingForVehicle(), abortWaitingForVehicle(), addWaiting(), loadAnyWaiting(), and MSTransportableControl().

◆ myArrivedNumber

int MSTransportableControl::myArrivedNumber
protected

The number of transportables that arrived at their destination.

Definition at line 310 of file MSTransportableControl.h.

Referenced by addArrived(), clearState(), getArrivedNumber(), loadState(), and saveState().

◆ myDiscardedNumber

int MSTransportableControl::myDiscardedNumber
protected

The number of discarded transportables.

Definition at line 289 of file MSTransportableControl.h.

Referenced by addDiscarded(), clearState(), getDepartedNumber(), loadState(), and saveState().

◆ myEndedNumber

int MSTransportableControl::myEndedNumber
protected

The number of transportables that exited the simulation.

Definition at line 307 of file MSTransportableControl.h.

Referenced by clearState(), erase(), getEndedNumber(), loadState(), and saveState().

◆ myHaveNewWaiting

bool MSTransportableControl::myHaveNewWaiting
protected

whether a new transportable waiting for a vehicle has been added in the last step

Definition at line 313 of file MSTransportableControl.h.

Referenced by addWaiting(), checkWaiting(), clearState(), hasNonWaiting(), loadState(), and saveState().

◆ myJammedNumber

int MSTransportableControl::myJammedNumber
protected

The number of jammed transportables.

Definition at line 295 of file MSTransportableControl.h.

Referenced by clearState(), getJammedNumber(), loadState(), registerJammed(), and saveState().

◆ myLoadedNumber

int MSTransportableControl::myLoadedNumber
protected

The number of build transportables.

Definition at line 286 of file MSTransportableControl.h.

Referenced by add(), addDiscarded(), clearState(), fixLoadCount(), getDepartedNumber(), getLoadedNumber(), loadState(), and saveState().

◆ myMovementModel

MSPModel* MSTransportableControl::myMovementModel
private

◆ myNonInteractingModel

MSPModel* MSTransportableControl::myNonInteractingModel
private

◆ myRouteInfos

MSDevice_Vehroutes::SortedRouteInfo MSTransportableControl::myRouteInfos
private

Information needed to sort transportable output by departure time.

Definition at line 321 of file MSTransportableControl.h.

Referenced by checkWaiting(), erase(), and MSTransportableControl().

◆ myRunningNumber

int MSTransportableControl::myRunningNumber
protected

The number of transportables within the network (build and inserted but not removed)

Definition at line 292 of file MSTransportableControl.h.

Referenced by checkWaiting(), clearState(), erase(), forceDeparture(), getActiveCount(), getRidingNumber(), getRunningNumber(), hasNonWaiting(), loadState(), and saveState().

◆ myTransportables

std::map<std::string, MSTransportable*> MSTransportableControl::myTransportables
protected

all currently created transportables by id

Definition at line 274 of file MSTransportableControl.h.

Referenced by add(), clearState(), erase(), get(), hasTransportables(), GUITransportableControl::insertIDs(), loadedBegin(), loadedEnd(), saveState(), and size().

◆ myWaiting4Departure

std::map<SUMOTime, TransportableVector> MSTransportableControl::myWaiting4Departure
protected

Transportables waiting for departure.

Definition at line 277 of file MSTransportableControl.h.

Referenced by abortWaiting(), add(), checkWaiting(), clearState(), fixLoadCount(), getActiveCount(), and hasNonWaiting().

◆ myWaiting4Vehicle

std::map<const MSEdge*, TransportableVector> MSTransportableControl::myWaiting4Vehicle
protected

the lists of waiting transportables

Definition at line 283 of file MSTransportableControl.h.

Referenced by abortAnyWaitingForVehicle(), abortWaitingForVehicle(), addWaiting(), clearState(), hasAnyWaiting(), and loadAnyWaiting().

◆ myWaitingForDepartureNumber

int MSTransportableControl::myWaitingForDepartureNumber
protected

The number of transportables waiting for departure.

Definition at line 298 of file MSTransportableControl.h.

Referenced by add(), checkWaiting(), clearState(), getDepartedNumber(), loadState(), and saveState().

◆ myWaitingForVehicleNumber

int MSTransportableControl::myWaitingForVehicleNumber
protected

◆ myWaitingUntil

std::map<SUMOTime, TransportableVector> MSTransportableControl::myWaitingUntil
protected

the lists of walking / stopping transportables

Definition at line 280 of file MSTransportableControl.h.

Referenced by abortWaiting(), checkWaiting(), clearState(), and setWaitEnd().

◆ myWaitingUntilNumber

int MSTransportableControl::myWaitingUntilNumber
protected

The number of transportables waiting for a specified time.

Definition at line 304 of file MSTransportableControl.h.

Referenced by checkWaiting(), clearState(), getRidingNumber(), getWaitingUntilNumber(), loadState(), saveState(), and setWaitEnd().


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