Eclipse SUMO - Simulation of Urban MObility
SUMOVTypeParameter Class Reference

Structure representing possible vehicle parameter. More...

#include <SUMOVTypeParameter.h>

Inheritance diagram for SUMOVTypeParameter:
[legend]
Collaboration diagram for SUMOVTypeParameter:
[legend]

Data Structures

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

Public Types

typedef std::map< std::string, std::string > Map
 parameters map More...
 
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...
 
std::vector< double > getDoubles (const std::string &key, std::vector< double > defaultValue=std::vector< double >()) const
 Returns the value for a given key converted to a list of doubles. 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...
 
double getLength () const
 satisfy vType / router template requirements More...
 
std::string getManoeuverAngleTimesS () const
 Returns myManoeuverAngleTimes as a string for xml output. More...
 
virtual const std::string getParameter (const std::string &key, const std::string defaultValue="") const
 Returns the value for a given key. More...
 
const Parameterised::MapgetParametersMap () const
 Returns the inner key/value map. More...
 
std::string getParametersStr (const std::string kvsep="=", const std::string sep="|") const
 Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN". More...
 
SUMOTime getTimeToTeleport (SUMOTime defaultValue) const
 return time-to-teleport (either custom or default) More...
 
SUMOTime getTimeToTeleportBidi (SUMOTime defaultValue) const
 return time-to-teleport.bidi (either custom or default) More...
 
bool hasParameter (const std::string &key) const
 Returns whether the parameter is set. More...
 
void initRailVisualizationParameters ()
 init Rail Visualization Parameters More...
 
void mergeParameters (const Parameterised::Map &mapArg, const std::string separator=" ", bool uniqueValues=true)
 Adds or appends all given parameters from the map. More...
 
void setManoeuverAngleTimes (const SUMOVehicleClass vclass)
 Initialise the default mapping between manoeuver angle and times dependant on vehicle class. More...
 
virtual 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 setParametersStr (const std::string &paramsString, const std::string kvsep="=", const std::string sep="|")
 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 Parameterised::Map &mapArg)
 Adds or updates all given parameters from the map. More...
 
bool wasSet (long long 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 areAttributesValid (const std::string &value, bool report=false, const std::string kvsep="=", const std::string sep="|")
 check if given string can be parsed to an attributes map "key1=value1|key2=value2|...|keyN=valueN" (used in generic datas) More...
 
static bool areParametersValid (const std::string &value, bool report=false, const std::string kvsep="=", const std::string sep="|")
 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...
 
static std::vector< std::string > getLatAlignmentStrings ()
 return all valid strings for latAlignment More...
 
static bool isValidLatAlignment (const std::string &val)
 
static bool parseLatAlignment (const std::string &val, double &lao, LatAlignmentDefinition &lad)
 Parses and validates a given latAlignment value. 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...
 
int carriageDoors
 the number of doors per carriage 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...
 
double desiredMaxSpeed
 The vehicle type's desired maximum speed [m/s]. More...
 
SUMOEmissionClass emissionClass
 The emission class of this vehicle. More...
 
double frontSeatPos
 the offset of the first person seat from the front of the 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...
 
double latAlignmentOffset
 (optional) The vehicle's desired lateral alignment as offset in m from center line More...
 
LatAlignmentDefinition latAlignmentProcedure
 Information on how the vehicle shall choose the 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 mass
 The mass. More...
 
double maxSpeed
 The vehicle type's (technical) 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...
 
long long 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...
 
std::vector< std::string > parkingBadges
 the parking access rights More...
 
int personCapacity
 The person capacity of the vehicle. More...
 
bool saved
 Information whether this type was already saved (needed by routers) More...
 
double scale
 individual scaling factor (-1 for undefined) More...
 
double seatingWidth
 width to be used when comping seats More...
 
Distribution_Parameterized speedFactor
 The factor by which the maximum speed may deviate from the allowed max speed on the street. More...
 
double speedFactorPremature
 the possible speed reduction when a train is ahead of schedule More...
 
SUMOTime timeToTeleport
 the custom time-to-teleport for this type More...
 
SUMOTime timeToTeleportBidi
 the custom time-to-teleport.bidi for this type 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 Public Attributes

static std::set< SumoXMLAttrAllowedJMAttrs
 allowed attrs for the junction model More...
 

Static Private Member Functions

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

Private Attributes

Parameterised::Map myMap
 The key->value map. More...
 

Detailed Description

Structure representing possible vehicle parameter.

Definition at line 121 of file SUMOVTypeParameter.h.

Member Typedef Documentation

◆ Map

typedef std::map<std::string, std::string> Parameterised::Map
inherited

parameters map

Definition at line 45 of file Parameterised.h.

◆ SubParams

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

sub-model parameters

Definition at line 241 of file SUMOVTypeParameter.h.

Constructor & Destructor Documentation

◆ SUMOVTypeParameter()

SUMOVTypeParameter::SUMOVTypeParameter ( const std::string &  vtid,
const SUMOVehicleClass  vc = SVC_IGNORING 
)

Constructor.

Initialises the structure with default values

Definition at line 313 of file SUMOVTypeParameter.cpp.

References SUMOXMLDefinitions::CarFollowModels, SUMOVTypeParameter::VClassDefaultValues::carriageDoors, carriageDoors, SUMOVTypeParameter::VClassDefaultValues::carriageLength, carriageLength, cfModel, SUMOVTypeParameter::VClassDefaultValues::containerCapacity, containerCapacity, SUMOVTypeParameter::VClassDefaultValues::desiredMaxSpeed, desiredMaxSpeed, SUMOVTypeParameter::VClassDefaultValues::emissionClass, emissionClass, OptionsCont::exists(), StringBijection< T >::get(), OptionsCont::getFloat(), OptionsCont::getOptions(), Distribution_Parameterized::getParameter(), OptionsCont::getString(), SUMOVTypeParameter::VClassDefaultValues::height, height, SUMOVTypeParameter::VClassDefaultValues::latAlignmentProcedure, latAlignmentProcedure, SUMOVTypeParameter::VClassDefaultValues::length, length, SUMOVTypeParameter::VClassDefaultValues::locomotiveLength, locomotiveLength, SUMOVTypeParameter::VClassDefaultValues::mass, mass, SUMOVTypeParameter::VClassDefaultValues::maxSpeed, maxSpeed, SUMOVTypeParameter::VClassDefaultValues::minGap, minGap, SUMOVTypeParameter::VClassDefaultValues::minGapLat, minGapLat, SUMOVTypeParameter::VClassDefaultValues::osgFile, osgFile, SUMOVTypeParameter::VClassDefaultValues::personCapacity, personCapacity, setManoeuverAngleTimes(), SUMOVTypeParameter::VClassDefaultValues::shape, shape, SUMOVTypeParameter::VClassDefaultValues::speedFactor, speedFactor, SUMOVTypeParameter::VClassDefaultValues::width, and width.

◆ ~SUMOVTypeParameter()

virtual SUMOVTypeParameter::~SUMOVTypeParameter ( )
inlinevirtual

virtual destructor

Definition at line 195 of file SUMOVTypeParameter.h.

Member Function Documentation

◆ areAttributesValid()

bool Parameterised::areAttributesValid ( const std::string &  value,
bool  report = false,
const std::string  kvsep = "=",
const std::string  sep = "|" 
)
staticinherited

check if given string can be parsed to an attributes map "key1=value1|key2=value2|...|keyN=valueN" (used in generic datas)

Definition at line 219 of file Parameterised.cpp.

References StringTokenizer::getVector(), Parameterised::isParameterValid(), TL, and WRITE_WARNINGF.

Referenced by GNEFrameAttributeModules::GenericDataAttributes::areAttributesValid(), GNEEdgeData::isValid(), GNEEdgeRelData::isValid(), and GNETAZRelData::isValid().

Here is the caller graph for this function:

◆ areParametersValid()

bool Parameterised::areParametersValid ( const std::string &  value,
bool  report = false,
const std::string  kvsep = "=",
const std::string  sep = "|" 
)
staticinherited

◆ cacheParamRestrictions()

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

Definition at line 724 of file SUMOVTypeParameter.cpp.

References Parameterised::getParameter(), paramRestrictions, and StringUtils::toDouble().

Referenced by RORouteHandler::closeVType().

Here is the caller graph for this function:

◆ clearParameter()

void Parameterised::clearParameter ( )
inherited

Clears the parameter map.

Definition at line 139 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NLHandler::beginEdgeParsing(), and GNESingleParametersDialog::onCmdAccept().

Here is the caller graph for this function:

◆ 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 616 of file SUMOVTypeParameter.cpp.

References cfParameter, and StringUtils::toDouble().

Referenced by MSVehicleType::build(), ROEdge::getEmissionEffort(), MSCFModel_ACC::MSCFModel_ACC(), MSCFModel_CACC::MSCFModel_CACC(), MSCFModel_EIDM::MSCFModel_EIDM(), MSCFModel_IDM::MSCFModel_IDM(), MSCFModel_Kerner::MSCFModel_Kerner(), MSCFModel_PWag2009::MSCFModel_PWag2009(), MSCFModel_Rail::MSCFModel_Rail(), MSCFModel_W99::MSCFModel_W99(), MSCFModel_Wiedemann::MSCFModel_Wiedemann(), and GNEVType::overwriteVType().

Here is the caller graph for this function:

◆ 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 626 of file SUMOVTypeParameter.cpp.

References cfParameter.

Referenced by GNEVType::getAttribute(), MSCFModel_Rail::getValueTable(), MSCFModel_Rail::MSCFModel_Rail(), and GNEVType::overwriteVType().

Here is the caller graph for this function:

◆ 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 967 of file SUMOVTypeParameter.cpp.

Referenced by LIBSUMO_NAMESPACE::Lane::getLinks(), and LIBSUMO_NAMESPACE::Vehicle::getNextLinks().

Here is the caller graph for this function:

◆ 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 834 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_SCOOTER, SVC_SHIP, SVC_TRAILER, SVC_TRAM, SVC_TRUCK, and SVC_WHEELCHAIR.

Referenced by ROEdge::getEmissionEffort().

Here is the caller graph for this function:

◆ 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 872 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_SCOOTER, SVC_SHIP, SVC_TRAILER, SVC_TRAM, SVC_TRUCK, and SVC_WHEELCHAIR.

Referenced by MSVehicleType::build(), LIBSUMO_NAMESPACE::Lane::getLinks(), and LIBSUMO_NAMESPACE::Vehicle::getNextLinks().

Here is the caller graph for this function:

◆ 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 905 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_SCOOTER, SVC_SHIP, SVC_TRAILER, SVC_TRAM, SVC_TRUCK, SVC_WHEELCHAIR, VTYPEPARS_DEFAULT_EMERGENCYDECEL_DECEL, and VTYPEPARS_DEFAULT_EMERGENCYDECEL_DEFAULT.

Referenced by MSVehicleType::build().

Here is the caller graph for this function:

◆ 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 952 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().

Here is the caller graph for this function:

◆ getDouble()

double Parameterised::getDouble ( const std::string &  key,
const double  defaultValue 
) const
inherited

◆ getDoubles()

std::vector< double > Parameterised::getDoubles ( const std::string &  key,
std::vector< double >  defaultValue = std::vector<double>() 
) const
inherited

Returns the value for a given key converted to a list of doubles.

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 118 of file Parameterised.cpp.

References StringTokenizer::getVector(), Parameterised::myMap, TL, StringUtils::toDouble(), WRITE_WARNING, and WRITE_WARNINGF.

Referenced by EnergyParams::EnergyParams().

Here is the caller graph for this function:

◆ 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 681 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 694 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 662 of file SUMOVTypeParameter.cpp.

References jmParameter, and StringUtils::toDouble().

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

Here is the caller graph for this function:

◆ 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 672 of file SUMOVTypeParameter.cpp.

References jmParameter.

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

Here is the caller graph for this function:

◆ getLatAlignmentStrings()

static std::vector<std::string> SUMOVTypeParameter::getLatAlignmentStrings ( )
inlinestatic

return all valid strings for latAlignment

Definition at line 461 of file SUMOVTypeParameter.h.

Referenced by GNEVehicleTypeDialog::VTypeAttributes::buildAttributesB(), and GNEAttributeCarrier::fillDemandElements().

Here is the caller graph for this function:

◆ 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 636 of file SUMOVTypeParameter.cpp.

References lcParameter, and StringUtils::toDouble().

Referenced by GNEVType::overwriteVType().

Here is the caller graph for this function:

◆ getLCParams()

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

Returns the LC parameter.

Definition at line 656 of file SUMOVTypeParameter.cpp.

References lcParameter.

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

Here is the caller graph for this function:

◆ 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 646 of file SUMOVTypeParameter.cpp.

References lcParameter.

Referenced by GNEVType::getAttribute(), MSDevice_Bluelight::notifyMove(), GNEVType::overwriteVType(), and MSDevice_Bluelight::resetVehicle().

Here is the caller graph for this function:

◆ getLength()

double SUMOVTypeParameter::getLength ( ) const
inline

satisfy vType / router template requirements

Definition at line 409 of file SUMOVTypeParameter.h.

References length.

◆ 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 707 of file SUMOVTypeParameter.cpp.

References myManoeuverAngleTimes, STEPS2TIME, and toString().

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

Here is the caller graph for this function:

◆ getParameter()

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

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

Reimplemented in NEMALogic, MSSimpleTrafficLightLogic, and MSActuatedTrafficLightLogic.

Definition at line 90 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by MSPModel_JuPedSim::add(), NBRailwayTopologyAnalyzer::addBidiEdge(), NBEdge::addRestrictedLane(), FareModul::addStop(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), ROEdge::cacheParamRestrictions(), cacheParamRestrictions(), MSVehicleType::check(), MSRailSignal::constraintsAllow(), GUINet::createTLWrapper(), GNEEdge::drawEdgeName(), GNEConnection::drawEdgeValues(), GNEGenericData::drawFilteredAttribute(), GUIEdge::drawGL(), EnergyParams::EnergyParams(), MSDevice_SSM::filterByConflictType(), LIBSUMO_NAMESPACE::TrafficLight::findConstraintsDeadLocks(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), GUIVehicle::getColorValue(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GNELane::getColorValue(), GUIEdge::getColorValue(), GUILane::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), LIBSUMO_NAMESPACE::TrafficLight::getFutureTripIds(), MSTLLogicControl::WAUTSwitchProcedure::getGSPTime(), RORoutable::getMaxSpeed(), MSDevice_SSM::getMDRAC_PRT(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), GUIBaseVehicle::getOptionalName(), GUITrafficLightLogicWrapper::getOptionalName(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), MSSimpleTrafficLightLogic::getParameter(), NEMALogic::getParameter(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSBaseVehicle::getPrefixedParameter(), GUIBaseVehicle::getScaleValue(), LIBSUMO_NAMESPACE::Vehicle::getStopParameter(), MSDevice::getStringParam(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), MSRailSignalConstraint::getVehID(), MSTriggeredRerouter::getWeight(), MSRailSignal::hasInsertionConstraint(), MSLink::ignoreFoe(), MSSOTLPhasePolicy::init(), MSStageDriving::init(), PushButtonLogic::init(), SigmoidLogic::init(), initRailVisualizationParameters(), NIImporter_OpenStreetMap::insertNodeChecking(), MSAbstractLaneChangeModel::laneChangeOutput(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSDevice_GLOSA::notifyEnter(), MSRailSignalConstraint_Predecessor::PassedTracker::notifyEnter(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), NBTrafficLightDefinition::railSignalUncontrolled(), MSDevice_Battery::readParameterValue(), MSDevice_SSM::requestsTrajectories(), MSDevice_Bluelight::resetVehicle(), GNEEdgeData::setColor(), GNEEdgeRelData::setColor(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), NBEdge::setOrigID(), MSVehicle::slowDownForSchedule(), NBEdgeCont::splitAt(), LIBSUMO_NAMESPACE::TrafficLight::swapParameters(), LIBSUMO_NAMESPACE::TrafficLight::updateConstraints(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), MSDevice_SSM::writeLanesPositions(), NWWriter_DlrNavteq::writeLinksUnsplitted(), MSDevice_SSM::writePositions(), NWWriter_OpenDrive::writeRoadObjectPOI(), NWWriter_OpenDrive::writeRoadObjectPoly(), NWWriter_OpenDrive::writeRoadObjects(), and NWWriter_OpenDrive::writeSignals().

◆ getParametersMap()

const Parameterised::Map & Parameterised::getParametersMap ( ) const
inherited

Returns the inner key/value map.

Definition at line 145 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NIImporter_SUMO::_loadNetwork(), NBNode::addCrossing(), NBEdge::addLane(), NBEdge::append(), LIBSUMO_NAMESPACE::TrafficLight::buildConstraint(), GUIParameterTableWindow::closeBuilding(), NLHandler::closeEdge(), NBTrafficLightDefinition::compute(), GNEGenericData::drawAttribute(), GNEGenericData::drawFilteredAttribute(), NLDetectorBuilder::endE3Detector(), GNEAccess::getACParametersMap(), GNECalibrator::getACParametersMap(), GNEDetector::getACParametersMap(), GNEMultiEntryExitDetector::getACParametersMap(), GNEOverheadWire::getACParametersMap(), GNEParkingSpace::getACParametersMap(), GNERerouter::getACParametersMap(), GNERouteProbe::getACParametersMap(), GNEStoppingPlace::getACParametersMap(), GNETAZ::getACParametersMap(), GNEVaporizer::getACParametersMap(), GNEVariableSpeedSign::getACParametersMap(), GNEDataInterval::getACParametersMap(), GNEDataSet::getACParametersMap(), GNEGenericData::getACParametersMap(), GNEContainer::getACParametersMap(), GNEPerson::getACParametersMap(), GNEPersonTrip::getACParametersMap(), GNERide::getACParametersMap(), GNERoute::getACParametersMap(), GNEStop::getACParametersMap(), GNEStopPlan::getACParametersMap(), GNETranship::getACParametersMap(), GNETransport::getACParametersMap(), GNEVehicle::getACParametersMap(), GNEVType::getACParametersMap(), GNEWalk::getACParametersMap(), GNEConnection::getACParametersMap(), GNECrossing::getACParametersMap(), GNEEdge::getACParametersMap(), GNEEdgeType::getACParametersMap(), GNEJunction::getACParametersMap(), GNELane::getACParametersMap(), GNELaneType::getACParametersMap(), GNEPOI::getACParametersMap(), GNEPoly::getACParametersMap(), MSRailSignalConstraint_Predecessor::getDescription(), NWWriter_OpenDrive::getDividerType(), GUILane::getParameterWindow(), GNESingleParametersDialog::GNESingleParametersDialog(), MSRailCrossing::init(), MSActuatedTrafficLightLogic::init(), MSDevice_Taxi::initDispatch(), MSPModel_JuPedSim::initialize(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), GNETAZRelData::isGenericDataVisible(), GNEGenericData::isVisibleInspectDeleteSelect(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), NBTrafficLightLogic::NBTrafficLightLogic(), GUIParameterTableWindow::numParams(), GNESingleParametersDialog::onCmdReset(), GNEVType::overwriteVType(), TraCIServerAPI_TrafficLight::processGet(), Parameterised::setParameters(), LIBSUMO_NAMESPACE::TrafficLight::swapConstraints(), GNEEdgeData::writeGenericData(), GNEEdgeRelData::writeGenericData(), and GNETAZRelData::writeGenericData().

◆ getParametersStr()

std::string Parameterised::getParametersStr ( const std::string  kvsep = "=",
const std::string  sep = "|" 
) const
inherited

Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN".

Definition at line 151 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by GNEAccess::getAttribute(), GNEBusStop::getAttribute(), GNECalibrator::getAttribute(), GNECalibratorFlow::getAttribute(), GNEChargingStation::getAttribute(), GNEContainerStop::getAttribute(), GNEEntryExitDetector::getAttribute(), GNEInductionLoopDetector::getAttribute(), GNEInstantInductionLoopDetector::getAttribute(), GNELaneAreaDetector::getAttribute(), GNEMultiEntryExitDetector::getAttribute(), GNEOverheadWire::getAttribute(), GNEParkingArea::getAttribute(), GNEParkingSpace::getAttribute(), GNERerouter::getAttribute(), GNERouteProbe::getAttribute(), GNETAZ::getAttribute(), GNETAZSourceSink::getAttribute(), GNETractionSubstation::getAttribute(), GNEVaporizer::getAttribute(), GNEVariableSpeedSign::getAttribute(), GNEEdgeData::getAttribute(), GNEEdgeRelData::getAttribute(), GNETAZRelData::getAttribute(), GNEContainer::getAttribute(), GNEPerson::getAttribute(), GNERoute::getAttribute(), GNEStop::getAttribute(), GNEVehicle::getAttribute(), GNEVType::getAttribute(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEEdgeType::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), GNELaneType::getAttribute(), GNEPOI::getAttribute(), and GNEPoly::getAttribute().

Here is the caller graph for this function:

◆ getTimeToTeleport()

SUMOTime SUMOVTypeParameter::getTimeToTeleport ( SUMOTime  defaultValue) const

return time-to-teleport (either custom or default)

Definition at line 1001 of file SUMOVTypeParameter.cpp.

References timeToTeleport, and TTT_UNSET.

Referenced by MSLane::executeMovements().

Here is the caller graph for this function:

◆ getTimeToTeleportBidi()

SUMOTime SUMOVTypeParameter::getTimeToTeleportBidi ( SUMOTime  defaultValue) const

return time-to-teleport.bidi (either custom or default)

Definition at line 1006 of file SUMOVTypeParameter.cpp.

References timeToTeleportBidi, and TTT_UNSET.

Referenced by MSLane::executeMovements().

Here is the caller graph for this function:

◆ hasParameter()

bool Parameterised::hasParameter ( const std::string &  key) const
inherited

Returns whether the parameter is set.

Parameters
[in]keyThe key to ask for
Returns
Whether the key is known

Definition at line 84 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by MSStageWalking::activateEntryReminders(), NBEdge::append(), MSVehicleType::build(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), GUINet::createTLWrapper(), EnergyParams::EnergyParams(), MSDevice_SSM::filterByConflictType(), NWWriter_DlrNavteq::getBrunnelType(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GNELane::getColorValue(), GUILane::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice_SSM::getMDRAC_PRT(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSDevice::getStringParam(), MSTriggeredRerouter::getWeight(), MSStageDriving::init(), initRailVisualizationParameters(), MSEdge::insertVehicle(), NIImporter_OpenStreetMap::load(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), NBTrafficLightDefinition::railSignalUncontrolled(), MSDevice_Battery::readParameterValue(), MSDevice_SSM::requestsTrajectories(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), MSVehicle::slowDownForSchedule(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), MSDevice_SSM::writeLanesPositions(), MSDevice_SSM::writePositions(), NWWriter_OpenDrive::writeRoadObjectPoly(), NWWriter_OpenDrive::writeRoadObjects(), and NWWriter_OpenDrive::writeSignals().

Here is the caller graph for this function:

◆ initRailVisualizationParameters()

void SUMOVTypeParameter::initRailVisualizationParameters ( )

◆ isParameterValid()

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

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

Definition at line 254 of file Parameterised.cpp.

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

Referenced by Parameterised::areAttributesValid(), and Parameterised::areParametersValid().

Here is the caller graph for this function:

◆ isValidLatAlignment()

static bool SUMOVTypeParameter::isValidLatAlignment ( const std::string &  val)
inlinestatic

Definition at line 453 of file SUMOVTypeParameter.h.

References parseLatAlignment().

Referenced by GNEVType::isValid().

Here is the caller graph for this function:

◆ mergeParameters()

void Parameterised::mergeParameters ( const Parameterised::Map mapArg,
const std::string  separator = " ",
bool  uniqueValues = true 
)
inherited

Adds or appends all given parameters from the map.

Parameters
[in]mapArgThe keys/values to insert

Definition at line 65 of file Parameterised.cpp.

References Parameterised::getParameter(), Parameterised::hasParameter(), and Parameterised::setParameter().

Referenced by NBEdge::append().

Here is the caller graph for this function:

◆ parseLatAlignment()

bool SUMOVTypeParameter::parseLatAlignment ( const std::string &  val,
double &  lao,
LatAlignmentDefinition lad 
)
static

Parses and validates a given latAlignment value.

Parameters
[in]valThe latAlignment value to parse
[out]laoThe parsed lateral alignment offset, if given
[out]ladThe parsed latAlignment definition
Returns
Whether the given value is a valid latAlignment definition

Definition at line 973 of file SUMOVTypeParameter.cpp.

References ARBITRARY, CENTER, COMPACT, GIVEN, LEFT, NICE, RIGHT, and StringUtils::toDouble().

Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), isValidLatAlignment(), and GNEVType::setAttribute().

Here is the caller graph for this function:

◆ 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 387 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().

Here is the caller graph for this function:

◆ setParameter()

void Parameterised::setParameter ( const std::string &  key,
const std::string &  value 
)
virtualinherited

Sets a parameter.

Parameters
[in]keyThe parameter's name
[in]valueThe parameter's value

Reimplemented in NEMALogic, MSSimpleTrafficLightLogic, MSRailSignal, MSActuatedTrafficLightLogic, and MSRailCrossing.

Definition at line 45 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NBRailwayTopologyAnalyzer::addBidiEdge(), NLHandler::addDistrict(), RONetHandler::addParam(), ShapeHandler::addPOI(), NBOwnTLDef::buildNemaPhases(), MSParkingArea::enter(), NIImporter_MATSim::EdgesHandler::insertEdge(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), MSLane::isInsertionSuccess(), NBNodeCont::joinNodeCluster(), NBEdge::Lane::Lane(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSStateHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIXMLTrafficLightsHandler::myStartElement(), ShapeHandler::myStartElement(), GNESingleParametersDialog::onCmdAccept(), NBRailwayTopologyAnalyzer::reverseEdges(), GNEVType::setAttribute(), NBEdge::setJunctionPriority(), NIImporter_OpenDrive::setLaneAttributes(), MSRailCrossing::setParameter(), MSActuatedTrafficLightLogic::setParameter(), MSRailSignal::setParameter(), MSSimpleTrafficLightLogic::setParameter(), NEMALogic::setParameter(), LIBSUMO_NAMESPACE::Simulation::setParameter(), Parameterised::setParametersStr(), LIBSUMO_NAMESPACE::Vehicle::setStopParameter(), LIBSUMO_NAMESPACE::TrafficLight::swapParameters(), Parameterised::updateParameters(), NWWriter_OpenDrive::writeNetwork(), and NIImporter_OpenDrive::writeRoadObjects().

Here is the caller graph for this function:

◆ setParameters()

void Parameterised::setParameters ( const Parameterised params)
inherited

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

Definition at line 167 of file Parameterised.cpp.

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

Referenced by MSStageDriving::clone(), MSStageTranship::clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStageWalking::clone(), and MSStageTrip::setArrived().

Here is the caller graph for this function:

◆ setParametersStr()

void Parameterised::setParametersStr ( const std::string &  paramsString,
const std::string  kvsep = "=",
const std::string  sep = "|" 
)
inherited

set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"

Parameters
[in]paramsStringA serialized key-value map
[in]kvsepThe separater between key and value
[in]sepThe separater between map entries

Definition at line 173 of file Parameterised.cpp.

References StringTokenizer::getVector(), Parameterised::myMap, and Parameterised::setParameter().

Referenced by MSDevice_Taxi::initDispatch(), GNEAccess::setAttribute(), GNEBusStop::setAttribute(), GNECalibrator::setAttribute(), GNECalibratorFlow::setAttribute(), GNEChargingStation::setAttribute(), GNEContainerStop::setAttribute(), GNEEntryExitDetector::setAttribute(), GNEInductionLoopDetector::setAttribute(), GNEInstantInductionLoopDetector::setAttribute(), GNELaneAreaDetector::setAttribute(), GNEMultiEntryExitDetector::setAttribute(), GNEOverheadWire::setAttribute(), GNEParkingArea::setAttribute(), GNEParkingSpace::setAttribute(), GNERerouter::setAttribute(), GNERouteProbe::setAttribute(), GNETAZ::setAttribute(), GNETAZSourceSink::setAttribute(), GNETractionSubstation::setAttribute(), GNEVaporizer::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNEEdgeData::setAttribute(), GNEEdgeRelData::setAttribute(), GNETAZRelData::setAttribute(), GNEContainer::setAttribute(), GNEPerson::setAttribute(), GNERoute::setAttribute(), GNEStop::setAttribute(), GNEVehicle::setAttribute(), GNEVType::setAttribute(), GNEConnection::setAttribute(), GNEEdge::setAttribute(), GNEEdgeType::setAttribute(), GNEJunction::setAttribute(), GNELane::setAttribute(), GNELaneType::setAttribute(), GNEPOI::setAttribute(), and GNEPoly::setAttribute().

Here is the caller graph for this function:

◆ unsetParameter()

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

Removes a parameter.

Parameters
[in]keyThe parameter's name

Definition at line 51 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NIImporter_OpenStreetMap::insertEdge(), MSLane::isInsertionSuccess(), NIImporter_OpenStreetMap::load(), GNEVType::setAttribute(), and LIBSUMO_NAMESPACE::TrafficLight::swapParameters().

Here is the caller graph for this function:

◆ updateParameters()

void Parameterised::updateParameters ( const Parameterised::Map mapArg)
inherited

◆ wasSet()

bool SUMOVTypeParameter::wasSet ( long long int  what) const
inline

Returns whether the given parameter was set.

Parameters
[in]whatThe parameter which one asks for
Returns
Whether the given parameter was set

Definition at line 201 of file SUMOVTypeParameter.h.

References parametersSet.

Referenced by MSVehicleType::build(), MSVehicleType::check(), MSRouteHandler::closeTransportable(), EnergyParams::EnergyParams(), GNEVType::getAttribute(), GNEVType::getAttributeDouble(), GUIVehicle::getTypeParameterWindow(), GNEVType::isAttributeEnabled(), MSDevice_Battery::MSDevice_Battery(), MSVehicleType::MSVehicleType(), MSDevice_Battery::notifyMove(), GNEVType::overwriteVType(), MSTransportable::replaceVehicleType(), GNEVType::updateDefaultVClassAttributes(), and write().

Here is the caller graph for this function:

◆ 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 435 of file SUMOVTypeParameter.cpp.

References actionStepLength, ARBITRARY, boardingDuration, SUMOXMLDefinitions::CarFollowModels, carriageDoors, carriageGap, carriageLength, CENTER, cfModel, cfParameter, OutputDevice::closeTag(), color, COMPACT, containerCapacity, DEFAULT, defaultProbability, desiredMaxSpeed, emissionClass, getManoeuverAngleTimesS(), PollutantsInterface::getName(), getVehicleShapeName(), GIVEN, height, imgFile, impatience, jmParameter, latAlignmentOffset, latAlignmentProcedure, lcModel, lcParameter, LEFT, length, loadingDuration, locomotiveLength, mass, maxSpeed, maxSpeedLat, minGap, minGapLat, NICE, onlyReferenced, OutputDevice::openTag(), osgFile, personCapacity, RIGHT, scale, shape, speedFactor, speedFactorPremature, STEPS2TIME, SUMO_ATTR_ACTIONSTEPLENGTH, SUMO_ATTR_BOARDING_DURATION, SUMO_ATTR_CAR_FOLLOW_MODEL, SUMO_ATTR_CARRIAGE_DOORS, SUMO_ATTR_CARRIAGE_GAP, SUMO_ATTR_CARRIAGE_LENGTH, SUMO_ATTR_COLOR, SUMO_ATTR_CONTAINER_CAPACITY, SUMO_ATTR_DESIRED_MAXSPEED, SUMO_ATTR_EMISSIONCLASS, SUMO_ATTR_GUISHAPE, SUMO_ATTR_HEIGHT, SUMO_ATTR_ID, SUMO_ATTR_IMGFILE, SUMO_ATTR_IMPATIENCE, SUMO_ATTR_KEY, SUMO_ATTR_LANE_CHANGE_MODEL, SUMO_ATTR_LATALIGNMENT, SUMO_ATTR_LENGTH, SUMO_ATTR_LOADING_DURATION, SUMO_ATTR_LOCOMOTIVE_LENGTH, SUMO_ATTR_MANEUVER_ANGLE_TIMES, SUMO_ATTR_MASS, 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_SCALE, SUMO_ATTR_SPEEDFACTOR, SUMO_ATTR_SPEEDFACTOR_PREMATURE, SUMO_ATTR_TIME_TO_TELEPORT, SUMO_ATTR_TIME_TO_TELEPORT_BIDI, SUMO_ATTR_VALUE, SUMO_ATTR_VCLASS, SUMO_ATTR_WIDTH, SUMO_TAG_PARAM, SUMO_TAG_VTYPE, time2string(), timeToTeleport, timeToTeleportBidi, toString(), vehicleClass, VTYPEPARS_ACTIONSTEPLENGTH_SET, VTYPEPARS_BOARDING_DURATION, VTYPEPARS_CAR_FOLLOW_MODEL, VTYPEPARS_CARRIAGE_DOORS_SET, VTYPEPARS_CARRIAGE_GAP_SET, VTYPEPARS_CARRIAGE_LENGTH_SET, VTYPEPARS_COLOR_SET, VTYPEPARS_CONTAINER_CAPACITY, VTYPEPARS_DESIRED_MAXSPEED_SET, 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_LOCOMOTIVE_LENGTH_SET, VTYPEPARS_MANEUVER_ANGLE_TIMES_SET, VTYPEPARS_MASS_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_SCALE_SET, VTYPEPARS_SHAPE_SET, VTYPEPARS_SPEEDFACTOR_PREMATURE_SET, VTYPEPARS_SPEEDFACTOR_SET, VTYPEPARS_TTT_BIDI_SET, VTYPEPARS_TTT_SET, VTYPEPARS_VEHICLECLASS_SET, VTYPEPARS_WIDTH_SET, wasSet(), width, OutputDevice::writeAttr(), and Parameterised::writeParams().

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

Here is the caller graph for this function:

◆ writeParams()

void Parameterised::writeParams ( OutputDevice device) const
inherited

write Params in the given outputdevice

Definition at line 188 of file Parameterised.cpp.

References OutputDevice::closeTag(), StringUtils::escapeXML(), Parameterised::myMap, OutputDevice::openTag(), SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_PARAM, and OutputDevice::writeAttr().

Referenced by MSStageWaiting::routeOutput(), MSTransportable::routeOutput(), ROPerson::saveAsXML(), ROVehicle::saveAsXML(), MEVehicle::saveState(), MSVehicle::saveState(), MSStop::write(), write(), SUMOVehicleParameter::Stop::write(), NBPTStop::write(), MSRailSignalConstraint_Predecessor::write(), GNEBusStop::writeAdditional(), GNECalibrator::writeAdditional(), GNECalibratorFlow::writeAdditional(), GNEChargingStation::writeAdditional(), GNEContainerStop::writeAdditional(), GNEInductionLoopDetector::writeAdditional(), GNEInstantInductionLoopDetector::writeAdditional(), GNELaneAreaDetector::writeAdditional(), GNEMultiEntryExitDetector::writeAdditional(), GNEOverheadWire::writeAdditional(), GNEParkingArea::writeAdditional(), GNEParkingSpace::writeAdditional(), GNERerouter::writeAdditional(), GNERouteProbe::writeAdditional(), GNETAZ::writeAdditional(), GNETractionSubstation::writeAdditional(), GNEVaporizer::writeAdditional(), GNEVariableSpeedSign::writeAdditional(), NWWriter_SUMO::writeConnection(), GNEContainer::writeDemandElement(), GNEPerson::writeDemandElement(), GNERoute::writeDemandElement(), GNEVehicle::writeDemandElement(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeJunction(), NWWriter_SUMO::writeLane(), NWWriter_XML::writeNodes(), MSDevice_Vehroutes::writeOutput(), NWWriter_SUMO::writeTrafficLight(), SUMOPolygon::writeXML(), and PointOfInterest::writeXML().

Here is the caller graph for this function:

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 282 of file SUMOVTypeParameter.h.

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

◆ AllowedJMAttrs

std::set< SumoXMLAttr > SUMOVTypeParameter::AllowedJMAttrs
static

allowed attrs for the junction model

Definition at line 406 of file SUMOVTypeParameter.h.

Referenced by SUMOVehicleParserHelper::parseJMParams().

◆ boardingDuration

◆ carriageDoors

int SUMOVTypeParameter::carriageDoors

the number of doors per carriage

Definition at line 373 of file SUMOVTypeParameter.h.

Referenced by MSTrainHelper::computeTrainDimensions(), SUMOVTypeParameter(), and write().

◆ carriageGap

◆ carriageLength

double SUMOVTypeParameter::carriageLength

◆ cfModel

◆ cfParameter

◆ color

◆ containerCapacity

◆ defaultProbability

◆ desiredMaxSpeed

◆ emissionClass

◆ frontSeatPos

double SUMOVTypeParameter::frontSeatPos

the offset of the first person seat from the front of the vehicle

Definition at line 385 of file SUMOVTypeParameter.h.

Referenced by MSVehicleType::getFrontSeatPos(), and initRailVisualizationParameters().

◆ height

◆ id

◆ imgFile

std::string SUMOVTypeParameter::imgFile

◆ impatience

double SUMOVTypeParameter::impatience

◆ jmParameter

SubParams SUMOVTypeParameter::jmParameter

◆ latAlignmentOffset

double SUMOVTypeParameter::latAlignmentOffset

◆ latAlignmentProcedure

◆ lcModel

◆ lcParameter

◆ length

◆ loadingDuration

◆ locomotiveLength

◆ mass

◆ maxSpeed

◆ maxSpeedLat

double SUMOVTypeParameter::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 473 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 400 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 403 of file SUMOVTypeParameter.h.

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

◆ parkingBadges

std::vector<std::string> SUMOVTypeParameter::parkingBadges

◆ personCapacity

◆ saved

bool SUMOVTypeParameter::saved
mutable

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

Definition at line 397 of file SUMOVTypeParameter.h.

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

◆ scale

◆ seatingWidth

double SUMOVTypeParameter::seatingWidth

width to be used when comping seats

Definition at line 388 of file SUMOVTypeParameter.h.

Referenced by MSVehicleType::getSeatingWidth(), and initRailVisualizationParameters().

◆ shape

◆ speedFactor

◆ speedFactorPremature

double SUMOVTypeParameter::speedFactorPremature

the possible speed reduction when a train is ahead of schedule

Definition at line 382 of file SUMOVTypeParameter.h.

Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicle::planMoveInternal(), MSVehicle::slowDownForSchedule(), and write().

◆ timeToTeleport

SUMOTime SUMOVTypeParameter::timeToTeleport

the custom time-to-teleport for this type

Definition at line 376 of file SUMOVTypeParameter.h.

Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), getTimeToTeleport(), and write().

◆ timeToTeleportBidi

SUMOTime SUMOVTypeParameter::timeToTeleportBidi

the custom time-to-teleport.bidi for this type

Definition at line 379 of file SUMOVTypeParameter.h.

Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), getTimeToTeleportBidi(), and write().

◆ vehicleClass

◆ width


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