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

Scope for interaction with vehicle types. More...

#include <TraCIAPI.h>

Inheritance diagram for TraCIAPI::VehicleTypeScope:
[legend]
Collaboration diagram for TraCIAPI::VehicleTypeScope:
[legend]

Public Member Functions

void clearSubscriptionResults ()
 
void copy (const std::string &origTypeID, const std::string &newTypeID) const
 
double getAccel (const std::string &typeID) const
 
const libsumo::ContextSubscriptionResults getAllContextSubscriptionResults () const
 
const libsumo::SubscriptionResults getAllSubscriptionResults () const
 
double getApparentDecel (const std::string &typeID) const
 
libsumo::TraCIColor getColor (const std::string &typeID) const
 
const libsumo::SubscriptionResults getContextSubscriptionResults (const std::string &objID) 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
 
int getIDCount () 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
 
libsumo::SubscriptionResultsgetModifiableContextSubscriptionResults (const std::string &objID)
 
libsumo::SubscriptionResultsgetModifiableSubscriptionResults ()
 
std::string getParameter (const std::string &objectID, const std::string &key) const
 retrieve generic parameter More...
 
std::pair< std::string, std::string > getParameterWithKey (const std::string &objectID, const std::string &key) const
 retrieve generic parameter and return (key, value) tuple More...
 
int getPersonCapacity (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
 
const libsumo::TraCIResults getSubscriptionResults (const std::string &objID) 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 setParameter (const std::string &objectID, const std::string &key, const std::string &value) const
 set generic paramter More...
 
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
 
void subscribe (const std::string &objID, const std::vector< int > &vars, double beginTime, double endTime) const
 
void subscribeContext (const std::string &objID, int domain, double range, const std::vector< int > &vars, double beginTime, double endTime) const
 
 VehicleTypeScope (TraCIAPI &parent)
 
virtual ~VehicleTypeScope ()
 

Protected Member Functions

int getByte (int var, const std::string &id, tcpip::Storage *add=0) const
 
libsumo::TraCIColor getCol (int var, const std::string &id, tcpip::Storage *add=0) const
 
double getDouble (int var, const std::string &id, tcpip::Storage *add=0) const
 
std::vector< double > getDoubleVector (int var, const std::string &id, tcpip::Storage *add=0) const
 
int getInt (int var, const std::string &id, tcpip::Storage *add=0) const
 
libsumo::TraCIPositionVector getPolygon (int var, const std::string &id, tcpip::Storage *add=0) const
 
libsumo::TraCIPosition getPos (int var, const std::string &id, tcpip::Storage *add=0) const
 
libsumo::TraCIPosition getPos3D (int var, const std::string &id, tcpip::Storage *add=0) const
 
std::string getString (int var, const std::string &id, tcpip::Storage *add=0) const
 
std::vector< std::string > getStringVector (int var, const std::string &id, tcpip::Storage *add=0) const
 
libsumo::TraCIStage getTraCIStage (int var, const std::string &id, tcpip::Storage *add=0) const
 
int getUnsignedByte (int var, const std::string &id, tcpip::Storage *add=0) const
 
void setDouble (int var, const std::string &id, double value) const
 
void setInt (int var, const std::string &id, int value) const
 
void setString (int var, const std::string &id, const std::string &value) const
 
void setStringVector (int var, const std::string &id, const std::vector< std::string > &value) const
 

Protected Attributes

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

Private Attributes

int myCmdGetID
 
int myCmdSetID
 
int myContextSubscribeID
 
libsumo::ContextSubscriptionResults myContextSubscriptionResults
 
int mySubscribeID
 
libsumo::SubscriptionResults mySubscriptionResults
 

Detailed Description

Scope for interaction with vehicle types.

Definition at line 502 of file TraCIAPI.h.

Constructor & Destructor Documentation

◆ VehicleTypeScope()

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

Definition at line 504 of file TraCIAPI.h.

◆ ~VehicleTypeScope()

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

Definition at line 505 of file TraCIAPI.h.

Member Function Documentation

◆ clearSubscriptionResults()

void TraCIAPI::TraCIScopeWrapper::clearSubscriptionResults ( )
inherited

Definition at line 3894 of file TraCIAPI.cpp.

◆ copy()

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

Definition at line 2080 of file TraCIAPI.cpp.

References libsumo::CMD_SET_VEHICLETYPE_VARIABLE, libsumo::COPY, libsumo::TYPE_STRING, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getAccel()

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

Definition at line 1883 of file TraCIAPI.cpp.

References libsumo::VAR_ACCEL.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getAllContextSubscriptionResults()

const libsumo::ContextSubscriptionResults TraCIAPI::TraCIScopeWrapper::getAllContextSubscriptionResults ( ) const
inherited

Definition at line 3878 of file TraCIAPI.cpp.

◆ getAllSubscriptionResults()

const libsumo::SubscriptionResults TraCIAPI::TraCIScopeWrapper::getAllSubscriptionResults ( ) const
inherited

Definition at line 3862 of file TraCIAPI.cpp.

◆ getApparentDecel()

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

Definition at line 1898 of file TraCIAPI.cpp.

References libsumo::VAR_APPARENT_DECEL.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getByte()

int TraCIAPI::TraCIScopeWrapper::getByte ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

Definition at line 3564 of file TraCIAPI.cpp.

References libsumo::INVALID_INT_VALUE, and libsumo::TYPE_BYTE.

◆ getCol()

libsumo::TraCIColor TraCIAPI::TraCIScopeWrapper::getCol ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

◆ getColor()

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

Definition at line 1963 of file TraCIAPI.cpp.

References libsumo::VAR_COLOR.

◆ getContextSubscriptionResults()

const libsumo::SubscriptionResults TraCIAPI::TraCIScopeWrapper::getContextSubscriptionResults ( const std::string &  objID) const
inherited

Definition at line 3884 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getDecel()

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

Definition at line 1888 of file TraCIAPI.cpp.

References libsumo::VAR_DECEL.

◆ getDouble()

double TraCIAPI::TraCIScopeWrapper::getDouble ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

Definition at line 3585 of file TraCIAPI.cpp.

References libsumo::INVALID_DOUBLE_VALUE, and libsumo::TYPE_DOUBLE.

Referenced by TraCIAPI::EdgeScope::getAdaptedTraveltime().

Here is the caller graph for this function:

◆ getDoubleVector()

std::vector< double > TraCIAPI::TraCIScopeWrapper::getDoubleVector ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

Definition at line 3666 of file TraCIAPI.cpp.

References libsumo::TYPE_DOUBLELIST.

◆ getEmergencyDecel()

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

Definition at line 1893 of file TraCIAPI.cpp.

References libsumo::VAR_EMERGENCY_DECEL.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getEmissionClass()

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

Definition at line 1918 of file TraCIAPI.cpp.

References libsumo::VAR_EMISSIONCLASS.

◆ getHeight()

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

Definition at line 1958 of file TraCIAPI.cpp.

References libsumo::VAR_HEIGHT.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getIDCount()

int TraCIAPI::TraCIScopeWrapper::getIDCount ( ) const
inherited

Definition at line 3749 of file TraCIAPI.cpp.

References libsumo::ID_COUNT.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getIDList()

std::vector< std::string > TraCIAPI::TraCIScopeWrapper::getIDList ( ) const
inherited

Definition at line 3743 of file TraCIAPI.cpp.

References libsumo::TRACI_ID_LIST.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getImperfection()

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

Definition at line 1903 of file TraCIAPI.cpp.

References libsumo::VAR_IMPERFECTION.

◆ getInt()

int TraCIAPI::TraCIScopeWrapper::getInt ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

Definition at line 3575 of file TraCIAPI.cpp.

References libsumo::INVALID_INT_VALUE, and libsumo::TYPE_INTEGER.

◆ getLateralAlignment()

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

Definition at line 1943 of file TraCIAPI.cpp.

References libsumo::VAR_LATALIGNMENT.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getLength()

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

Definition at line 1863 of file TraCIAPI.cpp.

References libsumo::VAR_LENGTH.

◆ getMaxSpeed()

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

Definition at line 1868 of file TraCIAPI.cpp.

References libsumo::VAR_MAXSPEED.

◆ getMaxSpeedLat()

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

Definition at line 1938 of file TraCIAPI.cpp.

References libsumo::VAR_MAXSPEED_LAT.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getMinGap()

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

Definition at line 1928 of file TraCIAPI.cpp.

References libsumo::VAR_MINGAP.

◆ getMinGapLat()

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

Definition at line 1933 of file TraCIAPI.cpp.

References libsumo::VAR_MINGAP_LAT.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getModifiableContextSubscriptionResults()

libsumo::SubscriptionResults & TraCIAPI::TraCIScopeWrapper::getModifiableContextSubscriptionResults ( const std::string &  objID)
inherited

Definition at line 3907 of file TraCIAPI.cpp.

◆ getModifiableSubscriptionResults()

libsumo::SubscriptionResults & TraCIAPI::TraCIScopeWrapper::getModifiableSubscriptionResults ( )
inherited

Definition at line 3901 of file TraCIAPI.cpp.

◆ getParameter()

std::string TraCIAPI::TraCIScopeWrapper::getParameter ( const std::string &  objectID,
const std::string &  key 
) const
inherited

retrieve generic parameter

Definition at line 3755 of file TraCIAPI.cpp.

References libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, tcpip::Storage::writeByte(), and tcpip::Storage::writeString().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getParameterWithKey()

std::pair< std::string, std::string > TraCIAPI::TraCIScopeWrapper::getParameterWithKey ( const std::string &  objectID,
const std::string &  key 
) const
inherited

retrieve generic parameter and return (key, value) tuple

Definition at line 3764 of file TraCIAPI.cpp.

References libsumo::TYPE_COMPOUND, libsumo::TYPE_STRING, libsumo::VAR_PARAMETER_WITH_KEY, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getPersonCapacity()

int TraCIAPI::VehicleTypeScope::getPersonCapacity ( const std::string &  typeID) const

Definition at line 1948 of file TraCIAPI.cpp.

References libsumo::VAR_PERSON_CAPACITY.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getPolygon()

libsumo::TraCIPositionVector TraCIAPI::TraCIScopeWrapper::getPolygon ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

◆ getPos()

libsumo::TraCIPosition TraCIAPI::TraCIScopeWrapper::getPos ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

◆ getPos3D()

libsumo::TraCIPosition TraCIAPI::TraCIScopeWrapper::getPos3D ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

◆ getShapeClass()

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

Definition at line 1923 of file TraCIAPI.cpp.

References libsumo::VAR_SHAPECLASS.

◆ getSpeedDeviation()

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

Definition at line 1878 of file TraCIAPI.cpp.

References libsumo::VAR_SPEED_DEVIATION.

◆ getSpeedFactor()

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

Definition at line 1873 of file TraCIAPI.cpp.

References libsumo::VAR_SPEED_FACTOR.

◆ getString()

std::string TraCIAPI::TraCIScopeWrapper::getString ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

Definition at line 3642 of file TraCIAPI.cpp.

References libsumo::TYPE_STRING.

◆ getStringVector()

std::vector< std::string > TraCIAPI::TraCIScopeWrapper::getStringVector ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

Definition at line 3652 of file TraCIAPI.cpp.

References libsumo::TYPE_STRINGLIST.

◆ getSubscriptionResults()

const libsumo::TraCIResults TraCIAPI::TraCIScopeWrapper::getSubscriptionResults ( const std::string &  objID) const
inherited

Definition at line 3868 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getTau()

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

Definition at line 1908 of file TraCIAPI.cpp.

References libsumo::VAR_TAU.

◆ getTraCIStage()

◆ getUnsignedByte()

int TraCIAPI::TraCIScopeWrapper::getUnsignedByte ( int  var,
const std::string &  id,
tcpip::Storage add = 0 
) const
protectedinherited

Definition at line 3554 of file TraCIAPI.cpp.

References libsumo::INVALID_INT_VALUE, and libsumo::TYPE_UBYTE.

◆ getVehicleClass()

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

Definition at line 1913 of file TraCIAPI.cpp.

References libsumo::VAR_VEHICLECLASS.

◆ getWidth()

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

Definition at line 1953 of file TraCIAPI.cpp.

References libsumo::VAR_WIDTH.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ setAccel()

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

Definition at line 2098 of file TraCIAPI.cpp.

References libsumo::CMD_SET_VEHICLETYPE_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_ACCEL, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ setApparentDecel()

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

Definition at line 2125 of file TraCIAPI.cpp.

References libsumo::CMD_SET_VEHICLETYPE_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_APPARENT_DECEL, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ 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

◆ setDouble()

void TraCIAPI::TraCIScopeWrapper::setDouble ( int  var,
const std::string &  id,
double  value 
) const
protectedinherited

◆ setEmergencyDecel()

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

Definition at line 2116 of file TraCIAPI.cpp.

References libsumo::CMD_SET_VEHICLETYPE_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_EMERGENCY_DECEL, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ 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

Definition at line 2034 of file TraCIAPI.cpp.

References libsumo::CMD_SET_VEHICLETYPE_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_HEIGHT, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ setImperfection()

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

◆ setInt()

void TraCIAPI::TraCIScopeWrapper::setInt ( int  var,
const std::string &  id,
int  value 
) const
protectedinherited

◆ setLateralAlignment()

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

Definition at line 2071 of file TraCIAPI.cpp.

References libsumo::CMD_SET_VEHICLETYPE_VARIABLE, libsumo::TYPE_STRING, libsumo::VAR_LATALIGNMENT, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ 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

Definition at line 2062 of file TraCIAPI.cpp.

References libsumo::CMD_SET_VEHICLETYPE_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_MAXSPEED_LAT, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ setMinGap()

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

◆ setMinGapLat()

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

Definition at line 2053 of file TraCIAPI.cpp.

References libsumo::CMD_SET_VEHICLETYPE_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_MINGAP_LAT, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ setParameter()

void TraCIAPI::TraCIScopeWrapper::setParameter ( const std::string &  objectID,
const std::string &  key,
const std::string &  value 
) const
inherited

set generic paramter

Definition at line 3783 of file TraCIAPI.cpp.

References libsumo::TYPE_COMPOUND, libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ 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

◆ setString()

void TraCIAPI::TraCIScopeWrapper::setString ( int  var,
const std::string &  id,
const std::string &  value 
) const
protectedinherited

◆ setStringVector()

void TraCIAPI::TraCIScopeWrapper::setStringVector ( int  var,
const std::string &  id,
const std::vector< std::string > &  value 
) const
protectedinherited

◆ 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

Definition at line 2025 of file TraCIAPI.cpp.

References libsumo::CMD_SET_VEHICLETYPE_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_WIDTH, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ subscribe()

void TraCIAPI::TraCIScopeWrapper::subscribe ( const std::string &  objID,
const std::vector< int > &  vars,
double  beginTime,
double  endTime 
) const
inherited

Definition at line 3840 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ subscribeContext()

void TraCIAPI::TraCIScopeWrapper::subscribeContext ( const std::string &  objID,
int  domain,
double  range,
const std::vector< int > &  vars,
double  beginTime,
double  endTime 
) const
inherited

Definition at line 3852 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

Field Documentation

◆ myCmdGetID

int TraCIAPI::TraCIScopeWrapper::myCmdGetID
privateinherited

Definition at line 154 of file TraCIAPI.h.

◆ myCmdSetID

int TraCIAPI::TraCIScopeWrapper::myCmdSetID
privateinherited

Definition at line 155 of file TraCIAPI.h.

◆ myContextSubscribeID

int TraCIAPI::TraCIScopeWrapper::myContextSubscribeID
privateinherited

Definition at line 157 of file TraCIAPI.h.

◆ myContextSubscriptionResults

libsumo::ContextSubscriptionResults TraCIAPI::TraCIScopeWrapper::myContextSubscriptionResults
privateinherited

Definition at line 159 of file TraCIAPI.h.

◆ myParent

TraCIAPI& TraCIAPI::TraCIScopeWrapper::myParent
protectedinherited

The parent TraCI client which offers the connection.

Definition at line 151 of file TraCIAPI.h.

◆ mySubscribeID

int TraCIAPI::TraCIScopeWrapper::mySubscribeID
privateinherited

Definition at line 156 of file TraCIAPI.h.

◆ mySubscriptionResults

libsumo::SubscriptionResults TraCIAPI::TraCIScopeWrapper::mySubscriptionResults
privateinherited

Definition at line 158 of file TraCIAPI.h.


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