Eclipse SUMO - Simulation of Urban MObility
GNEDemandElementFlow Class Reference

#include <GNEDemandElementFlow.h>

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

Public Types

typedef std::map< std::string, std::string > Map
 parameters map More...
 

Public Member Functions

void clearParameter ()
 Clears the parameter map. More...
 
bool defaultOptionOverrides (const OptionsCont &oc, const std::string &optionName) const
 Returns whether the defaults shall be used. 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...
 
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...
 
bool hasParameter (const std::string &key) const
 Returns whether the parameter is set. More...
 
void incrementFlow (double scale, SumoRNG *rng=nullptr)
 increment flow More...
 
void mergeParameters (const Parameterised::Map &mapArg, const std::string separator=" ", bool uniqueValues=true)
 Adds or appends all given parameters from the map. 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...
 
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 (int what) const
 Returns whether the given parameter was set. More...
 
void write (OutputDevice &dev, const OptionsCont &oc, const SumoXMLTag altTag=SUMO_TAG_VEHICLE, const std::string &typeID="") const
 Writes the parameters as a beginning element. More...
 
void writeParams (OutputDevice &device) const
 write Params in the given outputdevice 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 double interpretEdgePos (double pos, double maximumValue, SumoXMLAttr attr, const std::string &id, bool silent=false)
 Interprets negative edge positions and fits them onto a given edge. More...
 
static ParkingType parseParkingType (const std::string &value)
 parses parking type value More...
 
static bool parsePersonModes (const std::string &modes, const std::string &element, const std::string &id, SVCPermissions &modeSet, std::string &error)
 Validates a given person modes value. More...
 
static void parseStopTriggers (const std::vector< std::string > &triggers, bool expectTrigger, Stop &stop)
 parses stop trigger values More...
 
Depart/arrival-attributes verification
static bool parseDepart (const std::string &val, const std::string &element, const std::string &id, SUMOTime &depart, DepartDefinition &dd, std::string &error, const std::string &attr="departure")
 Validates a given depart value. More...
 
static bool parseDepartLane (const std::string &val, const std::string &element, const std::string &id, int &lane, DepartLaneDefinition &dld, std::string &error)
 Validates a given departLane value. More...
 
static bool parseDepartPos (const std::string &val, const std::string &element, const std::string &id, double &pos, DepartPosDefinition &dpd, std::string &error)
 Validates a given departPos value. More...
 
static bool parseDepartPosLat (const std::string &val, const std::string &element, const std::string &id, double &pos, DepartPosLatDefinition &dpd, std::string &error)
 Validates a given departPosLat value. More...
 
static bool parseDepartSpeed (const std::string &val, const std::string &element, const std::string &id, double &speed, DepartSpeedDefinition &dsd, std::string &error)
 Validates a given departSpeed value. More...
 
static bool parseRouteIndex (const std::string &val, const std::string &element, const std::string &id, const SumoXMLAttr attr, int &edgeIndex, RouteIndexDefinition &rid, std::string &error)
 Validates a given departEdge or arrivalEdge value. More...
 
static bool parseArrivalLane (const std::string &val, const std::string &element, const std::string &id, int &lane, ArrivalLaneDefinition &ald, std::string &error)
 Validates a given arrivalLane value. More...
 
static bool parseArrivalPos (const std::string &val, const std::string &element, const std::string &id, double &pos, ArrivalPosDefinition &apd, std::string &error)
 Validates a given arrivalPos value. More...
 
static bool parseArrivalPosLat (const std::string &val, const std::string &element, const std::string &id, double &pos, ArrivalPosLatDefinition &apd, std::string &error)
 Validates a given arrivalPosLat value. More...
 
static bool parseArrivalSpeed (const std::string &val, const std::string &element, const std::string &id, double &speed, ArrivalSpeedDefinition &asd, std::string &error)
 Validates a given arrivalSpeed value. More...
 

Data Fields

double calibratorSpeed
 speed (used by calibrator flows More...
 
RGBColor color
 The vehicle's color, TraCI may change this. More...
 
int containerNumber
 The static number of containers in the vehicle when it departs. More...
 
std::string fromTaz
 The vehicle's origin zone (district) More...
 
std::string id
 The vehicle's id. More...
 
int insertionChecks
 bitset of InsertionCheck More...
 
std::string line
 The vehicle's line (mainly for public transport) More...
 
SVCPermissions modes
 The modes a person or container can use. More...
 
int parametersSet
 Information for the router which parameter were set, TraCI may modify this (when changing color) More...
 
std::vector< std::string > parkingBadges
 The parking access rights. More...
 
int personNumber
 The static number of persons in the vehicle when it departs (not including boarding persons) More...
 
std::string routeid
 The vehicle's route id. More...
 
double speedFactor
 individual speedFactor (overriding distribution from vType) More...
 
std::vector< Stopstops
 List of the stops the vehicle will make, TraCI may add entries here. More...
 
SumoXMLTag tag
 The vehicle tag. More...
 
std::string toTaz
 The vehicle's destination zone (district) More...
 
std::vector< std::string > via
 List of the via-edges the vehicle must visit. More...
 
std::string vtypeid
 The vehicle's type id. More...
 
std::string vTypes
 The types of usable (auto-generated) vehicles for a person / container. More...
 
Departure definition

The vehicle's departure time

SUMOTime depart
 
DepartDefinition departProcedure
 Information how the vehicle shall choose the depart time. More...
 
int departLane
 (optional) The lane the vehicle shall depart from (index in edge) More...
 
DepartLaneDefinition departLaneProcedure
 Information how the vehicle shall choose the lane to depart from. More...
 
double departPos
 (optional) The position the vehicle shall depart from More...
 
DepartPosDefinition departPosProcedure
 Information how the vehicle shall choose the departure position. More...
 
double departPosLat
 (optional) The lateral position the vehicle shall depart from More...
 
DepartPosLatDefinition departPosLatProcedure
 Information how the vehicle shall choose the lateral departure position. More...
 
double departSpeed
 (optional) The initial speed of the vehicle More...
 
DepartSpeedDefinition departSpeedProcedure
 Information how the vehicle's initial speed shall be chosen. More...
 
int departEdge
 (optional) The initial edge within the route of the vehicle More...
 
RouteIndexDefinition departEdgeProcedure
 Information how the vehicle's initial edge shall be chosen. More...
 
Arrival definition

(optional) The lane the vehicle shall arrive on (not used yet)

int arrivalLane
 
ArrivalLaneDefinition arrivalLaneProcedure
 Information how the vehicle shall choose the lane to arrive on. More...
 
double arrivalPos
 (optional) The position the vehicle shall arrive on More...
 
ArrivalPosDefinition arrivalPosProcedure
 Information how the vehicle shall choose the arrival position. More...
 
double arrivalPosLat
 (optional) The lateral position the vehicle shall arrive on More...
 
ArrivalPosLatDefinition arrivalPosLatProcedure
 Information how the vehicle shall choose the lateral arrival position. More...
 
double arrivalSpeed
 (optional) The final speed of the vehicle (not used yet) More...
 
ArrivalSpeedDefinition arrivalSpeedProcedure
 Information how the vehicle's end speed shall be chosen. More...
 
int arrivalEdge
 (optional) The final edge within the route of the vehicle More...
 
RouteIndexDefinition arrivalEdgeProcedure
 Information how the vehicle's final edge shall be chosen. More...
 
Repetition definition

The number of times the vehicle shall be repeatedly inserted

int repetitionNumber
 
int repetitionsDone
 The number of times the vehicle was already inserted. More...
 
SUMOTime repetitionOffset
 The time offset between vehicle reinsertions. More...
 
SUMOTime repetitionTotalOffset
 The offset between depart and the time for the next vehicle insertions. More...
 
double repetitionProbability
 The probability for emitting a vehicle per second. More...
 
double poissonRate
 The rate for emitting vehicles with a poisson distribution. More...
 
SUMOTime repetitionEnd
 The time at which the flow ends (only needed when using repetitionProbability) More...
 

Protected Member Functions

bool areInsertionChecksValid (const std::string &value) const
 check if given insertion checks are valid More...
 
void drawFlowLabel (const Position &position, const double rotation, const double width, const double length, const double exaggeration) const
 draw flow label More...
 
std::string getArrivalEdge () const
 obtain arrival edge parameter in string format More...
 
std::string getArrivalLane () const
 obtain arrival lane parameter in string format More...
 
std::string getArrivalPos () const
 obtain arrival pos parameter in string format More...
 
std::string getArrivalPosLat () const
 obtain arrival pos lat parameter in string format More...
 
std::string getArrivalSpeed () const
 obtain arrival speed parameter in string format More...
 
std::string getDepart () const
 obtain depart parameter in string format More...
 
std::string getDepartEdge () const
 obtain depart edge parameter in string format More...
 
std::string getDepartLane () const
 obtain depart lane parameter in string format More...
 
std::string getDepartPos () const
 obtain depart pos parameter in string format More...
 
std::string getDepartPosLat () const
 obtain depart pos lat parameter in string format More...
 
std::string getDepartSpeed () const
 obtain depart speed parameter in string format More...
 
std::string getInsertionChecks () const
 get insertion checks in string format More...
 
 GNEDemandElementFlow (const GNEDemandElement *flowElement)
 constructor More...
 
 GNEDemandElementFlow (const GNEDemandElement *flowElement, const SUMOVehicleParameter &vehicleParameters)
 constructor with parameters More...
 
void parseInsertionChecks (const std::string &value)
 parses insertion checks More...
 
void writeFlowAttributes (const GNEDemandElement *flowElement, OutputDevice &device) const
 write flow attributes More...
 
 ~GNEDemandElementFlow ()
 destructor 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...
 
std::string getFlowAttribute (SumoXMLAttr key) const
 inherited from GNEAttributeCarrier and adapted to GNEDemandElementFlow More...
 
double getFlowAttributeDouble (SumoXMLAttr key) const
 
void setFlowAttribute (GNEDemandElement *flowElement, SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
 
bool isValidFlowAttribute (GNEDemandElement *flowElement, SumoXMLAttr key, const std::string &value)
 
void enableFlowAttribute (GNEDemandElement *flowElement, SumoXMLAttr key, GNEUndoList *undoList)
 
void disableFlowAttribute (GNEDemandElement *flowElement, SumoXMLAttr key, GNEUndoList *undoList)
 
bool isFlowAttributeEnabled (SumoXMLAttr key) const
 
void setFlowAttribute (const GNEDemandElement *flowElement, SumoXMLAttr key, const std::string &value)
 method for setting the attribute and nothing else More...
 
void toggleFlowAttribute (const SumoXMLAttr attribute, const bool value)
 toggle flow parameters (used in toggleAttribute(...) function of vehicles, persons and containers More...
 
void setDefaultFlowAttributes (const GNEDemandElement *flowElement)
 set flow default attributes More...
 
std::string adjustDecimalValue (const double value) const
 adjust decimal value More...
 
 GNEDemandElementFlow (const GNEDemandElementFlow &)=delete
 Invalidated copy constructor. More...
 
GNEDemandElementFlowoperator= (const GNEDemandElementFlow &)=delete
 Invalidated assignment operator. More...
 

Detailed Description

Definition at line 38 of file GNEDemandElementFlow.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.

Constructor & Destructor Documentation

◆ GNEDemandElementFlow() [1/3]

GNEDemandElementFlow::GNEDemandElementFlow ( const GNEDemandElement flowElement)
protected

constructor

Definition at line 32 of file GNEDemandElementFlow.cpp.

References setDefaultFlowAttributes().

◆ GNEDemandElementFlow() [2/3]

GNEDemandElementFlow::GNEDemandElementFlow ( const GNEDemandElement flowElement,
const SUMOVehicleParameter vehicleParameters 
)
protected

constructor with parameters

Definition at line 38 of file GNEDemandElementFlow.cpp.

References setDefaultFlowAttributes().

◆ ~GNEDemandElementFlow()

GNEDemandElementFlow::~GNEDemandElementFlow ( )
protected

destructor

Definition at line 45 of file GNEDemandElementFlow.cpp.

◆ GNEDemandElementFlow() [3/3]

GNEDemandElementFlow::GNEDemandElementFlow ( const GNEDemandElementFlow )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ adjustDecimalValue()

std::string GNEDemandElementFlow::adjustDecimalValue ( const double  value) const
private

adjust decimal value

Definition at line 415 of file GNEDemandElementFlow.cpp.

References toString().

Referenced by getFlowAttribute().

Here is the caller graph for this function:

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

◆ areInsertionChecksValid()

bool SUMOVehicleParameter::areInsertionChecksValid ( const std::string &  value) const
protectedinherited

check if given insertion checks are valid

Definition at line 1107 of file SUMOVehicleParameter.cpp.

References StringTokenizer::hasNext(), SUMOXMLDefinitions::InsertionChecks, and StringTokenizer::next().

Referenced by GNECalibratorFlow::isValid(), and GNEVehicle::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

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

◆ defaultOptionOverrides()

bool SUMOVehicleParameter::defaultOptionOverrides ( const OptionsCont oc,
const std::string &  optionName 
) const
inherited

Returns whether the defaults shall be used.

Parameters
[in]ocThe options to get the options from
[in]optionNameThe name of the option to determine whether its value shall be used
Returns
Whether the option is set and –defaults-override was set

Definition at line 70 of file SUMOVehicleParameter.cpp.

References OptionsCont::exists(), OptionsCont::getBool(), and OptionsCont::isSet().

Referenced by SUMOVehicleParameter::write().

Here is the caller graph for this function:

◆ disableFlowAttribute()

void GNEDemandElementFlow::disableFlowAttribute ( GNEDemandElement flowElement,
SumoXMLAttr  key,
GNEUndoList undoList 
)
protected

◆ drawFlowLabel()

void GNEDemandElementFlow::drawFlowLabel ( const Position position,
const double  rotation,
const double  width,
const double  length,
const double  exaggeration 
) const
protected

draw flow label

Definition at line 49 of file GNEDemandElementFlow.cpp.

References RGBColor::BLACK, RGBColor::CYAN, GLHelper::drawBoxLine(), GLHelper::drawText(), GLO_PERSONFLOW, RGBColor::GREY, GLHelper::popMatrix(), GLHelper::pushMatrix(), GLHelper::setColor(), Position::x(), and Position::y().

Referenced by GNEContainer::drawGL(), GNEPerson::drawGL(), and GNEVehicle::drawGL().

Here is the caller graph for this function:

◆ enableFlowAttribute()

void GNEDemandElementFlow::enableFlowAttribute ( GNEDemandElement flowElement,
SumoXMLAttr  key,
GNEUndoList undoList 
)
protected

◆ getArrivalEdge()

std::string SUMOVehicleParameter::getArrivalEdge ( ) const
protectedinherited

obtain arrival edge parameter in string format

Definition at line 962 of file SUMOVehicleParameter.cpp.

References SUMOVehicleParameter::arrivalEdge, SUMOVehicleParameter::arrivalEdgeProcedure, DEFAULT, GIVEN, RANDOM, and toString().

Referenced by SUMOVehicleParameter::write().

Here is the caller graph for this function:

◆ getArrivalLane()

std::string SUMOVehicleParameter::getArrivalLane ( ) const
protectedinherited

obtain arrival lane parameter in string format

Definition at line 982 of file SUMOVehicleParameter.cpp.

References SUMOVehicleParameter::arrivalLane, SUMOVehicleParameter::arrivalLaneProcedure, CURRENT, DEFAULT, FIRST_ALLOWED, GIVEN, RANDOM, and toString().

Referenced by GNECalibratorFlow::getAttribute(), GNEVehicle::getAttribute(), and SUMOVehicleParameter::write().

Here is the caller graph for this function:

◆ getArrivalPos()

std::string SUMOVehicleParameter::getArrivalPos ( ) const
protectedinherited

obtain arrival pos parameter in string format

Definition at line 1006 of file SUMOVehicleParameter.cpp.

References SUMOVehicleParameter::arrivalPos, SUMOVehicleParameter::arrivalPosProcedure, CENTER, DEFAULT, GIVEN, MAX, RANDOM, and toString().

Referenced by GNECalibratorFlow::getAttribute(), GNEVehicle::getAttribute(), and SUMOVehicleParameter::write().

Here is the caller graph for this function:

◆ getArrivalPosLat()

std::string SUMOVehicleParameter::getArrivalPosLat ( ) const
protectedinherited

obtain arrival pos lat parameter in string format

Definition at line 1030 of file SUMOVehicleParameter.cpp.

References SUMOVehicleParameter::arrivalPosLat, SUMOVehicleParameter::arrivalPosLatProcedure, CENTER, DEFAULT, GIVEN, LEFT, RIGHT, and toString().

Referenced by GNECalibratorFlow::getAttribute(), GNEVehicle::getAttribute(), and SUMOVehicleParameter::write().

Here is the caller graph for this function:

◆ getArrivalSpeed()

std::string SUMOVehicleParameter::getArrivalSpeed ( ) const
protectedinherited

obtain arrival speed parameter in string format

Definition at line 1054 of file SUMOVehicleParameter.cpp.

References SUMOVehicleParameter::arrivalSpeed, SUMOVehicleParameter::arrivalSpeedProcedure, CURRENT, DEFAULT, GIVEN, and toString().

Referenced by GNECalibratorFlow::getAttribute(), GNEVehicle::getAttribute(), and SUMOVehicleParameter::write().

Here is the caller graph for this function:

◆ getDepart()

std::string SUMOVehicleParameter::getDepart ( ) const
protectedinherited

obtain depart parameter in string format

Definition at line 783 of file SUMOVehicleParameter.cpp.

References BEGIN, CONTAINER_TRIGGERED, SUMOVehicleParameter::depart, SUMOVehicleParameter::departProcedure, SPLIT, time2string(), and TRIGGERED.

Referenced by SUMOVehicleParameter::write().

Here is the caller graph for this function:

◆ getDepartEdge()

std::string SUMOVehicleParameter::getDepartEdge ( ) const
protectedinherited

obtain depart edge parameter in string format

Definition at line 945 of file SUMOVehicleParameter.cpp.

References DEFAULT, SUMOVehicleParameter::departEdge, SUMOVehicleParameter::departEdgeProcedure, GIVEN, RANDOM, and toString().

Referenced by SUMOVehicleParameter::write().

Here is the caller graph for this function:

◆ getDepartLane()

std::string SUMOVehicleParameter::getDepartLane ( ) const
protectedinherited

obtain depart lane parameter in string format

Definition at line 801 of file SUMOVehicleParameter.cpp.

References ALLOWED_FREE, BEST_FREE, DEFAULT, SUMOVehicleParameter::departLane, SUMOVehicleParameter::departLaneProcedure, FIRST_ALLOWED, FREE, GIVEN, RANDOM, and toString().

Referenced by GNECalibratorFlow::getAttribute(), GNEVehicle::getAttribute(), and SUMOVehicleParameter::write().

Here is the caller graph for this function:

◆ getDepartPos()

std::string SUMOVehicleParameter::getDepartPos ( ) const
protectedinherited

obtain depart pos parameter in string format

Definition at line 831 of file SUMOVehicleParameter.cpp.

References BASE, DEFAULT, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosProcedure, FREE, GIVEN, GIVEN_VEHROUTE, gPrecision, gPrecisionRandom, LAST, MAX2(), StringUtils::pruneZeros(), RANDOM, RANDOM_FREE, RANDOM_LOCATION, SPLIT_FRONT, STOP, and toString().

Referenced by GNECalibratorFlow::getAttribute(), GNEContainer::getAttribute(), GNEPerson::getAttribute(), GNEVehicle::getAttribute(), GNEContainer::getMoveOperation(), GNEPerson::getMoveOperation(), and SUMOVehicleParameter::write().

Here is the caller graph for this function:

◆ getDepartPosLat()

std::string SUMOVehicleParameter::getDepartPosLat ( ) const
protectedinherited

obtain depart pos lat parameter in string format

Definition at line 873 of file SUMOVehicleParameter.cpp.

References CENTER, DEFAULT, SUMOVehicleParameter::departPosLat, SUMOVehicleParameter::departPosLatProcedure, FREE, GIVEN, GIVEN_VEHROUTE, gPrecision, gPrecisionRandom, LEFT, MAX2(), StringUtils::pruneZeros(), RANDOM, RANDOM_FREE, RIGHT, and toString().

Referenced by GNECalibratorFlow::getAttribute(), GNEVehicle::getAttribute(), and SUMOVehicleParameter::write().

Here is the caller graph for this function:

◆ getDepartSpeed()

std::string SUMOVehicleParameter::getDepartSpeed ( ) const
protectedinherited

obtain depart speed parameter in string format

Definition at line 909 of file SUMOVehicleParameter.cpp.

References AVG, DEFAULT, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, DESIRED, GIVEN, GIVEN_VEHROUTE, gPrecision, gPrecisionRandom, LAST, LIMIT, MAX, MAX2(), StringUtils::pruneZeros(), RANDOM, and toString().

Referenced by GNECalibratorFlow::getAttribute(), GNEVehicle::getAttribute(), and SUMOVehicleParameter::write().

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:

◆ getFlowAttribute()

◆ getFlowAttributeDouble()

double GNEDemandElementFlow::getFlowAttributeDouble ( SumoXMLAttr  key) const
protected

Definition at line 146 of file GNEDemandElementFlow.cpp.

References SUMOVehicleParameter::depart, STEPS2TIME, SUMO_ATTR_BEGIN, SUMO_ATTR_DEPART, and toString().

Referenced by GNEContainer::getAttributeDouble(), GNEPerson::getAttributeDouble(), and GNEVehicle::getAttributeDouble().

Here is the caller graph for this function:

◆ getInsertionChecks()

std::string SUMOVehicleParameter::getInsertionChecks ( ) const
protectedinherited

get insertion checks in string format

Definition at line 1089 of file SUMOVehicleParameter.cpp.

References ALL, StringBijection< T >::getString(), StringBijection< T >::getValues(), SUMOVehicleParameter::insertionChecks, SUMOXMLDefinitions::InsertionChecks, and toString().

Referenced by GNECalibratorFlow::getAttribute(), and GNEVehicle::getAttribute().

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(), SUMOVTypeParameter::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_SSM::getOutputFilename(), MSSimpleTrafficLightLogic::getParameter(), NEMALogic::getParameter(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSBaseVehicle::getPrefixedParameter(), GUIBaseVehicle::getScaleValue(), LIBSUMO_NAMESPACE::Vehicle::getStopParameter(), SUMOTrafficObject::getStringParam(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), MSRailSignalConstraint::getVehID(), MSStoppingPlaceRerouter::getWeight(), MSRailSignal::hasInsertionConstraint(), MSLink::ignoreFoe(), MSSOTLPhasePolicy::init(), MSStageDriving::init(), PushButtonLogic::init(), SigmoidLogic::init(), SUMOVTypeParameter::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

◆ 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_SSM::getOutputFilename(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSStoppingPlaceRerouter::getWeight(), MSStageDriving::init(), SUMOVTypeParameter::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:

◆ incrementFlow()

void SUMOVehicleParameter::incrementFlow ( double  scale,
SumoRNG rng = nullptr 
)
inherited

◆ interpretEdgePos()

double SUMOVehicleParameter::interpretEdgePos ( double  pos,
double  maximumValue,
SumoXMLAttr  attr,
const std::string &  id,
bool  silent = false 
)
staticinherited

Interprets negative edge positions and fits them onto a given edge.

Parameters
[in]posThe position to be interpreted
[in]maximumValueThe maximum allowed value (edge length)
[in]attrThe attribute from which the value originated
[in]idThe id of the object to which this attribute belongs
Returns
Whether the interpreted position

Definition at line 681 of file SUMOVehicleParameter.cpp.

References TL, toString(), and WRITE_WARNINGF.

Referenced by MSRouteHandler::addRideOrTransport(), MSRouteHandler::addStop(), MSStageDriving::canLeaveVehicle(), MSStageTranship::MSStageTranship(), MSStageWalking::MSStageWalking(), and SUMOVehicleParserHelper::parseWalkPos().

Here is the caller graph for this function:

◆ isFlowAttributeEnabled()

bool GNEDemandElementFlow::isFlowAttributeEnabled ( SumoXMLAttr  key) const
protected

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

◆ isValidFlowAttribute()

bool GNEDemandElementFlow::isValidFlowAttribute ( GNEDemandElement flowElement,
SumoXMLAttr  key,
const std::string &  value 
)
protected

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

◆ operator=()

GNEDemandElementFlow& GNEDemandElementFlow::operator= ( const GNEDemandElementFlow )
privatedelete

Invalidated assignment operator.

◆ parseArrivalLane()

bool SUMOVehicleParameter::parseArrivalLane ( const std::string &  val,
const std::string &  element,
const std::string &  id,
int &  lane,
ArrivalLaneDefinition ald,
std::string &  error 
)
staticinherited

Validates a given arrivalLane value.

Parameters
[in]valThe arrivalLane value to parse
[in]elementThe name of the type of the parsed element, for building the error message
[in]idThe id of the parsed element, for building the error message
[out]laneThe parsed lane, if given
[out]aldThe parsed arrivalLane definition
[out]errorError message, if an error occures
Returns
Whether the given value is a valid arrivalLane definition

Definition at line 559 of file SUMOVehicleParameter.cpp.

References CURRENT, FIRST_ALLOWED, GIVEN, RANDOM, and StringUtils::toInt().

Referenced by LIBSUMO_NAMESPACE::Vehicle::add(), RODUAFrame::checkOptions(), ROJTRFrame::checkOptions(), checkOptions(), GNEVehicle::isValid(), SUMOVehicleParserHelper::parseCommonAttributes(), GNECalibratorFlow::setAttribute(), and GNEVehicle::setAttribute().

Here is the caller graph for this function:

◆ parseArrivalPos()

bool SUMOVehicleParameter::parseArrivalPos ( const std::string &  val,
const std::string &  element,
const std::string &  id,
double &  pos,
ArrivalPosDefinition apd,
std::string &  error 
)
staticinherited

Validates a given arrivalPos value.

Parameters
[in]valThe arrivalPos value to parse
[in]elementThe name of the type of the parsed element, for building the error message
[in]idThe id of the parsed element, for building the error message
[out]posThe parsed position, if given
[out]apdThe parsed arrivalPos definition
[out]errorError message, if an error occures
Returns
Whether the given value is a valid arrivalPos definition

Definition at line 592 of file SUMOVehicleParameter.cpp.

References CENTER, GIVEN, MAX, RANDOM, and StringUtils::toDouble().

Referenced by LIBSUMO_NAMESPACE::Vehicle::add(), RODUAFrame::checkOptions(), ROJTRFrame::checkOptions(), checkOptions(), GNEVehicle::isValid(), SUMOVehicleParserHelper::parseCommonAttributes(), SUMOVehicleParserHelper::parseWalkPos(), GNECalibratorFlow::setAttribute(), and GNEVehicle::setAttribute().

Here is the caller graph for this function:

◆ parseArrivalPosLat()

bool SUMOVehicleParameter::parseArrivalPosLat ( const std::string &  val,
const std::string &  element,
const std::string &  id,
double &  pos,
ArrivalPosLatDefinition apd,
std::string &  error 
)
staticinherited

Validates a given arrivalPosLat value.

Parameters
[in]valThe arrivalPosLat value to parse
[in]elementThe name of the type of the parsed element, for building the error message
[in]idThe id of the parsed element, for building the error message
[out]posThe parsed position, if given
[out]apdThe parsed arrivalPosLat definition
[out]errorError message, if an error occures
Returns
Whether the given value is a valid arrivalPosLat definition

Definition at line 622 of file SUMOVehicleParameter.cpp.

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

Referenced by GNEVehicle::isValid(), SUMOVehicleParserHelper::parseCommonAttributes(), GNECalibratorFlow::setAttribute(), and GNEVehicle::setAttribute().

Here is the caller graph for this function:

◆ parseArrivalSpeed()

bool SUMOVehicleParameter::parseArrivalSpeed ( const std::string &  val,
const std::string &  element,
const std::string &  id,
double &  speed,
ArrivalSpeedDefinition asd,
std::string &  error 
)
staticinherited

Validates a given arrivalSpeed value.

Parameters
[in]valThe arrivalSpeed value to parse
[in]elementThe name of the type of the parsed element, for building the error message
[in]idThe id of the parsed element, for building the error message
[out]speedThe parsed speed, if given
[out]asdThe parsed arrivalSpeed definition
[out]errorError message, if an error occures
Returns
Whether the given value is a valid arrivalSpeed definition

Definition at line 652 of file SUMOVehicleParameter.cpp.

References CURRENT, GIVEN, and StringUtils::toDouble().

Referenced by LIBSUMO_NAMESPACE::Vehicle::add(), RODUAFrame::checkOptions(), ROJTRFrame::checkOptions(), checkOptions(), GNEVehicle::isValid(), SUMOVehicleParserHelper::parseCommonAttributes(), GNECalibratorFlow::setAttribute(), and GNEVehicle::setAttribute().

Here is the caller graph for this function:

◆ parseDepart()

bool SUMOVehicleParameter::parseDepart ( const std::string &  val,
const std::string &  element,
const std::string &  id,
SUMOTime depart,
DepartDefinition dd,
std::string &  error,
const std::string &  attr = "departure" 
)
staticinherited

Validates a given depart value.

Parameters
[in]valThe depart value to parse
[in]elementThe name of the type of the parsed element, for building the error message
[in]idThe id of the parsed element, for building the error message
[out]departThe parsed depart time, if given
[out]ddThe parsed departProcedure definition
[out]errorError message, if an error occures
Returns
Whether the given value is a valid depart definition

Definition at line 343 of file SUMOVehicleParameter.cpp.

References BEGIN, CONTAINER_TRIGGERED, SUMOVehicleParameter::depart, GIVEN, NOW, SPLIT, string2time(), and TRIGGERED.

Referenced by LIBSUMO_NAMESPACE::Vehicle::add(), isValidFlowAttribute(), SUMOVehicleParserHelper::parseFlowAttributes(), SUMOVehicleParserHelper::parseVehicleAttributes(), and setFlowAttribute().

Here is the caller graph for this function:

◆ parseDepartLane()

bool SUMOVehicleParameter::parseDepartLane ( const std::string &  val,
const std::string &  element,
const std::string &  id,
int &  lane,
DepartLaneDefinition dld,
std::string &  error 
)
staticinherited

Validates a given departLane value.

Parameters
[in]valThe departLane value to parse
[in]elementThe name of the type of the parsed element, for building the error message
[in]idThe id of the parsed element, for building the error message
[out]laneThe parsed lane, if given
[out]dldThe parsed departLane definition
[out]errorError message, if an error occures
Returns
Whether the given value is a valid departLane definition

Definition at line 378 of file SUMOVehicleParameter.cpp.

References ALLOWED_FREE, BEST_FREE, FIRST_ALLOWED, FREE, GIVEN, RANDOM, and StringUtils::toInt().

Referenced by LIBSUMO_NAMESPACE::Vehicle::add(), RODUAFrame::checkOptions(), ROJTRFrame::checkOptions(), checkOptions(), GNEVehicle::isValid(), SUMOVehicleParserHelper::parseCommonAttributes(), GNECalibratorFlow::setAttribute(), GNEVehicle::setAttribute(), and LIBSUMO_NAMESPACE::Calibrator::setFlow().

Here is the caller graph for this function:

◆ parseDepartPos()

bool SUMOVehicleParameter::parseDepartPos ( const std::string &  val,
const std::string &  element,
const std::string &  id,
double &  pos,
DepartPosDefinition dpd,
std::string &  error 
)
staticinherited

Validates a given departPos value.

Parameters
[in]valThe departPos value to parse
[in]elementThe name of the type of the parsed element, for building the error message
[in]idThe id of the parsed element, for building the error message
[out]posThe parsed position, if given
[out]dpdThe parsed departPos definition
[out]errorError message, if an error occures
Returns
Whether the given value is a valid departPos definition

Definition at line 415 of file SUMOVehicleParameter.cpp.

References BASE, FREE, GIVEN, LAST, RANDOM, RANDOM_FREE, RANDOM_LOCATION, SPLIT_FRONT, STOP, and StringUtils::toDouble().

Referenced by LIBSUMO_NAMESPACE::Vehicle::add(), RODUAFrame::checkOptions(), ROJTRFrame::checkOptions(), checkOptions(), GNEContainer::isValid(), GNEPerson::isValid(), GNEVehicle::isValid(), MSParkingArea::MSParkingArea(), SUMOVehicleParserHelper::parseCommonAttributes(), GNECalibratorFlow::setAttribute(), GNEContainer::setAttribute(), GNEPerson::setAttribute(), and GNEVehicle::setAttribute().

Here is the caller graph for this function:

◆ parseDepartPosLat()

bool SUMOVehicleParameter::parseDepartPosLat ( const std::string &  val,
const std::string &  element,
const std::string &  id,
double &  pos,
DepartPosLatDefinition dpd,
std::string &  error 
)
staticinherited

Validates a given departPosLat value.

Parameters
[in]valThe departPosLat value to parse
[in]elementThe name of the type of the parsed element, for building the error message
[in]idThe id of the parsed element, for building the error message
[out]posThe parsed position, if given
[out]dpdThe parsed departPosLat definition
[out]errorError message, if an error occures
Returns
Whether the given value is a valid departPosLat definition

Definition at line 455 of file SUMOVehicleParameter.cpp.

References CENTER, FREE, GIVEN, LEFT, RANDOM, RANDOM_FREE, RIGHT, and StringUtils::toDouble().

Referenced by MSRouteHandler::interpretDepartPosLat(), GNEVehicle::isValid(), SUMOVehicleParserHelper::parseCommonAttributes(), GNECalibratorFlow::setAttribute(), and GNEVehicle::setAttribute().

Here is the caller graph for this function:

◆ parseDepartSpeed()

bool SUMOVehicleParameter::parseDepartSpeed ( const std::string &  val,
const std::string &  element,
const std::string &  id,
double &  speed,
DepartSpeedDefinition dsd,
std::string &  error 
)
staticinherited

Validates a given departSpeed value.

Parameters
[in]valThe departSpeed value to parse
[in]elementThe name of the type of the parsed element, for building the error message
[in]idThe id of the parsed element, for building the error message
[out]speedThe parsed speed, if given
[out]dsdThe parsed departSpeed definition
[out]errorError message, if an error occures
Returns
Whether the given value is a valid departSpeed definition

Definition at line 491 of file SUMOVehicleParameter.cpp.

References AVG, DESIRED, GIVEN, LAST, LIMIT, MAX, RANDOM, and StringUtils::toDouble().

Referenced by LIBSUMO_NAMESPACE::Vehicle::add(), RODUAFrame::checkOptions(), ROJTRFrame::checkOptions(), checkOptions(), GNEVehicle::isValid(), SUMOVehicleParserHelper::parseCommonAttributes(), GNECalibratorFlow::setAttribute(), GNEVehicle::setAttribute(), and LIBSUMO_NAMESPACE::Calibrator::setFlow().

Here is the caller graph for this function:

◆ parseInsertionChecks()

void SUMOVehicleParameter::parseInsertionChecks ( const std::string &  value)
protectedinherited

parses insertion checks

Definition at line 1125 of file SUMOVehicleParameter.cpp.

References ALL, nlohmann::detail::get(), StringTokenizer::hasNext(), SUMOVehicleParameter::insertionChecks, SUMOXMLDefinitions::InsertionChecks, and StringTokenizer::next().

Referenced by GNECalibratorFlow::setAttribute(), and GNEVehicle::setAttribute().

Here is the caller graph for this function:

◆ parseParkingType()

ParkingType SUMOVehicleParameter::parseParkingType ( const std::string &  value)
staticinherited

parses parking type value

Definition at line 745 of file SUMOVehicleParameter.cpp.

References OFFROAD, ONROAD, OPPORTUNISTIC, StringUtils::toBool(), and toString().

Referenced by MSDevice_Taxi::prepareStop(), GNEStop::setAttribute(), and LIBSUMO_NAMESPACE::Vehicle::setStopParameter().

Here is the caller graph for this function:

◆ parsePersonModes()

bool SUMOVehicleParameter::parsePersonModes ( const std::string &  modes,
const std::string &  element,
const std::string &  id,
SVCPermissions modeSet,
std::string &  error 
)
staticinherited

Validates a given person modes value.

Parameters
[in]modesThe modes value to parse
[in]elementThe name of the type of the parsed element, for building the error message
[in]idThe id of the parsed element, for building the error message
[out]modeSetThe parsed modes definition
[out]errorError message, if an error occures
Returns
Whether the given value is a valid arrivalSpeed definition

Definition at line 696 of file SUMOVehicleParameter.cpp.

References StringTokenizer::hasNext(), SUMOVehicleParameter::modes, SVC_BICYCLE, SVC_BUS, SVC_PASSENGER, and SVC_TAXI.

Referenced by MSRouteHandler::addPersonTrip(), GNEPersonTrip::isValid(), SUMOVehicleParserHelper::parseCommonAttributes(), and RouteHandler::parsePersonTrip().

Here is the caller graph for this function:

◆ parseRouteIndex()

bool SUMOVehicleParameter::parseRouteIndex ( const std::string &  val,
const std::string &  element,
const std::string &  id,
const SumoXMLAttr  attr,
int &  edgeIndex,
RouteIndexDefinition rid,
std::string &  error 
)
staticinherited

Validates a given departEdge or arrivalEdge value.

Parameters
[in]valThe departEdge value to parse
[in]elementThe name of the type of the parsed element, for building the error message
[in]idThe id of the parsed element, for building the error message
[out]edgeIndexThe parsed edge index, if given
[out]dedThe parsed departEdge definition
[out]errorError message, if an error occures
Returns
Whether the given value is a valid departEdge definition

Definition at line 530 of file SUMOVehicleParameter.cpp.

References GIVEN, RANDOM, StringUtils::toInt(), and toString().

Referenced by SUMOVehicleParserHelper::parseCommonAttributes().

Here is the caller graph for this function:

◆ parseStopTriggers()

void SUMOVehicleParameter::parseStopTriggers ( const std::vector< std::string > &  triggers,
bool  expectTrigger,
Stop stop 
)
staticinherited

parses stop trigger values

Definition at line 722 of file SUMOVehicleParameter.cpp.

References SUMOVehicleParameter::Stop::containerTriggered, SUMOVehicleParameter::Stop::joinTriggered, SUMO_ATTR_JOIN, SUMO_TAG_CONTAINER, SUMO_TAG_PERSON, TL, StringUtils::toBool(), toString(), SUMOVehicleParameter::Stop::triggered, and WRITE_ERROR.

Referenced by SUMORouteHandler::parseStop(), RouteHandler::parseStopParameters(), and LIBSUMO_NAMESPACE::Vehicle::setStopParameter().

Here is the caller graph for this function:

◆ setDefaultFlowAttributes()

void GNEDemandElementFlow::setDefaultFlowAttributes ( const GNEDemandElement flowElement)
private

◆ setFlowAttribute() [1/2]

◆ setFlowAttribute() [2/2]

void GNEDemandElementFlow::setFlowAttribute ( GNEDemandElement flowElement,
SumoXMLAttr  key,
const std::string &  value,
GNEUndoList undoList 
)
protected

◆ 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(), NIXMLConnectionsHandler::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::reroute().

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(), 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(), GNEPoly::setAttribute(), and GNEDetector::setDetectorAttribute().

Here is the caller graph for this function:

◆ toggleFlowAttribute()

void GNEDemandElementFlow::toggleFlowAttribute ( const SumoXMLAttr  attribute,
const bool  value 
)
protected

toggle flow parameters (used in toggleAttribute(...) function of vehicles, persons and containers

Definition at line 327 of file GNEDemandElementFlow.cpp.

References GNE_ATTR_POISSON, SUMOVehicleParameter::parametersSet, SUMO_ATTR_CONTAINERSPERHOUR, SUMO_ATTR_END, SUMO_ATTR_NUMBER, SUMO_ATTR_PERIOD, SUMO_ATTR_PERSONSPERHOUR, SUMO_ATTR_PROB, SUMO_ATTR_VEHSPERHOUR, VEHPARS_END_SET, VEHPARS_NUMBER_SET, VEHPARS_PERIOD_SET, VEHPARS_POISSON_SET, VEHPARS_PROB_SET, and VEHPARS_VPH_SET.

Referenced by setDefaultFlowAttributes(), GNEContainer::toggleAttribute(), GNEPerson::toggleAttribute(), and GNEVehicle::toggleAttribute().

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 SUMOVehicleParameter::wasSet ( int  what) const
inlineinherited

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 490 of file SUMOVehicleParameter.h.

References SUMOVehicleParameter::parametersSet.

Referenced by MSRouteHandler::addStop(), MSRouteHandler::addVehicleStopsToImplicitRoute(), MSTransportableDevice_Routing::buildDevices(), GNERouteHandler::buildEmbeddedRoute(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowJunctions(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowTAZs(), GNERouteHandler::buildTrip(), GNERouteHandler::buildTripJunctions(), GNERouteHandler::buildTripTAZs(), MSDevice_Routing::buildVehicleDevices(), GNERouteHandler::buildVehicleOverRoute(), MSStageDriving::canLeaveVehicle(), MSRouteHandler::closeVehicle(), GUIBaseVehicle::drawStopLabels(), LIBSUMO_NAMESPACE::TrafficLight::findConstraintsDeadLocks(), GNECalibratorFlow::getAttribute(), GNEContainer::getAttribute(), GNEPerson::getAttribute(), GNEVehicle::getAttribute(), GNEVehicle::getAttributeDouble(), GNEDemandElement::getColorByScheme(), MSBaseVehicle::getParkingBadges(), MSBaseVehicle::getRouteValidity(), MSLink::ignoreFoe(), MEVehicle::loadState(), MSVehicle::loadState(), LIBSUMO_NAMESPACE::Vehicle::moveTo(), MSBaseVehicle::MSBaseVehicle(), MSDevice_Routing::MSDevice_Routing(), ROMARouteHandler::myEndElement(), ROMARouteHandler::myStartElement(), MSRouteHandler::parseFromViaTo(), RORouteHandler::parseFromViaTo(), MSBaseVehicle::saveState(), MSTransportable::saveState(), GUIBaseVehicle::setFunctionalColor(), GUIPerson::setFunctionalColor(), GNEVehicle::updateGeometry(), MSEdge::validateDepartSpeed(), SUMOVehicleParameter::write(), MSDevice_Vehroutes::writeOutput(), and MSDevice_Vehroutes::writeXMLRoute().

Here is the caller graph for this function:

◆ write()

void SUMOVehicleParameter::write ( OutputDevice dev,
const OptionsCont oc,
const SumoXMLTag  altTag = SUMO_TAG_VEHICLE,
const std::string &  typeID = "" 
) const
inherited

Writes the parameters as a beginning element.

Parameters
[in,out]devThe device to write into
[in]ocThe options to get defaults from
[in]altTagThe "root" tag to write (defaults to vehicle)
[in]typeIDThe typeID to write (defaults to member vtypeid)
Exceptions
IOErrornot yet implemented

Definition at line 76 of file SUMOVehicleParameter.cpp.

References ALL, SUMOVehicleParameter::arrivalEdge, SUMOVehicleParameter::calibratorSpeed, SUMOVehicleParameter::color, SUMOVehicleParameter::containerNumber, SUMOVehicleParameter::defaultOptionOverrides(), OptionsCont::exists(), SUMOVehicleParameter::fromTaz, SUMOVehicleParameter::getArrivalEdge(), SUMOVehicleParameter::getArrivalLane(), SUMOVehicleParameter::getArrivalPos(), SUMOVehicleParameter::getArrivalPosLat(), SUMOVehicleParameter::getArrivalSpeed(), SUMOVehicleParameter::getDepart(), SUMOVehicleParameter::getDepartEdge(), SUMOVehicleParameter::getDepartLane(), SUMOVehicleParameter::getDepartPos(), SUMOVehicleParameter::getDepartPosLat(), SUMOVehicleParameter::getDepartSpeed(), OptionsCont::getString(), GNE_TAG_FLOW_ROUTE, GNE_TAG_FLOW_WITHROUTE, gPrecisionRandom, SUMOVehicleParameter::insertionChecks, SUMOXMLDefinitions::InsertionChecks, OptionsCont::isSet(), joinToString(), SUMOVehicleParameter::line, MAX2(), NONE, OutputDevice::openTag(), SUMOVehicleParameter::parkingBadges, SUMOVehicleParameter::personNumber, OutputDevice::precision(), OutputDevice::setPrecision(), SUMOVehicleParameter::speedFactor, SUMO_ATTR_ARRIVALEDGE, SUMO_ATTR_ARRIVALLANE, SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_ARRIVALPOS_LAT, SUMO_ATTR_ARRIVALSPEED, SUMO_ATTR_BEGIN, SUMO_ATTR_COLOR, SUMO_ATTR_CONTAINER_NUMBER, SUMO_ATTR_DEPART, SUMO_ATTR_DEPARTEDGE, SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_DEPARTPOS_LAT, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_FROM_TAZ, SUMO_ATTR_ID, SUMO_ATTR_INSERTIONCHECKS, SUMO_ATTR_LINE, SUMO_ATTR_PARKING_BADGES, SUMO_ATTR_PERSON_NUMBER, SUMO_ATTR_SPEED, SUMO_ATTR_SPEEDFACTOR, SUMO_ATTR_TO_TAZ, SUMO_ATTR_TYPE, SUMO_TAG_CONTAINERFLOW, SUMO_TAG_FLOW, SUMO_TAG_FLOWSTATE, SUMO_TAG_PERSONFLOW, toString(), SUMOVehicleParameter::toTaz, VEHPARS_ARRIVALEDGE_SET, VEHPARS_ARRIVALLANE_SET, VEHPARS_ARRIVALPOS_SET, VEHPARS_ARRIVALPOSLAT_SET, VEHPARS_ARRIVALSPEED_SET, VEHPARS_CALIBRATORSPEED_SET, VEHPARS_COLOR_SET, VEHPARS_CONTAINER_NUMBER_SET, VEHPARS_DEPARTEDGE_SET, VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTPOS_SET, VEHPARS_DEPARTPOSLAT_SET, VEHPARS_DEPARTSPEED_SET, VEHPARS_FROM_TAZ_SET, VEHPARS_LINE_SET, VEHPARS_PARKING_BADGES_SET, VEHPARS_PERSON_NUMBER_SET, VEHPARS_SPEEDFACTOR_SET, VEHPARS_TO_TAZ_SET, VEHPARS_VTYPE_SET, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), OutputDevice::writeAttr(), and OutputDevice::writeNonEmptyAttr().

Referenced by computeRoutes(), MSTransportable::routeOutput(), ROPerson::saveAsXML(), ROVehicle::saveAsXML(), MSBaseVehicle::saveState(), MSTransportable::saveState(), GNECalibratorFlow::writeAdditional(), GNEContainer::writeDemandElement(), GNEPerson::writeDemandElement(), GNEVehicle::writeDemandElement(), and MSDevice_Vehroutes::writeOutput().

Here is the caller graph for this function:

◆ writeFlowAttributes()

void GNEDemandElementFlow::writeFlowAttributes ( const GNEDemandElement flowElement,
OutputDevice device 
) const
protected

◆ 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(), SUMOVTypeParameter::write(), SUMOVehicleParameter::Stop::write(), NBPTStop::write(), MSRailSignalConstraint_Predecessor::write(), GNEBusStop::writeAdditional(), GNECalibrator::writeAdditional(), GNECalibratorFlow::writeAdditional(), GNEChargingStation::writeAdditional(), GNEContainerStop::writeAdditional(), GNEEntryExitDetector::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

◆ arrivalEdge

◆ arrivalEdgeProcedure

RouteIndexDefinition SUMOVehicleParameter::arrivalEdgeProcedure
inherited

◆ arrivalLane

◆ arrivalLaneProcedure

◆ arrivalPos

◆ arrivalPosLat

double SUMOVehicleParameter::arrivalPosLat
inherited

◆ arrivalPosLatProcedure

ArrivalPosLatDefinition SUMOVehicleParameter::arrivalPosLatProcedure
inherited

◆ arrivalPosProcedure

◆ arrivalSpeed

◆ arrivalSpeedProcedure

◆ calibratorSpeed

double SUMOVehicleParameter::calibratorSpeed
inherited

◆ color

◆ containerNumber

int SUMOVehicleParameter::containerNumber
inherited

◆ depart

SUMOTime SUMOVehicleParameter::depart
inherited

Definition at line 679 of file SUMOVehicleParameter.h.

Referenced by LIBSUMO_NAMESPACE::Person::add(), LIBSUMO_NAMESPACE::Vehicle::add(), ODMatrix::add(), MSTransportableControl::add(), MSVehicleContainer::add(), RONet::addFlow(), RORouteHandler::addFlowPerson(), MSRouteHandler::addFlowTransportable(), MSRouteHandler::addPersonTrip(), RORouteHandler::addRide(), MSRouteHandler::addRideOrTransport(), IntermodalNetwork< E, L, N, V >::addSchedule(), MSRouteHandler::addStop(), MSBaseVehicle::addStops(), MSRouteHandler::addTranship(), RORouteHandler::addTransport(), MSBaseVehicle::addTransportable(), MSRouteHandler::addWalk(), RONet::checkFlows(), SUMORouteHandler::checkLastDepart(), MSTransportableControl::checkWaiting(), RORouteHandler::closeContainer(), RORouteHandler::closeContainerFlow(), MSRouteHandler::closeFlow(), RORouteHandler::closeFlow(), RORouteHandler::closePersonFlow(), MSRouteHandler::closeTransportable(), MSRouteHandler::closeTransportableFlow(), MSStateHandler::closeVehicle(), MSRouteHandler::closeVehicle(), RORouteHandler::closeVehicle(), ROPerson::computeRoute(), MSInsertionControl::determineCandidates(), MSTransportableControl::erase(), METriggeredCalibrator::execute(), MSCalibrator::execute(), LIBSUMO_NAMESPACE::TrafficLight::findConstraintsDeadLocks(), MSTransportableControl::fixLoadCount(), MSDevice_Tripinfo::generateOutput(), MSDevice_Tripinfo::generateOutputForUnfinished(), GNECalibratorFlow::getAttribute(), GNECalibratorFlow::getAttributeDouble(), RORoutable::getDepart(), SUMOVehicleParameter::getDepart(), MSBaseVehicle::getDepartDelay(), MSTransportable::getDesiredDepart(), getFlowAttribute(), getFlowAttributeDouble(), MSTransportable::loadState(), MSDevice_FCDReplay::FCDHandler::makePlan(), MSDevice_Routing::MSDevice_Routing(), MSDevice_Taxi::MSDevice_Taxi(), ROJTRTurnDefLoader::myStartElement(), MSDevice_Vehroutes::notifyEnter(), AdditionalHandler::parseCalibratorFlowAttributes(), SUMOVehicleParameter::parseDepart(), SUMOVehicleParserHelper::parseFlowAttributes(), SUMOVehicleParserHelper::parseVehicleAttributes(), SUMORouteHandler::registerLastDepart(), MSVehicleContainer::remove(), MSBaseVehicle::replaceRoute(), MSTransportable::saveState(), MSStageTrip::setArrived(), GNECalibratorFlow::setAttribute(), RORoutable::setDepart(), setFlowAttribute(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToFlowJunctions(), GNERouteHandler::transformToFlowTAZs(), GNERouteHandler::transformToRouteFlow(), METriggeredCalibrator::tryEmit(), MSInsertionControl::tryInsert(), MSDevice_FCDReplay::FCDHandler::updateTrafficObjects(), MSVehicleControl::vehicleDeparted(), and MSDevice_Vehroutes::writeOutput().

◆ departEdge

◆ departEdgeProcedure

RouteIndexDefinition SUMOVehicleParameter::departEdgeProcedure
inherited

◆ departLane

◆ departLaneProcedure

◆ departPos

◆ departPosLat

double SUMOVehicleParameter::departPosLat
inherited

◆ departPosLatProcedure

DepartPosLatDefinition SUMOVehicleParameter::departPosLatProcedure
inherited

◆ departPosProcedure

◆ departProcedure

◆ departSpeed

◆ departSpeedProcedure

◆ fromTaz

◆ id

std::string SUMOVehicleParameter::id
inherited

The vehicle's id.

Definition at line 665 of file SUMOVehicleParameter.h.

Referenced by LIBSUMO_NAMESPACE::Person::add(), LIBSUMO_NAMESPACE::Vehicle::add(), MSTransportableControl::add(), MSInsertionControl::addFlow(), RONet::addFlow(), RORouteHandler::addFlowPerson(), MSRouteHandler::addFlowTransportable(), MSRouteHandler::addPersonTrip(), RORouteHandler::addPersonTrip(), RORouteHandler::addRide(), MSRouteHandler::addRideOrTransport(), IntermodalNetwork< E, L, N, V >::addSchedule(), MSRouteHandler::addStop(), RORouteHandler::addStop(), MSBaseVehicle::addStop(), MSRouteHandler::addTranship(), RORouteHandler::addTransport(), MSRouteHandler::addTransportable(), ROPerson::addTrip(), MSRouteHandler::addVehicleStopsToImplicitRoute(), MSRouteHandler::addWalk(), RORouteHandler::addWalk(), GNERouteHandler::buildContainer(), GNERouteHandler::buildContainerFlow(), GNERouteHandler::buildEmbeddedRoute(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowJunctions(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowTAZs(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildTrip(), GNERouteHandler::buildTripJunctions(), GNERouteHandler::buildTripTAZs(), GNERouteHandler::buildVehicleOverRoute(), RONet::checkFlows(), SUMORouteHandler::checkLastDepart(), RORouteHandler::closeContainer(), RORouteHandler::closeContainerFlow(), MSRouteHandler::closeFlow(), RORouteHandler::closeFlow(), RORouteHandler::closePerson(), RORouteHandler::closePersonFlow(), MSRouteHandler::closeRoute(), RORouteHandler::closeRoute(), MSRouteHandler::closeTransportable(), MSRouteHandler::closeTransportableFlow(), MSStateHandler::closeVehicle(), MSRouteHandler::closeVehicle(), RORouteHandler::closeVehicle(), MSInsertionControl::determineCandidates(), METriggeredCalibrator::execute(), MSCalibrator::execute(), LIBSUMO_NAMESPACE::Simulation::findRoute(), RORoutable::getID(), MSEdge::insertVehicle(), MSRouteHandler::interpretDepartPosLat(), MSDevice_FCDReplay::FCDHandler::makePlan(), ROMARouteHandler::myEndElement(), MSStateHandler::myStartElement(), SUMORouteHandler::myStartElement(), MSRouteHandler::myStartElement(), RORouteHandler::myStartElement(), MSRouteHandler::openRoute(), RORouteHandler::openRoute(), MSRouteHandler::openRouteDistribution(), RORouteHandler::openRouteDistribution(), SUMOVehicleParserHelper::parseCommonAttributes(), RouteHandler::parseFlow(), SUMOVehicleParserHelper::parseFlowAttributes(), MSRouteHandler::parseFromViaTo(), RORouteHandler::parseFromViaTo(), RouteHandler::parseTrip(), SUMOVehicleParserHelper::parseVehicleAttributes(), GNERouteHandler::transformToContainer(), GNERouteHandler::transformToContainerFlow(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToFlowJunctions(), GNERouteHandler::transformToFlowTAZs(), GNERouteHandler::transformToPerson(), GNERouteHandler::transformToPersonFlow(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToTrip(), GNERouteHandler::transformToTripJunctions(), GNERouteHandler::transformToTripTAZs(), GNERouteHandler::transformToVehicle(), MSDevice_FCDReplay::FCDHandler::updateTrafficObjects(), and MSEdge::validateDepartSpeed().

◆ insertionChecks

◆ line

◆ modes

SVCPermissions SUMOVehicleParameter::modes
inherited

The modes a person or container can use.

Definition at line 794 of file SUMOVehicleParameter.h.

Referenced by MSRouteHandler::addPersonTrip(), SUMOVehicleParserHelper::parseCommonAttributes(), and SUMOVehicleParameter::parsePersonModes().

◆ myMap

◆ parametersSet

int SUMOVehicleParameter::parametersSet
mutableinherited

Information for the router which parameter were set, TraCI may modify this (when changing color)

Definition at line 815 of file SUMOVehicleParameter.h.

Referenced by LIBSUMO_NAMESPACE::Vehicle::add(), MSRouteHandler::addPersonTrip(), ROPerson::addTrip(), MSRouteHandler::closeFlow(), MSRouteHandler::closeTrip(), MSRouteHandler::closeVehicle(), disableFlowAttribute(), enableFlowAttribute(), GNECalibratorFlow::getAttribute(), GNEVehicle::getAttribute(), GNECalibratorFlow::isAttributeEnabled(), isFlowAttributeEnabled(), MSTransportable::loadState(), MEVehicle::loadState(), MSVehicle::loadState(), MSBaseVehicle::MSBaseVehicle(), ROMARouteHandler::myStartElement(), MSCalibrator::myStartElement(), SUMORouteHandler::myStartElement(), AdditionalHandler::parseCalibratorFlowAttributes(), SUMOVehicleParserHelper::parseCommonAttributes(), SUMOVehicleParserHelper::parseFlowAttributes(), MEVehicle::saveState(), MSVehicle::saveState(), MSTransportable::saveState(), GNECalibratorFlow::setAttribute(), GNEContainer::setAttribute(), GNEPerson::setAttribute(), GNEVehicle::setAttribute(), MSBaseVehicle::setCarFollowModelParameter(), setDefaultFlowAttributes(), MSBaseVehicle::setJunctionModelParameter(), MSTransportable::setJunctionModelParameter(), GNEVehicle::setMoveShape(), MSDevice_ToC::setVehicleColor(), GNECalibratorFlow::toggleAttribute(), toggleFlowAttribute(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToFlowJunctions(), GNERouteHandler::transformToFlowTAZs(), GNERouteHandler::transformToRouteFlow(), SUMOVehicleParameter::wasSet(), GNEContainer::writeDemandElement(), GNEPerson::writeDemandElement(), GNEVehicle::writeDemandElement(), and MSDevice_Vehroutes::writeOutput().

◆ parkingBadges

std::vector<std::string> SUMOVehicleParameter::parkingBadges
inherited

◆ personNumber

int SUMOVehicleParameter::personNumber
inherited

◆ poissonRate

double SUMOVehicleParameter::poissonRate
inherited

The rate for emitting vehicles with a poisson distribution.

Definition at line 768 of file SUMOVehicleParameter.h.

Referenced by getFlowAttribute(), SUMOVehicleParameter::incrementFlow(), SUMOVehicleParserHelper::parseFlowAttributes(), setDefaultFlowAttributes(), and setFlowAttribute().

◆ repetitionEnd

◆ repetitionNumber

◆ repetitionOffset

◆ repetitionProbability

◆ repetitionsDone

int SUMOVehicleParameter::repetitionsDone
inherited

◆ repetitionTotalOffset

◆ routeid

◆ speedFactor

double SUMOVehicleParameter::speedFactor
inherited

individual speedFactor (overriding distribution from vType)

Definition at line 806 of file SUMOVehicleParameter.h.

Referenced by SUMOVehicleParserHelper::parseCommonAttributes(), SUMOVehicleParameter::write(), and MSDevice_Vehroutes::writeOutput().

◆ stops

◆ tag

◆ toTaz

◆ via

◆ vtypeid

std::string SUMOVehicleParameter::vtypeid
inherited

The vehicle's type id.

Definition at line 671 of file SUMOVehicleParameter.h.

Referenced by LIBSUMO_NAMESPACE::Vehicle::add(), ODMatrix::add(), MSInsertionControl::addFlow(), RORouteHandler::addFlowPerson(), MSRouteHandler::addStop(), RORouteHandler::addStop(), MSRouteHandler::addTranship(), MSRouteHandler::addTransportable(), ROPerson::addTrip(), GNEAdditionalHandler::buildCalibratorFlow(), GNERouteHandler::buildContainer(), GNERouteHandler::buildContainerFlow(), GNERouteHandler::buildEmbeddedRoute(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowJunctions(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowTAZs(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildTrip(), GNERouteHandler::buildTripJunctions(), GNERouteHandler::buildTripTAZs(), GNERouteHandler::buildVehicleOverRoute(), RONet::checkFlows(), MSRouteHandler::closeFlow(), RORouteHandler::closeFlow(), RORouteHandler::closePerson(), RORouteHandler::closePersonFlow(), MSRouteHandler::closeRoute(), MSRouteHandler::closeTransportable(), MSRouteHandler::closeTransportableFlow(), MSRouteHandler::closeVehicle(), RORouteHandler::closeVehicle(), computeRoutes(), MSInsertionControl::determineCandidates(), METriggeredCalibrator::execute(), MSCalibrator::execute(), GNECalibratorFlow::getAttribute(), GNEVehicle::getAttribute(), LIBSUMO_NAMESPACE::Calibrator::getTypeID(), MSCalibrator::myStartElement(), MSCalibrator::VehicleRemover::notifyEnter(), MSCalibrator::VehicleRemover::notifyLeave(), RORouteHandler::openRoute(), SUMOVehicleParserHelper::parseCommonAttributes(), SUMOVehicleParserHelper::parseFlowAttributes(), MSRouteHandler::parseFromViaTo(), RORouteHandler::parseFromViaTo(), SUMOVehicleParserHelper::parseVehicleAttributes(), METriggeredCalibrator::remainingVehicleCapacity(), MSCalibrator::remainingVehicleCapacity(), MSStageTrip::reroute(), MSBaseVehicle::saveState(), GNECalibratorFlow::setAttribute(), GNEContainer::setAttribute(), GNEPerson::setAttribute(), GNEVehicle::setAttribute(), LIBSUMO_NAMESPACE::Calibrator::setFlow(), MSCalibrator::setFlow(), and SUMOVehicleParameter::write().

◆ vTypes

std::string SUMOVehicleParameter::vTypes
inherited

The types of usable (auto-generated) vehicles for a person / container.

Definition at line 797 of file SUMOVehicleParameter.h.

Referenced by MSRouteHandler::addPersonTrip(), and SUMOVehicleParserHelper::parseCommonAttributes().


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