![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Structure representing possible vehicle parameter. More...
#include <SUMOVTypeParameter.h>
Data Structures | |
struct | VClassDefaultValues |
struct for default values that depend of VClass More... | |
Public Types | |
typedef std::map< std::string, std::string > | Map |
parameters map More... | |
typedef std::map< SumoXMLAttr, std::string > | SubParams |
sub-model parameters More... | |
Public Member Functions | |
void | cacheParamRestrictions (const std::vector< std::string > &restrictionKeys) |
void | clearParameter () |
Clears the parameter map. More... | |
double | getCFParam (const SumoXMLAttr attr, const double defaultValue) const |
Returns the named value from the map, or the default if it is not contained there. More... | |
std::string | getCFParamString (const SumoXMLAttr attr, const std::string defaultValue) const |
Returns the named value from the map, or the default if it is not contained there. More... | |
double | getDouble (const std::string &key, const double defaultValue) const |
Returns the value for a given key converted to a double. More... | |
std::vector< double > | getDoubles (const std::string &key, std::vector< double > defaultValue=std::vector< double >()) const |
Returns the value for a given key converted to a list of doubles. More... | |
SUMOTime | getEntryManoeuvreTime (const int angle) const |
Returns the time that will be needed for the vehicle type to execute the (entry) manoeuvre (and be blocking the lane) More... | |
SUMOTime | getExitManoeuvreTime (const int angle) const |
Returns the time that will be needed for the vehicle type to execute the (exit) manoeuvre (and be blocking the lane) More... | |
double | getJMParam (const SumoXMLAttr attr, const double defaultValue) const |
Returns the named value from the map, or the default if it is not contained there. More... | |
std::string | getJMParamString (const SumoXMLAttr attr, const std::string defaultValue) const |
Returns the named value from the map, or the default if it is not contained there. More... | |
double | getLCParam (const SumoXMLAttr attr, const double defaultValue) const |
Returns the named value from the map, or the default if it is not contained there. More... | |
const SubParams & | getLCParams () const |
Returns the LC parameter. More... | |
std::string | getLCParamString (const SumoXMLAttr attr, const std::string &defaultValue) const |
Returns the named value from the map, or the default if it is not contained there. More... | |
double | getLength () const |
satisfy vType / router template requirements More... | |
std::string | getManoeuverAngleTimesS () const |
Returns myManoeuverAngleTimes as a string for xml output. More... | |
virtual const std::string | getParameter (const std::string &key, const std::string defaultValue="") const |
Returns the value for a given key. More... | |
const Parameterised::Map & | getParametersMap () const |
Returns the inner key/value map. More... | |
std::string | getParametersStr (const std::string kvsep="=", const std::string sep="|") const |
Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN". More... | |
SUMOTime | getTimeToTeleport (SUMOTime defaultValue) const |
return time-to-teleport (either custom or default) More... | |
SUMOTime | getTimeToTeleportBidi (SUMOTime defaultValue) const |
return time-to-teleport.bidi (either custom or default) More... | |
void | initRailVisualizationParameters () |
init Rail Visualization Parameters More... | |
bool | knowsParameter (const std::string &key) const |
Returns whether the parameter is known. More... | |
void | setManoeuverAngleTimes (const SUMOVehicleClass vclass) |
Initialise the default mapping between manoeuver angle and times dependant on vehicle class. More... | |
virtual void | setParameter (const std::string &key, const std::string &value) |
Sets a parameter. More... | |
void | setParameters (const Parameterised ¶ms) |
set the inner key/value map in map<string, string> format More... | |
void | setParametersMap (const Parameterised::Map ¶msMap) |
set the inner key/value map in map<string, string> format More... | |
void | setParametersStr (const std::string ¶msString, const std::string kvsep="=", const std::string sep="|") |
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN" More... | |
SUMOVTypeParameter (const std::string &vtid, const SUMOVehicleClass vc=SVC_IGNORING) | |
Constructor. More... | |
void | unsetParameter (const std::string &key) |
Removes a parameter. More... | |
void | updateParameters (const Parameterised::Map &mapArg) |
Adds or updates all given parameters from the map. More... | |
bool | wasSet (long long int what) const |
Returns whether the given parameter was set. More... | |
void | write (OutputDevice &dev) const |
Writes the vtype. More... | |
void | writeParams (OutputDevice &device) const |
write Params in the given outputdevice More... | |
virtual | ~SUMOVTypeParameter () |
virtual destructor More... | |
Static Public Member Functions | |
static bool | areAttributesValid (const std::string &value, bool report=false, const std::string kvsep="=", const std::string sep="|") |
check if given string can be parsed to an attributes map "key1=value1|key2=value2|...|keyN=valueN" (used in generic datas) More... | |
static bool | areParametersValid (const std::string &value, bool report=false, const std::string kvsep="=", const std::string sep="|") |
check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN" More... | |
static const SUMOVTypeParameter & | getDefault () |
return the default parameters, this is a function due to the http://www.parashift.com/c++-faq/static-init-order.html More... | |
static double | getDefaultAccel (const SUMOVehicleClass vc=SVC_IGNORING) |
Returns the default acceleration for the given vehicle class This needs to be a function because the actual value is stored in the car following model. More... | |
static double | getDefaultDecel (const SUMOVehicleClass vc=SVC_IGNORING) |
Returns the default deceleration for the given vehicle class This needs to be a function because the actual value is stored in the car following model. More... | |
static double | getDefaultEmergencyDecel (const SUMOVehicleClass vc, double decel, double defaultOption) |
Returns the default emergency deceleration for the given vehicle class This needs to be a function because the actual value is stored in the car following model. More... | |
static double | getDefaultImperfection (const SUMOVehicleClass vc=SVC_IGNORING) |
Returns the default driver's imperfection (sigma or epsilon in Krauss' model) for the given vehicle class This needs to be a function because the actual value is stored in the car following model. More... | |
static std::vector< std::string > | getLatAlignmentStrings () |
return all valid strings for latAlignment More... | |
static bool | isValidLatAlignment (const std::string &val) |
static bool | parseLatAlignment (const std::string &val, double &lao, LatAlignmentDefinition &lad) |
Parses and validates a given latAlignment value. More... | |
Data Fields | |
SUMOTime | actionStepLength |
The vehicle type's default actionStepLength [ms], i.e. the interval between two control actions. The default value of 0ms. induces the value to be traced from MSGlobals::gActionStepLength. More... | |
SUMOTime | boardingDuration |
The time a person needs to board the vehicle. More... | |
double | carriageGap |
double | carriageLength |
the length of train carriages and locomotive More... | |
SumoXMLTag | cfModel |
The enum-representation of the car-following model to use. More... | |
SubParams | cfParameter |
Car-following parameter. More... | |
RGBColor | color |
The color. More... | |
int | containerCapacity |
The container capacity of the vehicle. More... | |
double | defaultProbability |
The probability when being added to a distribution without an explicit probability. More... | |
double | desiredMaxSpeed |
The vehicle type's desired maximum speed [m/s]. More... | |
SUMOEmissionClass | emissionClass |
The emission class of this vehicle. More... | |
double | frontSeatPos |
the offset of the first person seat from the front of the vehicle More... | |
std::string | id |
The vehicle type's id. More... | |
double | impatience |
The vehicle's impatience (willingness to obstruct others) More... | |
SubParams | jmParameter |
Junction-model parameter. More... | |
double | latAlignmentOffset |
(optional) The vehicle's desired lateral alignment as offset in m from center line More... | |
LatAlignmentDefinition | latAlignmentProcedure |
Information on how the vehicle shall choose the lateral alignment. More... | |
LaneChangeModel | lcModel |
The lane-change model to use. More... | |
SubParams | lcParameter |
Lane-changing parameter. More... | |
double | length |
The physical vehicle length. More... | |
SUMOTime | loadingDuration |
The time a container needs to get loaded on the vehicle. More... | |
double | locomotiveLength |
double | mass |
The mass. More... | |
double | maxSpeed |
The vehicle type's (technical) maximum speed [m/s]. More... | |
double | maxSpeedLat |
The vehicle type's maximum lateral speed [m/s]. More... | |
double | minGap |
This class' free space in front of the vehicle itself. More... | |
double | minGapLat |
The vehicle type's minimum lateral gap [m]. More... | |
std::map< int, std::pair< SUMOTime, SUMOTime > > | myManoeuverAngleTimes |
Map of manoeuver angles versus the times (entry, exit) to execute the manoeuver. More... | |
bool | onlyReferenced |
Information whether this is a type-stub, being only referenced but not defined (needed by routers) More... | |
long long int | parametersSet |
Information for the router which parameter were set. More... | |
std::vector< double > | paramRestrictions |
cached value of parameters which may restrict access to certain edges More... | |
int | personCapacity |
The person capacity of the vehicle. More... | |
bool | saved |
Information whether this type was already saved (needed by routers) More... | |
double | scale |
individual scaling factor (-1 for undefined) More... | |
Distribution_Parameterized | speedFactor |
The factor by which the maximum speed may deviate from the allowed max speed on the street. More... | |
SUMOTime | timeToTeleport |
the custom time-to-teleport for this type More... | |
SUMOTime | timeToTeleportBidi |
the custom time-to-teleport.bidi for this type More... | |
SUMOVehicleClass | vehicleClass |
The vehicle's class. More... | |
Values for drawing this class' vehicles | |
double | width |
This class' width. More... | |
double | height |
This class' height. More... | |
SUMOVehicleShape | shape |
This class' shape. More... | |
std::string | osgFile |
3D model file for this class More... | |
std::string | imgFile |
Image file for this class. More... | |
Static 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... | |
Structure representing possible vehicle parameter.
Definition at line 117 of file SUMOVTypeParameter.h.
|
inherited |
parameters map
Definition at line 45 of file Parameterised.h.
typedef std::map<SumoXMLAttr, std::string> SUMOVTypeParameter::SubParams |
sub-model parameters
Definition at line 231 of file SUMOVTypeParameter.h.
SUMOVTypeParameter::SUMOVTypeParameter | ( | const std::string & | vtid, |
const SUMOVehicleClass | vc = SVC_IGNORING |
||
) |
Constructor.
Initialises the structure with default values
Definition at line 264 of file SUMOVTypeParameter.cpp.
References SUMOXMLDefinitions::CarFollowModels, SUMOVTypeParameter::VClassDefaultValues::carriageLength, carriageLength, cfModel, SUMOVTypeParameter::VClassDefaultValues::containerCapacity, containerCapacity, SUMOVTypeParameter::VClassDefaultValues::desiredMaxSpeed, desiredMaxSpeed, SUMOVTypeParameter::VClassDefaultValues::emissionClass, emissionClass, OptionsCont::exists(), StringBijection< T >::get(), OptionsCont::getFloat(), OptionsCont::getOptions(), Distribution_Parameterized::getParameter(), OptionsCont::getString(), SUMOVTypeParameter::VClassDefaultValues::height, height, SUMOVTypeParameter::VClassDefaultValues::latAlignmentProcedure, latAlignmentProcedure, SUMOVTypeParameter::VClassDefaultValues::length, length, SUMOVTypeParameter::VClassDefaultValues::locomotiveLength, locomotiveLength, SUMOVTypeParameter::VClassDefaultValues::mass, mass, SUMOVTypeParameter::VClassDefaultValues::maxSpeed, maxSpeed, SUMOVTypeParameter::VClassDefaultValues::minGap, minGap, SUMOVTypeParameter::VClassDefaultValues::osgFile, osgFile, SUMOVTypeParameter::VClassDefaultValues::personCapacity, personCapacity, setManoeuverAngleTimes(), SUMOVTypeParameter::VClassDefaultValues::shape, shape, SUMOVTypeParameter::VClassDefaultValues::speedFactor, speedFactor, SUMOVTypeParameter::VClassDefaultValues::width, and width.
|
inlinevirtual |
virtual destructor
Definition at line 185 of file SUMOVTypeParameter.h.
|
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(), and WRITE_WARNING.
Referenced by GNEFrameAttributeModules::GenericDataAttributes::areAttributesValid(), GNEEdgeData::isValid(), GNEEdgeRelData::isValid(), and GNETAZRelData::isValid().
|
staticinherited |
check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN"
Definition at line 197 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::isParameterValid(), and WRITE_WARNING.
Referenced by GNEAccess::isValid(), GNEBusStop::isValid(), GNECalibrator::isValid(), GNECalibratorFlow::isValid(), GNEChargingStation::isValid(), GNEContainerStop::isValid(), GNEEntryExitDetector::isValid(), GNEInductionLoopDetector::isValid(), GNEInstantInductionLoopDetector::isValid(), GNELaneAreaDetector::isValid(), GNEMultiEntryExitDetector::isValid(), GNEOverheadWire::isValid(), GNEParkingArea::isValid(), GNEParkingSpace::isValid(), GNERerouter::isValid(), GNERouteProbe::isValid(), GNETAZ::isValid(), GNETAZSourceSink::isValid(), GNETractionSubstation::isValid(), GNEVaporizer::isValid(), GNEVariableSpeedSign::isValid(), GNEContainer::isValid(), GNEPerson::isValid(), GNERoute::isValid(), GNEVehicle::isValid(), GNEVType::isValid(), GNEConnection::isValid(), GNECrossing::isValid(), GNEEdge::isValid(), GNEEdgeType::isValid(), GNEJunction::isValid(), GNELane::isValid(), GNELaneType::isValid(), GNEPOI::isValid(), GNEPoly::isValid(), GNETLSEditorFrame::TLSAttributes::isValidParameters(), and GNEFrameAttributeModules::GenericDataAttributes::onCmdSetParameters().
void SUMOVTypeParameter::cacheParamRestrictions | ( | const std::vector< std::string > & | restrictionKeys | ) |
Definition at line 663 of file SUMOVTypeParameter.cpp.
References Parameterised::getParameter(), paramRestrictions, and StringUtils::toDouble().
Referenced by RORouteHandler::closeVType().
|
inherited |
Clears the parameter map.
Definition at line 120 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NLHandler::beginEdgeParsing().
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.
[in] | attr | The corresponding xml attribute |
[in] | defaultValue | The value to return if the given map does not contain the named variable |
Definition at line 555 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().
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.
[in] | attr | The corresponding xml attribute |
[in] | defaultValue | The value to return if the given map does not contain the named variable |
Definition at line 565 of file SUMOVTypeParameter.cpp.
References cfParameter.
Referenced by GNEVType::getAttribute(), MSCFModel_Rail::MSCFModel_Rail(), and GNEVType::overwriteVType().
|
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 878 of file SUMOVTypeParameter.cpp.
Referenced by LIBSUMO_NAMESPACE::Lane::getLinks().
|
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.
[in] | vc | the vehicle class |
Definition at line 751 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().
|
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.
[in] | vc | the vehicle class |
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 MSVehicleType::build(), and LIBSUMO_NAMESPACE::Lane::getLinks().
|
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.
[in] | vc | the vehicle class |
[in] | decel | the deceleration of the vehicle type |
Definition at line 818 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().
|
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.
[in] | vc | the vehicle class |
Definition at line 863 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().
|
inherited |
Returns the value for a given key converted to a double.
[in] | key | The key to ask for |
[in] | defaultValue | The default value to return if no value is stored under the key |
Definition at line 81 of file Parameterised.cpp.
References Parameterised::myMap, TL, StringUtils::toDouble(), and WRITE_WARNING.
Referenced by MSDevice_Battery::buildVehicleDevices(), EnergyParams::EnergyParams(), MSSOTLPolicy5DStimulus::getStimCox(), MSSOTLPolicy5DStimulus::getStimCoxExpDispersionIn(), MSSOTLPolicy5DStimulus::getStimCoxExpDispersionOut(), MSSOTLPolicy5DStimulus::getStimCoxExpIn(), MSSOTLPolicy5DStimulus::getStimCoxExpOut(), MSSOTLPolicy5DStimulus::getStimDivisorDispersionIn(), MSSOTLPolicy5DStimulus::getStimDivisorDispersionOut(), MSSOTLPolicy5DStimulus::getStimDivisorIn(), MSSOTLPolicy5DStimulus::getStimDivisorOut(), MSSOTLPolicy5DStimulus::getStimOffsetDispersionIn(), MSSOTLPolicy5DStimulus::getStimOffsetDispersionOut(), MSSOTLPolicy5DStimulus::getStimOffsetIn(), MSSOTLPolicy5DStimulus::getStimOffsetOut(), MSActuatedTrafficLightLogic::init(), MSDevice_ElecHybrid::MSDevice_ElecHybrid(), and MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus().
|
inherited |
Returns the value for a given key converted to a list of doubles.
[in] | key | The key to ask for |
[in] | defaultValue | The default value to return if no value is stored under the key |
Definition at line 99 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::myMap, TL, StringUtils::toDouble(), and WRITE_WARNING.
Referenced by EnergyParams::EnergyParams().
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)
[in] | angle | The angle, in degrees through which the vehicle needs to manoeuver (0-180 degrees) |
Definition at line 620 of file SUMOVTypeParameter.cpp.
References myManoeuverAngleTimes.
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)
[in] | angle | The angle, in degrees through which the vehicle needs to manoeuver (0-180 degrees) |
Definition at line 633 of file SUMOVTypeParameter.cpp.
References myManoeuverAngleTimes.
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.
[in] | attr | The corresponding xml attribute |
[in] | defaultValue | The value to return if the given map does not contain the named variable |
Definition at line 601 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().
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.
[in] | attr | The corresponding xml attribute |
[in] | defaultValue | The value to return if the given map does not contain the named variable |
Definition at line 611 of file SUMOVTypeParameter.cpp.
References jmParameter.
Referenced by GNEVType::getAttribute(), and GNEVType::overwriteVType().
|
inlinestatic |
return all valid strings for latAlignment
Definition at line 436 of file SUMOVTypeParameter.h.
Referenced by GNEVehicleTypeDialog::VTypeAtributes::buildAttributesB(), and GNEAttributeCarrier::fillDemandElements().
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.
[in] | attr | The corresponding xml attribute |
[in] | defaultValue | The value to return if the given map does not contain the named variable |
Definition at line 575 of file SUMOVTypeParameter.cpp.
References lcParameter, and StringUtils::toDouble().
Referenced by GNEVType::overwriteVType().
const SUMOVTypeParameter::SubParams & SUMOVTypeParameter::getLCParams | ( | ) | const |
Returns the LC parameter.
Definition at line 595 of file SUMOVTypeParameter.cpp.
References lcParameter.
Referenced by MSAbstractLaneChangeModel::estimateLCDuration(), and MSAbstractLaneChangeModel::remainingTime().
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.
[in] | attr | The corresponding xml attribute |
[in] | defaultValue | The value to return if the given map does not contain the named variable |
Definition at line 585 of file SUMOVTypeParameter.cpp.
References lcParameter.
Referenced by GNEVType::getAttribute(), MSDevice_Bluelight::notifyMove(), GNEVType::overwriteVType(), and MSDevice_Bluelight::resetVehicle().
|
inline |
satisfy vType / router template requirements
Definition at line 384 of file SUMOVTypeParameter.h.
References length.
std::string SUMOVTypeParameter::getManoeuverAngleTimesS | ( | ) | const |
Returns myManoeuverAngleTimes as a string for xml output.
Definition at line 646 of file SUMOVTypeParameter.cpp.
References myManoeuverAngleTimes, STEPS2TIME, and toString().
Referenced by GUIVehicle::getTypeParameterWindow(), and write().
|
virtualinherited |
Returns the value for a given key.
[in] | key | The key to ask for |
[in] | defaultValue | The default value to return if no value is 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_Battery::buildVehicleDevices(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), ROEdge::cacheParamRestrictions(), cacheParamRestrictions(), MSRailSignal::constraintsAllow(), GUINet::createTLWrapper(), GNEEdge::drawEdgeName(), GNEGenericData::drawFilteredAttribute(), GNEConnection::drawGL(), GUIEdge::drawGL(), EnergyParams::EnergyParams(), LIBSUMO_NAMESPACE::TrafficLight::findConstraintsDeadLocks(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), MSSwarmTrafficLightLogic::getBetaNo(), MSSwarmTrafficLightLogic::getBetaSp(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), MSSwarmTrafficLightLogic::getChangePlanProbability(), GUIVehicle::getColorValue(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GNELane::getColorValue(), GUIEdge::getColorValue(), GUILane::getColorValue(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSSwarmTrafficLightLogic::getForgettingCox(), LIBSUMO_NAMESPACE::TrafficLight::getFutureTripIds(), MSSwarmTrafficLightLogic::getGammaNo(), MSSwarmTrafficLightLogic::getGammaSp(), MSTLLogicControl::WAUTSwitchProcedure::getGSPTime(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSSwarmTrafficLightLogic::getLearningCox(), MSSwarmTrafficLightLogic::getMaxCongestionDuration(), RORoutable::getMaxSpeed(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), GUIBaseVehicle::getOptionalName(), GUITrafficLightLogicWrapper::getOptionalName(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), MSSimpleTrafficLightLogic::getParameter(), NEMALogic::getParameter(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSSwarmTrafficLightLogic::getPheroMaxVal(), MSSwarmTrafficLightLogic::getPoliciesParam(), MSBaseVehicle::getPrefixedParameter(), MSSwarmTrafficLightLogic::getReinforcementMode(), GUIBaseVehicle::getScaleValue(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSDevice::getStringParam(), MSSwarmTrafficLightLogic::getThetaInit(), MSSwarmTrafficLightLogic::getThetaMax(), MSSwarmTrafficLightLogic::getThetaMin(), MSSOTLTrafficLightLogic::getThreshold(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), MSRailSignalConstraint::getVehID(), MSTriggeredRerouter::getWeight(), MSRailSignal::hasInsertionConstraint(), MSLink::ignoreFoe(), MSSOTLPhasePolicy::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), PushButtonLogic::init(), SigmoidLogic::init(), initRailVisualizationParameters(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSAbstractLaneChangeModel::laneChangeOutput(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), MSDevice_GLOSA::notifyEnter(), MSRailSignalConstraint_Predecessor::PassedTracker::notifyEnter(), GNEVType::overwriteVType(), MSDevice_SSM::requestsTrajectories(), MSDevice_Bluelight::resetVehicle(), GNEEdgeData::setColor(), GNEEdgeRelData::setColor(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), NBEdge::setOrigID(), NBEdgeCont::splitAt(), LIBSUMO_NAMESPACE::TrafficLight::updateConstraints(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), MSDevice_SSM::writeLanesPositions(), NWWriter_DlrNavteq::writeLinksUnsplitted(), MSDevice_SSM::writePositions(), and NWWriter_OpenDrive::writeRoadObjects().
|
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(), GUILane::getParameterWindow(), GNESingleParametersDialog::GNESingleParametersDialog(), MSRailCrossing::init(), MSActuatedTrafficLightLogic::init(), MSDevice_Taxi::initDispatch(), NIImporter_OpenStreetMap::insertEdge(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), GNETAZRelData::isGenericDataVisible(), GNEGenericData::isVisibleInspectDeleteSelect(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), GUIParameterTableWindow::numParams(), GNESingleParametersDialog::onCmdReset(), GNEVType::overwriteVType(), TraCIServerAPI_TrafficLight::processGet(), Parameterised::setParameters(), GNEEdgeData::writeGenericData(), GNEEdgeRelData::writeGenericData(), and GNETAZRelData::writeGenericData().
|
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(), GNEVehicle::getAttribute(), GNEVType::getAttribute(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEEdgeType::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), GNELaneType::getAttribute(), GNEPOI::getAttribute(), and GNEPoly::getAttribute().
return time-to-teleport (either custom or default)
Definition at line 912 of file SUMOVTypeParameter.cpp.
References timeToTeleport, and TTT_UNSET.
Referenced by MSLane::executeMovements().
return time-to-teleport.bidi (either custom or default)
Definition at line 917 of file SUMOVTypeParameter.cpp.
References timeToTeleportBidi, and TTT_UNSET.
Referenced by MSLane::executeMovements().
void SUMOVTypeParameter::initRailVisualizationParameters | ( | ) |
init Rail Visualization Parameters
Definition at line 671 of file SUMOVTypeParameter.cpp.
References BICYCLE, BUS, BUS_COACH, BUS_FLEXIBLE, BUS_TROLLEY, carriageGap, carriageLength, DELIVERY, frontSeatPos, Parameterised::getParameter(), Parameterised::knowsParameter(), locomotiveLength, MOPED, MOTORCYCLE, parametersSet, RAIL, RAIL_CAR, RAIL_CARGO, shape, SHIP, StringUtils::toDouble(), TRUCK, TRUCK_1TRAILER, TRUCK_SEMITRAILER, VTYPEPARS_CARRIAGE_GAP_SET, VTYPEPARS_CARRIAGE_LENGTH_SET, VTYPEPARS_FRONT_SEAT_POS_SET, and VTYPEPARS_LOCOMOTIVE_LENGTH_SET.
Referenced by MSVehicleType::build().
|
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().
|
inlinestatic |
Definition at line 428 of file SUMOVTypeParameter.h.
References parseLatAlignment().
Referenced by GNEVType::isValid().
|
inherited |
Returns whether the parameter is known.
[in] | key | The key to ask for |
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(), NWWriter_DlrNavteq::getBrunnelType(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GNELane::getColorValue(), GUILane::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSDevice::getStringParam(), MSTriggeredRerouter::getWeight(), initRailVisualizationParameters(), MSEdge::insertVehicle(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), GNEVType::overwriteVType(), MSDevice_SSM::requestsTrajectories(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), MSDevice_SSM::writeLanesPositions(), MSDevice_SSM::writePositions(), and NWWriter_OpenDrive::writeRoadObjects().
|
static |
Parses and validates a given latAlignment value.
[in] | val | The latAlignment value to parse |
[out] | lao | The parsed lateral alignment offset, if given |
[out] | lad | The parsed latAlignment definition |
Definition at line 884 of file SUMOVTypeParameter.cpp.
References ARBITRARY, CENTER, COMPACT, GIVEN, LEFT, NICE, RIGHT, and StringUtils::toDouble().
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), isValidLatAlignment(), and GNEVType::setAttribute().
void SUMOVTypeParameter::setManoeuverAngleTimes | ( | const SUMOVehicleClass | vclass | ) |
Initialise the default mapping between manoeuver angle and times dependant on vehicle class.
[in] | vclass | The vehicle class |
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 339 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().
|
virtualinherited |
Sets a parameter.
[in] | key | The parameter's name |
[in] | value | The 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(), NIImporter_OpenDrive::loadNetwork(), MSStateHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIXMLPTHandler::myStartElement(), NIXMLTrafficLightsHandler::myStartElement(), ShapeHandler::myStartElement(), 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(), and Parameterised::updateParameters().
|
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().
|
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().
|
inherited |
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"
[in] | paramsString | A serialized key-value map |
[in] | kvsep | The separater between key and value |
[in] | sep | The 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(), GNEVehicle::setAttribute(), GNEVType::setAttribute(), GNEConnection::setAttribute(), GNEEdge::setAttribute(), GNEEdgeType::setAttribute(), GNEJunction::setAttribute(), GNELane::setAttribute(), GNELaneType::setAttribute(), GNEPOI::setAttribute(), and GNEPoly::setAttribute().
|
inherited |
Removes a parameter.
[in] | key | The parameter's name |
Definition at line 51 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_OpenStreetMap::insertEdge(), MSLane::isInsertionSuccess(), and GNEVType::setAttribute().
|
inherited |
Adds or updates all given parameters from the map.
[in] | mapArg | The keys/values to insert |
Definition at line 57 of file Parameterised.cpp.
References Parameterised::setParameter().
Referenced by NIImporter_SUMO::_loadNetwork(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NLHandler::closeEdge(), NLJunctionControlBuilder::closeJunction(), NLJunctionControlBuilder::closeTrafficLightLogic(), NBTrafficLightDefinition::compute(), NLDetectorBuilder::endE3Detector(), NIImporter_OpenStreetMap::insertEdge(), NBEdge::NBEdge(), and NBLoadedSUMOTLDef::NBLoadedSUMOTLDef().
|
inline |
Returns whether the given parameter was set.
[in] | what | The parameter which one asks for |
Definition at line 191 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().
void SUMOVTypeParameter::write | ( | OutputDevice & | dev | ) | const |
Writes the vtype.
[in,out] | dev | The device to write into |
IOError | not yet implemented |
Definition at line 387 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, 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_TIME_TO_TELEPORT, SUMO_ATTR_VALUE, SUMO_ATTR_VCLASS, SUMO_ATTR_WIDTH, SUMO_TAG_PARAM, SUMO_TAG_VTYPE, timeToTeleport, 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_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().
|
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 MSTransportable::routeOutput(), ROPerson::saveAsXML(), ROVehicle::saveAsXML(), MEVehicle::saveState(), MSVehicle::saveState(), 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().
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 272 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::check(), MSVehicleType::getActionStepLength(), GNEVType::getAttribute(), MSVehicleType::MSVehicleType(), GNEVType::overwriteVType(), MSVehicleType::setActionStepLength(), GNEVType::setAttribute(), and write().
SUMOTime SUMOVTypeParameter::boardingDuration |
The time a person needs to board the vehicle.
Definition at line 302 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVType::getAttribute(), MSVehicleType::getLoadingDuration(), GNEVType::overwriteVType(), GNEVType::setAttribute(), and write().
double SUMOVTypeParameter::carriageGap |
Definition at line 360 of file SUMOVTypeParameter.h.
Referenced by GUIVehicle::drawAction_drawCarriageClass(), GNEVType::getAttribute(), initRailVisualizationParameters(), GNEVType::setAttribute(), and write().
double SUMOVTypeParameter::carriageLength |
the length of train carriages and locomotive
Definition at line 358 of file SUMOVTypeParameter.h.
Referenced by GUIVehicle::drawAction_drawCarriageClass(), GNEVType::getAttribute(), initRailVisualizationParameters(), GNEVType::setAttribute(), SUMOVTypeParameter(), GNEVType::updateDefaultVClassAttributes(), and write().
SumoXMLTag SUMOVTypeParameter::cfModel |
The enum-representation of the car-following model to use.
Definition at line 331 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::build(), GNEVType::getAttribute(), GNEVType::overwriteVType(), SUMOVehicleParserHelper::parseCFMParams(), GNEVType::setAttribute(), SUMOVTypeParameter(), and write().
SubParams SUMOVTypeParameter::cfParameter |
Car-following parameter.
Definition at line 334 of file SUMOVTypeParameter.h.
Referenced by getCFParam(), getCFParamString(), SUMOVehicleParserHelper::parseCFMParams(), MSVehicleType::setAccel(), MSVehicleType::setApparentDecel(), GNEVType::setAttribute(), MSVehicleType::setDecel(), MSVehicleType::setEmergencyDecel(), MSVehicleType::setImperfection(), MSVehicleType::setTau(), and write().
RGBColor SUMOVTypeParameter::color |
The color.
Definition at line 287 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVType::getAttribute(), MSVehicleType::getColor(), GNEVType::getColor(), GNEVType::overwriteVType(), GNEVType::setAttribute(), MSVehicleType::setColor(), and write().
int SUMOVTypeParameter::containerCapacity |
The container capacity of the vehicle.
Definition at line 299 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVType::getAttribute(), MSVehicleType::getContainerCapacity(), GNEVType::overwriteVType(), GNEVType::setAttribute(), SUMOVTypeParameter(), GNEVType::updateDefaultVClassAttributes(), and write().
double SUMOVTypeParameter::defaultProbability |
The probability when being added to a distribution without an explicit probability.
Definition at line 275 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), RORouteHandler::closeVType(), GNEVType::getAttribute(), MSVehicleType::getDefaultProbability(), RORouteHandler::openVehicleTypeDistribution(), GNEVType::overwriteVType(), GNEVType::setAttribute(), MSVehicleType::setDefaultProbability(), and write().
double SUMOVTypeParameter::desiredMaxSpeed |
The vehicle type's desired maximum speed [m/s].
Definition at line 268 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVType::getAttribute(), MSVehicleType::getDesiredMaxSpeed(), GNEVType::overwriteVType(), GNEVType::setAttribute(), SUMOVTypeParameter(), GNEVType::updateDefaultVClassAttributes(), and write().
SUMOEmissionClass SUMOVTypeParameter::emissionClass |
The emission class of this vehicle.
Definition at line 281 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVType::getAttribute(), MSVehicleType::getEmissionClass(), ROEdge::getEmissionEffort(), ROEdge::getNoiseEffort(), GNEVType::overwriteVType(), GNEVType::setAttribute(), MSVehicleType::setEmissionClass(), SUMOVTypeParameter(), GNEVType::updateDefaultVClassAttributes(), and write().
double SUMOVTypeParameter::frontSeatPos |
the offset of the first person seat from the front of the vehicle
Definition at line 369 of file SUMOVTypeParameter.h.
Referenced by MSVehicleType::getFrontSeatPos(), and initRailVisualizationParameters().
double SUMOVTypeParameter::height |
This class' height.
Definition at line 317 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), EnergyParams::EnergyParams(), GNEVType::getAttribute(), GNEVType::getAttributeDouble(), MSVehicleType::getHeight(), MSVehicleControl::initDefaultTypes(), GNEVType::overwriteVType(), GNEVType::setAttribute(), MSVehicleType::setHeight(), SUMOVTypeParameter(), GNEVType::updateDefaultVClassAttributes(), and write().
std::string SUMOVTypeParameter::id |
The vehicle type's id.
Definition at line 256 of file SUMOVTypeParameter.h.
Referenced by RONet::addVehicleType(), SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::build(), GNERouteHandler::buildVType(), RONet::checkFlows(), RORouteHandler::closeVehicle(), VTypesHandler::closeVType(), MSVehicleType::duplicateType(), MSVehicleType::getID(), SUMORouteHandler::myStartElement(), SUMOVehicleParserHelper::parseAngleTimesMap(), SUMOVehicleParserHelper::parseCFMParams(), SUMOVehicleParserHelper::parseJMParams(), SUMOVehicleParserHelper::parseLCParams(), and RONet::RONet().
std::string SUMOVTypeParameter::imgFile |
Image file for this class.
Definition at line 326 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVType::getAttribute(), MSVehicleType::getImgFile(), GNEVType::overwriteVType(), GNEVType::setAttribute(), and write().
double SUMOVTypeParameter::impatience |
The vehicle's impatience (willingness to obstruct others)
Definition at line 293 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVType::getAttribute(), MSVehicleType::getImpatience(), GNEVType::overwriteVType(), GNEVType::setAttribute(), MSVehicleType::setImpatience(), and write().
SubParams SUMOVTypeParameter::jmParameter |
Junction-model parameter.
Definition at line 340 of file SUMOVTypeParameter.h.
Referenced by getJMParam(), getJMParamString(), GUIVehicle::getTypeParameterWindow(), SUMOVehicleParserHelper::parseJMParams(), GNEVType::setAttribute(), and write().
double SUMOVTypeParameter::latAlignmentOffset |
(optional) The vehicle's desired lateral alignment as offset in m from center line
Definition at line 349 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVType::getAttribute(), MSVehicleType::getPreferredLateralAlignmentOffset(), GNEVType::overwriteVType(), GNEVType::setAttribute(), MSVehicleType::setPreferredLateralAlignment(), and write().
LatAlignmentDefinition SUMOVTypeParameter::latAlignmentProcedure |
Information on how the vehicle shall choose the lateral alignment.
Definition at line 352 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVType::getAttribute(), MSVehicleType::getPreferredLateralAlignment(), GNEVType::overwriteVType(), GNEVType::setAttribute(), MSVehicleType::setPreferredLateralAlignment(), SUMOVTypeParameter(), and write().
LaneChangeModel SUMOVTypeParameter::lcModel |
The lane-change model to use.
Definition at line 343 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVType::getAttribute(), MSVehicleType::getLaneChangeModel(), GNEVType::overwriteVType(), GNEVType::setAttribute(), and write().
SubParams SUMOVTypeParameter::lcParameter |
Lane-changing parameter.
Definition at line 337 of file SUMOVTypeParameter.h.
Referenced by getLCParam(), getLCParams(), getLCParamString(), GUIVehicle::getTypeParameterWindow(), SUMOVehicleParserHelper::parseLCParams(), GNEVType::setAttribute(), and write().
double SUMOVTypeParameter::length |
The physical vehicle length.
Definition at line 259 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVType::getAttribute(), GNEVType::getAttributeDouble(), MSVehicleType::getLength(), ROVehicle::getLength(), getLength(), MSVehicleType::getLengthWithGap(), MSVehicleControl::initDefaultTypes(), GNEVType::overwriteVType(), GNEVType::setAttribute(), MSVehicleType::setLength(), SUMOVTypeParameter(), GNEVType::updateDefaultVClassAttributes(), and write().
SUMOTime SUMOVTypeParameter::loadingDuration |
The time a container needs to get loaded on the vehicle.
Definition at line 305 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVType::getAttribute(), MSVehicleType::getLoadingDuration(), GNEVType::overwriteVType(), GNEVType::setAttribute(), and write().
double SUMOVTypeParameter::locomotiveLength |
Definition at line 359 of file SUMOVTypeParameter.h.
Referenced by GUIVehicle::drawAction_drawCarriageClass(), GNEVType::getAttribute(), initRailVisualizationParameters(), MSVehicle::processNextStop(), GNEVType::setAttribute(), SUMOVTypeParameter(), GNEVType::updateDefaultVClassAttributes(), and write().
double SUMOVTypeParameter::mass |
The mass.
Definition at line 284 of file SUMOVTypeParameter.h.
Referenced by EnergyParams::EnergyParams(), MSVehicleType::getMass(), MSVehicleType::setMass(), SUMOVTypeParameter(), and write().
double SUMOVTypeParameter::maxSpeed |
The vehicle type's (technical) maximum speed [m/s].
Definition at line 265 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVType::getAttribute(), GNEVType::getAttributeDouble(), ROEdge::getEmissionEffort(), MSVehicleType::getMaxSpeed(), ROEdge::getMinimumTravelTime(), GNEVType::overwriteVType(), GNEVType::setAttribute(), MSVehicleType::setMaxSpeed(), SUMOVTypeParameter(), GNEVType::updateDefaultVClassAttributes(), and write().
double SUMOVTypeParameter::maxSpeedLat |
The vehicle type's maximum lateral speed [m/s].
Definition at line 346 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVType::getAttribute(), MSVehicleType::getMaxSpeedLat(), GNEVType::overwriteVType(), GNEVType::setAttribute(), MSVehicleType::setMaxSpeedLat(), and write().
double SUMOVTypeParameter::minGap |
This class' free space in front of the vehicle itself.
Definition at line 262 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVType::getAttribute(), GNEVType::getAttributeDouble(), MSVehicleType::getLengthWithGap(), MSVehicleType::getMinGap(), GNEVType::overwriteVType(), GNEVType::setAttribute(), MSVehicleType::setMinGap(), SUMOVTypeParameter(), GNEVType::updateDefaultVClassAttributes(), and write().
double SUMOVTypeParameter::minGapLat |
The vehicle type's minimum lateral gap [m].
Definition at line 355 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVType::getAttribute(), MSVehicleType::getMinGapLat(), GNEVType::overwriteVType(), GNEVType::setAttribute(), MSVehicleType::setMinGapLat(), and write().
Map of manoeuver angles versus the times (entry, exit) to execute the manoeuver.
Definition at line 448 of file SUMOVTypeParameter.h.
Referenced by getEntryManoeuvreTime(), getExitManoeuvreTime(), getManoeuverAngleTimesS(), SUMOVehicleParserHelper::parseAngleTimesMap(), and setManoeuverAngleTimes().
|
privateinherited |
The key->value map.
Definition at line 137 of file Parameterised.h.
Referenced by Parameterised::clearParameter(), Parameterised::getDouble(), Parameterised::getDoubles(), Parameterised::getParameter(), Parameterised::getParametersMap(), Parameterised::getParametersStr(), Parameterised::knowsParameter(), Parameterised::setParameter(), Parameterised::setParameters(), Parameterised::setParametersMap(), Parameterised::setParametersStr(), Parameterised::unsetParameter(), and Parameterised::writeParams().
bool SUMOVTypeParameter::onlyReferenced |
Information whether this is a type-stub, being only referenced but not defined (needed by routers)
Definition at line 378 of file SUMOVTypeParameter.h.
Referenced by RONet::RONet(), and write().
std::string SUMOVTypeParameter::osgFile |
3D model file for this class
Definition at line 323 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVType::getAttribute(), MSVehicleType::getOSGFile(), GNEVType::overwriteVType(), GNEVType::setAttribute(), SUMOVTypeParameter(), GNEVType::updateDefaultVClassAttributes(), and write().
long long int SUMOVTypeParameter::parametersSet |
Information for the router which parameter were set.
Definition at line 372 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleControl::initDefaultTypes(), initRailVisualizationParameters(), SUMOVehicleParserHelper::parseCFMParams(), RONet::RONet(), MSVehicleType::setActionStepLength(), GNEVType::setAttribute(), MSVehicleType::setColor(), MSVehicleType::setDefaultProbability(), MSVehicleType::setEmissionClass(), MSVehicleType::setHeight(), MSVehicleType::setImpatience(), MSVehicleType::setLength(), MSVehicleType::setMass(), MSVehicleType::setMaxSpeed(), MSVehicleType::setMaxSpeedLat(), MSVehicleType::setMinGap(), MSVehicleType::setMinGapLat(), MSVehicleType::setPreferredLateralAlignment(), MSVehicleType::setShape(), MSVehicleType::setSpeedDeviation(), MSVehicleType::setSpeedFactor(), RODFDetectorCon::setSpeedFactorAndDev(), MSVehicleType::setVClass(), MSVehicleType::setWidth(), MSVehicleType::wasSet(), wasSet(), and RODFDetectorCon::writeEmitters().
std::vector<double> SUMOVTypeParameter::paramRestrictions |
cached value of parameters which may restrict access to certain edges
Definition at line 381 of file SUMOVTypeParameter.h.
Referenced by cacheParamRestrictions(), and ROEdge::restricts().
int SUMOVTypeParameter::personCapacity |
The person capacity of the vehicle.
Definition at line 296 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVType::getAttribute(), MSVehicleType::getPersonCapacity(), GNEVType::overwriteVType(), GNEVType::setAttribute(), SUMOVTypeParameter(), GNEVType::updateDefaultVClassAttributes(), and write().
|
mutable |
Information whether this type was already saved (needed by routers)
Definition at line 375 of file SUMOVTypeParameter.h.
Referenced by ROPerson::saveAsXML(), and ROVehicle::saveAsXML().
double SUMOVTypeParameter::scale |
individual scaling factor (-1 for undefined)
Definition at line 308 of file SUMOVTypeParameter.h.
Referenced by MSRouteHandler::addFlowTransportable(), SUMOVehicleParserHelper::beginVTypeParsing(), MSRouteHandler::closeVehicle(), MSInsertionControl::determineCandidates(), MSInsertionControl::initScale(), MSVehicleType::setScale(), and write().
SUMOVehicleShape SUMOVTypeParameter::shape |
This class' shape.
Definition at line 320 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVType::getAttribute(), MSVehicleType::getGuiShape(), initRailVisualizationParameters(), GNEVType::overwriteVType(), GNEVType::setAttribute(), MSVehicleType::setShape(), SUMOVTypeParameter(), GNEVType::updateDefaultVClassAttributes(), and write().
Distribution_Parameterized SUMOVTypeParameter::speedFactor |
The factor by which the maximum speed may deviate from the allowed max speed on the street.
Definition at line 278 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::computeChosenSpeedDeviation(), GNEVType::getAttribute(), ROVehicle::getChosenSpeedFactor(), MSVehicleType::getSpeedFactor(), ROEdge::getTravelTime(), GUIVehicle::getTypeParameterWindow(), GNEVType::overwriteVType(), GNEVType::setAttribute(), MSVehicleType::setSpeedDeviation(), MSVehicleType::setSpeedFactor(), RODFDetectorCon::setSpeedFactorAndDev(), SUMOVTypeParameter(), GNEVType::updateDefaultVClassAttributes(), and write().
SUMOTime SUMOVTypeParameter::timeToTeleport |
the custom time-to-teleport for this type
Definition at line 363 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), getTimeToTeleport(), and write().
SUMOTime SUMOVTypeParameter::timeToTeleportBidi |
the custom time-to-teleport.bidi for this type
Definition at line 366 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), and getTimeToTeleportBidi().
SUMOVehicleClass SUMOVTypeParameter::vehicleClass |
The vehicle's class.
Definition at line 290 of file SUMOVTypeParameter.h.
Referenced by ROPerson::addTrip(), MSVehicleType::build(), RORouteHandler::closeVehicle(), GNEVType::getAttribute(), GNEVType::getAttributeDouble(), ROEdge::getEmissionEffort(), MSBaseVehicle::getVClass(), GNEVType::getVClass(), RORoutable::getVClass(), MSVehicleType::getVehicleClass(), RORouteHandler::openRoute(), RORouteHandler::parseGeoEdges(), GNEVType::setAttribute(), MSVehicleType::setVClass(), and write().
double SUMOVTypeParameter::width |
This class' width.
Definition at line 314 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), EnergyParams::EnergyParams(), GNEVType::getAttribute(), GNEVType::getAttributeDouble(), MSVehicleType::getWidth(), MSVehicleControl::initDefaultTypes(), GNEVType::overwriteVType(), GNEVType::setAttribute(), MSVehicleType::setWidth(), SUMOVTypeParameter(), GNEVType::updateDefaultVClassAttributes(), and write().