![]() |
SUMO - Simulation of Urban MObility
|
Structure representing possible vehicle parameter. More...
#include <SUMOVTypeParameter.h>
Public Types | |
typedef std::map< SumoXMLAttr, std::string > | SubParams |
sub-model parameters More... | |
Public Member Functions | |
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... | |
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... | |
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... | |
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... | |
bool | knowsParameter (const std::string &key) const |
Returns whether the parameter is known. More... | |
void | setParameter (const std::string &key, const std::string &value) |
Sets a parameter. More... | |
SUMOVTypeParameter (const std::string &vtid, const SUMOVehicleClass vc=SVC_IGNORING) | |
Constructor. More... | |
void | unsetParameter (const std::string &key) |
Removes a parameter. More... | |
void | updateParameter (const std::map< std::string, std::string > &mapArg) |
Adds or updates all given parameters from the map. More... | |
void | validateCFParameter () const |
Validates stored car-following parameter. 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... | |
Static Public Member Functions | |
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... | |
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... | |
bool | hasDriverState |
Whether vehicles of this type are equipped with a driver (i.e. MSDriverState)) 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 | 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... | |
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... | |
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... | |
Structure representing possible vehicle parameter.
Definition at line 83 of file SUMOVTypeParameter.h.
typedef std::map<SumoXMLAttr, std::string> SUMOVTypeParameter::SubParams |
sub-model parameters
Definition at line 135 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 42 of file SUMOVTypeParameter.cpp.
References SUMOXMLDefinitions::CarFollowModels, cfModel, containerCapacity, DEFAULT_PEDESTRIAN_SPEED, emissionClass, EMPREFIX, OptionsCont::exists(), StringBijection< T >::get(), PollutantsInterface::getClassByName(), OptionsCont::getFloat(), OptionsCont::getOptions(), Distribution_Parameterized::getParameter(), OptionsCont::getString(), height, length, maxSpeed, minGap, osgFile, personCapacity, shape, speedFactor, SVC_BICYCLE, SVC_BUS, SVC_COACH, SVC_CUSTOM1, SVC_CUSTOM2, SVC_DELIVERY, SVC_E_VEHICLE, SVC_EMERGENCY, SVC_HOV, SVC_MOPED, SVC_MOTORCYCLE, SVC_PASSENGER, SVC_PEDESTRIAN, SVC_PRIVATE, SVC_RAIL, SVC_RAIL_ELECTRIC, SVC_RAIL_URBAN, SVC_SHIP, SVC_TAXI, SVC_TRAILER, SVC_TRAM, SVC_TRUCK, SVC_VIP, SVS_BICYCLE, SVS_BUS, SVS_BUS_COACH, SVS_DELIVERY, SVS_E_VEHICLE, SVS_MOPED, SVS_MOTORCYCLE, SVS_PASSENGER, SVS_PEDESTRIAN, SVS_RAIL, SVS_RAIL_CAR, SVS_SHIP, SVS_TRUCK, SVS_TRUCK_SEMITRAILER, and width.
|
inherited |
Clears the parameter map.
Definition at line 99 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NLHandler::beginEdgeParsing(), GNECrossing::setGenericParametersStr(), GNEConnection::setGenericParametersStr(), GNEPoly::setGenericParametersStr(), GNELane::setGenericParametersStr(), GNEPOI::setGenericParametersStr(), GNEJunction::setGenericParametersStr(), GNEEdge::setGenericParametersStr(), and GNEAdditional::setGenericParametersStr().
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 343 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_Rail::MSCFModel_Rail(), and wasSet().
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 353 of file SUMOVTypeParameter.cpp.
References cfParameter.
Referenced by MSCFModel_Rail::MSCFModel_Rail(), and wasSet().
|
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 510 of file SUMOVTypeParameter.cpp.
Referenced by libsumo::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 386 of file SUMOVTypeParameter.cpp.
References SVC_BICYCLE, SVC_BUS, SVC_COACH, SVC_MOPED, SVC_MOTORCYCLE, SVC_PEDESTRIAN, SVC_RAIL, SVC_RAIL_ELECTRIC, 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 421 of file SUMOVTypeParameter.cpp.
References SVC_BICYCLE, SVC_BUS, SVC_COACH, SVC_MOPED, SVC_MOTORCYCLE, SVC_PEDESTRIAN, SVC_RAIL, SVC_RAIL_ELECTRIC, SVC_RAIL_URBAN, SVC_SHIP, SVC_TRAILER, SVC_TRAM, and SVC_TRUCK.
Referenced by MSVehicleType::build(), and libsumo::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 451 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_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 495 of file SUMOVTypeParameter.cpp.
References SVC_RAIL, SVC_RAIL_ELECTRIC, 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, StringUtils::toDouble(), and WRITE_WARNING.
Referenced by MSDevice_Battery::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().
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 377 of file SUMOVTypeParameter.cpp.
References jmParameter, and StringUtils::toDouble().
Referenced by MSLink::blockedAtTime(), MSLink::blockedByFoe(), MSLink::getLeaderInfo(), MSPModel_Striping::PState::ignoreRed(), MSVehicle::ignoreRed(), MSVehicle::keepClear(), and MSCFModel_Krauss::patchSpeedBeforeLC().
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 362 of file SUMOVTypeParameter.cpp.
References lcParameter, and StringUtils::toDouble().
Referenced by wasSet().
const SUMOVTypeParameter::SubParams & SUMOVTypeParameter::getLCParams | ( | ) | const |
Returns the LC parameter.
Definition at line 371 of file SUMOVTypeParameter.cpp.
References lcParameter.
Referenced by MSAbstractLaneChangeModel::estimateLCDuration(), and MSAbstractLaneChangeModel::remainingTime().
|
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 71 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSTLLogicControl::WAUTSwitchProcedure_Stretch::adaptLogic(), NBEdge::addRestrictedLane(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByParameter(), libsumo::Simulation::findIntermodalRoute(), MSDevice::getBoolParam(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), GNELane::getColorValue(), GUILane::getColorValue(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice::getFloatParam(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), libsumo::Polygon::getParameter(), libsumo::Route::getParameter(), libsumo::POI::getParameter(), libsumo::Person::getParameter(), libsumo::TrafficLight::getParameter(), libsumo::Edge::getParameter(), libsumo::Lane::getParameter(), libsumo::VehicleType::getParameter(), libsumo::Vehicle::getParameter(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), MSDevice::getStringParam(), MSSOTLTrafficLightLogic::getThreshold(), MSTriggeredRerouter::getWeight(), PushButtonLogic::init(), MSSOTLPhasePolicy::init(), SigmoidLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), NIImporter_OpenStreetMap::insertEdge(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), libsumo::Helper::moveToXYMap(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), MSTriggeredRerouter::notifyEnter(), MSDevice_SSM::requestsTrajectories(), NBEdgeCont::splitAt(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), MSDevice_SSM::useGeoCoords(), and NWWriter_DlrNavteq::writeLinksUnsplitted().
|
inherited |
Returns the inner key/value map.
Definition at line 105 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_SUMO::_loadNetwork(), NBEdge::addLane(), GUIParameterTableWindow::closeBuilding(), NLHandler::closeEdge(), NBTrafficLightDefinition::compute(), GNEPoly::getGenericParameters(), GNELane::getGenericParameters(), GNEJunction::getGenericParameters(), GNEPOI::getGenericParameters(), GNEEdge::getGenericParameters(), GNEAdditional::getGenericParameters(), GNEPoly::getGenericParametersStr(), GNELane::getGenericParametersStr(), GNEPOI::getGenericParametersStr(), GNEJunction::getGenericParametersStr(), GNEEdge::getGenericParametersStr(), GNEAdditional::getGenericParametersStr(), GUITrafficLightLogicWrapper::getParameterWindow(), GUIPolygon::getParameterWindow(), GUIJunctionWrapper::getParameterWindow(), GUIPointOfInterest::getParameterWindow(), GUILane::getParameterWindow(), GUIContainer::getTypeParameterWindow(), GUIPerson::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), GUIVehicle::getTypeParameterWindow(), NIImporter_OpenStreetMap::insertEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), GUIParameterTableWindow::numParams(), and TraCIServerAPI_TrafficLight::processGet().
|
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(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByParameter(), MSDevice::getBoolParam(), NWWriter_DlrNavteq::getBrunnelType(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice::getFloatParam(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), MSDevice::getStringParam(), MSTriggeredRerouter::getWeight(), MSDevice_SSM::requestsTrajectories(), and MSDevice_SSM::useGeoCoords().
|
inherited |
Sets a parameter.
[in] | key | The parameter's name |
[in] | value | The parameter's value |
Definition at line 45 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NLHandler::addDistrict(), SUMORouteHandler::addParam(), ShapeHandler::addPOI(), NIImporter_OpenStreetMap::insertNodeChecking(), NBEdge::Lane::Lane(), NIImporter_ArcView::load(), NIImporter_OpenDrive::loadNetwork(), NIXMLTrafficLightsHandler::myStartElement(), MSStateHandler::myStartElement(), ShapeHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIImporter_MATSim::EdgesHandler::myStartElement(), NIImporter_OpenStreetMap::EdgesHandler::myStartElement(), GNEAdditionalHandler::parseGenericParameter(), GNEConnection::setGenericParametersStr(), GNEPoly::setGenericParametersStr(), GNELane::setGenericParametersStr(), GNEPOI::setGenericParametersStr(), GNEJunction::setGenericParametersStr(), GNEEdge::setGenericParametersStr(), GNEAdditional::setGenericParametersStr(), libsumo::Route::setParameter(), libsumo::Polygon::setParameter(), libsumo::POI::setParameter(), libsumo::TrafficLight::setParameter(), libsumo::Edge::setParameter(), and libsumo::Lane::setParameter().
|
inherited |
Removes a parameter.
[in] | key | The parameter's name |
Definition at line 51 of file Parameterised.cpp.
References Parameterised::myMap.
|
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::myMap.
Referenced by NIImporter_SUMO::_loadNetwork(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NLHandler::closeEdge(), NLJunctionControlBuilder::closeJunction(), NBTrafficLightDefinition::compute(), NIImporter_OpenStreetMap::insertEdge(), and NBLoadedSUMOTLDef::NBLoadedSUMOTLDef().
void SUMOVTypeParameter::validateCFParameter | ( | ) | const |
Validates stored car-following parameter.
Referenced by wasSet().
|
inline |
Returns whether the given parameter was set.
[in] | what | The parameter which one asks for |
Definition at line 96 of file SUMOVTypeParameter.h.
References getCFParam(), getCFParamString(), getLCParam(), parametersSet, validateCFParameter(), and write().
Referenced by MSVehicleType::check(), MSVehicleType::MSVehicleType(), 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 241 of file SUMOVTypeParameter.cpp.
References actionStepLength, boardingDuration, SUMOXMLDefinitions::CarFollowModels, cfModel, cfParameter, OutputDevice::closeTag(), color, containerCapacity, defaultProbability, emissionClass, PollutantsInterface::getName(), getVehicleShapeName(), hasDriverState, 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_HASDRIVERSTATE, 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_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_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 ROVehicle::saveAsXML(), ROPerson::saveAsXML(), wasSet(), and RODFDetectorCon::writeEmitters().
|
inherited |
write Params in the given outputdevice
Definition at line 111 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 ROVehicle::saveAsXML(), ROPerson::saveAsXML(), MEVehicle::saveState(), MSVehicle::saveState(), write(), GNEAdditional::writeAdditional(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeJunction(), NWWriter_SUMO::writeLane(), NWWriter_XML::writeNodes(), MSDevice_Vehroutes::writeOutput(), PointOfInterest::writeXML(), and SUMOPolygon::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 159 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::check(), MSVehicleType::getActionStepLength(), MSVehicleType::MSVehicleType(), MSVehicleType::setActionStepLength(), and write().
SUMOTime SUMOVTypeParameter::boardingDuration |
The time a person needs to board the vehicle.
Definition at line 177 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::getBoardingDuration(), and write().
SumoXMLTag SUMOVTypeParameter::cfModel |
The enum-representation of the car-following model to use.
Definition at line 202 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::build(), SUMOVehicleParserHelper::parseVTypeEmbedded(), SUMOVTypeParameter(), and write().
SubParams SUMOVTypeParameter::cfParameter |
Car-following parameter.
Definition at line 208 of file SUMOVTypeParameter.h.
Referenced by getCFParam(), getCFParamString(), SUMOVehicleParserHelper::parseVTypeEmbedded(), MSVehicleType::setAccel(), MSVehicleType::setApparentDecel(), MSVehicleType::setDecel(), MSVehicleType::setEmergencyDecel(), MSVehicleType::setImperfection(), libsumo::VehicleType::setSpeedDeviation(), MSVehicleType::setTau(), and write().
RGBColor SUMOVTypeParameter::color |
The color.
Definition at line 167 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::getColor(), MSVehicleType::setColor(), and write().
int SUMOVTypeParameter::containerCapacity |
The container capacity of the vehicle.
Definition at line 175 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::getContainerCapacity(), SUMOVTypeParameter(), and write().
double SUMOVTypeParameter::defaultProbability |
The probability when being added to a distribution without an explicit probability.
Definition at line 161 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::getDefaultProbability(), RORouteHandler::myEndElement(), MSVehicleType::setDefaultProbability(), and write().
SUMOEmissionClass SUMOVTypeParameter::emissionClass |
The emission class of this vehicle.
Definition at line 165 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::getEmissionClass(), ROEdge::getEmissionEffort(), ROEdge::getNoiseEffort(), MSVehicleType::setEmissionClass(), SUMOVTypeParameter(), and write().
bool SUMOVTypeParameter::hasDriverState |
Whether vehicles of this type are equipped with a driver (i.e. MSDriverState))
Definition at line 205 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicle::MSVehicle(), and write().
double SUMOVTypeParameter::height |
This class' height.
Definition at line 188 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::getHeight(), MSVehicleType::setHeight(), SUMOVTypeParameter(), and write().
std::string SUMOVTypeParameter::id |
The vehicle type's id.
Definition at line 149 of file SUMOVTypeParameter.h.
Referenced by RONet::addVehicleType(), SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::build(), RONet::checkFlows(), RORouteHandler::closeVehicle(), MSVehicleType::duplicateType(), MSVehicleType::getID(), SUMORouteHandler::myStartElement(), SUMOVehicleParserHelper::parseJMParams(), SUMOVehicleParserHelper::parseLCParams(), SUMOVehicleParserHelper::parseVTypeEmbedded(), and RONet::RONet().
std::string SUMOVTypeParameter::imgFile |
Image file for this class.
Definition at line 197 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::getImgFile(), and write().
double SUMOVTypeParameter::impatience |
The vehicle's impatience (willingness to obstruct others)
Definition at line 171 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::getImpatience(), MSVehicleType::setImpatience(), and write().
SubParams SUMOVTypeParameter::jmParameter |
Junction-model parameter.
Definition at line 212 of file SUMOVTypeParameter.h.
Referenced by getJMParam(), GUIVehicle::getTypeParameterWindow(), SUMOVehicleParserHelper::parseJMParams(), and write().
LateralAlignment SUMOVTypeParameter::latAlignment |
The vehicles desired lateral alignment.
Definition at line 220 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::getPreferredLateralAlignment(), MSVehicleType::setPreferredLateralAlignment(), and write().
LaneChangeModel SUMOVTypeParameter::lcModel |
The lane-change model to use.
Definition at line 215 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::getLaneChangeModel(), and write().
SubParams SUMOVTypeParameter::lcParameter |
Lane-changing parameter.
Definition at line 210 of file SUMOVTypeParameter.h.
Referenced by getLCParam(), getLCParams(), GUIVehicle::getTypeParameterWindow(), SUMOVehicleParserHelper::parseLCParams(), and write().
double SUMOVTypeParameter::length |
The physical vehicle length.
Definition at line 152 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::getLength(), MSVehicleType::getLengthWithGap(), MSVehicleType::setLength(), SUMOVTypeParameter(), and write().
SUMOTime SUMOVTypeParameter::loadingDuration |
The time a container needs to get loaded on the vehicle.
Definition at line 179 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::getLoadingDuration(), and write().
double SUMOVTypeParameter::maxSpeed |
The vehicle type's maximum speed [m/s].
Definition at line 156 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), ROPerson::computeIntermodal(), ROEdge::getEffort(), ROEdge::getEmissionEffort(), RORoutable::getMaxSpeed(), MSVehicleType::getMaxSpeed(), ROEdge::getMinimumTravelTime(), ROEdge::getNoiseEffort(), ROEdge::getTravelTime(), MSVehicleType::setMaxSpeed(), SUMOVTypeParameter(), and write().
double SUMOVTypeParameter::maxSpeedLat |
The vehicle type's maximum lateral speed [m/s].
Definition at line 218 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::getMaxSpeedLat(), MSVehicleType::setMaxSpeedLat(), and write().
double SUMOVTypeParameter::minGap |
This class' free space in front of the vehicle itself.
Definition at line 154 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::getLengthWithGap(), MSVehicleType::getMinGap(), MSVehicleType::setMinGap(), SUMOVTypeParameter(), and write().
double SUMOVTypeParameter::minGapLat |
The vehicle type's minimum lateral gap [m].
Definition at line 222 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::getMinGapLat(), MSVehicleType::setMinGapLat(), and write().
bool SUMOVTypeParameter::onlyReferenced |
Information whether this is a type-stub, being only referenced but not defined (needed by routers)
Definition at line 232 of file SUMOVTypeParameter.h.
Referenced by RONet::RONet(), and write().
std::string SUMOVTypeParameter::osgFile |
3D model file for this class
Definition at line 194 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::getOSGFile(), SUMOVTypeParameter(), and write().
int SUMOVTypeParameter::parametersSet |
Information for the router which parameter were set.
Definition at line 225 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleControl::MSVehicleControl(), SUMOVehicleParserHelper::parseVTypeEmbedded(), RONet::RONet(), MSVehicleType::setActionStepLength(), 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().
int SUMOVTypeParameter::personCapacity |
The person capacity of the vehicle.
Definition at line 173 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::getPersonCapacity(), SUMOVTypeParameter(), and write().
|
mutable |
Information whether this type was already saved (needed by routers)
Definition at line 229 of file SUMOVTypeParameter.h.
Referenced by ROVehicle::saveAsXML(), and ROPerson::saveAsXML().
SUMOVehicleShape SUMOVTypeParameter::shape |
This class' shape.
Definition at line 191 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::getGuiShape(), MSVehicleType::setShape(), SUMOVTypeParameter(), 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 163 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::computeChosenSpeedDeviation(), ROVehicle::getChosenSpeedFactor(), MSVehicleType::getSpeedFactor(), ROEdge::getTravelTime(), MSVehicleType::setSpeedDeviation(), MSVehicleType::setSpeedFactor(), RODFDetectorCon::setSpeedFactorAndDev(), SUMOVTypeParameter(), and write().
SUMOVehicleClass SUMOVTypeParameter::vehicleClass |
The vehicle's class.
Definition at line 169 of file SUMOVTypeParameter.h.
Referenced by MSVehicleType::build(), RORouteHandler::closeVehicle(), ROEdge::getEmissionEffort(), RORoutable::getVClass(), MSBaseVehicle::getVClass(), MSVehicleType::getVehicleClass(), MSVehicleType::setVClass(), and write().
double SUMOVTypeParameter::width |
This class' width.
Definition at line 185 of file SUMOVTypeParameter.h.
Referenced by SUMOVehicleParserHelper::beginVTypeParsing(), MSVehicleType::getWidth(), MSVehicleType::setWidth(), SUMOVTypeParameter(), and write().