Eclipse SUMO - Simulation of Urban MObility
SUMOVTypeParameter Class Reference

Structure representing possible vehicle parameter. More...

#include <SUMOVTypeParameter.h>

Inheritance diagram for SUMOVTypeParameter:
Collaboration diagram for SUMOVTypeParameter:

Data Structures

struct  VClassDefaultValues
 struct for default values that depend of VClass More...
 

Public Types

typedef std::map< SumoXMLAttr, std::string > SubParams
 sub-model parameters More...
 

Public Member Functions

void cacheParamRestrictions (const std::vector< std::string > &restrictionKeys)
 
void clearParameter ()
 Clears the parameter map. More...
 
double getCFParam (const SumoXMLAttr attr, const double defaultValue) const
 Returns the named value from the map, or the default if it is not contained there. More...
 
std::string getCFParamString (const SumoXMLAttr attr, const std::string defaultValue) const
 Returns the named value from the map, or the default if it is not contained there. More...
 
double getDouble (const std::string &key, const double defaultValue) const
 Returns the value for a given key converted to a double. More...
 
SUMOTime getEntryManoeuvreTime (const int angle) const
 Returns the time that will be needed for the vehicle type to execute the (entry) manoeuvre (and be blocking the lane) More...
 
SUMOTime getExitManoeuvreTime (const int angle) const
 Returns the time that will be needed for the vehicle type to execute the (exit) manoeuvre (and be blocking the lane) More...
 
double getJMParam (const SumoXMLAttr attr, const double defaultValue) const
 Returns the named value from the map, or the default if it is not contained there. More...
 
std::string getJMParamString (const SumoXMLAttr attr, const std::string defaultValue) const
 Returns the named value from the map, or the default if it is not contained there. More...
 
double getLCParam (const SumoXMLAttr attr, const double defaultValue) const
 Returns the named value from the map, or the default if it is not contained there. More...
 
const SubParamsgetLCParams () const
 Returns the LC parameter. More...
 
std::string getLCParamString (const SumoXMLAttr attr, const std::string &defaultValue) const
 Returns the named value from the map, or the default if it is not contained there. More...
 
std::string getManoeuverAngleTimesS () const
 Returns myManoeuverAngleTimes as a string for xml output. More...
 
const std::string getParameter (const std::string &key, const std::string &defaultValue="") const
 Returns the value for a given key. More...
 
const std::map< std::string, std::string > & getParametersMap () const
 Returns the inner key/value map. More...
 
std::string getParametersStr () const
 Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN". More...
 
bool knowsParameter (const std::string &key) const
 Returns whether the parameter is known. More...
 
void setManoeuverAngleTimes (const SUMOVehicleClass vclass)
 Initialise the default mapping between manoeuver angle and times dependant on vehicle class. More...
 
void setParameter (const std::string &key, const std::string &value)
 Sets a parameter. More...
 
void setParameters (const Parameterised &params)
 set the inner key/value map in map<string, string> format More...
 
void setParametersMap (const std::map< std::string, std::string > &paramsMap)
 set the inner key/value map in map<string, string> format More...
 
void setParametersStr (const std::string &paramsString)
 set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN" More...
 
 SUMOVTypeParameter (const std::string &vtid, const SUMOVehicleClass vc=SVC_IGNORING)
 Constructor. More...
 
void unsetParameter (const std::string &key)
 Removes a parameter. More...
 
void updateParameters (const std::map< std::string, std::string > &mapArg)
 Adds or updates all given parameters from the map. More...
 
bool wasSet (int what) const
 Returns whether the given parameter was set. More...
 
void write (OutputDevice &dev) const
 Writes the vtype. More...
 
void writeParams (OutputDevice &device) const
 write Params in the given outputdevice More...
 
virtual ~SUMOVTypeParameter ()
 virtual destructor More...
 

Static Public Member Functions

static bool areParametersValid (const std::string &value, bool report=false)
 check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN" More...
 
static const SUMOVTypeParametergetDefault ()
 return the default parameters, this is a function due to the http://www.parashift.com/c++-faq/static-init-order.html More...
 
static double getDefaultAccel (const SUMOVehicleClass vc=SVC_IGNORING)
 Returns the default acceleration for the given vehicle class This needs to be a function because the actual value is stored in the car following model. More...
 
static double getDefaultDecel (const SUMOVehicleClass vc=SVC_IGNORING)
 Returns the default deceleration for the given vehicle class This needs to be a function because the actual value is stored in the car following model. More...
 
static double getDefaultEmergencyDecel (const SUMOVehicleClass vc, double decel, double defaultOption)
 Returns the default emergency deceleration for the given vehicle class This needs to be a function because the actual value is stored in the car following model. More...
 
static double getDefaultImperfection (const SUMOVehicleClass vc=SVC_IGNORING)
 Returns the default driver's imperfection (sigma or epsilon in Krauss' model) for the given vehicle class This needs to be a function because the actual value is stored in the car following model. More...
 

Data Fields

SUMOTime actionStepLength
 The vehicle type's default actionStepLength [ms], i.e. the interval between two control actions. The default value of 0ms. induces the value to be traced from MSGlobals::gActionStepLength. More...
 
SUMOTime boardingDuration
 The time a person needs to board the vehicle. More...
 
double carriageGap
 
double carriageLength
 the length of train carriages and locomotive More...
 
SumoXMLTag cfModel
 The enum-representation of the car-following model to use. More...
 
SubParams cfParameter
 Car-following parameter. More...
 
RGBColor color
 The color. More...
 
int containerCapacity
 The container capacity of the vehicle. More...
 
double defaultProbability
 The probability when being added to a distribution without an explicit probability. More...
 
SUMOEmissionClass emissionClass
 The emission class of this vehicle. More...
 
std::string id
 The vehicle type's id. More...
 
double impatience
 The vehicle's impatience (willingness to obstruct others) More...
 
SubParams jmParameter
 Junction-model parameter. More...
 
LateralAlignment latAlignment
 The vehicles desired lateral alignment. More...
 
LaneChangeModel lcModel
 The lane-change model to use. More...
 
SubParams lcParameter
 Lane-changing parameter. More...
 
double length
 The physical vehicle length. More...
 
SUMOTime loadingDuration
 The time a container needs to get loaded on the vehicle. More...
 
double locomotiveLength
 
double maxSpeed
 The vehicle type's maximum speed [m/s]. More...
 
double maxSpeedLat
 The vehicle type's maximum lateral speed [m/s]. More...
 
double minGap
 This class' free space in front of the vehicle itself. More...
 
double minGapLat
 The vehicle type's minimum lateral gap [m]. More...
 
std::map< int, std::pair< SUMOTime, SUMOTime > > myManoeuverAngleTimes
 Map of manoeuver angles versus the times (entry, exit) to execute the manoeuver. More...
 
bool onlyReferenced
 Information whether this is a type-stub, being only referenced but not defined (needed by routers) More...
 
int parametersSet
 Information for the router which parameter were set. More...
 
std::vector< double > paramRestrictions
 cached value of parameters which may restrict access to certain edges More...
 
int personCapacity
 The person capacity of the vehicle. More...
 
bool saved
 Information whether this type was already saved (needed by routers) More...
 
Distribution_Parameterized speedFactor
 The factor by which the maximum speed may deviate from the allowed max speed on the street. More...
 
SUMOVehicleClass vehicleClass
 The vehicle's class. More...
 
Values for drawing this class' vehicles
double width
 This class' width. More...
 
double height
 This class' height. More...
 
SUMOVehicleShape shape
 This class' shape. More...
 
std::string osgFile
 3D model file for this class More...
 
std::string imgFile
 Image file for this class. More...
 

Static Private Member Functions

static bool isParameterValid (const std::string &value, bool report)
 check if given string can be parsed to a parameter of type "key=value" More...
 

Private Attributes

std::map< std::string, std::string > myMap
 The key->value map. More...
 

Detailed Description

Structure representing possible vehicle parameter.

Definition at line 86 of file SUMOVTypeParameter.h.

Member Typedef Documentation

◆ SubParams

typedef std::map<SumoXMLAttr, std::string> SUMOVTypeParameter::SubParams

sub-model parameters

Definition at line 190 of file SUMOVTypeParameter.h.

Constructor & Destructor Documentation

◆ SUMOVTypeParameter()

◆ ~SUMOVTypeParameter()

virtual SUMOVTypeParameter::~SUMOVTypeParameter ( )
inlinevirtual

virtual destructor

Definition at line 144 of file SUMOVTypeParameter.h.

Member Function Documentation

◆ areParametersValid()

◆ cacheParamRestrictions()

void SUMOVTypeParameter::cacheParamRestrictions ( const std::vector< std::string > &  restrictionKeys)

◆ clearParameter()

void Parameterised::clearParameter ( )
inherited

Clears the parameter map.

Definition at line 100 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NLHandler::beginEdgeParsing(), and GNERouteHandler::closeRoute().

◆ getCFParam()

double SUMOVTypeParameter::getCFParam ( const SumoXMLAttr  attr,
const double  defaultValue 
) const

Returns the named value from the map, or the default if it is not contained there.

Parameters
[in]attrThe corresponding xml attribute
[in]defaultValueThe value to return if the given map does not contain the named variable
Returns
The named value from the map or the default if it does not exist there

Definition at line 458 of file SUMOVTypeParameter.cpp.

References cfParameter, and StringUtils::toDouble().

Referenced by MSVehicleType::build(), ROEdge::getEmissionEffort(), MSCFModel_ACC::MSCFModel_ACC(), MSCFModel_CACC::MSCFModel_CACC(), MSCFModel_IDM::MSCFModel_IDM(), MSCFModel_Rail::MSCFModel_Rail(), MSCFModel_W99::MSCFModel_W99(), and GNEVehicleType::overwriteVType().

◆ getCFParamString()

std::string SUMOVTypeParameter::getCFParamString ( const SumoXMLAttr  attr,
const std::string  defaultValue 
) const

Returns the named value from the map, or the default if it is not contained there.

Parameters
[in]attrThe corresponding xml attribute
[in]defaultValueThe value to return if the given map does not contain the named variable
Returns
The named value from the map or the default if it does not exist there

Definition at line 468 of file SUMOVTypeParameter.cpp.

References cfParameter.

Referenced by GNEVehicleType::getAttribute(), MSCFModel_Rail::MSCFModel_Rail(), and GNEVehicleType::overwriteVType().

◆ getDefault()

const SUMOVTypeParameter & SUMOVTypeParameter::getDefault ( )
static

return the default parameters, this is a function due to the http://www.parashift.com/c++-faq/static-init-order.html

Definition at line 702 of file SUMOVTypeParameter.cpp.

Referenced by libsumo::Lane::getLinks().

◆ getDefaultAccel()

double SUMOVTypeParameter::getDefaultAccel ( const SUMOVehicleClass  vc = SVC_IGNORING)
static

Returns the default acceleration for the given vehicle class This needs to be a function because the actual value is stored in the car following model.

Parameters
[in]vcthe vehicle class
Returns
the acceleration in m/s^2

Definition at line 574 of file SUMOVTypeParameter.cpp.

References SVC_BICYCLE, SVC_BUS, SVC_COACH, SVC_MOPED, SVC_MOTORCYCLE, SVC_PEDESTRIAN, SVC_RAIL, SVC_RAIL_ELECTRIC, SVC_RAIL_FAST, SVC_RAIL_URBAN, SVC_SHIP, SVC_TRAILER, SVC_TRAM, and SVC_TRUCK.

Referenced by ROEdge::getEmissionEffort().

◆ getDefaultDecel()

double SUMOVTypeParameter::getDefaultDecel ( const SUMOVehicleClass  vc = SVC_IGNORING)
static

Returns the default deceleration for the given vehicle class This needs to be a function because the actual value is stored in the car following model.

Parameters
[in]vcthe vehicle class
Returns
the deceleration in m/s^2

Definition at line 610 of file SUMOVTypeParameter.cpp.

References SVC_BICYCLE, SVC_BUS, SVC_COACH, SVC_MOPED, SVC_MOTORCYCLE, SVC_PEDESTRIAN, SVC_RAIL, SVC_RAIL_ELECTRIC, SVC_RAIL_FAST, SVC_RAIL_URBAN, SVC_SHIP, SVC_TRAILER, SVC_TRAM, and SVC_TRUCK.

Referenced by MSVehicleType::build(), and libsumo::Lane::getLinks().

◆ getDefaultEmergencyDecel()

double SUMOVTypeParameter::getDefaultEmergencyDecel ( const SUMOVehicleClass  vc,
double  decel,
double  defaultOption 
)
static

Returns the default emergency deceleration for the given vehicle class This needs to be a function because the actual value is stored in the car following model.

Parameters
[in]vcthe vehicle class
[in]decelthe deceleration of the vehicle type
Returns
the emergency deceleration in m/s^2

Definition at line 641 of file SUMOVTypeParameter.cpp.

References MAX2(), SVC_BICYCLE, SVC_BUS, SVC_COACH, SVC_MOPED, SVC_MOTORCYCLE, SVC_PEDESTRIAN, SVC_RAIL, SVC_RAIL_ELECTRIC, SVC_RAIL_FAST, SVC_RAIL_URBAN, SVC_SHIP, SVC_TRAILER, SVC_TRAM, SVC_TRUCK, VTYPEPARS_DEFAULT_EMERGENCYDECEL_DECEL, and VTYPEPARS_DEFAULT_EMERGENCYDECEL_DEFAULT.

Referenced by MSVehicleType::build().

◆ getDefaultImperfection()

double SUMOVTypeParameter::getDefaultImperfection ( const SUMOVehicleClass  vc = SVC_IGNORING)
static

Returns the default driver's imperfection (sigma or epsilon in Krauss' model) for the given vehicle class This needs to be a function because the actual value is stored in the car following model.

Parameters
[in]vcthe vehicle class
Returns
the imperfection as a value between 0 and 1

Definition at line 686 of file SUMOVTypeParameter.cpp.

References SVC_RAIL, SVC_RAIL_ELECTRIC, SVC_RAIL_FAST, SVC_RAIL_URBAN, SVC_SHIP, and SVC_TRAM.

Referenced by ROEdge::getEmissionEffort().

◆ getDouble()

◆ getEntryManoeuvreTime()

SUMOTime SUMOVTypeParameter::getEntryManoeuvreTime ( const int  angle) const

Returns the time that will be needed for the vehicle type to execute the (entry) manoeuvre (and be blocking the lane)

Parameters
[in]angleThe angle, in degrees through which the vehicle needs to manoeuver (0-180 degrees)
Returns
The SUMOTime value

Definition at line 523 of file SUMOVTypeParameter.cpp.

References myManoeuverAngleTimes.

◆ getExitManoeuvreTime()

SUMOTime SUMOVTypeParameter::getExitManoeuvreTime ( const int  angle) const

Returns the time that will be needed for the vehicle type to execute the (exit) manoeuvre (and be blocking the lane)

Parameters
[in]angleThe angle, in degrees through which the vehicle needs to manoeuver (0-180 degrees)
Returns
The SUMOTime value

Definition at line 536 of file SUMOVTypeParameter.cpp.

References myManoeuverAngleTimes.

◆ getJMParam()

double SUMOVTypeParameter::getJMParam ( const SumoXMLAttr  attr,
const double  defaultValue 
) const

Returns the named value from the map, or the default if it is not contained there.

Parameters
[in]attrThe corresponding xml attribute
[in]defaultValueThe value to return if the given map does not contain the named variable
Returns
The named value from the map or the default if it does not exist there

Definition at line 504 of file SUMOVTypeParameter.cpp.

References jmParameter, and StringUtils::toDouble().

Referenced by MSLink::blockedAtTime(), MSLink::blockedByFoe(), MSLink::getLeaderInfo(), MSVehicle::ignoreRed(), MSVehicle::keepClear(), and MSCFModel_Krauss::patchSpeedBeforeLC().

◆ getJMParamString()

std::string SUMOVTypeParameter::getJMParamString ( const SumoXMLAttr  attr,
const std::string  defaultValue 
) const

Returns the named value from the map, or the default if it is not contained there.

Parameters
[in]attrThe corresponding xml attribute
[in]defaultValueThe value to return if the given map does not contain the named variable
Returns
The named value from the map or the default if it does not exist there

Definition at line 514 of file SUMOVTypeParameter.cpp.

References jmParameter.

Referenced by GNEVehicleType::getAttribute(), and GNEVehicleType::overwriteVType().

◆ getLCParam()

double SUMOVTypeParameter::getLCParam ( const SumoXMLAttr  attr,
const double  defaultValue 
) const

Returns the named value from the map, or the default if it is not contained there.

Parameters
[in]attrThe corresponding xml attribute
[in]defaultValueThe value to return if the given map does not contain the named variable
Returns
The named value from the map or the default if it does not exist there

Definition at line 478 of file SUMOVTypeParameter.cpp.

References lcParameter, and StringUtils::toDouble().

◆ getLCParams()

const SUMOVTypeParameter::SubParams & SUMOVTypeParameter::getLCParams ( ) const

Returns the LC parameter.

Definition at line 498 of file SUMOVTypeParameter.cpp.

References lcParameter.

Referenced by MSAbstractLaneChangeModel::estimateLCDuration(), and MSAbstractLaneChangeModel::remainingTime().

◆ getLCParamString()

std::string SUMOVTypeParameter::getLCParamString ( const SumoXMLAttr  attr,
const std::string &  defaultValue 
) const

Returns the named value from the map, or the default if it is not contained there.

Parameters
[in]attrThe corresponding xml attribute
[in]defaultValueThe value to return if the given map does not contain the named variable
Returns
The named value from the map or the default if it does not exist there

Definition at line 488 of file SUMOVTypeParameter.cpp.

References lcParameter.

Referenced by GNEVehicleType::getAttribute().

◆ getManoeuverAngleTimesS()

std::string SUMOVTypeParameter::getManoeuverAngleTimesS ( ) const

Returns myManoeuverAngleTimes as a string for xml output.

Returns
A string of , separated triplets (angle entry-time exit-time)

Definition at line 549 of file SUMOVTypeParameter.cpp.

References myManoeuverAngleTimes, STEPS2TIME, and toString().

Referenced by GUIVehicle::getTypeParameterWindow(), and write().

◆ getParameter()

const std::string Parameterised::getParameter ( const std::string &  key,
const std::string &  defaultValue = "" 
) const
inherited

Returns the value for a given key.

Parameters
[in]keyThe key to ask for
[in]defaultValueThe default value to return if no value is stored under the key
Returns
The value stored under the key

Definition at line 72 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NBEdge::addRestrictedLane(), FareModul::addStop(), NBEdge::append(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), ROEdge::cacheParamRestrictions(), cacheParamRestrictions(), GNEEdge::drawEdgeName(), GNEConnection::drawGL(), GUIEdge::drawGL(), GUIBaseVehicle::drawOnPos(), libsumo::Simulation::findIntermodalRoute(), MSSwarmTrafficLightLogic::getBetaNo(), MSSwarmTrafficLightLogic::getBetaSp(), MSDevice::getBoolParam(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), MSSwarmTrafficLightLogic::getChangePlanProbability(), GUIVehicle::getColorValue(), GNELane::getColorValue(), GUILane::getColorValue(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice::getFloatParam(), MSSwarmTrafficLightLogic::getForgettingCox(), MSSwarmTrafficLightLogic::getGammaNo(), MSSwarmTrafficLightLogic::getGammaSp(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSSwarmTrafficLightLogic::getLearningCox(), MSSwarmTrafficLightLogic::getMaxCongestionDuration(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), GUIJunctionWrapper::getOptionalName(), GUIBaseVehicle::getOptionalName(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), libsumo::Route::getParameter(), libsumo::Polygon::getParameter(), libsumo::POI::getParameter(), libsumo::Person::getParameter(), libsumo::TrafficLight::getParameter(), libsumo::Edge::getParameter(), libsumo::Lane::getParameter(), libsumo::VehicleType::getParameter(), libsumo::Vehicle::getParameter(), libsumo::Simulation::getParameter(), MSSwarmTrafficLightLogic::getPheroMaxVal(), MSSwarmTrafficLightLogic::getPoliciesParam(), MSSwarmTrafficLightLogic::getReinforcementMode(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), MSDevice::getStringParam(), MSSwarmTrafficLightLogic::getThetaInit(), MSSwarmTrafficLightLogic::getThetaMax(), MSSwarmTrafficLightLogic::getThetaMin(), MSSOTLTrafficLightLogic::getThreshold(), MSTriggeredRerouter::getWeight(), PushButtonLogic::init(), MSSOTLPhasePolicy::init(), SigmoidLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), GNEVehicleType::initRailVisualizationParameters(), MSVehicleType::initRailVisualizationParameters(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), GNEVehicleType::overwriteVType(), MSDevice_SSM::requestsTrajectories(), NBEdgeCont::splitAt(), MSDevice_SSM::useGeoCoords(), NWWriter_DlrNavteq::writeLinksUnsplitted(), and NWWriter_OpenDrive::writeRoadObjects().

◆ getParametersMap()

◆ getParametersStr()

◆ isParameterValid()

bool Parameterised::isParameterValid ( const std::string &  value,
bool  report 
)
staticprivateinherited

check if given string can be parsed to a parameter of type "key=value"

Definition at line 189 of file Parameterised.cpp.

References StringTokenizer::getVector(), SUMOXMLDefinitions::isValidParameterKey(), and SUMOXMLDefinitions::isValidParameterValue().

Referenced by Parameterised::areParametersValid().

◆ knowsParameter()

◆ setManoeuverAngleTimes()

void SUMOVTypeParameter::setManoeuverAngleTimes ( const SUMOVehicleClass  vclass)

Initialise the default mapping between manoeuver angle and times dependant on vehicle class.

Parameters
[in]vclassThe vehicle class
Note
These default values were 'informed' by a paper by Purnawan, and Yousif:
usir.salford.ac.uk/id/eprint/9729/3/Paper_Kassel_%28Seminar%29.pdf (no reverse park values in paper)
truck values were simply doubled - all are modifiable in the vehicle type definition and there is no limit to the no of triplets TODO: optionality for 90 degree bay entry (forwards or reverse) not implemented - probably should be a driver propensity the defaults assume reverse entry - a reverse manoeuvre has to happen and there will be a small difference in timings depending whether its reverse in or out

Defaults assume: approaching at angles between 0-10 and 171-180 (will never be > 180) are approaching a space roughly parallel to the road approaching at angles between 11-80 are approaching an acute angled space that is easiest to drive straight in approaching at angles between 81-110 are approaching a space at approximately right angles to the road so the driver has a choice approaching at angles between 111 and 170 are approaching an obtuse angled space that is easiest to drive past and reverse in More (or less) granular angle ranges can be used - configurable as a vType parameter

Definition at line 300 of file SUMOVTypeParameter.cpp.

References myManoeuverAngleTimes, SVC_BICYCLE, SVC_BUS, SVC_COACH, SVC_DELIVERY, SVC_E_VEHICLE, SVC_HOV, SVC_MOPED, SVC_PASSENGER, SVC_PEDESTRIAN, SVC_TAXI, SVC_TRAILER, and SVC_TRUCK.

Referenced by SUMOVTypeParameter().

◆ setParameter()

◆ setParameters()

void Parameterised::setParameters ( const Parameterised params)
inherited

set the inner key/value map in map<string, string> format

Definition at line 127 of file Parameterised.cpp.

References Parameterised::getParametersMap(), and Parameterised::myMap.

◆ setParametersMap()

void Parameterised::setParametersMap ( const std::map< std::string, std::string > &  paramsMap)
inherited

set the inner key/value map in map<string, string> format

Definition at line 133 of file Parameterised.cpp.

References Parameterised::myMap.

◆ setParametersStr()

void Parameterised::setParametersStr ( const std::string &  paramsString)
inherited

◆ unsetParameter()

void Parameterised::unsetParameter ( const std::string &  key)
inherited

Removes a parameter.

Parameters
[in]keyThe parameter's name

Definition at line 52 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NIImporter_OpenStreetMap::insertEdge(), and GNEVehicleType::setAttribute().

◆ updateParameters()

void Parameterised::updateParameters ( const std::map< std::string, std::string > &  mapArg)
inherited

◆ wasSet()

bool SUMOVTypeParameter::wasSet ( int  what) const
inline

◆ write()

void SUMOVTypeParameter::write ( OutputDevice dev) const

Writes the vtype.

Parameters
[in,out]devThe device to write into
Exceptions
IOErrornot yet implemented

Definition at line 348 of file SUMOVTypeParameter.cpp.

References actionStepLength, boardingDuration, SUMOXMLDefinitions::CarFollowModels, cfModel, cfParameter, OutputDevice::closeTag(), color, containerCapacity, defaultProbability, emissionClass, getManoeuverAngleTimesS(), PollutantsInterface::getName(), getVehicleShapeName(), height, imgFile, impatience, jmParameter, latAlignment, lcModel, lcParameter, length, loadingDuration, maxSpeed, maxSpeedLat, minGap, minGapLat, onlyReferenced, OutputDevice::openTag(), osgFile, personCapacity, shape, speedFactor, STEPS2TIME, SUMO_ATTR_ACTIONSTEPLENGTH, SUMO_ATTR_BOARDING_DURATION, SUMO_ATTR_CAR_FOLLOW_MODEL, SUMO_ATTR_COLOR, SUMO_ATTR_CONTAINER_CAPACITY, SUMO_ATTR_EMISSIONCLASS, SUMO_ATTR_GUISHAPE, SUMO_ATTR_HEIGHT, SUMO_ATTR_ID, SUMO_ATTR_IMGFILE, SUMO_ATTR_IMPATIENCE, SUMO_ATTR_LANE_CHANGE_MODEL, SUMO_ATTR_LATALIGNMENT, SUMO_ATTR_LENGTH, SUMO_ATTR_LOADING_DURATION, SUMO_ATTR_MANEUVER_ANGLE_TIMES, SUMO_ATTR_MAXSPEED, SUMO_ATTR_MAXSPEED_LAT, SUMO_ATTR_MINGAP, SUMO_ATTR_MINGAP_LAT, SUMO_ATTR_OSGFILE, SUMO_ATTR_PERSON_CAPACITY, SUMO_ATTR_PROB, SUMO_ATTR_SPEEDFACTOR, SUMO_ATTR_VCLASS, SUMO_ATTR_WIDTH, SUMO_TAG_VTYPE, toString(), vehicleClass, VTYPEPARS_ACTIONSTEPLENGTH_SET, VTYPEPARS_BOARDING_DURATION, VTYPEPARS_CAR_FOLLOW_MODEL, VTYPEPARS_COLOR_SET, VTYPEPARS_CONTAINER_CAPACITY, VTYPEPARS_EMISSIONCLASS_SET, VTYPEPARS_HEIGHT_SET, VTYPEPARS_IMGFILE_SET, VTYPEPARS_IMPATIENCE_SET, VTYPEPARS_LANE_CHANGE_MODEL_SET, VTYPEPARS_LATALIGNMENT_SET, VTYPEPARS_LENGTH_SET, VTYPEPARS_LOADING_DURATION, VTYPEPARS_MANEUVER_ANGLE_TIMES_SET, VTYPEPARS_MAXSPEED_LAT_SET, VTYPEPARS_MAXSPEED_SET, VTYPEPARS_MINGAP_LAT_SET, VTYPEPARS_MINGAP_SET, VTYPEPARS_OSGFILE_SET, VTYPEPARS_PERSON_CAPACITY, VTYPEPARS_PROBABILITY_SET, VTYPEPARS_SHAPE_SET, VTYPEPARS_SPEEDFACTOR_SET, VTYPEPARS_VEHICLECLASS_SET, VTYPEPARS_WIDTH_SET, wasSet(), width, OutputDevice::writeAttr(), and Parameterised::writeParams().

Referenced by ROVehicle::saveAsXML(), ROPerson::saveAsXML(), GNEVehicleType::writeDemandElement(), and RODFDetectorCon::writeEmitters().

◆ writeParams()

Field Documentation

◆ actionStepLength

SUMOTime SUMOVTypeParameter::actionStepLength

The vehicle type's default actionStepLength [ms], i.e. the interval between two control actions. The default value of 0ms. induces the value to be traced from MSGlobals::gActionStepLength.

Definition at line 225 of file SUMOVTypeParameter.h.

Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::check(), MSVehicleType::getActionStepLength(), GNEVehicleType::getAttribute(), MSVehicleType::MSVehicleType(), GNEVehicleType::overwriteVType(), MSVehicleType::setActionStepLength(), GNEVehicleType::setAttribute(), and write().

◆ boardingDuration

SUMOTime SUMOVTypeParameter::boardingDuration

◆ carriageGap

◆ carriageLength

◆ cfModel

◆ cfParameter

◆ color

◆ containerCapacity

◆ defaultProbability

double SUMOVTypeParameter::defaultProbability

◆ emissionClass

◆ height

◆ id

◆ imgFile

◆ impatience

double SUMOVTypeParameter::impatience

◆ jmParameter

SubParams SUMOVTypeParameter::jmParameter

◆ latAlignment

◆ lcModel

◆ lcParameter

◆ length

◆ loadingDuration

SUMOTime SUMOVTypeParameter::loadingDuration

◆ locomotiveLength

◆ maxSpeed

◆ maxSpeedLat

◆ minGap

◆ minGapLat

◆ myManoeuverAngleTimes

std::map<int, std::pair<SUMOTime, SUMOTime> > SUMOVTypeParameter::myManoeuverAngleTimes

Map of manoeuver angles versus the times (entry, exit) to execute the manoeuver.

Definition at line 351 of file SUMOVTypeParameter.h.

Referenced by getEntryManoeuvreTime(), getExitManoeuvreTime(), getManoeuverAngleTimesS(), SUMOVehicleParserHelper::parseAngleTimesMap(), and setManoeuverAngleTimes().

◆ myMap

◆ onlyReferenced

bool SUMOVTypeParameter::onlyReferenced

Information whether this is a type-stub, being only referenced but not defined (needed by routers)

Definition at line 313 of file SUMOVTypeParameter.h.

Referenced by RONet::RONet(), and write().

◆ osgFile

◆ parametersSet

◆ paramRestrictions

std::vector<double> SUMOVTypeParameter::paramRestrictions

cached value of parameters which may restrict access to certain edges

Definition at line 316 of file SUMOVTypeParameter.h.

Referenced by cacheParamRestrictions(), and ROEdge::restricts().

◆ personCapacity

◆ saved

bool SUMOVTypeParameter::saved
mutable

Information whether this type was already saved (needed by routers)

Definition at line 310 of file SUMOVTypeParameter.h.

Referenced by ROVehicle::saveAsXML(), and ROPerson::saveAsXML().

◆ shape

◆ speedFactor

◆ vehicleClass

◆ width


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