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

SUMOReal getAccel (const std::string &typeID) const
 
TraCIColor getColor (const std::string &typeID) const
 
SUMOReal getDecel (const std::string &typeID) const
 
std::string getEmissionClass (const std::string &typeID) const
 
SUMOReal getHeight (const std::string &typeID) const
 
std::vector< std::string > getIDList () const
 
SUMOReal getImperfection (const std::string &typeID) const
 
SUMOReal getLength (const std::string &typeID) const
 
SUMOReal getMaxSpeed (const std::string &typeID) const
 
SUMOReal getMinGap (const std::string &typeID) const
 
std::string getShapeClass (const std::string &typeID) const
 
SUMOReal getSpeedDeviation (const std::string &typeID) const
 
SUMOReal getSpeedFactor (const std::string &typeID) const
 
SUMOReal getTau (const std::string &typeID) const
 
std::string getVehicleClass (const std::string &typeID) const
 
SUMOReal getWidth (const std::string &typeID) const
 
void setAccel (const std::string &typeID, SUMOReal accel) const
 
void setColor (const std::string &typeID, const TraCIColor &c) const
 
void setDecel (const std::string &typeID, SUMOReal decel) const
 
void setEmissionClass (const std::string &typeID, const std::string &clazz) const
 
void setHeight (const std::string &typeID, SUMOReal height) const
 
void setImperfection (const std::string &typeID, SUMOReal imperfection) const
 
void setLength (const std::string &typeID, SUMOReal length) const
 
void setMaxSpeed (const std::string &typeID, SUMOReal speed) const
 
void setMinGap (const std::string &typeID, SUMOReal minGap) const
 
void setShapeClass (const std::string &typeID, const std::string &clazz) const
 
void setSpeedDeviation (const std::string &typeID, SUMOReal deviation) const
 
void setSpeedFactor (const std::string &typeID, SUMOReal factor) const
 
void setTau (const std::string &typeID, SUMOReal tau) const
 
void setVehicleClass (const std::string &typeID, const std::string &clazz) const
 
void setWidth (const std::string &typeID, SUMOReal 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 649 of file TraCIAPI.h.

Constructor & Destructor Documentation

§ VehicleTypeScope() [1/2]

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

Definition at line 651 of file TraCIAPI.h.

§ ~VehicleTypeScope()

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

Definition at line 652 of file TraCIAPI.h.

References TraCIAPI::getColor(), and SUMOReal.

§ VehicleTypeScope() [2/2]

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

invalidated copy constructor

Member Function Documentation

§ getAccel()

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

Definition at line 1634 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, SUMOReal, and VAR_ACCEL.

§ getColor()

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

Definition at line 1684 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_COLOR.

§ getDecel()

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

Definition at line 1639 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, SUMOReal, and VAR_DECEL.

§ getEmissionClass()

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

Definition at line 1659 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_EMISSIONCLASS.

§ getHeight()

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

Definition at line 1679 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 1609 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, ID_LIST, and SUMOReal.

Referenced by TraCITestClient::testAPI().

§ getImperfection()

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

Definition at line 1644 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, SUMOReal, and VAR_IMPERFECTION.

§ getLength()

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

Definition at line 1614 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, SUMOReal, and VAR_LENGTH.

§ getMaxSpeed()

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

Definition at line 1619 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, SUMOReal, and VAR_MAXSPEED.

§ getMinGap()

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

Definition at line 1669 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, SUMOReal, and VAR_MINGAP.

§ getShapeClass()

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

Definition at line 1664 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, SUMOReal, and VAR_SHAPECLASS.

§ getSpeedDeviation()

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

Definition at line 1629 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, SUMOReal, and VAR_SPEED_DEVIATION.

§ getSpeedFactor()

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

Definition at line 1624 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, SUMOReal, and VAR_SPEED_FACTOR.

§ getTau()

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

Definition at line 1649 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 1654 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, and VAR_VEHICLECLASS.

§ getWidth()

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

Definition at line 1674 of file TraCIAPI.cpp.

References CMD_GET_VEHICLETYPE_VARIABLE, SUMOReal, 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,
SUMOReal  accel 
) const

§ setColor()

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

§ setDecel()

void TraCIAPI::VehicleTypeScope::setDecel ( const std::string &  typeID,
SUMOReal  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,
SUMOReal  height 
) const

§ setImperfection()

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

§ setLength()

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

§ setMaxSpeed()

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

§ setMinGap()

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

§ setShapeClass()

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

§ setSpeedDeviation()

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

§ setSpeedFactor()

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

§ setTau()

void TraCIAPI::VehicleTypeScope::setTau ( const std::string &  typeID,
SUMOReal  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,
SUMOReal  width 
) const

Field Documentation

§ myParent

TraCIAPI& TraCIAPI::TraCIScopeWrapper::myParent
protectedinherited

The parent TraCI client which offers the connection.

Definition at line 208 of file TraCIAPI.h.


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