![]() |
SUMO - Simulation of Urban MObility
|
Structure representing possible vehicle parameter. More...
#include <SUMOVehicleParameter.h>
Data Structures | |
struct | Stop |
Definition of vehicle stop (position and duration) More... | |
Public Member Functions | |
void | addParameter (const std::string &key, const std::string &value) |
Adds a parameter. More... | |
void | addParameter (const std::map< std::string, std::string > &mapArg) |
Adds all given parameter. More... | |
void | addParameter (const Parameterised &p) |
Adds all given parameter. More... | |
void | clearParameter () |
Clears the parameter map. More... | |
bool | defaultOptionOverrides (const OptionsCont &oc, const std::string &optionName) const |
Returns whether the defaults shall be used. More... | |
double | getDouble (const std::string &key, const double defaultValue) const |
Returns the value for a given key converted to a double. More... | |
const std::map< std::string, std::string > & | getMap () const |
Returns the inner key/value map. More... | |
const std::string & | getParameter (const std::string &key, const std::string &defaultValue) const |
Returns the value for a given key. More... | |
bool | knowsParameter (const std::string &key) const |
Returns whether the parameter is known. More... | |
SUMOVehicleParameter () | |
Constructor. More... | |
bool | wasSet (int what) const |
Returns whether the given parameter was set. More... | |
void | write (OutputDevice &dev, const OptionsCont &oc, const SumoXMLTag tag=SUMO_TAG_VEHICLE, const std::string &typeID="") const |
Writes the parameters as a beginning element. More... | |
void | writeParams (OutputDevice &out) const |
~SUMOVehicleParameter () | |
Destructor. More... | |
Static Public Member Functions | |
static double | interpretEdgePos (double pos, double maximumValue, SumoXMLAttr attr, const std::string &id) |
Interprets negative edge positions and fits them onto a given edge. More... | |
Depart/arrival-attributes verification | |
static bool | parseDepart (const std::string &val, const std::string &element, const std::string &id, SUMOTime &depart, DepartDefinition &dd, std::string &error) |
Validates a given depart value. More... | |
static bool | parseDepartLane (const std::string &val, const std::string &element, const std::string &id, int &lane, DepartLaneDefinition &dld, std::string &error) |
Validates a given departLane value. More... | |
static bool | parseDepartPos (const std::string &val, const std::string &element, const std::string &id, double &pos, DepartPosDefinition &dpd, std::string &error) |
Validates a given departPos value. More... | |
static bool | parseDepartPosLat (const std::string &val, const std::string &element, const std::string &id, double &pos, DepartPosLatDefinition &dpd, std::string &error) |
Validates a given departPosLat value. More... | |
static bool | parseDepartSpeed (const std::string &val, const std::string &element, const std::string &id, double &speed, DepartSpeedDefinition &dsd, std::string &error) |
Validates a given departSpeed value. More... | |
static bool | parseArrivalLane (const std::string &val, const std::string &element, const std::string &id, int &lane, ArrivalLaneDefinition &ald, std::string &error) |
Validates a given arrivalLane value. More... | |
static bool | parseArrivalPos (const std::string &val, const std::string &element, const std::string &id, double &pos, ArrivalPosDefinition &apd, std::string &error) |
Validates a given arrivalPos value. More... | |
static bool | parseArrivalPosLat (const std::string &val, const std::string &element, const std::string &id, double &pos, ArrivalPosLatDefinition &apd, std::string &error) |
Validates a given arrivalPosLat value. More... | |
static bool | parseArrivalSpeed (const std::string &val, const std::string &element, const std::string &id, double &speed, ArrivalSpeedDefinition &asd, std::string &error) |
Validates a given arrivalSpeed value. More... | |
Data Fields | |
RGBColor | color |
The vehicle's color, TraCI may change this. More... | |
int | containerNumber |
The static number of containers in the vehicle when it departs. More... | |
std::string | fromTaz |
The vehicle's origin zone (district) More... | |
std::string | id |
The vehicle's id. More... | |
std::string | line |
The vehicle's line (mainly for public transport) More... | |
int | personNumber |
The static number of persons in the vehicle when it departs (not including boarding persons) More... | |
std::string | routeid |
The vehicle's route id. More... | |
int | setParameter |
Information for the router which parameter were set, TraCI may modify this (whe changing color) More... | |
std::vector< Stop > | stops |
List of the stops the vehicle will make, TraCI may add entries here. More... | |
std::string | toTaz |
The vehicle's destination zone (district) More... | |
std::vector< std::string > | via |
List of the via-edges the vehicle must visit. More... | |
std::string | vtypeid |
The vehicle's type id. More... | |
Departure definition | |
SUMOTime | depart |
The vehicle's departure time. More... | |
DepartDefinition | departProcedure |
Information how the vehicle shall choose the depart time. More... | |
int | departLane |
(optional) The lane the vehicle shall depart from (index in edge) More... | |
DepartLaneDefinition | departLaneProcedure |
Information how the vehicle shall choose the lane to depart from. More... | |
double | departPos |
(optional) The position the vehicle shall depart from More... | |
DepartPosDefinition | departPosProcedure |
Information how the vehicle shall choose the departure position. More... | |
double | departPosLat |
(optional) The lateral position the vehicle shall depart from More... | |
DepartPosLatDefinition | departPosLatProcedure |
Information how the vehicle shall choose the lateral departure position. More... | |
double | departSpeed |
(optional) The initial speed of the vehicle More... | |
DepartSpeedDefinition | departSpeedProcedure |
Information how the vehicle's initial speed shall be chosen. More... | |
Arrival definition | |
int | arrivalLane |
(optional) The lane the vehicle shall arrive on (not used yet) More... | |
ArrivalLaneDefinition | arrivalLaneProcedure |
Information how the vehicle shall choose the lane to arrive on. More... | |
double | arrivalPos |
(optional) The position the vehicle shall arrive on More... | |
ArrivalPosDefinition | arrivalPosProcedure |
Information how the vehicle shall choose the arrival position. More... | |
double | arrivalPosLat |
(optional) The lateral position the vehicle shall arrive on More... | |
ArrivalPosLatDefinition | arrivalPosLatProcedure |
Information how the vehicle shall choose the lateral arrival position. More... | |
double | arrivalSpeed |
(optional) The final speed of the vehicle (not used yet) More... | |
ArrivalSpeedDefinition | arrivalSpeedProcedure |
Information how the vehicle's end speed shall be chosen. More... | |
Repetition definition | |
int | repetitionNumber |
The number of times the vehicle shall be repeatedly inserted. More... | |
int | repetitionsDone |
The number of times the vehicle was already inserted. More... | |
SUMOTime | repetitionOffset |
The time offset between vehicle reinsertions. More... | |
double | repetitionProbability |
The probability for emitting a vehicle per second. More... | |
SUMOTime | repetitionEnd |
The time at which the flow ends (only needed when using repetitionProbability) More... | |
Structure representing possible vehicle parameter.
When used within a vehicle, parameter are usually const except for selected items adaptable via TraCI which are flagged as mutable below The fields yielding with "Procedure" describe whether the according value shall be used or another procedure is used to choose the value.
Definition at line 284 of file SUMOVehicleParameter.h.
SUMOVehicleParameter::SUMOVehicleParameter | ( | ) |
Constructor.
Initialises the structure with default values
Definition at line 44 of file SUMOVehicleParameter.cpp.
SUMOVehicleParameter::~SUMOVehicleParameter | ( | ) |
Destructor.
Definition at line 59 of file SUMOVehicleParameter.cpp.
|
inherited |
Adds a parameter.
[in] | key | The parameter's name |
[in] | value | The parameter's value |
Definition at line 51 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by SUMORouteHandler::addParam(), NLHandler::addParam(), TraCI_POI::addParameter(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NBTrafficLightDefinition::compute(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenDrive::loadNetwork(), MSStateHandler::myStartElement(), NIImporter_MATSim::EdgesHandler::myStartElement(), NIImporter_OpenStreetMap::EdgesHandler::myStartElement(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_TLS::processSet(), TraCI_Polygon::setParameter(), TraCI_Route::setParameter(), and TraCI_Lane::setParameter().
|
inherited |
Adds all given parameter.
[in] | mapArg | The keys/values to insert |
Definition at line 57 of file Parameterised.cpp.
References Parameterised::myMap.
|
inherited |
Adds all given parameter.
[in] | p | The keys/values to insert |
Definition at line 65 of file Parameterised.cpp.
References Parameterised::myMap.
|
inherited |
Clears the parameter map.
Definition at line 99 of file Parameterised.cpp.
References Parameterised::myMap.
bool SUMOVehicleParameter::defaultOptionOverrides | ( | const OptionsCont & | oc, |
const std::string & | optionName | ||
) | const |
Returns whether the defaults shall be used.
[in] | oc | The options to get the options from |
[in] | optionName | The name of the option to determine whether its value shall be used |
Definition at line 63 of file SUMOVehicleParameter.cpp.
References OptionsCont::exists(), OptionsCont::getBool(), and OptionsCont::isSet().
|
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 89 of file Parameterised.cpp.
References TplConvert::_2double(), and Parameterised::myMap.
Referenced by MSDevice_Battery::buildVehicleDevices().
|
inlineinherited |
Returns the inner key/value map.
Definition at line 119 of file Parameterised.h.
References Parameterised::myMap, and Parameterised::writeParams().
Referenced by NBTrafficLightDefinition::compute(), GUIPerson::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), GUIVehicle::getTypeParameterWindow(), TraCIServerAPI_TLS::processGet(), ROPerson::saveAsXML(), and PointOfInterest::writeXML().
|
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 79 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSTLLogicControl::WAUTSwitchProcedure_Stretch::adaptLogic(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSDevice_SSM::getLoggingFrequency(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLRequestTrafficLightLogic::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), TraCI_Polygon::getParameter(), TraCI_VehicleType::getParameter(), TraCI_Route::getParameter(), TraCI_POI::getParameter(), TraCI_Lane::getParameter(), TraCI_Vehicle::getParameter(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), MSSOTLTrafficLightLogic::getThreshold(), MSTriggeredRerouter::getWeight(), PushButtonLogic::init(), MSSOTLPhasePolicy::init(), SigmoidLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), NIImporter_OpenStreetMap::insertEdge(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Person::processGet(), MSSOTLPolicyDesirability::readParameter(), MSDevice_SSM::requestsTrajectories(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), TraCIServerAPI_Vehicle::vtdMap(), and NWWriter_DlrNavteq::writeLinksUnsplitted().
|
static |
Interprets negative edge positions and fits them onto a given edge.
[in] | pos | The position to be interpreted |
[in] | maximumValue | The maximum allowed value (edge length) |
[in] | attr | The attribute from which the value originated |
[in] | id | The id of the object to which this attribute belongs |
Definition at line 593 of file SUMOVehicleParameter.cpp.
References toString(), and WRITE_WARNING.
Referenced by MSContainer::MSContainerStage_Tranship::MSContainerStage_Tranship(), MSPerson::MSPersonStage_Walking::MSPersonStage_Walking(), MSRouteHandler::parseWalkPos(), and wasSet().
|
inherited |
Returns whether the parameter is known.
[in] | key | The key to ask for |
Definition at line 73 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), NWWriter_DlrNavteq::getBrunnelType(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getLoggingFrequency(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_SSM::getOutputFilename(), MSTriggeredRerouter::getWeight(), and MSDevice_SSM::requestsTrajectories().
|
static |
Validates a given arrivalLane value.
[in] | val | The arrivalLane value to parse |
[in] | element | The name of the type of the parsed element, for building the error message |
[in] | id | The id of the parsed element, for building the error message |
[out] | lane | The parsed lane, if given |
[out] | ald | The parsed arrivalLane definition |
[out] | error | Error message, if an error occures |
Definition at line 497 of file SUMOVehicleParameter.cpp.
References TplConvert::_2int(), ARRIVAL_LANE_CURRENT, ARRIVAL_LANE_GIVEN, and OutputDevice::ok().
Referenced by ROJTRFrame::checkOptions(), RODUAFrame::checkOptions(), checkOptions(), SUMOVehicleParserHelper::parseCommonAttributes(), TraCIServerAPI_Vehicle::processSet(), and wasSet().
|
static |
Validates a given arrivalPos value.
[in] | val | The arrivalPos value to parse |
[in] | element | The name of the type of the parsed element, for building the error message |
[in] | id | The id of the parsed element, for building the error message |
[out] | pos | The parsed position, if given |
[out] | apd | The parsed arrivalPos definition |
[out] | error | Error message, if an error occures |
Definition at line 521 of file SUMOVehicleParameter.cpp.
References TplConvert::_2double(), ARRIVAL_POS_GIVEN, ARRIVAL_POS_MAX, ARRIVAL_POS_RANDOM, and OutputDevice::ok().
Referenced by ROJTRFrame::checkOptions(), RODUAFrame::checkOptions(), checkOptions(), SUMOVehicleParserHelper::parseCommonAttributes(), MSRouteHandler::parseWalkPos(), TraCIServerAPI_Vehicle::processSet(), and wasSet().
|
static |
Validates a given arrivalPosLat value.
[in] | val | The arrivalPosLat value to parse |
[in] | element | The name of the type of the parsed element, for building the error message |
[in] | id | The id of the parsed element, for building the error message |
[out] | pos | The parsed position, if given |
[out] | apd | The parsed arrivalPos definition |
[out] | error | Error message, if an error occures |
Definition at line 544 of file SUMOVehicleParameter.cpp.
References TplConvert::_2double(), ARRIVAL_POSLAT_CENTER, ARRIVAL_POSLAT_GIVEN, ARRIVAL_POSLAT_LEFT, ARRIVAL_POSLAT_RIGHT, and OutputDevice::ok().
Referenced by SUMOVehicleParserHelper::parseCommonAttributes(), and wasSet().
|
static |
Validates a given arrivalSpeed value.
[in] | val | The arrivalSpeed value to parse |
[in] | element | The name of the type of the parsed element, for building the error message |
[in] | id | The id of the parsed element, for building the error message |
[out] | speed | The parsed speed, if given |
[out] | asd | The parsed arrivalSpeed definition |
[out] | error | Error message, if an error occures |
Definition at line 569 of file SUMOVehicleParameter.cpp.
References TplConvert::_2double(), ARRIVAL_SPEED_CURRENT, ARRIVAL_SPEED_GIVEN, and OutputDevice::ok().
Referenced by ROJTRFrame::checkOptions(), RODUAFrame::checkOptions(), checkOptions(), SUMOVehicleParserHelper::parseCommonAttributes(), TraCIServerAPI_Vehicle::processSet(), and wasSet().
|
static |
Validates a given depart value.
[in] | val | The depart value to parse |
[in] | element | The name of the type of the parsed element, for building the error message |
[in] | id | The id of the parsed element, for building the error message |
[out] | depart | The parsed depart time, if given |
[out] | dd | The parsed departProcedure definition |
[out] | error | Error message, if an error occures |
Definition at line 353 of file SUMOVehicleParameter.cpp.
References DEPART_CONTAINER_TRIGGERED, DEPART_GIVEN, DEPART_NOW, DEPART_TRIGGERED, and string2time().
Referenced by SUMOVehicleParserHelper::parseVehicleAttributes(), TraCIServerAPI_Vehicle::processSet(), and wasSet().
|
static |
Validates a given departLane value.
[in] | val | The departLane value to parse |
[in] | element | The name of the type of the parsed element, for building the error message |
[in] | id | The id of the parsed element, for building the error message |
[out] | lane | The parsed lane, if given |
[out] | dld | The parsed departLane definition |
[out] | error | Error message, if an error occures |
Definition at line 379 of file SUMOVehicleParameter.cpp.
References TplConvert::_2int(), DEPART_LANE_ALLOWED_FREE, DEPART_LANE_BEST_FREE, DEPART_LANE_FIRST_ALLOWED, DEPART_LANE_FREE, DEPART_LANE_GIVEN, DEPART_LANE_RANDOM, and OutputDevice::ok().
Referenced by ROJTRFrame::checkOptions(), RODUAFrame::checkOptions(), checkOptions(), SUMOVehicleParserHelper::parseCommonAttributes(), TraCIServerAPI_Vehicle::processSet(), and wasSet().
|
static |
Validates a given departPos value.
[in] | val | The departPos value to parse |
[in] | element | The name of the type of the parsed element, for building the error message |
[in] | id | The id of the parsed element, for building the error message |
[out] | pos | The parsed position, if given |
[out] | dpd | The parsed departPos definition |
[out] | error | Error message, if an error occures |
Definition at line 411 of file SUMOVehicleParameter.cpp.
References TplConvert::_2double(), DEPART_POS_BASE, DEPART_POS_FREE, DEPART_POS_GIVEN, DEPART_POS_LAST, DEPART_POS_RANDOM, DEPART_POS_RANDOM_FREE, and OutputDevice::ok().
Referenced by ROJTRFrame::checkOptions(), RODUAFrame::checkOptions(), checkOptions(), SUMOVehicleParserHelper::parseCommonAttributes(), TraCIServerAPI_Vehicle::processSet(), and wasSet().
|
static |
Validates a given departPosLat value.
[in] | val | The departPosLat value to parse |
[in] | element | The name of the type of the parsed element, for building the error message |
[in] | id | The id of the parsed element, for building the error message |
[out] | pos | The parsed position, if given |
[out] | dpd | The parsed departPos definition |
[out] | error | Error message, if an error occures |
Definition at line 440 of file SUMOVehicleParameter.cpp.
References TplConvert::_2double(), DEPART_POSLAT_CENTER, DEPART_POSLAT_FREE, DEPART_POSLAT_GIVEN, DEPART_POSLAT_LEFT, DEPART_POSLAT_RANDOM, DEPART_POSLAT_RANDOM_FREE, DEPART_POSLAT_RIGHT, and OutputDevice::ok().
Referenced by SUMOVehicleParserHelper::parseCommonAttributes(), and wasSet().
|
static |
Validates a given departSpeed value.
[in] | val | The departSpeed value to parse |
[in] | element | The name of the type of the parsed element, for building the error message |
[in] | id | The id of the parsed element, for building the error message |
[out] | speed | The parsed speed, if given |
[out] | dsd | The parsed departSpeed definition |
[out] | error | Error message, if an error occures |
Definition at line 471 of file SUMOVehicleParameter.cpp.
References TplConvert::_2double(), DEPART_SPEED_GIVEN, DEPART_SPEED_MAX, DEPART_SPEED_RANDOM, and OutputDevice::ok().
Referenced by ROJTRFrame::checkOptions(), RODUAFrame::checkOptions(), checkOptions(), SUMOVehicleParserHelper::parseCommonAttributes(), TraCIServerAPI_Vehicle::processSet(), and wasSet().
|
inline |
Returns whether the given parameter was set.
[in] | what | The parameter which one asks for |
Definition at line 299 of file SUMOVehicleParameter.h.
References defaultOptionOverrides(), depart, interpretEdgePos(), parseArrivalLane(), parseArrivalPos(), parseArrivalPosLat(), parseArrivalSpeed(), parseDepart(), parseDepartLane(), parseDepartPos(), parseDepartPosLat(), parseDepartSpeed(), setParameter, SUMO_TAG_VEHICLE, and write().
Referenced by MSDevice_Routing::buildVehicleDevices(), MSBaseVehicle::MSBaseVehicle(), MSDevice_Routing::MSDevice_Routing(), MSRouteHandler::parseFromViaTo(), RORouteHandler::parseFromViaTo(), GUIBaseVehicle::setFunctionalColor(), and write().
void SUMOVehicleParameter::write | ( | OutputDevice & | dev, |
const OptionsCont & | oc, | ||
const SumoXMLTag | tag = SUMO_TAG_VEHICLE , |
||
const std::string & | typeID = "" |
||
) | const |
Writes the parameters as a beginning element.
[in,out] | dev | The device to write into |
[in] | oc | The options to get defaults from |
[in] | tag | The "root" tag to write (defaults to vehicle) |
[in] | tag | The typeID to write (defaults to member vtypeid) |
IOError | not yet implemented |
Definition at line 69 of file SUMOVehicleParameter.cpp.
References ARRIVAL_LANE_CURRENT, ARRIVAL_LANE_DEFAULT, ARRIVAL_LANE_GIVEN, ARRIVAL_POS_DEFAULT, ARRIVAL_POS_GIVEN, ARRIVAL_POS_MAX, ARRIVAL_POS_RANDOM, ARRIVAL_POSLAT_CENTER, ARRIVAL_POSLAT_DEFAULT, ARRIVAL_POSLAT_GIVEN, ARRIVAL_POSLAT_LEFT, ARRIVAL_POSLAT_RIGHT, ARRIVAL_SPEED_CURRENT, ARRIVAL_SPEED_DEFAULT, ARRIVAL_SPEED_GIVEN, arrivalLane, arrivalLaneProcedure, arrivalPos, arrivalPosProcedure, arrivalSpeed, arrivalSpeedProcedure, color, containerNumber, defaultOptionOverrides(), depart, DEPART_CONTAINER_TRIGGERED, DEPART_LANE_ALLOWED_FREE, DEPART_LANE_BEST_FREE, DEPART_LANE_DEFAULT, DEPART_LANE_FIRST_ALLOWED, DEPART_LANE_FREE, DEPART_LANE_GIVEN, DEPART_LANE_RANDOM, DEPART_POS_BASE, DEPART_POS_DEFAULT, DEPART_POS_FREE, DEPART_POS_GIVEN, DEPART_POS_LAST, DEPART_POS_RANDOM, DEPART_POS_RANDOM_FREE, DEPART_POSLAT_CENTER, DEPART_POSLAT_DEFAULT, DEPART_POSLAT_FREE, DEPART_POSLAT_GIVEN, DEPART_POSLAT_LEFT, DEPART_POSLAT_RANDOM, DEPART_POSLAT_RANDOM_FREE, DEPART_POSLAT_RIGHT, DEPART_SPEED_DEFAULT, DEPART_SPEED_GIVEN, DEPART_SPEED_MAX, DEPART_SPEED_RANDOM, DEPART_TRIGGERED, departLane, departLaneProcedure, departPos, departPosProcedure, departProcedure, departSpeed, departSpeedProcedure, OptionsCont::exists(), fromTaz, OptionsCont::getString(), OptionsCont::isSet(), line, OutputDevice::openTag(), personNumber, SUMO_ATTR_ARRIVALLANE, SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_ARRIVALPOS_LAT, SUMO_ATTR_ARRIVALSPEED, SUMO_ATTR_COLOR, SUMO_ATTR_CONTAINER_NUMBER, SUMO_ATTR_DEPART, SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_DEPARTPOS_LAT, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_FROM_TAZ, SUMO_ATTR_ID, SUMO_ATTR_LINE, SUMO_ATTR_PERSON_NUMBER, SUMO_ATTR_TO_TAZ, SUMO_ATTR_TYPE, time2string(), toString(), toTaz, VEHPARS_ARRIVALLANE_SET, VEHPARS_ARRIVALPOS_SET, VEHPARS_ARRIVALPOSLAT_SET, VEHPARS_ARRIVALSPEED_SET, VEHPARS_COLOR_SET, VEHPARS_CONTAINER_NUMBER_SET, VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTPOS_SET, VEHPARS_DEPARTPOSLAT_SET, VEHPARS_DEPARTSPEED_SET, VEHPARS_FROM_TAZ_SET, VEHPARS_LINE_SET, VEHPARS_PERSON_NUMBER_SET, VEHPARS_TO_TAZ_SET, VEHPARS_VTYPE_SET, vtypeid, wasSet(), OutputDevice::writeAttr(), and OutputDevice::writeNonEmptyAttr().
Referenced by ROVehicle::saveAsXML(), ROPerson::saveAsXML(), MSBaseVehicle::saveState(), and wasSet().
|
inherited |
Definition at line 104 of file Parameterised.cpp.
References OutputDevice::closeTag(), Parameterised::myMap, OutputDevice::openTag(), SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_PARAM, and OutputDevice::writeAttr().
Referenced by Parameterised::getMap(), ROVehicle::saveAsXML(), MSVehicle::saveState(), SUMOVTypeParameter::write(), MSDevice_Vehroutes::writeOutput(), and SUMO::Polygon::writeXML().
int SUMOVehicleParameter::arrivalLane |
(optional) The lane the vehicle shall arrive on (not used yet)
Definition at line 495 of file SUMOVehicleParameter.h.
Referenced by MSBaseVehicle::calculateArrivalParams(), ROJTRFrame::checkOptions(), RODUAFrame::checkOptions(), checkOptions(), SUMOVehicleParserHelper::parseCommonAttributes(), TraCIServerAPI_Vehicle::processSet(), and write().
ArrivalLaneDefinition SUMOVehicleParameter::arrivalLaneProcedure |
Information how the vehicle shall choose the lane to arrive on.
Definition at line 497 of file SUMOVehicleParameter.h.
Referenced by MSBaseVehicle::calculateArrivalParams(), ROJTRFrame::checkOptions(), RODUAFrame::checkOptions(), checkOptions(), SUMOVehicleParserHelper::parseCommonAttributes(), TraCIServerAPI_Vehicle::processSet(), MSVehicle::updateBestLanes(), and write().
double SUMOVehicleParameter::arrivalPos |
(optional) The position the vehicle shall arrive on
Definition at line 499 of file SUMOVehicleParameter.h.
Referenced by MSBaseVehicle::calculateArrivalParams(), ROJTRFrame::checkOptions(), RODUAFrame::checkOptions(), checkOptions(), SUMOVehicleParserHelper::parseCommonAttributes(), TraCIServerAPI_Vehicle::processSet(), and write().
double SUMOVehicleParameter::arrivalPosLat |
(optional) The lateral position the vehicle shall arrive on
Definition at line 503 of file SUMOVehicleParameter.h.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), and SUMOVehicleParserHelper::parseCommonAttributes().
ArrivalPosLatDefinition SUMOVehicleParameter::arrivalPosLatProcedure |
Information how the vehicle shall choose the lateral arrival position.
Definition at line 505 of file SUMOVehicleParameter.h.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), and SUMOVehicleParserHelper::parseCommonAttributes().
ArrivalPosDefinition SUMOVehicleParameter::arrivalPosProcedure |
Information how the vehicle shall choose the arrival position.
Definition at line 501 of file SUMOVehicleParameter.h.
Referenced by MSBaseVehicle::calculateArrivalParams(), ROJTRFrame::checkOptions(), RODUAFrame::checkOptions(), checkOptions(), SUMOVehicleParserHelper::parseCommonAttributes(), TraCIServerAPI_Vehicle::processSet(), and write().
double SUMOVehicleParameter::arrivalSpeed |
(optional) The final speed of the vehicle (not used yet)
Definition at line 507 of file SUMOVehicleParameter.h.
Referenced by MSBaseVehicle::calculateArrivalParams(), ROJTRFrame::checkOptions(), RODUAFrame::checkOptions(), checkOptions(), MSLane::isInsertionSuccess(), SUMOVehicleParserHelper::parseCommonAttributes(), MSVehicle::planMoveInternal(), TraCIServerAPI_Vehicle::processSet(), and write().
ArrivalSpeedDefinition SUMOVehicleParameter::arrivalSpeedProcedure |
Information how the vehicle's end speed shall be chosen.
Definition at line 509 of file SUMOVehicleParameter.h.
Referenced by MSBaseVehicle::calculateArrivalParams(), ROJTRFrame::checkOptions(), RODUAFrame::checkOptions(), checkOptions(), MSLane::isInsertionSuccess(), SUMOVehicleParserHelper::parseCommonAttributes(), MSVehicle::planMoveInternal(), TraCIServerAPI_Vehicle::processSet(), and write().
|
mutable |
The vehicle's color, TraCI may change this.
Definition at line 462 of file SUMOVehicleParameter.h.
Referenced by SUMOVehicleParserHelper::parseCommonAttributes(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_Vehicle::processSet(), GUIBaseVehicle::setFunctionalColor(), and write().
int SUMOVehicleParameter::containerNumber |
The static number of containers in the vehicle when it departs.
Definition at line 595 of file SUMOVehicleParameter.h.
Referenced by MSVehicle::getContainerNumber(), SUMOVehicleParserHelper::parseCommonAttributes(), and write().
SUMOTime SUMOVehicleParameter::depart |
The vehicle's departure time.
Definition at line 469 of file SUMOVehicleParameter.h.
Referenced by MSVehicleContainer::add(), MSTransportableControl::add(), RONet::addFlow(), IntermodalRouter< E, L, N, V >::addSchedule(), MSRouteHandler::addStop(), MEVehicleControl::buildVehicle(), GUIMEVehicleControl::buildVehicle(), GUIVehicleControl::buildVehicle(), MSVehicleControl::buildVehicle(), RONet::checkFlows(), SUMORouteHandler::checkLastDepart(), RORouteHandler::closeContainer(), MSRouteHandler::closeFlow(), RORouteHandler::closeFlow(), MSStateHandler::closeVehicle(), MSRouteHandler::closeVehicle(), RORouteHandler::closeVehicle(), ROPerson::computeIntermodal(), MSInsertionControl::determineCandidates(), METriggeredCalibrator::execute(), MSCalibrator::execute(), RORoutable::getDepart(), MSBaseVehicle::getDepartDelay(), ROVehicle::getDepartureTime(), MSTransportable::getDesiredDepart(), MSDevice_Routing::MSDevice_Routing(), ROMARouteHandler::myEndElement(), MSRouteHandler::myStartElement(), MSDevice_Vehroutes::notifyEnter(), TraCIServerAPI_Vehicle::processSet(), TraCIServerAPI_Person::processSet(), SUMORouteHandler::registerLastDepart(), MSVehicleContainer::remove(), METriggeredCalibrator::tryEmit(), MSInsertionControl::tryInsert(), MSVehicleControl::vehicleDeparted(), wasSet(), write(), and MSDevice_Vehroutes::writeOutput().
int SUMOVehicleParameter::departLane |
(optional) The lane the vehicle shall depart from (index in edge)
Definition at line 473 of file SUMOVehicleParameter.h.
Referenced by ROJTRFrame::checkOptions(), RODUAFrame::checkOptions(), checkOptions(), MSEdge::getDepartLane(), SUMOVehicleParserHelper::parseCommonAttributes(), TraCIServerAPI_Vehicle::processSet(), and write().
DepartLaneDefinition SUMOVehicleParameter::departLaneProcedure |
Information how the vehicle shall choose the lane to depart from.
Definition at line 475 of file SUMOVehicleParameter.h.
Referenced by ROJTRFrame::checkOptions(), RODUAFrame::checkOptions(), checkOptions(), MSEdge::getDepartLane(), MSEdge::insertVehicle(), MSVehicle::MSVehicle(), MSCalibrator::myStartElement(), SUMOVehicleParserHelper::parseCommonAttributes(), TraCIServerAPI_Vehicle::processSet(), and write().
double SUMOVehicleParameter::departPos |
(optional) The position the vehicle shall depart from
Definition at line 477 of file SUMOVehicleParameter.h.
Referenced by MSRouteHandler::addStop(), MSVehicle::addStop(), ROJTRFrame::checkOptions(), RODUAFrame::checkOptions(), checkOptions(), MSRouteHandler::closeVehicle(), MSEdge::getDepartPosBound(), MSLane::insertVehicle(), MSEdge::insertVehicle(), MSRouteHandler::myStartElement(), SUMOVehicleParserHelper::parseCommonAttributes(), TraCIServerAPI_Vehicle::processSet(), TraCIServerAPI_Person::processSet(), and write().
double SUMOVehicleParameter::departPosLat |
(optional) The lateral position the vehicle shall depart from
Definition at line 481 of file SUMOVehicleParameter.h.
Referenced by MSLane::insertVehicle(), and SUMOVehicleParserHelper::parseCommonAttributes().
DepartPosLatDefinition SUMOVehicleParameter::departPosLatProcedure |
Information how the vehicle shall choose the lateral departure position.
Definition at line 483 of file SUMOVehicleParameter.h.
Referenced by MSLane::insertVehicle(), and SUMOVehicleParserHelper::parseCommonAttributes().
DepartPosDefinition SUMOVehicleParameter::departPosProcedure |
Information how the vehicle shall choose the departure position.
Definition at line 479 of file SUMOVehicleParameter.h.
Referenced by MSVehicle::addStop(), ROJTRFrame::checkOptions(), RODUAFrame::checkOptions(), checkOptions(), MSEdge::getDepartPosBound(), MSLane::insertVehicle(), MSEdge::insertVehicle(), SUMOVehicleParserHelper::parseCommonAttributes(), TraCIServerAPI_Vehicle::processSet(), TraCIServerAPI_Person::processSet(), and write().
DepartDefinition SUMOVehicleParameter::departProcedure |
Information how the vehicle shall choose the depart time.
Definition at line 471 of file SUMOVehicleParameter.h.
Referenced by ROPerson::addTrip(), SUMORouteHandler::checkLastDepart(), MSRouteHandler::closeVehicle(), RORouteHandler::closeVehicle(), MSContainer::MSContainerStage_Driving::proceed(), MSPerson::MSPersonStage_Driving::proceed(), TraCIServerAPI_Vehicle::processSet(), TraCIServerAPI_Person::processSet(), SUMORouteHandler::registerLastDepart(), and write().
double SUMOVehicleParameter::departSpeed |
(optional) The initial speed of the vehicle
Definition at line 485 of file SUMOVehicleParameter.h.
Referenced by ROJTRFrame::checkOptions(), RODUAFrame::checkOptions(), checkOptions(), MSLane::getDepartSpeed(), MSEdge::insertVehicle(), MEVehicle::MEVehicle(), MSVehicle::MSVehicle(), SUMOVehicleParserHelper::parseCommonAttributes(), TraCIServerAPI_Vehicle::processSet(), and write().
DepartSpeedDefinition SUMOVehicleParameter::departSpeedProcedure |
Information how the vehicle's initial speed shall be chosen.
Definition at line 487 of file SUMOVehicleParameter.h.
Referenced by ROJTRFrame::checkOptions(), RODUAFrame::checkOptions(), checkOptions(), MSLane::getDepartSpeed(), MSEdge::insertVehicle(), MEVehicle::MEVehicle(), MSVehicle::MSVehicle(), MSCalibrator::myStartElement(), SUMOVehicleParserHelper::parseCommonAttributes(), TraCIServerAPI_Vehicle::processSet(), and write().
std::string SUMOVehicleParameter::fromTaz |
The vehicle's origin zone (district)
Definition at line 533 of file SUMOVehicleParameter.h.
Referenced by ROMARouteHandler::myEndElement(), ROMARouteHandler::myStartElement(), SUMOVehicleParserHelper::parseCommonAttributes(), MSRouteHandler::parseFromViaTo(), RORouteHandler::parseFromViaTo(), TraCIServerAPI_Vehicle::processSet(), MSBaseVehicle::reroute(), and write().
std::string SUMOVehicleParameter::id |
The vehicle's id.
Definition at line 455 of file SUMOVehicleParameter.h.
Referenced by MSTransportableControl::add(), MSInsertionControl::add(), RONet::addFlow(), RORouteHandler::addPersonTrip(), IntermodalRouter< E, L, N, V >::addSchedule(), MSRouteHandler::addStop(), RORouteHandler::addStop(), MSVehicle::addStop(), ROPerson::addTrip(), MSTransportableControl::boardAnyWaiting(), RONet::checkFlows(), SUMORouteHandler::checkLastDepart(), MSRouteHandler::closeContainer(), RORouteHandler::closeContainer(), MSRouteHandler::closeFlow(), RORouteHandler::closeFlow(), MSRouteHandler::closePerson(), RORouteHandler::closePerson(), MSRouteHandler::closeRoute(), RORouteHandler::closeRoute(), MSStateHandler::closeVehicle(), MSRouteHandler::closeVehicle(), RORouteHandler::closeVehicle(), MSInsertionControl::determineCandidates(), METriggeredCalibrator::execute(), MSCalibrator::execute(), MSBaseVehicle::getID(), RORoutable::getID(), MSTransportable::getID(), MSEdge::insertVehicle(), MSTransportableControl::loadAnyWaiting(), MEVehicle::MEVehicle(), MSBaseVehicle::MSBaseVehicle(), MSVehicle::MSVehicle(), ROMARouteHandler::myEndElement(), MSRouteHandler::myStartElement(), RORouteHandler::myStartElement(), SUMORouteHandler::myStartElement(), MSRouteHandler::openRoute(), RORouteHandler::openRoute(), MSRouteHandler::openRouteDistribution(), RORouteHandler::openRouteDistribution(), SUMOVehicleParserHelper::parseCommonAttributes(), MSRouteHandler::parseFromViaTo(), RORouteHandler::parseFromViaTo(), TraCIServerAPI_Vehicle::processSet(), TraCIServerAPI_Person::processSet(), and MSVehicle::replaceParkingArea().
|
mutable |
The vehicle's line (mainly for public transport)
Definition at line 530 of file SUMOVehicleParameter.h.
Referenced by RONet::adaptIntermodalRouter(), IntermodalRouter< E, L, N, V >::addSchedule(), MSTransportableControl::boardAnyWaiting(), GUIBaseVehicle::drawOnPos(), TraCI_Vehicle::getLine(), GUIMEVehicle::getParameterWindow(), GUIVehicle::getParameterWindow(), MSVehicleControl::getWaitingVehicle(), MSTransportableControl::loadAnyWaiting(), SUMOVehicleParserHelper::parseCommonAttributes(), TraCIServerAPI_Vehicle::processSet(), SUMORouteHandler::registerLastDepart(), and write().
int SUMOVehicleParameter::personNumber |
The static number of persons in the vehicle when it departs (not including boarding persons)
Definition at line 592 of file SUMOVehicleParameter.h.
Referenced by MSVehicle::getPersonNumber(), SUMOVehicleParserHelper::parseCommonAttributes(), TraCIServerAPI_Vehicle::processSet(), and write().
SUMOTime SUMOVehicleParameter::repetitionEnd |
The time at which the flow ends (only needed when using repetitionProbability)
Definition at line 525 of file SUMOVehicleParameter.h.
Referenced by RONet::checkFlows(), and MSInsertionControl::determineCandidates().
int SUMOVehicleParameter::repetitionNumber |
The number of times the vehicle shall be repeatedly inserted.
Definition at line 517 of file SUMOVehicleParameter.h.
Referenced by RONet::adaptIntermodalRouter(), RONet::addFlow(), IntermodalRouter< E, L, N, V >::addSchedule(), RONet::checkFlows(), MSRouteHandler::closeFlow(), RORouteHandler::closeFlow(), MSRouteHandler::closeRoute(), MSInsertionControl::determineCandidates(), SUMORouteHandler::myEndElement(), and MSBaseVehicle::~MSBaseVehicle().
SUMOTime SUMOVehicleParameter::repetitionOffset |
The time offset between vehicle reinsertions.
Definition at line 521 of file SUMOVehicleParameter.h.
Referenced by RONet::addFlow(), IntermodalRouter< E, L, N, V >::addSchedule(), RONet::checkFlows(), MSRouteHandler::closeFlow(), RORouteHandler::closeFlow(), and MSInsertionControl::determineCandidates().
double SUMOVehicleParameter::repetitionProbability |
The probability for emitting a vehicle per second.
Definition at line 523 of file SUMOVehicleParameter.h.
Referenced by RONet::checkFlows(), MSRouteHandler::closeFlow(), and MSInsertionControl::determineCandidates().
int SUMOVehicleParameter::repetitionsDone |
The number of times the vehicle was already inserted.
Definition at line 519 of file SUMOVehicleParameter.h.
Referenced by RONet::checkFlows(), MSRouteHandler::closeFlow(), RORouteHandler::closeFlow(), and MSInsertionControl::determineCandidates().
std::string SUMOVehicleParameter::routeid |
The vehicle's route id.
Definition at line 458 of file SUMOVehicleParameter.h.
Referenced by RONet::checkFlows(), MSRouteHandler::closeFlow(), RORouteHandler::closeFlow(), MSRouteHandler::closeVehicle(), RORouteHandler::closeVehicle(), MSInsertionControl::determineCandidates(), METriggeredCalibrator::execute(), MSCalibrator::execute(), RORouteHandler::openRoute(), RORouteHandler::openRouteDistribution(), SUMOVehicleParserHelper::parseCommonAttributes(), MSRouteHandler::parseFromViaTo(), RORouteHandler::parseFromViaTo(), and MSBaseVehicle::~MSBaseVehicle().
|
mutable |
Information for the router which parameter were set, TraCI may modify this (whe changing color)
Definition at line 598 of file SUMOVehicleParameter.h.
Referenced by ROPerson::addTrip(), MSRouteHandler::closeFlow(), MSBaseVehicle::MSBaseVehicle(), MSRouteHandler::myEndElement(), SUMORouteHandler::myStartElement(), SUMOVehicleParserHelper::parseCommonAttributes(), TraCIServerAPI_Vehicle::processSet(), wasSet(), and SUMOVehicleParameter::Stop::write().
|
mutable |
List of the stops the vehicle will make, TraCI may add entries here.
Definition at line 586 of file SUMOVehicleParameter.h.
Referenced by IntermodalRouter< E, L, N, V >::addSchedule(), MSRouteHandler::addStop(), RORouteHandler::addStop(), ROVehicle::addStop(), MSBaseVehicle::addStops(), MSVehicle::addTraciStop(), MSVehicle::addTraciStopAtStoppingPlace(), RONet::checkFlows(), ROVehicle::ROVehicle(), ROVehicle::saveAsXML(), and MSDevice_Vehroutes::writeOutput().
std::string SUMOVehicleParameter::toTaz |
The vehicle's destination zone (district)
Definition at line 536 of file SUMOVehicleParameter.h.
Referenced by ROMARouteHandler::myEndElement(), ROMARouteHandler::myStartElement(), SUMOVehicleParserHelper::parseCommonAttributes(), MSRouteHandler::parseFromViaTo(), RORouteHandler::parseFromViaTo(), TraCIServerAPI_Vehicle::processSet(), MSBaseVehicle::reroute(), and write().
|
mutable |
List of the via-edges the vehicle must visit.
Definition at line 589 of file SUMOVehicleParameter.h.
Referenced by TraCI_Vehicle::getVia(), MSRouteHandler::parseFromViaTo(), RORouteHandler::parseFromViaTo(), TraCIServerAPI_Vehicle::processSet(), MSBaseVehicle::reroute(), and ROVehicle::ROVehicle().
std::string SUMOVehicleParameter::vtypeid |
The vehicle's type id.
Definition at line 460 of file SUMOVehicleParameter.h.
Referenced by ROPerson::addTrip(), RONet::checkFlows(), MSRouteHandler::closeContainer(), MSRouteHandler::closeFlow(), RORouteHandler::closeFlow(), MSRouteHandler::closePerson(), MSRouteHandler::closeVehicle(), RORouteHandler::closeVehicle(), MSInsertionControl::determineCandidates(), METriggeredCalibrator::execute(), MSCalibrator::execute(), ROMARouteHandler::myEndElement(), MSRouteHandler::myStartElement(), RORouteHandler::myStartElement(), MSCalibrator::myStartElement(), SUMOVehicleParserHelper::parseCommonAttributes(), METriggeredCalibrator::remainingVehicleCapacity(), MSCalibrator::remainingVehicleCapacity(), and write().