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

#include <Route.h>

Collaboration diagram for libsumo::Route:

Static Public Member Functions

static void add (const std::string &routeID, const std::vector< std::string > &edgeIDs)
 
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 &key, 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 48 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 > &  edgeIDs 
)
static

◆ getEdges()

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

Definition at line 54 of file Route.cpp.

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

Referenced by handleVariable().

◆ getIDCount()

int Route::getIDCount ( )
static

Definition at line 65 of file Route.cpp.

References getIDList().

Referenced by handleVariable().

◆ getIDList()

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

Definition at line 47 of file Route.cpp.

References MSRoute::insertIDs().

Referenced by getIDCount(), and handleVariable().

◆ getParameter()

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

Definition at line 71 of file Route.cpp.

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

Referenced by TraCIServerAPI_Route::processGet().

◆ getRoute()

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

Definition at line 107 of file Route.cpp.

References MSRoute::dictionary().

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

◆ handleVariable()

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

◆ makeWrapper()

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

◆ setParameter()

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

Definition at line 77 of file Route.cpp.

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

Referenced by TraCIServerAPI_Route::processSet().

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults Route::myContextSubscriptionResults
staticprivate

Definition at line 70 of file Route.h.

Referenced by makeWrapper().

◆ mySubscriptionResults

SubscriptionResults Route::mySubscriptionResults
staticprivate

Definition at line 69 of file Route.h.

Referenced by makeWrapper().


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