SUMO - Simulation of Urban MObility
TraCIAPI::VehicleTypeScope Class Reference

Scope for interaction with vehicle types. More...

#include <TraCIAPI.h>

Inheritance diagram for TraCIAPI::VehicleTypeScope:
Inheritance graph
Collaboration diagram for TraCIAPI::VehicleTypeScope:
Collaboration graph

Public Member Functions

void copy (const std::string &origTypeID, const std::string &newTypeID) const
 
double getAccel (const std::string &typeID) const
 
double getApparentDecel (const std::string &typeID) const
 
libsumo::TraCIColor getColor (const std::string &typeID) const
 
double getDecel (const std::string &typeID) const
 
double getEmergencyDecel (const std::string &typeID) const
 
std::string getEmissionClass (const std::string &typeID) const
 
double getHeight (const std::string &typeID) const
 
std::vector< std::string > getIDList () const
 
double getImperfection (const std::string &typeID) const
 
std::string getLateralAlignment (const std::string &typeID) const
 
double getLength (const std::string &typeID) const
 
double getMaxSpeed (const std::string &typeID) const
 
double getMaxSpeedLat (const std::string &typeID) const
 
double getMinGap (const std::string &typeID) const
 
double getMinGapLat (const std::string &typeID) const
 
std::string getShapeClass (const std::string &typeID) const
 
double getSpeedDeviation (const std::string &typeID) const
 
double getSpeedFactor (const std::string &typeID) const
 
double getTau (const std::string &typeID) const
 
std::string getVehicleClass (const std::string &typeID) const
 
double getWidth (const std::string &typeID) const
 
void setAccel (const std::string &typeID, double accel) const
 
void setApparentDecel (const std::string &typeID, double decel) const
 
void setColor (const std::string &typeID, const libsumo::TraCIColor &c) const
 
void setDecel (const std::string &typeID, double decel) const
 
void setEmergencyDecel (const std::string &typeID, double decel) const
 
void setEmissionClass (const std::string &typeID, const std::string &clazz) const
 
void setHeight (const std::string &typeID, double height) const
 
void setImperfection (const std::string &typeID, double imperfection) const
 
void setLateralAlignment (const std::string &typeID, const std::string &latAlignment) const
 
void setLength (const std::string &typeID, double length) const
 
void setMaxSpeed (const std::string &typeID, double speed) const
 
void setMaxSpeedLat (const std::string &typeID, double speed) const
 
void setMinGap (const std::string &typeID, double minGap) const
 
void setMinGapLat (const std::string &typeID, double minGapLat) const
 
void setShapeClass (const std::string &typeID, const std::string &shapeClass) const
 
void setSpeedDeviation (const std::string &typeID, double deviation) const
 
void setSpeedFactor (const std::string &typeID, double factor) const
 
void setTau (const std::string &typeID, double tau) const
 
void setVehicleClass (const std::string &typeID, const std::string &clazz) const
 
void setWidth (const std::string &typeID, double width) const
 
 VehicleTypeScope (TraCIAPI &parent)
 
virtual ~VehicleTypeScope ()
 

Protected Attributes

TraCIAPImyParent
 The parent TraCI client which offers the connection. More...
 

Private Member Functions

VehicleTypeScopeoperator= (const VehicleTypeScope &src)
 invalidated assignment operator More...
 
 VehicleTypeScope (const VehicleTypeScope &src)
 invalidated copy constructor More...
 

Detailed Description

Scope for interaction with vehicle types.

Definition at line 556 of file TraCIAPI.h.

Constructor & Destructor Documentation

◆ VehicleTypeScope() [1/2]

TraCIAPI::VehicleTypeScope::VehicleTypeScope ( TraCIAPI parent)
inline

Definition at line 558 of file TraCIAPI.h.

◆ ~VehicleTypeScope()

virtual TraCIAPI::VehicleTypeScope::~VehicleTypeScope ( )
inlinevirtual

Definition at line 559 of file TraCIAPI.h.

References TraCIAPI::getColor(), and TraCIAPI::TraCIScopeWrapper::operator=().

◆ VehicleTypeScope() [2/2]

TraCIAPI::VehicleTypeScope::VehicleTypeScope ( const VehicleTypeScope src)
private

invalidated copy constructor

Member Function Documentation

◆ copy()

void TraCIAPI::VehicleTypeScope::copy ( const std::string &  origTypeID,
const std::string &  newTypeID 
) const

◆ getAccel()

double TraCIAPI::VehicleTypeScope::getAccel ( const std::string &  typeID) const

Definition at line 1815 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_ACCEL.

Referenced by TraCITestClient::testAPI().

◆ getApparentDecel()

double TraCIAPI::VehicleTypeScope::getApparentDecel ( const std::string &  typeID) const

Definition at line 1830 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_APPARENT_DECEL.

Referenced by TraCITestClient::testAPI().

◆ getColor()

TraCIColor TraCIAPI::VehicleTypeScope::getColor ( const std::string &  typeID) const

Definition at line 1890 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_COLOR.

◆ getDecel()

double TraCIAPI::VehicleTypeScope::getDecel ( const std::string &  typeID) const

Definition at line 1820 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_DECEL.

◆ getEmergencyDecel()

double TraCIAPI::VehicleTypeScope::getEmergencyDecel ( const std::string &  typeID) const

Definition at line 1825 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_EMERGENCY_DECEL.

Referenced by TraCITestClient::testAPI().

◆ getEmissionClass()

std::string TraCIAPI::VehicleTypeScope::getEmissionClass ( const std::string &  typeID) const

Definition at line 1850 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_EMISSIONCLASS.

◆ getHeight()

double TraCIAPI::VehicleTypeScope::getHeight ( const std::string &  typeID) const

Definition at line 1885 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_HEIGHT.

Referenced by TraCITestClient::testAPI().

◆ getIDList()

std::vector< std::string > TraCIAPI::VehicleTypeScope::getIDList ( ) const

Definition at line 1790 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and ID_LIST.

Referenced by TraCITestClient::testAPI().

◆ getImperfection()

double TraCIAPI::VehicleTypeScope::getImperfection ( const std::string &  typeID) const

Definition at line 1835 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_IMPERFECTION.

◆ getLateralAlignment()

std::string TraCIAPI::VehicleTypeScope::getLateralAlignment ( const std::string &  typeID) const

Definition at line 1875 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_LATALIGNMENT.

Referenced by TraCITestClient::testAPI().

◆ getLength()

double TraCIAPI::VehicleTypeScope::getLength ( const std::string &  typeID) const

Definition at line 1795 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_LENGTH.

◆ getMaxSpeed()

double TraCIAPI::VehicleTypeScope::getMaxSpeed ( const std::string &  typeID) const

Definition at line 1800 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_MAXSPEED.

◆ getMaxSpeedLat()

double TraCIAPI::VehicleTypeScope::getMaxSpeedLat ( const std::string &  typeID) const

Definition at line 1870 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_MAXSPEED_LAT.

Referenced by TraCITestClient::testAPI().

◆ getMinGap()

double TraCIAPI::VehicleTypeScope::getMinGap ( const std::string &  typeID) const

Definition at line 1860 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_MINGAP.

◆ getMinGapLat()

double TraCIAPI::VehicleTypeScope::getMinGapLat ( const std::string &  typeID) const

Definition at line 1865 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_MINGAP_LAT.

Referenced by TraCITestClient::testAPI().

◆ getShapeClass()

std::string TraCIAPI::VehicleTypeScope::getShapeClass ( const std::string &  typeID) const

Definition at line 1855 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_SHAPECLASS.

◆ getSpeedDeviation()

double TraCIAPI::VehicleTypeScope::getSpeedDeviation ( const std::string &  typeID) const

Definition at line 1810 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_SPEED_DEVIATION.

◆ getSpeedFactor()

double TraCIAPI::VehicleTypeScope::getSpeedFactor ( const std::string &  typeID) const

Definition at line 1805 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_SPEED_FACTOR.

◆ getTau()

double TraCIAPI::VehicleTypeScope::getTau ( const std::string &  typeID) const

Definition at line 1840 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_TAU.

◆ getVehicleClass()

std::string TraCIAPI::VehicleTypeScope::getVehicleClass ( const std::string &  typeID) const

Definition at line 1845 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_VEHICLECLASS.

◆ getWidth()

double TraCIAPI::VehicleTypeScope::getWidth ( const std::string &  typeID) const

Definition at line 1880 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_WIDTH.

Referenced by TraCITestClient::testAPI().

◆ operator=()

VehicleTypeScope& TraCIAPI::VehicleTypeScope::operator= ( const VehicleTypeScope src)
private

invalidated assignment operator

◆ setAccel()

void TraCIAPI::VehicleTypeScope::setAccel ( const std::string &  typeID,
double  accel 
) const

◆ setApparentDecel()

void TraCIAPI::VehicleTypeScope::setApparentDecel ( const std::string &  typeID,
double  decel 
) const

◆ setColor()

void TraCIAPI::VehicleTypeScope::setColor ( const std::string &  typeID,
const libsumo::TraCIColor c 
) const

◆ setDecel()

void TraCIAPI::VehicleTypeScope::setDecel ( const std::string &  typeID,
double  decel 
) const

◆ setEmergencyDecel()

void TraCIAPI::VehicleTypeScope::setEmergencyDecel ( const std::string &  typeID,
double  decel 
) const

◆ setEmissionClass()

void TraCIAPI::VehicleTypeScope::setEmissionClass ( const std::string &  typeID,
const std::string &  clazz 
) const

◆ setHeight()

void TraCIAPI::VehicleTypeScope::setHeight ( const std::string &  typeID,
double  height 
) const

◆ setImperfection()

void TraCIAPI::VehicleTypeScope::setImperfection ( const std::string &  typeID,
double  imperfection 
) const

◆ setLateralAlignment()

void TraCIAPI::VehicleTypeScope::setLateralAlignment ( const std::string &  typeID,
const std::string &  latAlignment 
) const

◆ setLength()

void TraCIAPI::VehicleTypeScope::setLength ( const std::string &  typeID,
double  length 
) const

◆ setMaxSpeed()

void TraCIAPI::VehicleTypeScope::setMaxSpeed ( const std::string &  typeID,
double  speed 
) const

◆ setMaxSpeedLat()

void TraCIAPI::VehicleTypeScope::setMaxSpeedLat ( const std::string &  typeID,
double  speed 
) const

◆ setMinGap()

void TraCIAPI::VehicleTypeScope::setMinGap ( const std::string &  typeID,
double  minGap 
) const

◆ setMinGapLat()

void TraCIAPI::VehicleTypeScope::setMinGapLat ( const std::string &  typeID,
double  minGapLat 
) const

◆ setShapeClass()

void TraCIAPI::VehicleTypeScope::setShapeClass ( const std::string &  typeID,
const std::string &  shapeClass 
) const

◆ setSpeedDeviation()

void TraCIAPI::VehicleTypeScope::setSpeedDeviation ( const std::string &  typeID,
double  deviation 
) const

◆ setSpeedFactor()

void TraCIAPI::VehicleTypeScope::setSpeedFactor ( const std::string &  typeID,
double  factor 
) const

◆ setTau()

void TraCIAPI::VehicleTypeScope::setTau ( const std::string &  typeID,
double  tau 
) const

◆ setVehicleClass()

void TraCIAPI::VehicleTypeScope::setVehicleClass ( const std::string &  typeID,
const std::string &  clazz 
) const

◆ setWidth()

void TraCIAPI::VehicleTypeScope::setWidth ( const std::string &  typeID,
double  width 
) const

Field Documentation

◆ myParent

TraCIAPI& TraCIAPI::TraCIScopeWrapper::myParent
protectedinherited

The parent TraCI client which offers the connection.

Definition at line 129 of file TraCIAPI.h.


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