Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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 getAngle (const std::string &edgeID, double relativePosition=libsumo::INVALID_DOUBLE_VALUE)
 
static std::string getBidiEdge (const std::string &edgeID)
 
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 std::string getFromJunction (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 getMeanFriction (const std::string &edgeID)
 
static double getNoiseEmission (const std::string &edgeID)
 
static double getNOxEmission (const std::string &edgeID)
 
static const std::vector< std::string > getPendingVehicles (const std::string &edgeID)
 
static double getPMxEmission (const std::string &edgeID)
 
static std::string getStreetName (const std::string &edgeID)
 
static std::string getToJunction (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, tcpip::Storage *paramData)
 
static std::shared_ptr< VariableWrapper > makeWrapper ()
 
LIBSUMO_ID_PARAMETER_API static LIBSUMO_SUBSCRIPTION_API void setAllowed (const std::string &edgeID, std::string allowedClasses)
 
static void setAllowed (const std::string &edgeID, std::vector< std::string > allowedClasses)
 
static void setDisallowed (const std::string &edgeID, std::string disallowedClasses)
 
static void setDisallowed (const std::string &edgeID, std::vector< std::string > disallowedClasses)
 
static void setEffort (const std::string &edgeID, double effort, double beginSeconds=0., double endSeconds=std::numeric_limits< double >::max())
 
static void setFriction (const std::string &edgeID, double friction)
 
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.
 

Private Member Functions

 Edge ()=delete
 invalidated standard constructor
 

Static Private Member Functions

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

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
 
static SubscriptionResults mySubscriptionResults
 

Detailed Description

Definition at line 46 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 65 of file libsumo/Edge.cpp.

References MSNet::getInstance().

◆ getAngle()

double Edge::getAngle ( const std::string &  edgeID,
double  relativePosition = libsumo::INVALID_DOUBLE_VALUE 
)
static

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

References libsumo::INVALID_DOUBLE_VALUE.

◆ getBidiEdge()

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

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

References MSEdge::getBidiEdge(), and Named::getID().

◆ getCO2Emission()

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

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

References PollutantsInterface::CO2.

◆ getCOEmission()

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

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

References PollutantsInterface::CO.

◆ getEdge()

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

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

References MSEdge::dictionary().

◆ getEffort()

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

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

References MSNet::getInstance().

◆ getElectricityConsumption()

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

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

References PollutantsInterface::ELEC.

◆ getFromJunction()

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

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

◆ getFuelConsumption()

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

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

References PollutantsInterface::FUEL.

◆ getHCEmission()

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

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

References PollutantsInterface::HC.

◆ getLaneNumber()

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

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

◆ getLastStepHaltingNumber()

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

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

References SUMO_const_haltingSpeed.

◆ getLastStepLength()

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

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

References MSBaseVehicle::getLength().

◆ getLastStepMeanSpeed()

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

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

◆ getLastStepOccupancy()

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

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

◆ getLastStepPersonIDs()

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

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

References MSNet::getInstance().

◆ getLastStepVehicleIDs()

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

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

◆ getLastStepVehicleNumber()

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

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

◆ getMeanFriction()

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

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

◆ getNoiseEmission()

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

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

References HelpersHarmonoise::sum().

◆ getNOxEmission()

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

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

References PollutantsInterface::NO_X.

◆ getPendingVehicles()

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

◆ getPMxEmission()

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

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

References PollutantsInterface::PM_X.

◆ getStreetName()

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

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

◆ getToJunction()

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

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

◆ getTraveltime()

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

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

◆ getWaitingTime()

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

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

References MSEdge::getWaitingSeconds().

◆ handleVariable()

◆ makeWrapper()

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

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

◆ setAllowed() [1/2]

void Edge::setAllowed ( const std::string &  edgeID,
std::string  allowedClasses 
)
static

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

References parseVehicleClasses().

◆ setAllowed() [2/2]

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

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

References parseVehicleClasses().

◆ setAllowedSVCPermissions()

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

◆ setDisallowed() [1/2]

void Edge::setDisallowed ( const std::string &  edgeID,
std::string  disallowedClasses 
)
static

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

References invertPermissions(), and parseVehicleClasses().

◆ setDisallowed() [2/2]

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

Definition at line 338 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

◆ setFriction()

void Edge::setFriction ( const std::string &  edgeID,
double  friction 
)
static

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

◆ setMaxSpeed()

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

Definition at line 366 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 387 of file libsumo/Edge.cpp.

References MSEdge::getLanes().

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults Edge::myContextSubscriptionResults
staticprivate

Definition at line 107 of file Edge.h.

◆ mySubscriptionResults

SubscriptionResults Edge::mySubscriptionResults
staticprivate

Definition at line 106 of file Edge.h.


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