![]() |
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 | |
enum class | ParameterisedAttrType { STRING , DOUBLE } |
@brie enum for Parameterised type 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... | |
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... | |
const std::string | getParameter (const std::string &key, const std::string defaultValue="") const |
Returns the value for a given key. More... | |
const std::map< std::string, std::string > & | getParametersMap () const |
Returns the inner key/value map. More... | |
std::string | getParametersStr (const 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 | 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 std::map< std::string, std::string > ¶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 std::map< std::string, std::string > &mapArg) |
Adds or updates all given parameters from the map. More... | |
bool | wasSet (int what) const |
Returns whether the given parameter was set. More... | |
void | write (OutputDevice &dev) const |
Writes the vtype. More... | |
void | writeParams (OutputDevice &device) const |
write Params in the given outputdevice More... | |
virtual | ~SUMOVTypeParameter () |
virtual destructor More... | |
Static Public Member Functions | |
static bool | areParametersValid (const std::string &value, bool report=false, ParameterisedAttrType attrType=ParameterisedAttrType::STRING, 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... | |
Data Fields | |
SUMOTime | actionStepLength |
The vehicle type's default actionStepLength [ms], i.e. the interval between two control actions. The default value of 0ms. induces the value to be traced from MSGlobals::gActionStepLength. More... | |
SUMOTime | boardingDuration |
The time a person needs to board the vehicle. More... | |
double | carriageGap |
double | carriageLength |
the length of train carriages and locomotive More... | |
SumoXMLTag | cfModel |
The enum-representation of the car-following model to use. More... | |
SubParams | cfParameter |
Car-following parameter. More... | |
RGBColor | color |
The color. More... | |
int | containerCapacity |
The container capacity of the vehicle. More... | |
double | defaultProbability |
The probability when being added to a distribution without an explicit probability. More... | |
SUMOEmissionClass | emissionClass |
The emission class of this vehicle. More... | |
std::string | id |
The vehicle type's id. More... | |
double | impatience |
The vehicle's impatience (willingness to obstruct others) More... | |
SubParams | jmParameter |
Junction-model parameter. More... | |
LateralAlignment | latAlignment |
The vehicles desired lateral alignment. More... | |
LaneChangeModel | lcModel |
The lane-change model to use. More... | |
SubParams | lcParameter |
Lane-changing parameter. More... | |
double | length |
The physical vehicle length. More... | |
SUMOTime | loadingDuration |
The time a container needs to get loaded on the vehicle. More... | |
double | locomotiveLength |
double | maxSpeed |
The vehicle type's maximum speed [m/s]. More... | |
double | maxSpeedLat |
The vehicle type's maximum lateral speed [m/s]. More... | |
double | minGap |
This class' free space in front of the vehicle itself. More... | |
double | minGapLat |
The vehicle type's minimum lateral gap [m]. More... | |
std::map< int, std::pair< SUMOTime, SUMOTime > > | myManoeuverAngleTimes |
Map of manoeuver angles versus the times (entry, exit) to execute the manoeuver. More... | |
bool | onlyReferenced |
Information whether this is a type-stub, being only referenced but not defined (needed by routers) More... | |
int | parametersSet |
Information for the router which parameter were set. More... | |
std::vector< double > | paramRestrictions |
cached value of parameters which may restrict access to certain edges More... | |
int | personCapacity |
The person capacity of the vehicle. More... | |
bool | saved |
Information whether this type was already saved (needed by routers) More... | |
Distribution_Parameterized | speedFactor |
The factor by which the maximum speed may deviate from the allowed max speed on the street. More... | |
SUMOVehicleClass | vehicleClass |
The vehicle's class. More... | |
Values for drawing this class' vehicles | |
double | width |
This class' width. More... | |
double | height |
This class' height. More... | |
SUMOVehicleShape | shape |
This class' shape. More... | |
std::string | osgFile |
3D model file for this class More... | |
std::string | imgFile |
Image file for this class. More... | |
Static Private Member Functions | |
static bool | isParameterValid (const std::string &value, ParameterisedAttrType attrType, 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 | |
ParameterisedAttrType | myAttrType |
parameterised type More... | |
std::map< std::string, std::string > | myMap |
The key->value map. More... | |
Structure representing possible vehicle parameter.
Definition at line 84 of file SUMOVTypeParameter.h.
typedef std::map<SumoXMLAttr, std::string> SUMOVTypeParameter::SubParams |
sub-model parameters
Definition at line 188 of file SUMOVTypeParameter.h.
|
stronginherited |
@brie enum for Parameterised type
Enumerator | |
---|---|
STRING | Parameterised accept strings. |
DOUBLE | Parameterised only accept doubles. |
Definition at line 43 of file Parameterised.h.
SUMOVTypeParameter::SUMOVTypeParameter | ( | const std::string & | vtid, |
const SUMOVehicleClass | vc = SVC_IGNORING |
||
) |
Constructor.
Initialises the structure with default values
Definition at line 242 of file SUMOVTypeParameter.cpp.
References SUMOXMLDefinitions::CarFollowModels, SUMOVTypeParameter::VClassDefaultValues::carriageLength, carriageLength, cfModel, SUMOVTypeParameter::VClassDefaultValues::containerCapacity, containerCapacity, SUMOVTypeParameter::VClassDefaultValues::emissionClass, emissionClass, OptionsCont::exists(), StringBijection< T >::get(), OptionsCont::getFloat(), OptionsCont::getOptions(), Distribution_Parameterized::getParameter(), OptionsCont::getString(), SUMOVTypeParameter::VClassDefaultValues::height, height, SUMOVTypeParameter::VClassDefaultValues::length, length, SUMOVTypeParameter::VClassDefaultValues::locomotiveLength, locomotiveLength, 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 142 of file SUMOVTypeParameter.h.
|
staticinherited |
check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN"
Definition at line 217 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::isParameterValid(), and WRITE_WARNING.
Referenced by GNEAccess::isValid(), GNEBusStop::isValid(), GNECalibrator::isValid(), GNECalibratorFlow::isValid(), GNEChargingStation::isValid(), GNEClosingLaneReroute::isValid(), GNEClosingReroute::isValid(), GNEContainerStop::isValid(), GNEDestProbReroute::isValid(), GNEDetectorE1::isValid(), GNEDetectorE1Instant::isValid(), GNEDetectorE2::isValid(), GNEDetectorE3::isValid(), GNEDetectorEntryExit::isValid(), GNEParkingArea::isValid(), GNEParkingAreaReroute::isValid(), GNEParkingSpace::isValid(), GNEPOI::isValid(), GNEPoly::isValid(), GNERerouter::isValid(), GNERerouterInterval::isValid(), GNERouteProbe::isValid(), GNERouteProbReroute::isValid(), GNETAZ::isValid(), GNETAZSourceSink::isValid(), GNEVaporizer::isValid(), GNEVariableSpeedSign::isValid(), GNEVariableSpeedSignStep::isValid(), GNEEdgeData::isValid(), GNEEdgeRelData::isValid(), GNETAZRelData::isValid(), GNEPerson::isValid(), GNEPersonTrip::isValid(), GNERide::isValid(), GNERoute::isValid(), GNEVehicle::isValid(), GNEVehicleType::isValid(), GNEWalk::isValid(), GNEConnection::isValid(), GNECrossing::isValid(), GNEEdge::isValid(), GNEEdgeType::isValid(), GNEJunction::isValid(), GNELane::isValid(), GNELaneType::isValid(), GNEInspectorFrame::ParametersEditorInspector::onCmdSetParameters(), and GNEFrameAttributesModuls::ParametersEditorCreator::onCmdSetParameters().
void SUMOVTypeParameter::cacheParamRestrictions | ( | const std::vector< std::string > & | restrictionKeys | ) |
Definition at line 554 of file SUMOVTypeParameter.cpp.
References Parameterised::getParameter(), paramRestrictions, and StringUtils::toDouble().
Referenced by RORouteHandler::closeVType().
|
inherited |
Clears the parameter map.
Definition at line 140 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NLHandler::beginEdgeParsing(), and GNERouteHandler::closeRoute().
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 446 of file SUMOVTypeParameter.cpp.
References cfParameter, and StringUtils::toDouble().
Referenced by MSVehicleType::build(), ROEdge::getEmissionEffort(), MSCFModel_ACC::MSCFModel_ACC(), MSCFModel_CACC::MSCFModel_CACC(), MSCFModel_IDM::MSCFModel_IDM(), MSCFModel_Kerner::MSCFModel_Kerner(), MSCFModel_PWag2009::MSCFModel_PWag2009(), MSCFModel_Rail::MSCFModel_Rail(), MSCFModel_W99::MSCFModel_W99(), MSCFModel_Wiedemann::MSCFModel_Wiedemann(), and GNEVehicleType::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 456 of file SUMOVTypeParameter.cpp.
References cfParameter.
Referenced by GNEVehicleType::getAttribute(), MSCFModel_Rail::MSCFModel_Rail(), and GNEVehicleType::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 689 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 562 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 598 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 629 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 674 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 122 of file Parameterised.cpp.
References Parameterised::myMap, StringUtils::toDouble(), and WRITE_WARNING.
Referenced by MSDevice_Battery::buildVehicleDevices(), MSDevice_ElecHybrid::buildVehicleDevices(), 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(), and MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus().
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 511 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 524 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 492 of file SUMOVTypeParameter.cpp.
References jmParameter, and StringUtils::toDouble().
Referenced by MSLink::blockedAtTime(), MSLink::blockedByFoe(), MSLink::getLeaderInfo(), MSVehicle::ignoreRed(), MSVehicle::keepClear(), and MSCFModel_Krauss::patchSpeedBeforeLC().
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 502 of file SUMOVTypeParameter.cpp.
References jmParameter.
Referenced by GNEVehicleType::getAttribute(), and GNEVehicleType::overwriteVType().
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 466 of file SUMOVTypeParameter.cpp.
References lcParameter, and StringUtils::toDouble().
const SUMOVTypeParameter::SubParams & SUMOVTypeParameter::getLCParams | ( | ) | const |
Returns the LC parameter.
Definition at line 486 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 476 of file SUMOVTypeParameter.cpp.
References lcParameter.
Referenced by GNEVehicleType::getAttribute(), and MSDevice_Bluelight::notifyMove().
|
inline |
satisfy vType / router template requirements
Definition at line 317 of file SUMOVTypeParameter.h.
References length.
std::string SUMOVTypeParameter::getManoeuverAngleTimesS | ( | ) | const |
Returns myManoeuverAngleTimes as a string for xml output.
Definition at line 537 of file SUMOVTypeParameter.cpp.
References myManoeuverAngleTimes, STEPS2TIME, and toString().
Referenced by GUIVehicle::getTypeParameterWindow(), and write().
|
inherited |
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 |
Definition at line 112 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NBEdge::addRestrictedLane(), FareModul::addStop(), NBEdge::append(), MSDevice_Battery::buildVehicleDevices(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), ROEdge::cacheParamRestrictions(), cacheParamRestrictions(), MSRailSignal::constraintsAllow(), GNEEdge::drawEdgeName(), GNEGenericData::drawFilteredAttribute(), GUIEdge::drawGL(), GNEConnection::drawGL(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), MSSwarmTrafficLightLogic::getBetaNo(), MSSwarmTrafficLightLogic::getBetaSp(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), MSSwarmTrafficLightLogic::getChangePlanProbability(), GNEEdgeData::getColor(), GNEEdgeRelData::getColor(), GUILane::getColorValue(), GUIVehicle::getColorValue(), GNELane::getColorValue(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSSwarmTrafficLightLogic::getForgettingCox(), MSSwarmTrafficLightLogic::getGammaNo(), MSSwarmTrafficLightLogic::getGammaSp(), MSTLLogicControl::WAUTSwitchProcedure::getGSPTime(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSSwarmTrafficLightLogic::getLearningCox(), MSSwarmTrafficLightLogic::getMaxCongestionDuration(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), GUIBaseVehicle::getOptionalName(), GUITrafficLightLogicWrapper::getOptionalName(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSSwarmTrafficLightLogic::getPheroMaxVal(), MSSwarmTrafficLightLogic::getPoliciesParam(), MSBaseVehicle::getPrefixedParameter(), MSSwarmTrafficLightLogic::getReinforcementMode(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSDevice::getStringParam(), MSSwarmTrafficLightLogic::getThetaInit(), MSSwarmTrafficLightLogic::getThetaMax(), MSSwarmTrafficLightLogic::getThetaMin(), MSSOTLTrafficLightLogic::getThreshold(), MSRailSignalConstraint::getVehID(), MSTriggeredRerouter::getWeight(), MSRailSignal::hasInsertionConstraint(), MSSOTLPhasePolicy::init(), MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), PushButtonLogic::init(), SigmoidLogic::init(), MSVehicleType::initRailVisualizationParameters(), GNEVehicleType::initRailVisualizationParameters(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), MSRailSignalConstraint_Predecessor::PassedTracker::notifyEnter(), GNEVehicleType::overwriteVType(), MSDevice_SSM::requestsTrajectories(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), NBEdgeCont::splitAt(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), NWWriter_DlrNavteq::writeLinksUnsplitted(), and NWWriter_OpenDrive::writeRoadObjects().
|
inherited |
Returns the inner key/value map.
Definition at line 146 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_SUMO::_loadNetwork(), NBEdge::addLane(), GUIParameterTableWindow::closeBuilding(), NLHandler::closeEdge(), NBTrafficLightDefinition::compute(), GNEGenericData::drawAttribute(), GNEGenericData::drawFilteredAttribute(), GNEAdditional::getACParametersMap(), GNEPOI::getACParametersMap(), GNEPoly::getACParametersMap(), GNETAZElement::getACParametersMap(), GNEDataInterval::getACParametersMap(), GNEDataSet::getACParametersMap(), GNEGenericData::getACParametersMap(), GNEPerson::getACParametersMap(), GNEPersonStop::getACParametersMap(), GNEPersonTrip::getACParametersMap(), GNERide::getACParametersMap(), GNERoute::getACParametersMap(), GNEStop::getACParametersMap(), GNEVehicle::getACParametersMap(), GNEVehicleType::getACParametersMap(), GNEWalk::getACParametersMap(), GNEConnection::getACParametersMap(), GNECrossing::getACParametersMap(), GNEEdge::getACParametersMap(), GNEEdgeType::getACParametersMap(), GNEJunction::getACParametersMap(), GNELane::getACParametersMap(), GNELaneType::getACParametersMap(), GUILane::getParameterWindow(), MSActuatedTrafficLightLogic::init(), MSDevice_Taxi::initDispatch(), NIImporter_OpenStreetMap::insertEdge(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), GNETAZRelData::isGenericDataVisible(), GNEGenericData::isVisibleInspectDeleteSelect(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), GUIParameterTableWindow::numParams(), GNEVehicleType::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 152 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by GNEAccess::getAttribute(), GNEBusStop::getAttribute(), GNECalibrator::getAttribute(), GNECalibratorFlow::getAttribute(), GNEChargingStation::getAttribute(), GNEClosingLaneReroute::getAttribute(), GNEClosingReroute::getAttribute(), GNEContainerStop::getAttribute(), GNEDestProbReroute::getAttribute(), GNEDetectorE1::getAttribute(), GNEDetectorE1Instant::getAttribute(), GNEDetectorE2::getAttribute(), GNEDetectorE3::getAttribute(), GNEDetectorEntryExit::getAttribute(), GNEParkingArea::getAttribute(), GNEParkingAreaReroute::getAttribute(), GNEParkingSpace::getAttribute(), GNEPOI::getAttribute(), GNEPoly::getAttribute(), GNERerouter::getAttribute(), GNERerouterInterval::getAttribute(), GNERouteProbe::getAttribute(), GNERouteProbReroute::getAttribute(), GNETAZ::getAttribute(), GNETAZSourceSink::getAttribute(), GNEVaporizer::getAttribute(), GNEVariableSpeedSign::getAttribute(), GNEVariableSpeedSignStep::getAttribute(), GNEEdgeData::getAttribute(), GNEEdgeRelData::getAttribute(), GNETAZRelData::getAttribute(), GNEPerson::getAttribute(), GNEPersonTrip::getAttribute(), GNERide::getAttribute(), GNERoute::getAttribute(), GNEVehicle::getAttribute(), GNEVehicleType::getAttribute(), GNEWalk::getAttribute(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEEdgeType::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), and GNELaneType::getAttribute().
|
staticprivateinherited |
check if given string can be parsed to a parameter of type "key=value"
Definition at line 240 of file Parameterised.cpp.
References Parameterised::DOUBLE, StringTokenizer::getVector(), SUMOXMLDefinitions::isValidParameterKey(), and StringUtils::toDouble().
Referenced by Parameterised::areParametersValid().
|
inherited |
Returns whether the parameter is known.
[in] | key | The key to ask for |
Definition at line 106 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NBEdge::append(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), NWWriter_DlrNavteq::getBrunnelType(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSDevice::getStringParam(), MSTriggeredRerouter::getWeight(), MSVehicleType::initRailVisualizationParameters(), GNEVehicleType::initRailVisualizationParameters(), GNEVehicleType::overwriteVType(), MSDevice_SSM::requestsTrajectories(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), and NWWriter_OpenDrive::writeRoadObjects().
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 288 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 GNEPoly, GNEPOI, and MSActuatedTrafficLightLogic.
Definition at line 75 of file Parameterised.cpp.
References Parameterised::DOUBLE, Parameterised::myAttrType, Parameterised::myMap, StringUtils::toDouble(), and WRITE_WARNING.
Referenced by NLHandler::addDistrict(), RONetHandler::addParam(), SUMORouteHandler::addParam(), ShapeHandler::addPOI(), NBEdge::append(), NIImporter_OpenStreetMap::insertNodeChecking(), NBNodeCont::joinNodeCluster(), NBEdge::Lane::Lane(), NIImporter_OpenDrive::loadNetwork(), MSStateHandler::myStartElement(), NIImporter_MATSim::EdgesHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIXMLTrafficLightsHandler::myStartElement(), ShapeHandler::myStartElement(), GNEAdditionalHandler::parseParameter(), GNEDataHandler::parseParameter(), GNEVehicleType::setAttribute(), NBEdge::setJunctionPriority(), NIImporter_OpenDrive::setLaneAttributes(), MSActuatedTrafficLightLogic::setParameter(), GNEPOI::setParameter(), GNEPoly::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 168 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 179 of file Parameterised.cpp.
References Parameterised::myMap, and Parameterised::setParameter().
|
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 190 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(), GNEClosingLaneReroute::setAttribute(), GNEClosingReroute::setAttribute(), GNEContainerStop::setAttribute(), GNEDestProbReroute::setAttribute(), GNEDetectorE1::setAttribute(), GNEDetectorE1Instant::setAttribute(), GNEDetectorE2::setAttribute(), GNEDetectorE3::setAttribute(), GNEDetectorEntryExit::setAttribute(), GNEParkingArea::setAttribute(), GNEParkingAreaReroute::setAttribute(), GNEParkingSpace::setAttribute(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), GNERerouter::setAttribute(), GNERerouterInterval::setAttribute(), GNERouteProbe::setAttribute(), GNERouteProbReroute::setAttribute(), GNETAZ::setAttribute(), GNETAZSourceSink::setAttribute(), GNEVaporizer::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNEVariableSpeedSignStep::setAttribute(), GNEEdgeData::setAttribute(), GNEEdgeRelData::setAttribute(), GNETAZRelData::setAttribute(), GNEPerson::setAttribute(), GNEPersonTrip::setAttribute(), GNERide::setAttribute(), GNERoute::setAttribute(), GNEVehicle::setAttribute(), GNEVehicleType::setAttribute(), GNEWalk::setAttribute(), GNEConnection::setAttribute(), GNEEdge::setAttribute(), GNEEdgeType::setAttribute(), GNEJunction::setAttribute(), GNELane::setAttribute(), and GNELaneType::setAttribute().
|
inherited |
Removes a parameter.
[in] | key | The parameter's name |
Definition at line 92 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_OpenStreetMap::insertEdge(), and GNEVehicleType::setAttribute().
|
inherited |
Adds or updates all given parameters from the map.
[in] | mapArg | The keys/values to insert |
Definition at line 98 of file Parameterised.cpp.
References Parameterised::setParameter().
Referenced by NIImporter_SUMO::_loadNetwork(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NLHandler::closeEdge(), NLJunctionControlBuilder::closeJunction(), NBTrafficLightDefinition::compute(), 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 148 of file SUMOVTypeParameter.h.
References parametersSet.
Referenced by GNEVehicleType::getAttribute(), GNEVehicleType::getAttributeDouble(), GUIVehicle::getTypeParameterWindow(), MSVehicleType::initRailVisualizationParameters(), GNEVehicleType::initRailVisualizationParameters(), GNEVehicleType::isAttributeEnabled(), MSVehicleType::MSVehicleType(), GNEVehicleType::overwriteVType(), GNEVehicleType::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 336 of file SUMOVTypeParameter.cpp.
References actionStepLength, boardingDuration, SUMOXMLDefinitions::CarFollowModels, cfModel, cfParameter, OutputDevice::closeTag(), color, containerCapacity, defaultProbability, emissionClass, getManoeuverAngleTimesS(), PollutantsInterface::getName(), getVehicleShapeName(), height, imgFile, impatience, jmParameter, latAlignment, lcModel, lcParameter, length, loadingDuration, maxSpeed, maxSpeedLat, minGap, minGapLat, onlyReferenced, OutputDevice::openTag(), osgFile, personCapacity, shape, speedFactor, STEPS2TIME, SUMO_ATTR_ACTIONSTEPLENGTH, SUMO_ATTR_BOARDING_DURATION, SUMO_ATTR_CAR_FOLLOW_MODEL, SUMO_ATTR_COLOR, SUMO_ATTR_CONTAINER_CAPACITY, SUMO_ATTR_EMISSIONCLASS, SUMO_ATTR_GUISHAPE, SUMO_ATTR_HEIGHT, SUMO_ATTR_ID, SUMO_ATTR_IMGFILE, SUMO_ATTR_IMPATIENCE, SUMO_ATTR_LANE_CHANGE_MODEL, SUMO_ATTR_LATALIGNMENT, SUMO_ATTR_LENGTH, SUMO_ATTR_LOADING_DURATION, SUMO_ATTR_MANEUVER_ANGLE_TIMES, SUMO_ATTR_MAXSPEED, SUMO_ATTR_MAXSPEED_LAT, SUMO_ATTR_MINGAP, SUMO_ATTR_MINGAP_LAT, SUMO_ATTR_OSGFILE, SUMO_ATTR_PERSON_CAPACITY, SUMO_ATTR_PROB, SUMO_ATTR_SPEEDFACTOR, SUMO_ATTR_VCLASS, SUMO_ATTR_WIDTH, SUMO_TAG_VTYPE, toString(), vehicleClass, VTYPEPARS_ACTIONSTEPLENGTH_SET, VTYPEPARS_BOARDING_DURATION, VTYPEPARS_CAR_FOLLOW_MODEL, VTYPEPARS_COLOR_SET, VTYPEPARS_CONTAINER_CAPACITY, VTYPEPARS_EMISSIONCLASS_SET, VTYPEPARS_HEIGHT_SET, VTYPEPARS_IMGFILE_SET, VTYPEPARS_IMPATIENCE_SET, VTYPEPARS_LANE_CHANGE_MODEL_SET, VTYPEPARS_LATALIGNMENT_SET, VTYPEPARS_LENGTH_SET, VTYPEPARS_LOADING_DURATION, VTYPEPARS_MANEUVER_ANGLE_TIMES_SET, VTYPEPARS_MAXSPEED_LAT_SET, VTYPEPARS_MAXSPEED_SET, VTYPEPARS_MINGAP_LAT_SET, VTYPEPARS_MINGAP_SET, VTYPEPARS_OSGFILE_SET, VTYPEPARS_PERSON_CAPACITY, VTYPEPARS_PROBABILITY_SET, VTYPEPARS_SHAPE_SET, VTYPEPARS_SPEEDFACTOR_SET, VTYPEPARS_VEHICLECLASS_SET, VTYPEPARS_WIDTH_SET, wasSet(), width, OutputDevice::writeAttr(), and Parameterised::writeParams().
Referenced by ROPerson::saveAsXML(), ROVehicle::saveAsXML(), GNEVehicleType::writeDemandElement(), and RODFDetectorCon::writeEmitters().
|
inherited |
write Params in the given outputdevice
Definition at line 205 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 ROPerson::saveAsXML(), ROVehicle::saveAsXML(), MEVehicle::saveState(), MSVehicle::saveState(), write(), GNEAdditional::writeAdditional(), NWWriter_SUMO::writeConnection(), GNEPerson::writeDemandElement(), GNEPersonTrip::writeDemandElement(), GNERide::writeDemandElement(), GNERoute::writeDemandElement(), GNEVehicle::writeDemandElement(), GNEWalk::writeDemandElement(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeJunction(), NWWriter_SUMO::writeLane(), NWWriter_XML::writeNodes(), MSDevice_Vehroutes::writeOutput(), GNETAZ::writeTAZElement(), 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 223 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::check(), MSVehicleType::getActionStepLength(), GNEVehicleType::getAttribute(), MSVehicleType::MSVehicleType(), GNEVehicleType::overwriteVType(), MSVehicleType::setActionStepLength(), GNEVehicleType::setAttribute(), and write().
SUMOTime SUMOVTypeParameter::boardingDuration |
The time a person needs to board the vehicle.
Definition at line 250 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleType::getAttribute(), MSVehicleType::getBoardingDuration(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), and write().
double SUMOVTypeParameter::carriageGap |
Definition at line 302 of file SUMOVTypeParameter.h.
Referenced by GUIVehicle::drawAction_drawCarriageClass(), GNEVehicleType::getAttribute(), MSVehicleType::initRailVisualizationParameters(), GNEVehicleType::initRailVisualizationParameters(), and GNEVehicleType::setAttribute().
double SUMOVTypeParameter::carriageLength |
the length of train carriages and locomotive
Definition at line 300 of file SUMOVTypeParameter.h.
Referenced by GUIVehicle::drawAction_drawCarriageClass(), GNEVehicleType::getAttribute(), MSVehicleType::initRailVisualizationParameters(), GNEVehicleType::initRailVisualizationParameters(), GNEVehicleType::setAttribute(), SUMOVTypeParameter(), and GNEVehicleType::updateDefaultVClassAttributes().
SumoXMLTag SUMOVTypeParameter::cfModel |
The enum-representation of the car-following model to use.
Definition at line 276 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::build(), GNEVehicleType::getAttribute(), GNEVehicleType::overwriteVType(), SUMOVehicleParserHelper::parseVTypeEmbedded(), GNEVehicleType::setAttribute(), SUMOVTypeParameter(), and write().
SubParams SUMOVTypeParameter::cfParameter |
Car-following parameter.
Definition at line 279 of file SUMOVTypeParameter.h.
Referenced by getCFParam(), getCFParamString(), SUMOVehicleParserHelper::parseVTypeEmbedded(), MSVehicleType::setAccel(), MSVehicleType::setApparentDecel(), GNEVehicleType::setAttribute(), MSVehicleType::setDecel(), MSVehicleType::setEmergencyDecel(), MSVehicleType::setImperfection(), MSVehicleType::setTau(), and write().
RGBColor SUMOVTypeParameter::color |
The color.
Definition at line 235 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleType::getAttribute(), MSVehicleType::getColor(), GNEVehicleType::getColor(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), MSVehicleType::setColor(), and write().
int SUMOVTypeParameter::containerCapacity |
The container capacity of the vehicle.
Definition at line 247 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleType::getAttribute(), MSVehicleType::getContainerCapacity(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), SUMOVTypeParameter(), GNEVehicleType::updateDefaultVClassAttributes(), and write().
double SUMOVTypeParameter::defaultProbability |
The probability when being added to a distribution without an explicit probability.
Definition at line 226 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), RORouteHandler::closeVType(), GNEVehicleType::getAttribute(), MSVehicleType::getDefaultProbability(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), MSVehicleType::setDefaultProbability(), and write().
SUMOEmissionClass SUMOVTypeParameter::emissionClass |
The emission class of this vehicle.
Definition at line 232 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleType::getAttribute(), MSVehicleType::getEmissionClass(), ROEdge::getEmissionEffort(), ROEdge::getNoiseEffort(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), MSVehicleType::setEmissionClass(), SUMOVTypeParameter(), GNEVehicleType::updateDefaultVClassAttributes(), and write().
double SUMOVTypeParameter::height |
This class' height.
Definition at line 262 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleType::getAttribute(), GNEVehicleType::getAttributeDouble(), MSVehicleType::getHeight(), MSVehicleControl::MSVehicleControl(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), MSVehicleType::setHeight(), SUMOVTypeParameter(), GNEVehicleType::updateDefaultVClassAttributes(), and write().
std::string SUMOVTypeParameter::id |
The vehicle type's id.
Definition at line 210 of file SUMOVTypeParameter.h.
Referenced by RONet::addVehicleType(), SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::build(), RONet::checkFlows(), RORouteHandler::closeVehicle(), GNERouteHandler::closeVType(), MSVehicleType::duplicateType(), MSVehicleType::getID(), SUMORouteHandler::myStartElement(), SUMOVehicleParserHelper::parseAngleTimesMap(), SUMOVehicleParserHelper::parseJMParams(), SUMOVehicleParserHelper::parseLCParams(), SUMOVehicleParserHelper::parseVTypeEmbedded(), and RONet::RONet().
std::string SUMOVTypeParameter::imgFile |
Image file for this class.
Definition at line 271 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleType::getAttribute(), MSVehicleType::getImgFile(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), and write().
double SUMOVTypeParameter::impatience |
The vehicle's impatience (willingness to obstruct others)
Definition at line 241 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleType::getAttribute(), MSVehicleType::getImpatience(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), MSVehicleType::setImpatience(), and write().
SubParams SUMOVTypeParameter::jmParameter |
Junction-model parameter.
Definition at line 285 of file SUMOVTypeParameter.h.
Referenced by getJMParam(), getJMParamString(), GUIVehicle::getTypeParameterWindow(), SUMOVehicleParserHelper::parseJMParams(), GNEVehicleType::setAttribute(), and write().
LateralAlignment SUMOVTypeParameter::latAlignment |
The vehicles desired lateral alignment.
Definition at line 294 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleType::getAttribute(), MSVehicleType::getPreferredLateralAlignment(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), MSVehicleType::setPreferredLateralAlignment(), and write().
LaneChangeModel SUMOVTypeParameter::lcModel |
The lane-change model to use.
Definition at line 288 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleType::getAttribute(), MSVehicleType::getLaneChangeModel(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), and write().
SubParams SUMOVTypeParameter::lcParameter |
Lane-changing parameter.
Definition at line 282 of file SUMOVTypeParameter.h.
Referenced by getLCParam(), getLCParams(), getLCParamString(), GUIVehicle::getTypeParameterWindow(), SUMOVehicleParserHelper::parseLCParams(), GNEVehicleType::setAttribute(), and write().
double SUMOVTypeParameter::length |
The physical vehicle length.
Definition at line 213 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleType::getAttribute(), GNEVehicleType::getAttributeDouble(), MSVehicleType::getLength(), ROVehicle::getLength(), getLength(), MSVehicleType::getLengthWithGap(), MSVehicleControl::MSVehicleControl(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), MSVehicleType::setLength(), SUMOVTypeParameter(), GNEVehicleType::updateDefaultVClassAttributes(), and write().
SUMOTime SUMOVTypeParameter::loadingDuration |
The time a container needs to get loaded on the vehicle.
Definition at line 253 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleType::getAttribute(), MSVehicleType::getLoadingDuration(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), and write().
double SUMOVTypeParameter::locomotiveLength |
Definition at line 301 of file SUMOVTypeParameter.h.
Referenced by GUIVehicle::drawAction_drawCarriageClass(), GNEVehicleType::getAttribute(), MSVehicleType::initRailVisualizationParameters(), GNEVehicleType::initRailVisualizationParameters(), MSVehicle::processNextStop(), GNEVehicleType::setAttribute(), SUMOVTypeParameter(), and GNEVehicleType::updateDefaultVClassAttributes().
double SUMOVTypeParameter::maxSpeed |
The vehicle type's maximum speed [m/s].
Definition at line 219 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleType::getAttribute(), GNEVehicleType::getAttributeDouble(), ROEdge::getEffort(), ROEdge::getEmissionEffort(), MSVehicleType::getMaxSpeed(), RORoutable::getMaxSpeed(), ROEdge::getMinimumTravelTime(), ROEdge::getNoiseEffort(), ROEdge::getTravelTime(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), MSVehicleType::setMaxSpeed(), SUMOVTypeParameter(), GNEVehicleType::updateDefaultVClassAttributes(), and write().
double SUMOVTypeParameter::maxSpeedLat |
The vehicle type's maximum lateral speed [m/s].
Definition at line 291 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleType::getAttribute(), MSVehicleType::getMaxSpeedLat(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), MSVehicleType::setMaxSpeedLat(), and write().
double SUMOVTypeParameter::minGap |
This class' free space in front of the vehicle itself.
Definition at line 216 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleType::getAttribute(), GNEVehicleType::getAttributeDouble(), MSVehicleType::getLengthWithGap(), MSVehicleType::getMinGap(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), MSVehicleType::setMinGap(), SUMOVTypeParameter(), GNEVehicleType::updateDefaultVClassAttributes(), and write().
double SUMOVTypeParameter::minGapLat |
The vehicle type's minimum lateral gap [m].
Definition at line 297 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleType::getAttribute(), MSVehicleType::getMinGapLat(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), MSVehicleType::setMinGapLat(), and write().
|
privateinherited |
parameterised type
Definition at line 143 of file Parameterised.h.
Referenced by Parameterised::Parameterised(), and Parameterised::setParameter().
Map of manoeuver angles versus the times (entry, exit) to execute the manoeuver.
Definition at line 354 of file SUMOVTypeParameter.h.
Referenced by getEntryManoeuvreTime(), getExitManoeuvreTime(), getManoeuverAngleTimesS(), SUMOVehicleParserHelper::parseAngleTimesMap(), and setManoeuverAngleTimes().
|
privateinherited |
The key->value map.
Definition at line 146 of file Parameterised.h.
Referenced by Parameterised::clearParameter(), Parameterised::getDouble(), Parameterised::getParameter(), Parameterised::getParametersMap(), Parameterised::getParametersStr(), Parameterised::knowsParameter(), Parameterised::Parameterised(), 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 311 of file SUMOVTypeParameter.h.
Referenced by RONet::RONet(), and write().
std::string SUMOVTypeParameter::osgFile |
3D model file for this class
Definition at line 268 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleType::getAttribute(), MSVehicleType::getOSGFile(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), SUMOVTypeParameter(), GNEVehicleType::updateDefaultVClassAttributes(), and write().
int SUMOVTypeParameter::parametersSet |
Information for the router which parameter were set.
Definition at line 305 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleType::initRailVisualizationParameters(), MSVehicleControl::MSVehicleControl(), SUMOVehicleParserHelper::parseVTypeEmbedded(), RONet::RONet(), MSVehicleType::setActionStepLength(), GNEVehicleType::setAttribute(), MSVehicleType::setColor(), MSVehicleType::setDefaultProbability(), MSVehicleType::setEmissionClass(), MSVehicleType::setHeight(), MSVehicleType::setImpatience(), MSVehicleType::setLength(), 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 314 of file SUMOVTypeParameter.h.
Referenced by cacheParamRestrictions(), and ROEdge::restricts().
int SUMOVTypeParameter::personCapacity |
The person capacity of the vehicle.
Definition at line 244 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleType::getAttribute(), MSVehicleType::getPersonCapacity(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), SUMOVTypeParameter(), GNEVehicleType::updateDefaultVClassAttributes(), and write().
|
mutable |
Information whether this type was already saved (needed by routers)
Definition at line 308 of file SUMOVTypeParameter.h.
Referenced by ROPerson::saveAsXML(), and ROVehicle::saveAsXML().
SUMOVehicleShape SUMOVTypeParameter::shape |
This class' shape.
Definition at line 265 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleType::getAttribute(), MSVehicleType::getGuiShape(), MSVehicleType::initRailVisualizationParameters(), GNEVehicleType::initRailVisualizationParameters(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), MSVehicleType::setShape(), SUMOVTypeParameter(), GNEVehicleType::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 229 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::computeChosenSpeedDeviation(), GNEVehicleType::getAttribute(), ROVehicle::getChosenSpeedFactor(), MSVehicleType::getSpeedFactor(), ROEdge::getTravelTime(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), MSVehicleType::setSpeedDeviation(), MSVehicleType::setSpeedFactor(), RODFDetectorCon::setSpeedFactorAndDev(), SUMOVTypeParameter(), GNEVehicleType::updateDefaultVClassAttributes(), and write().
SUMOVehicleClass SUMOVTypeParameter::vehicleClass |
The vehicle's class.
Definition at line 238 of file SUMOVTypeParameter.h.
Referenced by ROPerson::addTrip(), MSVehicleType::build(), RORouteHandler::closeVehicle(), GNERouteHandler::closeVType(), GNEVehicleType::getAttribute(), GNEVehicleType::getAttributeDouble(), ROEdge::getEmissionEffort(), MSBaseVehicle::getVClass(), GNEVehicleType::getVClass(), RORoutable::getVClass(), MSVehicleType::getVehicleClass(), RORouteHandler::openRoute(), RORouteHandler::parseGeoEdges(), GNEVehicleType::setAttribute(), MSVehicleType::setVClass(), and write().
double SUMOVTypeParameter::width |
This class' width.
Definition at line 259 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), GNEVehicleType::getAttribute(), GNEVehicleType::getAttributeDouble(), MSVehicleType::getWidth(), MSVehicleControl::MSVehicleControl(), GNEVehicleType::overwriteVType(), GNEVehicleType::setAttribute(), MSVehicleType::setWidth(), SUMOVTypeParameter(), GNEVehicleType::updateDefaultVClassAttributes(), and write().