Eclipse SUMO - Simulation of Urban MObility
libsumo::BusStop Class Reference

#include <BusStop.h>

Static Public Member Functions

static double getEndPos (const std::string &stopID)
 
static int getIDCount ()
 
static std::vector< std::string > getIDList ()
 
static std::string getLaneID (const std::string &stopID)
 
static std::string getName (const std::string &stopID)
 
static std::string getParameter (const std::string &stopID, const std::string &param)
 
static int getPersonCount (const std::string &stopID)
 
static std::vector< std::string > getPersonIDs (const std::string &stopID)
 
static double getStartPos (const std::string &stopID)
 
static int getVehicleCount (const std::string &stopID)
 
static std::vector< std::string > getVehicleIDs (const std::string &stopID)
 
static bool handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper)
 
static LIBSUMO_SUBSCRIPTION_API std::shared_ptr< VariableWrappermakeWrapper ()
 
static LIBSUMO_GET_PARAMETER_WITH_KEY_API void setParameter (const std::string &stopID, const std::string &key, const std::string &value)
 

Private Member Functions

 BusStop ()=delete
 invalidated standard constructor More...
 

Static Private Member Functions

static MSStoppingPlacegetBusStop (const std::string &id)
 

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
 
static SubscriptionResults mySubscriptionResults
 

Detailed Description

Definition at line 44 of file BusStop.h.

Constructor & Destructor Documentation

◆ BusStop()

libsumo::BusStop::BusStop ( )
privatedelete

invalidated standard constructor

Member Function Documentation

◆ getBusStop()

MSStoppingPlace * BusStop::getBusStop ( const std::string &  id)
staticprivate

Definition at line 124 of file BusStop.cpp.

References MSNet::getInstance(), MSNet::getStoppingPlace(), and SUMO_TAG_BUS_STOP.

Referenced by getEndPos(), getLaneID(), getName(), getParameter(), getPersonCount(), getPersonIDs(), getStartPos(), getVehicleCount(), getVehicleIDs(), and setParameter().

Here is the caller graph for this function:

◆ getEndPos()

double BusStop::getEndPos ( const std::string &  stopID)
static

Definition at line 69 of file BusStop.cpp.

References getBusStop(), and MSStoppingPlace::getEndLanePosition().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getIDCount()

int BusStop::getIDCount ( )
static

Definition at line 53 of file BusStop.cpp.

References getIDList().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getIDList()

std::vector< std::string > BusStop::getIDList ( )
static

Definition at line 43 of file BusStop.cpp.

References MSNet::getInstance(), and SUMO_TAG_BUS_STOP.

Referenced by getIDCount(), and handleVariable().

Here is the caller graph for this function:

◆ getLaneID()

std::string BusStop::getLaneID ( const std::string &  stopID)
static

Definition at line 59 of file BusStop.cpp.

References getBusStop(), Named::getID(), and MSStoppingPlace::getLane().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getName()

std::string BusStop::getName ( const std::string &  stopID)
static

Definition at line 74 of file BusStop.cpp.

References getBusStop(), and MSStoppingPlace::getMyName().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getParameter()

std::string BusStop::getParameter ( const std::string &  stopID,
const std::string &  param 
)
static

Definition at line 106 of file BusStop.cpp.

References getBusStop(), Parameterised::getParameter(), and LIBSUMO_GET_PARAMETER_WITH_KEY_IMPLEMENTATION.

Referenced by TraCIServerAPI_BusStop::processGet().

Here is the caller graph for this function:

◆ getPersonCount()

int BusStop::getPersonCount ( const std::string &  stopID)
static

Definition at line 93 of file BusStop.cpp.

References getBusStop(), and MSStoppingPlace::getNumWaitingPersons().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getPersonIDs()

std::vector< std::string > BusStop::getPersonIDs ( const std::string &  stopID)
static

Definition at line 98 of file BusStop.cpp.

References getBusStop(), and MSStoppingPlace::getWaitingPersonIDs().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getStartPos()

double BusStop::getStartPos ( const std::string &  stopID)
static

Definition at line 64 of file BusStop.cpp.

References MSStoppingPlace::getBeginLanePosition(), and getBusStop().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getVehicleCount()

int BusStop::getVehicleCount ( const std::string &  stopID)
static

Definition at line 79 of file BusStop.cpp.

References getBusStop(), and MSStoppingPlace::getStoppedVehicles().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getVehicleIDs()

std::vector< std::string > BusStop::getVehicleIDs ( const std::string &  stopID)
static

Definition at line 84 of file BusStop.cpp.

References getBusStop().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ handleVariable()

◆ makeWrapper()

std::shared_ptr< VariableWrapper > BusStop::makeWrapper ( )
static

◆ setParameter()

void BusStop::setParameter ( const std::string &  stopID,
const std::string &  key,
const std::string &  value 
)
static

Definition at line 114 of file BusStop.cpp.

References BUSSTOP, getBusStop(), LIBSUMO_SUBSCRIPTION_IMPLEMENTATION, and Parameterised::setParameter().

Referenced by TraCIServerAPI_BusStop::processSet().

Here is the caller graph for this function:

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults BusStop::myContextSubscriptionResults
staticprivate

Definition at line 75 of file BusStop.h.

Referenced by makeWrapper().

◆ mySubscriptionResults

SubscriptionResults BusStop::mySubscriptionResults
staticprivate

Definition at line 74 of file BusStop.h.

Referenced by makeWrapper().


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