Eclipse SUMO - Simulation of Urban MObility
libsumo::VehicleType Class Reference

#include <VehicleType.h>

Static Public Member Functions

LIBSUMO_GET_PARAMETER_WITH_KEY_API static LIBSUMO_VEHICLE_TYPE_SETTER void copy (const std::string &origTypeID, const std::string &newTypeID)
 
static int getIDCount ()
 
static std::vector< std::string > getIDList ()
 
static LIBSUMO_VEHICLE_TYPE_GETTER std::string getParameter (const std::string &typeID, const std::string &key)
 
static MSVehicleTypegetVType (std::string id)
 
static bool handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper)
 
static bool handleVariableWithID (const std::string &objID, const std::string &typeID, const int variable, VariableWrapper *wrapper)
 
static LIBSUMO_SUBSCRIPTION_API std::shared_ptr< VariableWrappermakeWrapper ()
 
static void setParameter (const std::string &id, const std::string &name, const std::string &value)
 
static void setSpeedDeviation (const std::string &typeID, double deviation)
 

Private Member Functions

 VehicleType ()=delete
 invalidated standard constructor More...
 

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
 
static SubscriptionResults mySubscriptionResults
 

Detailed Description

Definition at line 90 of file VehicleType.h.

Constructor & Destructor Documentation

◆ VehicleType()

libsumo::VehicleType::VehicleType ( )
privatedelete

invalidated standard constructor

Member Function Documentation

◆ copy()

void VehicleType::copy ( const std::string &  origTypeID,
const std::string &  newTypeID 
)
static

Definition at line 335 of file VehicleType.cpp.

References MSVehicleType::duplicateType(), and getVType().

Referenced by TraCIServerAPI_VehicleType::setVariable().

Here is the caller graph for this function:

◆ getIDCount()

◆ getIDList()

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

Definition at line 44 of file VehicleType.cpp.

References MSNet::getInstance(), MSNet::getVehicleControl(), and MSVehicleControl::insertVTypeIDs().

Referenced by getIDCount(), and handleVariableWithID().

Here is the caller graph for this function:

◆ getParameter()

std::string VehicleType::getParameter ( const std::string &  typeID,
const std::string &  key 
)
static

◆ getVType()

MSVehicleType * VehicleType::getVType ( std::string  id)
static

Definition at line 350 of file VehicleType.cpp.

References MSNet::getInstance(), MSNet::getVehicleControl(), and MSVehicleControl::getVType().

Referenced by copy(), getIDCount(), getParameter(), setParameter(), and setSpeedDeviation().

Here is the caller graph for this function:

◆ handleVariable()

bool VehicleType::handleVariable ( const std::string &  objID,
const int  variable,
VariableWrapper wrapper 
)
static

Definition at line 366 of file VehicleType.cpp.

References handleVariableWithID().

Referenced by libsumo::Person::handleVariable(), makeWrapper(), and TraCIServerAPI_VehicleType::processGet().

Here is the caller graph for this function:

◆ handleVariableWithID()

◆ makeWrapper()

std::shared_ptr< VariableWrapper > VehicleType::makeWrapper ( )
static

◆ setParameter()

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

Definition at line 341 of file VehicleType.cpp.

References MSVehicleType::getParameter(), getVType(), and LIBSUMO_SUBSCRIPTION_IMPLEMENTATION.

Referenced by TraCIServerAPI_VehicleType::setVariable().

Here is the caller graph for this function:

◆ setSpeedDeviation()

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults VehicleType::myContextSubscriptionResults
staticprivate

Definition at line 115 of file VehicleType.h.

Referenced by makeWrapper().

◆ mySubscriptionResults

SubscriptionResults VehicleType::mySubscriptionResults
staticprivate

Definition at line 114 of file VehicleType.h.

Referenced by makeWrapper().


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