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

#include <Route.h>

Static Public Member Functions

static LIBSUMO_GET_PARAMETER_WITH_KEY_API void add (const std::string &routeID, const std::vector< std::string > &edges)
 
static std::vector< std::string > getEdges (const std::string &routeID)
 
static int getIDCount ()
 
static std::vector< std::string > getIDList ()
 
static std::string getParameter (const std::string &routeID, const std::string &param)
 
static bool handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper)
 
static LIBSUMO_SUBSCRIPTION_API std::shared_ptr< VariableWrappermakeWrapper ()
 
static void setParameter (const std::string &routeID, const std::string &param, const std::string &value)
 

Private Member Functions

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

Static Private Member Functions

static const MSRoutegetRoute (const std::string &id)
 

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
 
static SubscriptionResults mySubscriptionResults
 

Detailed Description

Definition at line 46 of file Route.h.

Constructor & Destructor Documentation

◆ Route()

libsumo::Route::Route ( )
privatedelete

invalidated standard constructor

Member Function Documentation

◆ add()

void Route::add ( const std::string &  routeID,
const std::vector< std::string > &  edges 
)
static

Definition at line 87 of file Route.cpp.

References MSRoute::dictionary(), MSEdge::dictionary(), LIBSUMO_SUBSCRIPTION_IMPLEMENTATION, and ROUTE.

Referenced by libsumo::Vehicle::add(), and TraCIServerAPI_Route::processSet().

Here is the caller graph for this function:

◆ getEdges()

std::vector< std::string > Route::getEdges ( const std::string &  routeID)
static

Definition at line 53 of file Route.cpp.

References MSRoute::getEdges(), and getRoute().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getIDCount()

int Route::getIDCount ( )
static

Definition at line 64 of file Route.cpp.

References getIDList().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getIDList()

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

Definition at line 46 of file Route.cpp.

References MSRoute::insertIDs().

Referenced by getIDCount(), and handleVariable().

Here is the caller graph for this function:

◆ getParameter()

std::string Route::getParameter ( const std::string &  routeID,
const std::string &  param 
)
static

Definition at line 70 of file Route.cpp.

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

Referenced by TraCIServerAPI_Route::processGet().

Here is the caller graph for this function:

◆ getRoute()

const MSRoute * Route::getRoute ( const std::string &  id)
staticprivate

Definition at line 110 of file Route.cpp.

References MSRoute::dictionary().

Referenced by getEdges(), getParameter(), and setParameter().

Here is the caller graph for this function:

◆ handleVariable()

bool Route::handleVariable ( const std::string &  objID,
const int  variable,
VariableWrapper wrapper 
)
static

Definition at line 126 of file Route.cpp.

References getEdges(), getIDCount(), getIDList(), libsumo::ID_COUNT, libsumo::TRACI_ID_LIST, libsumo::VAR_EDGES, libsumo::VariableWrapper::wrapInt(), and libsumo::VariableWrapper::wrapStringList().

Referenced by makeWrapper(), and TraCIServerAPI_Route::processGet().

Here is the caller graph for this function:

◆ makeWrapper()

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

Definition at line 120 of file Route.cpp.

References handleVariable(), myContextSubscriptionResults, and mySubscriptionResults.

◆ setParameter()

void Route::setParameter ( const std::string &  routeID,
const std::string &  param,
const std::string &  value 
)
static

Definition at line 80 of file Route.cpp.

References getRoute(), and Parameterised::setParameter().

Referenced by TraCIServerAPI_Route::processSet().

Here is the caller graph for this function:

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults Route::myContextSubscriptionResults
staticprivate

Definition at line 69 of file Route.h.

Referenced by makeWrapper().

◆ mySubscriptionResults

SubscriptionResults Route::mySubscriptionResults
staticprivate

Definition at line 68 of file Route.h.

Referenced by makeWrapper().


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