Eclipse SUMO - Simulation of Urban MObility
LIBSUMO_NAMESPACE::Edge Class Reference

#include <Edge.h>

Static Public Member Functions

static void adaptTraveltime (const std::string &edgeID, double time, double beginSeconds=0., double endSeconds=std::numeric_limits< double >::max())
 
static double getAdaptedTraveltime (const std::string &edgeID, double time)
 
static double getCO2Emission (const std::string &edgeID)
 
static double getCOEmission (const std::string &edgeID)
 
static double getEffort (const std::string &edgeID, double time)
 
static double getElectricityConsumption (const std::string &edgeID)
 
static double getFuelConsumption (const std::string &edgeID)
 
static double getHCEmission (const std::string &edgeID)
 
static int getLaneNumber (const std::string &edgeID)
 
static int getLastStepHaltingNumber (const std::string &edgeID)
 
static double getLastStepLength (const std::string &edgeID)
 
static double getLastStepMeanSpeed (const std::string &edgeID)
 
static double getLastStepOccupancy (const std::string &edgeID)
 
static const std::vector< std::string > getLastStepPersonIDs (const std::string &edgeID)
 
static const std::vector< std::string > getLastStepVehicleIDs (const std::string &edgeID)
 
static int getLastStepVehicleNumber (const std::string &edgeID)
 
static double getNoiseEmission (const std::string &edgeID)
 
static double getNOxEmission (const std::string &edgeID)
 
static double getPMxEmission (const std::string &edgeID)
 
static std::string getStreetName (const std::string &edgeID)
 
static double getTraveltime (const std::string &edgeID)
 
static double getWaitingTime (const std::string &edgeID)
 
static bool handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper)
 
static std::shared_ptr< VariableWrapper > makeWrapper ()
 
static void setAllowedSVCPermissions (const std::string &edgeID, int permissions)
 
LIBSUMO_ID_PARAMETER_API static LIBSUMO_SUBSCRIPTION_API void setAllowedVehicleClasses (const std::string &edgeID, std::vector< std::string > vector)
 
static void setDisallowedVehicleClasses (const std::string &edgeID, std::vector< std::string > classes)
 
static void setEffort (const std::string &edgeID, double effort, double beginSeconds=0., double endSeconds=std::numeric_limits< double >::max())
 
static void setMaxSpeed (const std::string &edgeID, double speed)
 
static void storeShape (const std::string &edgeID, PositionVector &shape)
 Saves the shape of the requested object in the given container. More...
 

Private Member Functions

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

Static Private Member Functions

static MSEdgegetEdge (const std::string &edgeID)
 

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
 
static SubscriptionResults mySubscriptionResults
 

Detailed Description

Definition at line 51 of file Edge.h.

Constructor & Destructor Documentation

◆ Edge()

LIBSUMO_NAMESPACE::Edge::Edge ( )
privatedelete

invalidated standard constructor

Member Function Documentation

◆ adaptTraveltime()

void Edge::adaptTraveltime ( const std::string &  edgeID,
double  time,
double  beginSeconds = 0.,
double  endSeconds = std::numeric_limits<double>::max() 
)
static

◆ getAdaptedTraveltime()

double Edge::getAdaptedTraveltime ( const std::string &  edgeID,
double  time 
)
static

Definition at line 59 of file libsumo/Edge.cpp.

References MSNet::getInstance().

◆ getCO2Emission()

double Edge::getCO2Emission ( const std::string &  edgeID)
static

Definition at line 125 of file libsumo/Edge.cpp.

◆ getCOEmission()

double Edge::getCOEmission ( const std::string &  edgeID)
static

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

◆ getEdge()

MSEdge * Edge::getEdge ( const std::string &  edgeID)
staticprivate

Definition at line 87 of file libsumo/Edge.cpp.

References MSEdge::dictionary().

◆ getEffort()

double Edge::getEffort ( const std::string &  edgeID,
double  time 
)
static

Definition at line 70 of file libsumo/Edge.cpp.

References MSNet::getInstance().

◆ getElectricityConsumption()

double Edge::getElectricityConsumption ( const std::string &  edgeID)
static

Definition at line 198 of file libsumo/Edge.cpp.

◆ getFuelConsumption()

double Edge::getFuelConsumption ( const std::string &  edgeID)
static

Definition at line 175 of file libsumo/Edge.cpp.

◆ getHCEmission()

double Edge::getHCEmission ( const std::string &  edgeID)
static

Definition at line 145 of file libsumo/Edge.cpp.

◆ getLaneNumber()

int Edge::getLaneNumber ( const std::string &  edgeID)
static

Definition at line 253 of file libsumo/Edge.cpp.

◆ getLastStepHaltingNumber()

int Edge::getLastStepHaltingNumber ( const std::string &  edgeID)
static

Definition at line 226 of file libsumo/Edge.cpp.

References SUMO_const_haltingSpeed.

◆ getLastStepLength()

double Edge::getLastStepLength ( const std::string &  edgeID)
static

Definition at line 238 of file libsumo/Edge.cpp.

References MSBaseVehicle::getLength().

◆ getLastStepMeanSpeed()

double Edge::getLastStepMeanSpeed ( const std::string &  edgeID)
static

Definition at line 214 of file libsumo/Edge.cpp.

◆ getLastStepOccupancy()

double Edge::getLastStepOccupancy ( const std::string &  edgeID)
static

Definition at line 220 of file libsumo/Edge.cpp.

◆ getLastStepPersonIDs()

const std::vector< std::string > Edge::getLastStepPersonIDs ( const std::string &  edgeID)
static

Definition at line 103 of file libsumo/Edge.cpp.

References MSNet::getInstance().

◆ getLastStepVehicleIDs()

const std::vector< std::string > Edge::getLastStepVehicleIDs ( const std::string &  edgeID)
static

Definition at line 115 of file libsumo/Edge.cpp.

◆ getLastStepVehicleNumber()

int Edge::getLastStepVehicleNumber ( const std::string &  edgeID)
static

Definition at line 208 of file libsumo/Edge.cpp.

◆ getNoiseEmission()

double Edge::getNoiseEmission ( const std::string &  edgeID)
static

Definition at line 185 of file libsumo/Edge.cpp.

References HelpersHarmonoise::sum().

◆ getNOxEmission()

double Edge::getNOxEmission ( const std::string &  edgeID)
static

Definition at line 165 of file libsumo/Edge.cpp.

◆ getPMxEmission()

double Edge::getPMxEmission ( const std::string &  edgeID)
static

Definition at line 155 of file libsumo/Edge.cpp.

◆ getStreetName()

std::string Edge::getStreetName ( const std::string &  edgeID)
static

Definition at line 259 of file libsumo/Edge.cpp.

◆ getTraveltime()

double Edge::getTraveltime ( const std::string &  edgeID)
static

Definition at line 81 of file libsumo/Edge.cpp.

◆ getWaitingTime()

double Edge::getWaitingTime ( const std::string &  edgeID)
static

Definition at line 97 of file libsumo/Edge.cpp.

References MSEdge::getWaitingSeconds().

◆ handleVariable()

◆ makeWrapper()

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

Definition at line 341 of file libsumo/Edge.cpp.

◆ setAllowedSVCPermissions()

void Edge::setAllowedSVCPermissions ( const std::string &  edgeID,
int  permissions 
)
static

◆ setAllowedVehicleClasses()

void Edge::setAllowedVehicleClasses ( const std::string &  edgeID,
std::vector< std::string >  vector 
)
static

Definition at line 274 of file libsumo/Edge.cpp.

References parseVehicleClasses().

◆ setDisallowedVehicleClasses()

void Edge::setDisallowedVehicleClasses ( const std::string &  edgeID,
std::vector< std::string >  classes 
)
static

Definition at line 281 of file libsumo/Edge.cpp.

References invertPermissions(), and parseVehicleClasses().

◆ setEffort()

void Edge::setEffort ( const std::string &  edgeID,
double  effort,
double  beginSeconds = 0.,
double  endSeconds = std::numeric_limits<double>::max() 
)
static

◆ setMaxSpeed()

void Edge::setMaxSpeed ( const std::string &  edgeID,
double  speed 
)
static

Definition at line 313 of file libsumo/Edge.cpp.

◆ storeShape()

void Edge::storeShape ( const std::string &  edgeID,
PositionVector shape 
)
static

Saves the shape of the requested object in the given container.

Parameters
idThe id of the edge to retrieve
shapeThe container to fill

Definition at line 330 of file libsumo/Edge.cpp.

References MSEdge::getLanes().

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults Edge::myContextSubscriptionResults
staticprivate

Definition at line 103 of file Edge.h.

◆ mySubscriptionResults

SubscriptionResults Edge::mySubscriptionResults
staticprivate

Definition at line 102 of file Edge.h.


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