Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
LIBSUMO_NAMESPACE::Route Class Reference

#include <Route.h>

Static Public Member Functions

LIBSUMO_ID_PARAMETER_API static LIBSUMO_SUBSCRIPTION_API void add (const std::string &routeID, const std::vector< std::string > &edges)
static std::vector< std::string > getEdges (const std::string &routeID)
static bool handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper, tcpip::Storage *paramData)
static std::shared_ptr< VariableWrapper > makeWrapper ()
static void remove (const std::string &routeID)

Private Member Functions

 Route ()=delete
 invalidated standard constructor

Static Private Member Functions

static ConstMSRoutePtr getRoute (const std::string &id)

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
static SubscriptionResults mySubscriptionResults

Detailed Description

Definition at line 44 of file Route.h.

Constructor & Destructor Documentation

◆ Route()

LIBSUMO_NAMESPACE::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 88 of file libsumo/Route.cpp.

References add(), MSEdge::dictionary(), and MSRoute::dictionary().

Referenced by add().

Here is the caller graph for this function:

◆ getEdges()

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

Definition at line 54 of file libsumo/Route.cpp.

References getEdges(), and getRoute().

Referenced by getEdges(), and handleVariable().

Here is the caller graph for this function:

◆ getRoute()

ConstMSRoutePtr Route::getRoute ( const std::string & id)
staticprivate

Definition at line 119 of file libsumo/Route.cpp.

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

Referenced by getEdges(), getRoute(), and remove().

Here is the caller graph for this function:

◆ handleVariable()

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

Definition at line 135 of file libsumo/Route.cpp.

References getEdges(), handleVariable(), libsumo::ID_COUNT, tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), libsumo::TRACI_ID_LIST, libsumo::VAR_EDGES, libsumo::VAR_PARAMETER, and libsumo::VAR_PARAMETER_WITH_KEY.

Referenced by handleVariable(), and makeWrapper().

Here is the caller graph for this function:

◆ makeWrapper()

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

Definition at line 129 of file libsumo/Route.cpp.

References handleVariable(), makeWrapper(), myContextSubscriptionResults, and mySubscriptionResults.

Referenced by makeWrapper().

Here is the caller graph for this function:

◆ remove()

void Route::remove ( const std::string & routeID)
static

Definition at line 109 of file libsumo/Route.cpp.

References MSRoute::checkRemoval(), getRoute(), and remove().

Referenced by remove().

Here is the caller graph for this function:

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults Route::myContextSubscriptionResults
staticprivate

Definition at line 66 of file Route.h.

Referenced by makeWrapper().

◆ mySubscriptionResults

SubscriptionResults Route::mySubscriptionResults
staticprivate

Definition at line 65 of file Route.h.

Referenced by makeWrapper().


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