Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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
 
typedef std::map< SumoXMLAttr, std::string > SubParams
 sub-model parameters
 

Public Member Functions

void cacheParamRestrictions (const std::vector< std::string > &restrictionKeys)
 
void clearParameter ()
 Clears the parameter map.
 
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.
 
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.
 
double getDouble (const std::string &key, const double defaultValue) const
 Returns the value for a given key converted to a double.
 
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.
 
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)
 
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)
 
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.
 
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.
 
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.
 
const SubParamsgetLCParams () const
 Returns the LC parameter.
 
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.
 
double getLength () const
 satisfy vType / router template requirements
 
std::string getManoeuverAngleTimesS () const
 Returns myManoeuverAngleTimes as a string for xml output.
 
virtual const std::string getParameter (const std::string &key, const std::string defaultValue="") const
 Returns the value for a given key.
 
const Parameterised::MapgetParametersMap () const
 Returns the inner key/value map.
 
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".
 
SUMOTime getTimeToTeleport (SUMOTime defaultValue) const
 return time-to-teleport (either custom or default)
 
SUMOTime getTimeToTeleportBidi (SUMOTime defaultValue) const
 return time-to-teleport.bidi (either custom or default)
 
void initRailVisualizationParameters ()
 init Rail Visualization Parameters
 
bool knowsParameter (const std::string &key) const
 Returns whether the parameter is known.
 
void setManoeuverAngleTimes (const SUMOVehicleClass vclass)
 Initialise the default mapping between manoeuver angle and times dependant on vehicle class.
 
virtual void setParameter (const std::string &key, const std::string &value)
 Sets a parameter.
 
void setParameters (const Parameterised &params)
 set the inner key/value map in map<string, string> format
 
void setParametersMap (const Parameterised::Map &paramsMap)
 set the inner key/value map in map<string, string> format
 
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"
 
 SUMOVTypeParameter (const std::string &vtid, const SUMOVehicleClass vc=SVC_IGNORING)
 Constructor.
 
void unsetParameter (const std::string &key)
 Removes a parameter.
 
void updateParameters (const Parameterised::Map &mapArg)
 Adds or updates all given parameters from the map.
 
bool wasSet (long long int what) const
 Returns whether the given parameter was set.
 
void write (OutputDevice &dev) const
 Writes the vtype.
 
void writeParams (OutputDevice &device) const
 write Params in the given outputdevice
 
virtual ~SUMOVTypeParameter ()
 virtual destructor
 

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)
 
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"
 
static const SUMOVTypeParametergetDefault ()
 return the default parameters, this is a function due to the http://www.parashift.com/c++-faq/static-init-order.html
 
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.
 
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.
 
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.
 
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.
 
static std::vector< std::string > getLatAlignmentStrings ()
 return all valid strings for latAlignment
 
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.
 

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.
 
SUMOTime boardingDuration
 The time a person needs to board the vehicle.
 
double carriageGap
 
double carriageLength
 the length of train carriages and locomotive
 
SumoXMLTag cfModel
 The enum-representation of the car-following model to use.
 
SubParams cfParameter
 Car-following parameter.
 
RGBColor color
 The color.
 
int containerCapacity
 The container capacity of the vehicle.
 
double defaultProbability
 The probability when being added to a distribution without an explicit probability.
 
double desiredMaxSpeed
 The vehicle type's desired maximum speed [m/s].
 
SUMOEmissionClass emissionClass
 The emission class of this vehicle.
 
double frontSeatPos
 the offset of the first person seat from the front of the vehicle
 
std::string id
 The vehicle type's id.
 
double impatience
 The vehicle's impatience (willingness to obstruct others)
 
SubParams jmParameter
 Junction-model parameter.
 
double latAlignmentOffset
 (optional) The vehicle's desired lateral alignment as offset in m from center line
 
LatAlignmentDefinition latAlignmentProcedure
 Information on how the vehicle shall choose the lateral alignment.
 
LaneChangeModel lcModel
 The lane-change model to use.
 
SubParams lcParameter
 Lane-changing parameter.
 
double length
 The physical vehicle length.
 
SUMOTime loadingDuration
 The time a container needs to get loaded on the vehicle.
 
double locomotiveLength
 
double mass
 The mass.
 
double maxSpeed
 The vehicle type's (technical) maximum speed [m/s].
 
double maxSpeedLat
 The vehicle type's maximum lateral speed [m/s].
 
double minGap
 This class' free space in front of the vehicle itself.
 
double minGapLat
 The vehicle type's minimum lateral gap [m].
 
std::map< int, std::pair< SUMOTime, SUMOTime > > myManoeuverAngleTimes
 Map of manoeuver angles versus the times (entry, exit) to execute the manoeuver.
 
bool onlyReferenced
 Information whether this is a type-stub, being only referenced but not defined (needed by routers)
 
long long int parametersSet
 Information for the router which parameter were set.
 
std::vector< double > paramRestrictions
 cached value of parameters which may restrict access to certain edges
 
int personCapacity
 The person capacity of the vehicle.
 
bool saved
 Information whether this type was already saved (needed by routers)
 
double scale
 individual scaling factor (-1 for undefined)
 
double seatingWidth
 width to be used when comping seats
 
Distribution_Parameterized speedFactor
 The factor by which the maximum speed may deviate from the allowed max speed on the street.
 
double speedFactorPremature
 the possible speed reduction when a train is ahead of schedule
 
SUMOTime timeToTeleport
 the custom time-to-teleport for this type
 
SUMOTime timeToTeleportBidi
 the custom time-to-teleport.bidi for this type
 
SUMOVehicleClass vehicleClass
 The vehicle's class.
 
Values for drawing this class' vehicles
double width
 This class' width.
 
double height
 This class' height.
 
SUMOVehicleShape shape
 This class' shape.
 
std::string osgFile
 3D model file for this class
 
std::string imgFile
 Image file for this class.
 

Static Public Attributes

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

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"
 

Private Attributes

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

Detailed Description

Structure representing possible vehicle parameter.

Definition at line 119 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 236 of file SUMOVTypeParameter.h.

Constructor & Destructor Documentation

◆ SUMOVTypeParameter()

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

◆ ~SUMOVTypeParameter()

virtual SUMOVTypeParameter::~SUMOVTypeParameter ( )
inlinevirtual

virtual destructor

Definition at line 190 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 216 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 677 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 120 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NLHandler::beginEdgeParsing().

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 569 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 579 of file SUMOVTypeParameter.cpp.

References cfParameter.

Referenced by GNEVType::getAttribute(), 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 914 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 787 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().

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 823 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(), 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 854 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().

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 899 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()

◆ 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 99 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 634 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 647 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 615 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 625 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 450 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 589 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 609 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 599 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 398 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 660 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 MSActuatedTrafficLightLogic, MSSimpleTrafficLightLogic, and NEMALogic.

Definition at line 71 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NBEdge::addRestrictedLane(), FareModul::addStop(), NBEdge::append(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice_Battery::buildVehicleDevices(), ROEdge::cacheParamRestrictions(), cacheParamRestrictions(), MSRailSignal::constraintsAllow(), GUINet::createTLWrapper(), GNEEdge::drawEdgeName(), GNEGenericData::drawFilteredAttribute(), GNEConnection::drawGL(), GUIEdge::drawGL(), EnergyParams::EnergyParams(), MSDevice_SSM::filterByConflictType(), LIBSUMO_NAMESPACE::TrafficLight::findConstraintsDeadLocks(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), 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(), PushButtonLogic::init(), SigmoidLogic::init(), initRailVisualizationParameters(), MSAbstractLaneChangeModel::laneChangeOutput(), NWWriter_OpenDrive::mapmatchRoadObjects(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSDevice_GLOSA::notifyEnter(), MSRailSignalConstraint_Predecessor::PassedTracker::notifyEnter(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), MSDevice_SSM::requestsTrajectories(), MSDevice_Bluelight::resetVehicle(), GNEEdgeData::setColor(), GNEEdgeRelData::setColor(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), NBEdge::setOrigID(), 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 126 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NIImporter_SUMO::_loadNetwork(), NBEdge::addLane(), 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(), 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(), MSBaseVehicle::initTransientModelParams(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), GNETAZRelData::isGenericDataVisible(), GNEGenericData::isVisibleInspectDeleteSelect(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), 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 132 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 948 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 953 of file SUMOVTypeParameter.cpp.

References timeToTeleportBidi, and TTT_UNSET.

Referenced by MSLane::executeMovements().

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

References parseLatAlignment().

Referenced by GNEVType::isValid().

Here is the caller graph for this function:

◆ knowsParameter()

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

Returns whether the parameter is known.

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

Definition at line 65 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NBEdge::append(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), GUINet::createTLWrapper(), 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(), initRailVisualizationParameters(), MSEdge::insertVehicle(), NIImporter_OpenStreetMap::load(), NWWriter_OpenDrive::mapmatchRoadObjects(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), MSDevice_SSM::requestsTrajectories(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), 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:

◆ 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 920 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 347 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 MSRailCrossing, MSActuatedTrafficLightLogic, MSRailSignal, MSSimpleTrafficLightLogic, and NEMALogic.

Definition at line 45 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NLHandler::addDistrict(), RONetHandler::addParam(), SUMORouteHandler::addParam(), ShapeHandler::addPOI(), NBEdge::append(), NBOwnTLDef::buildNemaPhases(), MSParkingArea::enter(), NIImporter_MATSim::EdgesHandler::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), MSLane::isInsertionSuccess(), NBNodeCont::joinNodeCluster(), NBEdge::Lane::Lane(), NWWriter_OpenDrive::mapmatchRoadObjects(), MSStateHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIXMLTrafficLightsHandler::myStartElement(), ShapeHandler::myStartElement(), MSDevice_Bluelight::notifyMove(), GNEVType::setAttribute(), NBEdge::setJunctionPriority(), NIImporter_OpenDrive::setLaneAttributes(), MSRailCrossing::setParameter(), MSActuatedTrafficLightLogic::setParameter(), MSRailSignal::setParameter(), MSSimpleTrafficLightLogic::setParameter(), NEMALogic::setParameter(), LIBSUMO_NAMESPACE::Simulation::setParameter(), Parameterised::setParameters(), Parameterised::setParametersMap(), 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 148 of file Parameterised.cpp.

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

◆ setParametersMap()

void Parameterised::setParametersMap ( const Parameterised::Map paramsMap)
inherited

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

Definition at line 159 of file Parameterised.cpp.

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

Referenced by GNESingleParametersDialog::onCmdAccept().

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

References parametersSet.

Referenced by MSRouteHandler::closeTransportable(), GNEVType::getAttribute(), GNEVType::getAttributeDouble(), GUIVehicle::getTypeParameterWindow(), GNEVType::isAttributeEnabled(), MSVehicleType::MSVehicleType(), 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 395 of file SUMOVTypeParameter.cpp.

References actionStepLength, ARBITRARY, boardingDuration, SUMOXMLDefinitions::CarFollowModels, 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_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_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 185 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 277 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 395 of file SUMOVTypeParameter.h.

Referenced by SUMOVehicleParserHelper::parseJMParams().

◆ boardingDuration

◆ 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 377 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

double SUMOVTypeParameter::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 462 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 389 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 392 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 386 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 380 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 374 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 368 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 371 of file SUMOVTypeParameter.h.

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

◆ vehicleClass

◆ width


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