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:
Collaboration diagram for TraCIAPI::VehicleTypeScope:

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
 
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 paramter 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 Attributes

int myCmdGetID
 
int myCmdSetID
 
int myContextSubscribeID
 
libsumo::ContextSubscriptionResults myContextSubscriptionResults
 
TraCIAPImyParent
 The parent TraCI client which offers the connection. More...
 
int mySubscribeID
 
libsumo::SubscriptionResults mySubscriptionResults
 

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 596 of file TraCIAPI.h.

Constructor & Destructor Documentation

◆ VehicleTypeScope() [1/2]

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

Definition at line 598 of file TraCIAPI.h.

◆ ~VehicleTypeScope()

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

Definition at line 599 of file TraCIAPI.h.

◆ VehicleTypeScope() [2/2]

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

invalidated copy constructor

Member Function Documentation

◆ clearSubscriptionResults()

void TraCIAPI::TraCIScopeWrapper::clearSubscriptionResults ( )
inherited

Definition at line 3667 of file TraCIAPI.cpp.

◆ 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 2094 of file TraCIAPI.cpp.

References libsumo::CMD_GET_VEHICLETYPE_VARIABLE, and libsumo::VAR_ACCEL.

Referenced by TraCITestClient::testAPI().

◆ getAllContextSubscriptionResults()

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

Definition at line 3651 of file TraCIAPI.cpp.

◆ getAllSubscriptionResults()

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

Definition at line 3635 of file TraCIAPI.cpp.

◆ getApparentDecel()

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

◆ getColor()

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

Definition at line 2174 of file TraCIAPI.cpp.

References libsumo::CMD_GET_VEHICLETYPE_VARIABLE, and libsumo::VAR_COLOR.

◆ getContextSubscriptionResults()

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

Definition at line 3657 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

◆ getDecel()

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

Definition at line 2099 of file TraCIAPI.cpp.

References libsumo::CMD_GET_VEHICLETYPE_VARIABLE, and libsumo::VAR_DECEL.

◆ getEmergencyDecel()

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

◆ getEmissionClass()

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

◆ getHeight()

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

Definition at line 2169 of file TraCIAPI.cpp.

References libsumo::CMD_GET_VEHICLETYPE_VARIABLE, and libsumo::VAR_HEIGHT.

Referenced by TraCITestClient::testAPI().

◆ getIDList()

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

◆ getImperfection()

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

◆ getLateralAlignment()

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

◆ getLength()

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

Definition at line 2074 of file TraCIAPI.cpp.

References libsumo::CMD_GET_VEHICLETYPE_VARIABLE, and libsumo::VAR_LENGTH.

◆ getMaxSpeed()

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

Definition at line 2079 of file TraCIAPI.cpp.

References libsumo::CMD_GET_VEHICLETYPE_VARIABLE, and libsumo::VAR_MAXSPEED.

◆ getMaxSpeedLat()

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

◆ getMinGap()

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

Definition at line 2139 of file TraCIAPI.cpp.

References libsumo::CMD_GET_VEHICLETYPE_VARIABLE, and libsumo::VAR_MINGAP.

◆ getMinGapLat()

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

◆ getModifiableContextSubscriptionResults()

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

Definition at line 3680 of file TraCIAPI.cpp.

◆ getModifiableSubscriptionResults()

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

Definition at line 3674 of file TraCIAPI.cpp.

◆ getParameter()

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

retrieve generic paramter

Definition at line 3590 of file TraCIAPI.cpp.

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

Referenced by TraCITestClient::testAPI().

◆ getPersonCapacity()

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

◆ getShapeClass()

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

◆ getSpeedDeviation()

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

◆ getSpeedFactor()

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

◆ getSubscriptionResults()

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

Definition at line 3641 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

◆ getTau()

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

Definition at line 2119 of file TraCIAPI.cpp.

References libsumo::CMD_GET_VEHICLETYPE_VARIABLE, and libsumo::VAR_TAU.

◆ getVehicleClass()

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

◆ getWidth()

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

Definition at line 2164 of file TraCIAPI.cpp.

References libsumo::CMD_GET_VEHICLETYPE_VARIABLE, and libsumo::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

◆ setParameter()

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

◆ 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

◆ subscribe()

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

Definition at line 3613 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

◆ 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 3625 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

Field Documentation

◆ myCmdGetID

int TraCIAPI::TraCIScopeWrapper::myCmdGetID
protectedinherited

Definition at line 146 of file TraCIAPI.h.

◆ myCmdSetID

int TraCIAPI::TraCIScopeWrapper::myCmdSetID
protectedinherited

Definition at line 147 of file TraCIAPI.h.

◆ myContextSubscribeID

int TraCIAPI::TraCIScopeWrapper::myContextSubscribeID
protectedinherited

Definition at line 149 of file TraCIAPI.h.

◆ myContextSubscriptionResults

libsumo::ContextSubscriptionResults TraCIAPI::TraCIScopeWrapper::myContextSubscriptionResults
protectedinherited

Definition at line 151 of file TraCIAPI.h.

◆ myParent

TraCIAPI& TraCIAPI::TraCIScopeWrapper::myParent
protectedinherited

The parent TraCI client which offers the connection.

Definition at line 145 of file TraCIAPI.h.

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

◆ mySubscribeID

int TraCIAPI::TraCIScopeWrapper::mySubscribeID
protectedinherited

Definition at line 148 of file TraCIAPI.h.

◆ mySubscriptionResults

libsumo::SubscriptionResults TraCIAPI::TraCIScopeWrapper::mySubscriptionResults
protectedinherited

Definition at line 150 of file TraCIAPI.h.


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