SUMO - Simulation of Urban MObility
TraCI_Edge Class Reference

#include <TraCI_Edge.h>

Collaboration diagram for TraCI_Edge:
Collaboration graph

Static Public Member Functions

static void addEffort (const std::string &id, double begTime, double endTime, double value)
 
static void addTravelTime (const std::string &id, double begTime, double endTime, double value)
 
static double getCO2Emissions (const std::string &id)
 
static double getCOEmissions (const std::string &id)
 
static double getCurrentTravelTime (const std::string &id)
 
static MSEdgegetEdge (const std::string &id)
 
static double getElectricityConsumption (const std::string &id)
 
static double getFuelConsumption (const std::string &id)
 
static double getHCEmissions (const std::string &id)
 
static int getIDCount ()
 
static std::vector< std::string > getIDList ()
 
static double getMeanSpeed (const std::string &id)
 
static double getNoiseEmissions (const std::string &id)
 
static double getNOxEmissions (const std::string &id)
 
static double getOccupancy (const std::string &id)
 
static std::string getParameter (const std::string &id, const std::string &paramName)
 
static const std::vector< std::string > getPersonIDs (const std::string &id)
 
static double getPMxEmissions (const std::string &id)
 
static void getShape (const std::string &id, PositionVector &shape)
 
static double getVehicleAverageLength (const std::string &id)
 
static int getVehicleHaltingNumber (const std::string &id)
 
static const std::vector< std::string > getVehicleIDs (const std::string &id)
 
static int getVehicleNumber (const std::string &id)
 
static double getWaitingSeconds (const std::string &id)
 
static double retrieveExistingEffort (const std::string &id, double time)
 
static double retrieveExistingTravelTime (const std::string &id, double time)
 
static void setAllowedSVCPermissions (const std::string &id, SVCPermissions permissions)
 
static void setAllowedVehicleClasses (const std::string &id, std::vector< std::string > vector)
 
static void setDisallowedVehicleClasses (const std::string &id, std::vector< std::string > classes)
 
static void setMaxSpeed (const std::string &id, double value)
 
static void setParameter (const std::string &id, const std::string &name, const std::string &value)
 

Detailed Description

Definition at line 26 of file TraCI_Edge.h.

Member Function Documentation

void TraCI_Edge::addEffort ( const std::string &  id,
double  begTime,
double  endTime,
double  value 
)
static
void TraCI_Edge::addTravelTime ( const std::string &  id,
double  begTime,
double  endTime,
double  value 
)
static
double TraCI_Edge::getCO2Emissions ( const std::string &  id)
static

Definition at line 113 of file TraCI_Edge.cpp.

References getEdge(), and MSEdge::getLanes().

Referenced by TraCIServerAPI_Edge::processGet().

double TraCI_Edge::getCOEmissions ( const std::string &  id)
static

Definition at line 123 of file TraCI_Edge.cpp.

References getEdge(), and MSEdge::getLanes().

Referenced by TraCIServerAPI_Edge::processGet().

double TraCI_Edge::getCurrentTravelTime ( const std::string &  id)
static

Definition at line 63 of file TraCI_Edge.cpp.

References MSEdge::getCurrentTravelTime(), and getEdge().

Referenced by TraCIServerAPI_Edge::processGet().

double TraCI_Edge::getElectricityConsumption ( const std::string &  id)
static

Definition at line 186 of file TraCI_Edge.cpp.

References getEdge(), and MSEdge::getLanes().

Referenced by TraCIServerAPI_Edge::processGet().

double TraCI_Edge::getFuelConsumption ( const std::string &  id)
static

Definition at line 163 of file TraCI_Edge.cpp.

References getEdge(), and MSEdge::getLanes().

Referenced by TraCIServerAPI_Edge::processGet().

double TraCI_Edge::getHCEmissions ( const std::string &  id)
static

Definition at line 133 of file TraCI_Edge.cpp.

References getEdge(), and MSEdge::getLanes().

Referenced by TraCIServerAPI_Edge::processGet().

int TraCI_Edge::getIDCount ( )
static

Definition at line 39 of file TraCI_Edge.cpp.

References getIDList().

Referenced by TraCIServerAPI_Edge::processGet().

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

Definition at line 32 of file TraCI_Edge.cpp.

References MSEdge::insertIDs().

Referenced by getIDCount(), and TraCIServerAPI_Edge::processGet().

double TraCI_Edge::getMeanSpeed ( const std::string &  id)
static

Definition at line 206 of file TraCI_Edge.cpp.

References getEdge(), and MSEdge::getMeanSpeed().

Referenced by TraCIServerAPI_Edge::processGet().

double TraCI_Edge::getNoiseEmissions ( const std::string &  id)
static

Definition at line 173 of file TraCI_Edge.cpp.

References getEdge(), MSEdge::getLanes(), and HelpersHarmonoise::sum().

Referenced by TraCIServerAPI_Edge::processGet().

double TraCI_Edge::getNOxEmissions ( const std::string &  id)
static

Definition at line 153 of file TraCI_Edge.cpp.

References getEdge(), and MSEdge::getLanes().

Referenced by TraCIServerAPI_Edge::processGet().

double TraCI_Edge::getOccupancy ( const std::string &  id)
static

Definition at line 211 of file TraCI_Edge.cpp.

References getEdge(), and MSEdge::getLanes().

Referenced by TraCIServerAPI_Edge::processGet().

std::string TraCI_Edge::getParameter ( const std::string &  id,
const std::string &  paramName 
)
static

Definition at line 256 of file TraCI_Edge.cpp.

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

Referenced by TraCIServerAPI_Edge::processGet().

const std::vector< std::string > TraCI_Edge::getPersonIDs ( const std::string &  id)
static
double TraCI_Edge::getPMxEmissions ( const std::string &  id)
static

Definition at line 143 of file TraCI_Edge.cpp.

References getEdge(), and MSEdge::getLanes().

Referenced by TraCIServerAPI_Edge::processGet().

void TraCI_Edge::getShape ( const std::string &  id,
PositionVector shape 
)
static

Definition at line 306 of file TraCI_Edge.cpp.

References getEdge(), and MSEdge::getLanes().

Referenced by TraCIServerAPI_Edge::getShape().

double TraCI_Edge::getVehicleAverageLength ( const std::string &  id)
static

Definition at line 237 of file TraCI_Edge.cpp.

References getEdge(), and MSEdge::getLanes().

Referenced by TraCIServerAPI_Edge::processGet().

int TraCI_Edge::getVehicleHaltingNumber ( const std::string &  id)
static

Definition at line 221 of file TraCI_Edge.cpp.

References getEdge(), MSEdge::getLanes(), and SUMO_const_haltingSpeed.

Referenced by TraCIServerAPI_Edge::processGet().

const std::vector< std::string > TraCI_Edge::getVehicleIDs ( const std::string &  id)
static

Definition at line 98 of file TraCI_Edge.cpp.

References getEdge(), and MSEdge::getLanes().

Referenced by TraCIServerAPI_Edge::processGet().

int TraCI_Edge::getVehicleNumber ( const std::string &  id)
static

Definition at line 196 of file TraCI_Edge.cpp.

References getEdge(), and MSEdge::getLanes().

Referenced by TraCIServerAPI_Edge::processGet().

double TraCI_Edge::getWaitingSeconds ( const std::string &  id)
static

Definition at line 77 of file TraCI_Edge.cpp.

References getEdge(), and MSEdge::getLanes().

Referenced by TraCIServerAPI_Edge::processGet().

double TraCI_Edge::retrieveExistingEffort ( const std::string &  id,
double  time 
)
static

Definition at line 53 of file TraCI_Edge.cpp.

References getEdge(), and MSNet::getInstance().

Referenced by TraCIServerAPI_Edge::processGet().

double TraCI_Edge::retrieveExistingTravelTime ( const std::string &  id,
double  time 
)
static

Definition at line 43 of file TraCI_Edge.cpp.

References getEdge(), and MSNet::getInstance().

Referenced by TraCIServerAPI_Edge::processGet().

void TraCI_Edge::setAllowedSVCPermissions ( const std::string &  id,
SVCPermissions  permissions 
)
static
void TraCI_Edge::setAllowedVehicleClasses ( const std::string &  id,
std::vector< std::string >  vector 
)
static

Definition at line 261 of file TraCI_Edge.cpp.

References parseVehicleClasses(), and setAllowedSVCPermissions().

Referenced by TraCIServerAPI_Edge::processSet().

void TraCI_Edge::setDisallowedVehicleClasses ( const std::string &  id,
std::vector< std::string >  classes 
)
static
void TraCI_Edge::setMaxSpeed ( const std::string &  id,
double  value 
)
static

Definition at line 293 of file TraCI_Edge.cpp.

References getEdge(), and MSEdge::getLanes().

Referenced by TraCIServerAPI_Edge::processSet().

void TraCI_Edge::setParameter ( const std::string &  id,
const std::string &  name,
const std::string &  value 
)
static

Definition at line 301 of file TraCI_Edge.cpp.

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

Referenced by TraCIServerAPI_Edge::processSet().


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