52 myTagProperty(getTagProperties(tag)),
143 template<> std::string
151 if (
string.size() == 0) {
169 if (
string.size() == 0) {
174 if (!ok || (pos.size() != 1)) {
187 if (
string.empty()) {
211 template<> std::vector<std::string>
217 template<> std::set<std::string>
220 std::set<std::string> solution;
221 for (
const auto& i : vectorString) {
228 template<> std::vector<int>
230 std::vector<std::string> parsedValues = parse<std::vector<std::string> >(string);
231 std::vector<int> parsedIntValues;
232 for (
const auto& i : parsedValues) {
233 parsedIntValues.push_back(parse<int>(i));
235 return parsedIntValues;
239 template<> std::vector<double>
241 std::vector<std::string> parsedValues = parse<std::vector<std::string> >(string);
242 std::vector<double> parsedDoubleValues;
243 for (
const auto& i : parsedValues) {
244 parsedDoubleValues.push_back(parse<double>(i));
246 return parsedDoubleValues;
250 template<> std::vector<bool>
252 std::vector<std::string> parsedValues = parse<std::vector<std::string> >(string);
253 std::vector<bool> parsedBoolValues;
254 for (
const auto& i : parsedValues) {
255 parsedBoolValues.push_back(parse<bool>(i));
257 return parsedBoolValues;
261 template<> std::vector<GNEEdge*>
264 std::vector<std::string> edgeIds = GNEAttributeCarrier::parse<std::vector<std::string> > (value);
265 std::vector<GNEEdge*> parsedEdges;
267 for (
const auto& i : edgeIds) {
279 template<> std::vector<GNELane*>
282 std::vector<std::string> laneIds = GNEAttributeCarrier::parse<std::vector<std::string> > (value);
283 std::vector<GNELane*> parsedLanes;
285 for (
const auto& i : laneIds) {
297 template<> std::string
300 std::vector<std::string> edgeIDs;
301 for (
const auto& i : ACs) {
302 edgeIDs.push_back(i->getID());
308 template<> std::string
311 std::vector<std::string> laneIDs;
312 for (
const auto& i : ACs) {
313 laneIDs.push_back(i->getID());
322 if (lanes.size() > 1) {
325 while (currentLane < ((
int)lanes.size() - 1)) {
328 for (
int i = 0; (i < (int)lanes.at(currentLane)->getParentEdge()->getParentJunctions().back()->getGNEOutgoingEdges().size()) && (nextLane == -1); i++) {
330 for (
int j = 0; (j < (int)lanes.at(currentLane)->getParentEdge()->getParentJunctions().back()->getGNEOutgoingEdges().at(i)->getLanes().size()) && (nextLane == -1); j++) {
332 if (lanes.at(currentLane)->getParentEdge()->getParentJunctions().back()->getGNEOutgoingEdges().at(i)->getLanes().at(j) == lanes.at(currentLane + 1)) {
333 nextLane = currentLane;
337 if (nextLane == -1) {
350 template<> std::string
355 result += parameter.first +
"=" + parameter.second +
"|";
358 if (!result.empty()) {
365 template<> std::vector<std::pair<std::string, std::string> >
367 std::vector<std::pair<std::string, std::string> > result;
370 result.push_back(std::make_pair(parameter.first, parameter.second));
379 std::map<std::string, std::string> parametersMap;
383 while (parametersTokenizer.
hasNext()) {
386 if (keyValue.size() == 2) {
387 parametersMap[keyValue.front()] = keyValue.back();
398 std::map<std::string, std::string> parametersMap;
400 for (
const auto& parameter : parameters) {
401 parametersMap[parameter.first] = parameter.second;
411 std::string paramsStr;
413 for (
const auto& parameter : parameters) {
414 paramsStr += parameter.first +
"=" + parameter.second +
"|";
417 if (!paramsStr.empty()) {
418 paramsStr.pop_back();
430 parametersMap[key] = attribute;
439 std::map<std::string, std::string> newParametersMap;
443 if (std::find(keepKeys.begin(), keepKeys.end(), parameter.first) != keepKeys.end()) {
444 newParametersMap.insert(parameter);
463 if (direction ==
"s") {
464 return "Straight (s)";
465 }
else if (direction ==
"t") {
467 }
else if (direction ==
"l") {
469 }
else if (direction ==
"r") {
471 }
else if (direction ==
"L") {
472 return "Partially left (L)";
473 }
else if (direction ==
"R") {
474 return "Partially right (R)";
475 }
else if (direction ==
"invalid") {
476 return "No direction (Invalid))";
485 return "Dead end (-)";
486 }
else if (state ==
"=") {
488 }
else if (state ==
"m") {
489 return "Minor link (m)";
490 }
else if (state ==
"M") {
491 return "Major link (M)";
492 }
else if (state ==
"O") {
493 return "TLS controller off (O)";
494 }
else if (state ==
"o") {
495 return "TLS yellow flashing (o)";
496 }
else if (state ==
"y") {
497 return "TLS yellow minor link (y)";
498 }
else if (state ==
"Y") {
499 return "TLS yellow major link (Y)";
500 }
else if (state ==
"r") {
501 return "TLS red (r)";
502 }
else if (state ==
"g") {
503 return "TLS green minor (g)";
504 }
else if (state ==
"G") {
505 return "TLS green major (G)";
520 return "not together with number and period or probability";
522 return "not together with end and period or probability";
526 return "not together with number and period or probability";
528 return "not together with end and period or probability";
532 return "not together with number and vehsPerHour or probability";
534 return "not together with end and vehsPerHour or probability";
538 return "not together with number and vehsPerHour or period";
540 return "not together with end and vehsPerHour or period";
543 return "not together with end and number";
602 std::vector<SumoXMLTag>
604 std::vector<SumoXMLTag> allTags;
611 if (!onlyDrawables || i.second.isDrawable()) {
612 allTags.push_back(i.first);
619 std::vector<std::pair<SumoXMLTag, const std::string> >
621 std::vector<std::pair<SumoXMLTag, const std::string> >
allowedTags;
629 if (tagProperty.second.isNetworkElement() && (!onlyDrawables || tagProperty.second.isDrawable())) {
637 if (tagProperty.second.isAdditionalElement() && (!onlyDrawables || tagProperty.second.isDrawable())) {
645 if (tagProperty.second.isShape() && (!onlyDrawables || tagProperty.second.isDrawable())) {
653 if (tagProperty.second.isTAZElement() && (!onlyDrawables || tagProperty.second.isDrawable())) {
661 if (tagProperty.second.isDemandElement() && (!onlyDrawables || tagProperty.second.isDrawable())) {
669 if (tagProperty.second.isRoute() && (!onlyDrawables || tagProperty.second.isDrawable())) {
687 if (tagProperty.second.isStop() && (!onlyDrawables || tagProperty.second.isDrawable())) {
695 if (tagProperty.second.isPerson() && (!onlyDrawables || tagProperty.second.isDrawable())) {
703 if (tagProperty.second.isPersonPlan() && (!onlyDrawables || tagProperty.second.isDrawable())) {
711 if (tagProperty.second.isPersonTrip() && (!onlyDrawables || tagProperty.second.isDrawable())) {
719 if (tagProperty.second.isWalk() && (!onlyDrawables || tagProperty.second.isDrawable())) {
727 if (tagProperty.second.isRide() && (!onlyDrawables || tagProperty.second.isDrawable())) {
735 if (tagProperty.second.isPersonStop() && (!onlyDrawables || tagProperty.second.isDrawable())) {
743 if (tagProperty.second.isGenericData() && (!onlyDrawables || tagProperty.second.isDrawable())) {
774 tagProperty.second.checkTagIntegrity();
800 "The id of the node");
805 "The x-y-z position of the node on the plane in meters");
810 "An optional type for the node");
816 "A custom shape for that node");
821 "Optional turning radius (for all corners) for that node in meters",
827 "Whether the junction-blocking-heuristic should be activated at this node",
833 "How to compute right of way rules at this node",
840 "Whether this junction is at the fringe of the network",
847 "Optional name of " +
toString(currentTag));
852 "An optional type for the traffic light algorithm");
858 "An optional layout for the traffic light plan");
867 "An optional id for the traffic light program");
880 "The id of the edge");
885 "The number of lanes of the edge",
891 "The maximum speed allowed on the edge in m/s",
897 "Explicitly allows the given vehicle classes (not given will be not allowed)",
904 "Explicitly disallows the given vehicle classes (not given will be allowed)");
910 "The priority of the edge",
916 "Lane width for all lanes of this edge in meters (used for visualization)",
930 "The maximum speed allowed on the lane in m/s",
936 "Explicitly allows the given vehicle classes (not given will be not allowed)",
943 "Explicitly disallows the given vehicle classes (not given will be allowed)");
949 "Lane width for all lanes of this lane in meters (used for visualization)",
963 "The id of the edge");
968 "The name of a node within the nodes-file the edge shall start at");
973 "The name of a node within the nodes-file the edge shall end at");
978 "The maximum speed allowed on the edge in m/s",
984 "The priority of the edge",
990 "The number of lanes of the edge",
996 "The name of a type within the SUMO edge type file");
1001 "Explicitly allows the given vehicle classes (not given will be not allowed)",
1008 "Explicitly disallows the given vehicle classes (not given will be allowed)");
1014 "If the shape is given it should start and end with the positions of the from-node and to-node");
1019 "The length of the edge in meter");
1024 "Lane width for all lanes of this edge in meters (used for visualization)",
1031 "street name (need not be unique, used for visualization)");
1036 "Lane width for all lanes of this edge in meters (used for visualization)",
1042 "Move the stop line back from the intersection by the given amount",
1048 "Custom position in which shape start (by default position of junction from)");
1053 "Custom position in which shape end (by default position of junction from)");
1058 "Show if edge is bidireccional",
1078 "ID of lane (Automatic, non editable)");
1083 "The enumeration index of the lane (0 is the rightmost lane, <NUMBER_LANES>-1 is the leftmost one)");
1088 "Speed in meters per second",
1094 "Explicitly allows the given vehicle classes (not given will be not allowed)",
1101 "Explicitly disallows the given vehicle classes (not given will be allowed)");
1107 "Width in meters (used for visualization)",
1113 "Move the stop line back from the intersection by the given amount",
1119 "Enable or disable lane as acceleration lane",
1125 "If the shape is given it overrides the computation based on edge shape");
1130 "If given, this defines the opposite direction lane");
1143 "The ID of Crossing");
1148 "The (road) edges which are crossed");
1153 "Whether the pedestrians have priority over the vehicles (automatically set to true at tls-controlled intersections)",
1159 "The width of the crossings",
1165 "sets the tls-index for this crossing",
1171 "sets the opposite-direction tls-index for this crossing",
1177 "Overrids default shape of pedestrian crossing");
1190 "The name of the edge the vehicles leave");
1195 "The name of the edge the vehicles may reach when leaving 'from'");
1200 "the lane index of the incoming lane (numbers starting with 0)");
1205 "the lane index of the outgoing lane (numbers starting with 0)");
1210 "if set, vehicles which pass this (lane-2-lane) connection) will not wait",
1216 "if set to false, vehicles which pass this (lane-2-lane) connection) will not worry about blocking the intersection",
1222 "If set to a more than 0 value, an internal junction will be built at this position (in m) from the start of the internal lane for this connection",
1228 "If set to true, This connection will not be TLS-controlled despite its node being controlled",
1234 "Vision distance between vehicles",
1240 "sets index of this connection within the controlling trafficlight",
1246 "sets index for the internal junction of this connection within the controlling trafficlight",
1252 "Explicitly allows the given vehicle classes (not given will be not allowed)",
1259 "Explicitly disallows the given vehicle classes (not given will be allowed)");
1265 "sets custom speed limit for the connection",
1271 "sets custom length for the connection",
1277 "sets custom shape for the connection");
1282 "turning direction for this connection (computed)");
1287 "link state for this connection (computed)");
1317 "The id of bus stop");
1322 "The name of the lane the bus stop shall be located at");
1327 "The begin position on the lane (the lower position on the lane) in meters");
1332 "The end position on the lane (the higher position on the lane) in meters, must be larger than startPos by more than 0.1m");
1337 "Name of " +
toString(currentTag));
1342 "If set, no error will be reported if element is placed behind the lane. Instead,it will be placed 0.1 meters from the lanes end or at position 0.1, if the position was negative and larger than the lanes length after multiplication with - 1",
1348 "Meant to be the names of the bus lines that stop at this bus stop. This is only used for visualization purposes");
1353 "Meant to be the names of the bus lines that stop at this bus stop. This is only used for visualization purposes",
1359 "Optional space definition for vehicles that park at this stop",
1374 "The name of the lane the stop access shall be located at");
1379 "The position on the lane (the lower position on the lane) in meters",
1385 "The walking length of the access in meters");
1390 "If set, no error will be reported if element is placed behind the lane. Instead,it will be placed 0.1 meters from the lanes end or at position 0.1, if the position was negative and larger than the lanes length after multiplication with - 1",
1405 "The id of container stop");
1410 "The name of the lane the container stop shall be located at");
1415 "The begin position on the lane (the lower position on the lane) in meters");
1420 "The end position on the lane (the higher position on the lane) in meters, must be larger than startPos by more than 0.1m");
1425 "Name of " +
toString(currentTag));
1430 "If set, no error will be reported if element is placed behind the lane. Instead,it will be placed 0.1 meters from the lanes end or at position 0.1, if the position was negative and larger than the lanes length after multiplication with - 1",
1436 "meant to be the names of the bus lines that stop at this container stop. This is only used for visualization purposes");
1449 "The id of charging station");
1454 "Lane of the charging station location");
1459 "Begin position in the specified lane");
1464 "End position in the specified lane");
1469 "Name of " +
toString(currentTag));
1474 "If set, no error will be reported if element is placed behind the lane. Instead,it will be placed 0.1 meters from the lanes end or at position 0.1, if the position was negative and larger than the lanes length after multiplication with - 1",
1480 "Charging power in W",
1486 "Charging efficiency [0,1]",
1493 "Enable or disable charge in transit, i.e. vehicle must or must not to stop for charging",
1499 "Time delay after the vehicles has reached / stopped on the charging station, before the energy transfer (charging) begins",
1513 "The id of ParkingArea");
1518 "The name of the lane the Parking Area shall be located at");
1523 "The begin position on the lane (the lower position on the lane) in meters");
1528 "The end position on the lane (the higher position on the lane) in meters, must be larger than startPos by more than 0.1m");
1533 "Name of " +
toString(currentTag));
1538 " The number of parking spaces for road-side parking",
1544 "If set, vehicles will park on the road lane and thereby reducing capacity",
1550 "If set, no error will be reported if element is placed behind the lane. Instead,it will be placed 0.1 meters from the lanes end or at position 0.1, if the position was negative and larger than the lanes length after multiplication with - 1",
1556 "The width of the road-side parking spaces",
1562 "The length of the road-side parking spaces. By default (endPos - startPos) / roadsideCapacity");
1567 "The angle of the road-side parking spaces relative to the lane angle, positive means clockwise",
1582 "The x-y-z position of the parking vehicle on the plane");
1587 "The width of the road-side parking spaces",
1593 "The length of the road-side parking spaces",
1599 "The angle of the road-side parking spaces relative to the lane angle, positive means clockwise",
1619 "The id of the lane the detector shall be laid on. The lane must be a part of the network used");
1624 "The position on the lane the detector shall be laid on in meters. The position must be a value between -1*lane's length and the lane's length");
1629 "The aggregation period the values the detector collects shall be summed up",
1635 "Name of " +
toString(currentTag));
1640 "The path to the output file");
1645 "Space separated list of vehicle type ids to consider");
1650 "If set, no error will be reported if element is placed behind the lane. Instead,it will be placed 0.1 meters from the lanes end or at position 0.1, if the position was negative and larger than the lanes length after multiplication with - 1",
1671 "The id of the lane the detector shall be laid on. The lane must be a part of the network used");
1676 "The position on the lane the detector shall be laid on in meters");
1681 "The length of the detector in meters",
1687 "The aggregation period the values the detector collects shall be summed up");
1692 "The traffic light that triggers aggregation when switching");
1697 "Name of " +
toString(currentTag));
1702 "The path to the output file");
1707 "Space separated list of vehicle type ids to consider");
1712 "The time-based threshold that describes how much time has to pass until a vehicle is recognized as halting)",
1718 "The speed-based threshold that describes how slow a vehicle has to be to be recognized as halting) in m/s",
1724 "The minimum distance to the next standing vehicle in order to make this vehicle count as a participant to the jam) in m",
1730 "If set, no error will be reported if element is placed behind the lane. Instead,it will be placed 0.1 meters from the lanes end or at position 0.1, if the position was negative and larger than the lanes length after multiplication with - 1",
1746 "The id of Multilane E2");
1751 "The list of secuencial lane ids in which the detector shall be laid on");
1756 "The position on the lane the detector shall be laid on in meters");
1761 "The end position on the lane the detector shall be laid on in meters");
1766 "The aggregation period the values the detector collects shall be summed up");
1771 "The traffic light that triggers aggregation when switching");
1776 "Name of " +
toString(currentTag));
1781 "The path to the output file");
1786 "Space separated list of vehicle type ids to consider");
1791 "The time-based threshold that describes how much time has to pass until a vehicle is recognized as halting)",
1797 "The speed-based threshold that describes how slow a vehicle has to be to be recognized as halting) in m/s",
1803 "The minimum distance to the next standing vehicle in order to make this vehicle count as a participant to the jam) in m",
1809 "If set, no error will be reported if element is placed behind the lane. Instead,it will be placed 0.1 meters from the lanes end or at position 0.1, if the position was negative and larger than the lanes length after multiplication with - 1",
1829 "X-Y position of detector in editor (Only used in NETEDIT)",
1835 "The aggregation period the values the detector collects shall be summed up",
1841 "Name of " +
toString(currentTag));
1846 "The path to the output file");
1851 "Space separated list of vehicle type ids to consider");
1856 "The time-based threshold that describes how much time has to pass until a vehicle is recognized as halting) in s",
1862 "The speed-based threshold that describes how slow a vehicle has to be to be recognized as halting) in m/s",
1876 "The id of the lane the detector shall be laid on. The lane must be a part of the network used");
1881 "The position on the lane the detector shall be laid on in meters");
1886 "If set, no error will be reported if element is placed behind the lane. Instead,it will be placed 0.1 meters from the lanes end or at position 0.1, if the position was negative and larger than the lanes length after multiplication with - 1",
1901 "The id of the lane the detector shall be laid on. The lane must be a part of the network used");
1906 "The position on the lane the detector shall be laid on in meters");
1911 "If set, no error will be reported if element is placed behind the lane. Instead,it will be placed 0.1 meters from the lanes end or at position 0.1, if the position was negative and larger than the lanes length after multiplication with - 1",
1926 "The id of Instant Induction Loop (E1Instant)");
1931 "The id of the lane the detector shall be laid on. The lane must be a part of the network used");
1936 "The position on the lane the detector shall be laid on in meters. The position must be a value between -1*lane's length and the lane's length");
1941 "Name of " +
toString(currentTag));
1946 "The path to the output file");
1951 "Space separated list of vehicle type ids to consider");
1956 "If set, no error will be reported if element is placed behind the lane. Instead,it will be placed 0.1 meters from the lanes end or at position 0.1, if the position was negative and larger than the lanes length after multiplication with - 1",
1973 "The id of Variable Speed Signal");
1978 "X-Y position of detector in editor (Only used in NETEDIT)",
1984 "list of lanes of Variable Speed Sign");
1989 "Name of " +
toString(currentTag));
2029 "The id of Calibrator");
2034 "The id of edge in the simulation network");
2039 "The position of the calibrator on the specified lane",
2045 "The aggregation interval in which to calibrate the flows. Default is step-length",
2051 "Name of " +
toString(currentTag));
2056 "The id of the routeProbe element from which to determine the route distribution for generated vehicles");
2061 "The output file for writing calibrator information or NULL");
2074 "The id of Calibrator");
2079 "The id of lane in the simulation network");
2084 "The position of the calibrator on the specified lane",
2090 "The aggregation interval in which to calibrate the flows. Default is step-length",
2096 "Name of " +
toString(currentTag));
2101 "The id of the routeProbe element from which to determine the route distribution for generated vehicles");
2106 "The output file for writing calibrator information or NULL");
2119 "The id of the vehicle type to use for this " +
toString(currentTag),
2125 "The id of the route the vehicle shall drive along");
2133 "First " +
toString(currentTag) +
" departure time",
2139 "End of departure interval",
2145 "Number of " +
toString(currentTag) +
"s per hour, equally spaced");
2150 "Speed of " +
toString(currentTag) +
"s");
2163 "The id of Rerouter");
2168 "An edge id or a list of edge ids where vehicles shall be rerouted");
2173 "X,Y position in editor (Only used in NETEDIT)",
2179 "Name of " +
toString(currentTag));
2184 "The path to the definition file (alternatively, the intervals may defined as children of the rerouter)");
2189 "The probability for vehicle rerouting (0-1)",
2195 "The waiting time threshold (in s) that must be reached to activate rerouting (default -1 which disables the threshold)",
2201 "The list of vehicle types that shall be affected by this rerouter (empty to affect all types)");
2206 "Whether the router should be inactive initially (and switched on in the gui)",
2254 "allowed vehicles");
2259 "disallowed vehicles");
2278 "allowed vehicles");
2283 "disallowed vehicles");
2328 "Enable or disable visibility for parking area reroutes",
2362 "The id of RouteProbe");
2367 "The id of an edge in the simulation network");
2372 "The frequency in which to report the distribution",
2378 "Name of " +
toString(currentTag));
2383 "The file for generated output");
2388 "The time at which to start generating output",
2402 "Edge in which vaporizer is placed");
2419 "Name of " +
toString(currentTag));
2440 "The id of the polygon");
2445 "The shape of the polygon");
2450 "The RGBA color with which the polygon shall be displayed",
2456 "An information whether the polygon shall be filled",
2462 "The default line width for drawing an unfilled polygon",
2468 "The layer in which the polygon lies",
2474 "A typename for the polygon",
2480 "A bitmap to use for rendering this polygon",
2486 "Enable or disable use image file as a relative path",
2492 "Angle of rendered image in degree",
2506 "The id of the " +
toString(currentTag));
2511 "The position in view");
2516 "The color with which the " +
toString(currentTag) +
" shall be displayed",
2522 "A typename for the " +
toString(currentTag),
2528 "The layer of the " +
toString(currentTag) +
" for drawing and selecting",
2534 "Width of rendered image in meters",
2540 "Height of rendered image in meters",
2546 "A bitmap to use for rendering this " +
toString(currentTag),
2552 "Enable or disable use image file as a relative path",
2558 "Angle of rendered image in degree",
2572 "The id of the " +
toString(currentTag));
2577 "The name of the lane at which the " +
toString(currentTag) +
" is located at");
2582 "The position on the named lane or in the net in meters at which the " +
toString(currentTag) +
" is located at");
2587 "The lateral offset on the named lane at which the " +
toString(currentTag) +
" is located at",
2593 "The color with which the " +
toString(currentTag) +
" shall be displayed",
2599 "A typename for the " +
toString(currentTag),
2605 "The layer of the " +
toString(currentTag) +
" for drawing and selecting",
2611 "Width of rendered image in meters",
2617 "Height of rendered image in meters",
2623 "A bitmap to use for rendering this " +
toString(currentTag),
2629 "Enable or disable use image file as a relative path",
2635 "Angle of rendered image in degree",
2657 "The id of the TAZ");
2662 "The shape of the TAZ");
2667 "The RGBA color with which the TAZ shall be displayed",
2673 "An information whether the TAZ shall be filled (Only in NETEDIT)",
2687 "The id of edge in the simulation network");
2693 "Depart weight associated to this Edge",
2707 "The id of edge in the simulation network");
2713 "Arrival weight associated to this Edget",
2723 std::vector<std::string> vClassesVehicles, vClassesPersons;
2725 for (
const auto& i : vClasses) {
2727 vClassesPersons.push_back(i);
2729 vClassesVehicles.push_back(i);
2752 "The edges the vehicle shall drive along, given as their ids, separated using spaces");
2757 "This route's color",
2772 "The edges the vehicle shall drive along, given as their ids, separated using spaces");
2777 "This route's color",
2791 "The id of VehicleType");
2796 "An abstract vehicle class",
2803 "This vehicle type's color",
2809 "The vehicle's netto-length (length) [m]");
2814 "Empty space after leader [m]");
2819 "The vehicle's maximum velocity [m/s]");
2824 "The vehicles expected multiplicator for lane speed limits");
2829 "The deviation of the speedFactor");
2834 "An abstract emission class");
2840 "How this vehicle is rendered");
2846 "The vehicle's width [m] (only used for drawing)",
2852 "The vehicle's height [m] (only used for drawing)",
2858 "Image file for rendering vehicles of this type (should be grayscale to allow functional coloring)");
2863 "The model used for changing lanes",
2870 "The model used for car following",
2877 "The number of persons (excluding an autonomous driver) the vehicle can transport");
2882 "The number of containers the vehicle can transport");
2887 "The time required by a person to board the vehicle",
2893 "The time required to load a container onto the vehicle",
2899 "The preferred lateral alignment when using the sublane-model",
2906 "The minimum lateral gap at a speed difference of 50km/h when using the sublane-model",
2912 "The maximum lateral speed when using the sublane-model",
2918 "The interval length for which vehicle performs its decision logic (acceleration and lane-changing)",
2924 "The probability when being added to a distribution without an explicit probability",
2930 "3D model file for this class",
2936 "Carriage lengths");
2941 "Locomotive lengths");
2946 "GAP between carriages",
2970 "The id of PersonType");
2975 "An abstract person class",
2977 attrProperty.setDiscreteValues(vClassesPersons);
2982 "This person type's color",
2988 "The person's width [m] (only used for drawing)");
2993 "The person's netto-length (length) [m]");
2998 "Empty space after leader [m]");
3003 "The person's maximum velocity [m/s]");
3008 "This value causes persons to violate a red light if the duration of the red phase is lower than the given threshold.",
3014 "Image file for rendering persons of this type (should be grayscale to allow functional coloring)");
3035 "The name of the " +
toString(currentTag));
3040 "The id of the vehicle type to use for this " +
toString(currentTag),
3046 "The id of the route the " +
toString(currentTag) +
" shall drive along");
3054 "The time step at which the " +
toString(currentTag) +
" shall enter the network",
3096 "The name of the " +
toString(currentTag));
3101 "The id of the " +
toString(currentTag) +
" type to use for this " +
toString(currentTag),
3107 "The id of the route the " +
toString(currentTag) +
" shall drive along");
3151 "The name of " +
toString(currentTag) +
"s that will be generated using this trip definition");
3156 "The id of the " +
toString(currentTag) +
" type to use for this " +
toString(currentTag),
3162 "The name of the edge the " +
toString(currentTag) +
" starts at");
3167 "The name of the edge the " +
toString(currentTag) +
" ends at");
3172 "List of intermediate edge ids which shall be part of the " +
toString(currentTag));
3180 "The departure time of the (first) " +
toString(currentTag) +
" which is generated using this " +
toString(currentTag) +
" definition",
3194 "The name of the " +
toString(currentTag));
3199 "The id of the " +
toString(currentTag) +
" type to use for this " +
toString(currentTag),
3205 "The name of the edge the " +
toString(currentTag) +
" starts at");
3210 "The name of the edge the " +
toString(currentTag) +
" ends at");
3215 "List of intermediate edge ids which shall be part of the " +
toString(currentTag));
3252 "The name of the lane the stop shall be located at");
3257 "The begin position on the lane (the lower position on the lane) in meters",
3263 "The end position on the lane (the higher position on the lane) in meters, must be larger than startPos by more than 0.1m",
3269 "If set, no error will be reported if element is placed behind the lane. Instead,it will be placed 0.1 meters from the lanes end or at position 0.1, if the position was negative and larger than the lanes length after multiplication with - 1",
3286 "BusStop associated with this stop");
3302 "ContainerStop associated with this stop");
3318 "ChargingStation associated with this stop");
3334 "ParkingArea associated with this stop");
3362 "The time step at which the " +
toString(currentTag) +
" shall enter the network",
3506 "id of the edges to walk");
3511 "Arrival position on the destination edge",
3525 "The id of the route to walk");
3530 "Arrival position on the destination edge",
3636 "The name of the edge the " +
toString(currentTag) +
" starts at");
3641 "The name of the edge the " +
toString(currentTag) +
" ends at");
3646 "arrival position on the destination edge",
3659 "The name of the edge the " +
toString(currentTag) +
" starts at");
3676 "The name of the edge the " +
toString(currentTag) +
" starts at");
3698 "The name of the edge the " +
toString(currentTag) +
" ends at");
3703 "arrival position on the destination edge",
3755 "The name of the edge the " +
toString(currentTag) +
" ends at");
3760 "arrival position on the destination edge",
3807 "List of possible vehicle types to take");
3812 "List of possible traffic modes. Walking is always possible regardless of this value");
3824 "list of vehicle alternatives to take for the " +
toString(currentTag),
3847 "The name of the edge the stop shall be located at");
3865 "BusStop associated with this stop");
3880 "This " +
toString(currentTag) +
"'s color",
3886 "The lane on which the " +
toString(currentTag) +
" shall be inserted",
3892 "The position at which the " +
toString(currentTag) +
" shall enter the net",
3898 "The speed with which the " +
toString(currentTag) +
" shall enter the network",
3904 "The lane at which the " +
toString(currentTag) +
" shall leave the network",
3910 "The position at which the " +
toString(currentTag) +
" shall leave the network",
3916 "The speed with which the " +
toString(currentTag) +
" shall leave the network",
3922 "A string specifying the id of a public transport line which can be used when specifying person rides");
3927 "The number of occupied seats when the " +
toString(currentTag) +
" is inserted",
3933 "The number of occupied container places when the " +
toString(currentTag) +
" is inserted",
3939 "The lateral position on the departure lane at which the " +
toString(currentTag) +
" shall enter the net",
3945 "The lateral position on the arrival lane at which the " +
toString(currentTag) +
" shall arrive",
3958 "First " +
toString(currentTag) +
" departure time",
3964 "End of departure interval",
3970 "probability for emitting a " +
toString(currentTag) +
" each second (not together with vehsPerHour or period)",
3976 "Number of " +
toString(currentTag) +
"s per hour, equally spaced (not together with period or probability)",
3982 "Insert equally spaced " +
toString(currentTag) +
"s at that period (not together with vehsPerHour or probability)",
3988 "probability for emitting a " +
toString(currentTag) +
" each second (not together with vehsPerHour or period)",
4001 "The acceleration ability of vehicles of this type [m/s^2]",
4007 "The deceleration ability of vehicles of this type [m/s^2]",
4013 "The apparent deceleration of the vehicle as used by the standard model [m/s^2]",
4019 "The maximal physically possible deceleration for the vehicle [m/s^2]",
4025 "Car-following model parameter",
4032 "Car-following model parameter",
4038 "SKRAUSSX parameter 1",
4044 "SKRAUSSX parameter 2",
4050 "SKRAUSSX parameter 3",
4056 "SKRAUSSX parameter 4",
4062 "SKRAUSSX parameter 5",
4068 "Peter Wagner 2009 parameter",
4074 "Peter Wagner 2009 parameter",
4092 "Wiedemann parameter",
4098 "Wiedemann parameter",
4104 "MinGap factor parameter",
4117 "Kerner Phi parameter",
4123 "IDM Delta parameter",
4129 "IDM Stepping parameter",
4148 "Minimum distance to pedestrians that are walking towards the conflict point with the ego vehicle.",
4154 "The accumulated waiting time after which a vehicle will drive onto an intersection even though this might cause jamming.",
4160 "This value causes vehicles to violate a yellow light if the duration of the yellow phase is lower than the given threshold.",
4166 "This value causes vehicles to violate a red light if the duration of the red phase is lower than the given threshold.",
4172 "This value causes vehicles affected by jmDriveAfterRedTime to slow down when violating a red light.",
4178 "This value causes vehicles to ignore foe vehicles that have right-of-way with the given probability.",
4184 "This value is used in conjunction with jmIgnoreFoeProb. Only vehicles with a speed below or equal to the given value may be ignored.",
4190 "This value configures driving imperfection (dawdling) while passing a minor link.",
4196 "This value defines the minimum time gap when passing ahead of a prioritized vehicle. ",
4202 "Willingess of drivers to impede vehicles with higher priority",
4215 "The eagerness for performing strategic lane changing. Higher values result in earlier lane-changing.",
4221 "The willingness for performing cooperative lane changing. Lower values result in reduced cooperation.",
4227 "The eagerness for performing lane changing to gain speed. Higher values result in more lane-changing.",
4233 "The eagerness for following the obligation to keep right. Higher values result in earlier lane-changing.",
4239 "The eagerness for using the configured lateral alignment within the lane. Higher values result in increased willingness to sacrifice speed for alignment.",
4245 "The eagerness for overtaking through the opposite-direction lane. Higher values result in more lane-changing.",
4251 "Willingness to encroach laterally on other drivers.",
4257 "Minimum lateral gap when encroaching laterally on other drives (alternative way to define lcPushy)",
4263 "Willingness to accept lower front and rear gaps on the target lane.",
4269 "Dynamic factor for modifying lcAssertive and lcPushy.",
4275 "Time to reach maximum impatience (of 1). Impatience grows whenever a lane-change manoeuvre is blocked.",
4281 "Maximum lateral acceleration per second.",
4287 "Factor for configuring the strategic lookahead distance when a change to the left is necessary (relative to right lookahead).",
4293 "Factor for configuring the treshold asymmetry when changing to the left or to the right for speed gain.",
4299 "Upper bound on lateral speed when standing.",
4305 "Upper bound on lateral speed while moving computed as lcMaxSpeedLatStanding + lcMaxSpeedLatFactor * getSpeed()",
4311 "Distance to an upcoming turn on the vehicles route, below which the alignment should be dynamically adapted to match the turn direction.",
4317 "The probability for violating rules gainst overtaking on the right.",
4338 "The name of the " +
toString(currentTag));
4343 "The id of the " +
toString(currentTag) +
" type to use for this " +
toString(currentTag) +
4349 "This " +
toString(currentTag) +
"'s color",
4355 "The position at which the " +
toString(currentTag) +
" shall enter the net",
4368 "Minimum duration for stopping",
4374 "The time step at which the route continues",
4380 "If set to a non-negative time value, then the stop duration can be extended at most by the extension value in seconds",
4386 "Whether a person may end the stop",
4392 "List of persons that must board the vehicle before it may continue");
4397 "Whether a container may end the stop",
4403 "List of containers that must be loaded onto the vehicle before it may continue");
4409 "whether the vehicle stops on the road or beside ",
4416 "Activity displayed for stopped person in GUI and output files ",
4467 "First " +
toString(currentTag) +
" departure time",
4473 "End of departure interval",
4503 "The name of the edge the " +
toString(currentTag) +
" starts at");
4508 "The name of the edge the " +
toString(currentTag) +
" ends at");
4522 "The name of the TAZ the " +
toString(currentTag) +
" starts at");
4527 "The name of the TAZ the " +
toString(currentTag) +
" ends at");
4536 std::string& defaultValue, std::string& parsedAttribute, std::string& warningMessage) {
4538 std::string errorFormat;
4541 if (parsedAttribute.empty()) {
4542 errorFormat =
"ID cannot be empty; ";
4546 errorFormat =
"Detector ID contains invalid characters; ";
4551 errorFormat =
"Demand Element ID contains invalid characters; ";
4554 errorFormat =
"ID contains invalid characters; ";
4558 if (attrProperties.
isInt()) {
4559 if (canParse<int>(parsedAttribute)) {
4561 int parsedIntAttribute = parse<int>(parsedAttribute);
4563 if (attrProperties.
isPositive() && (parsedIntAttribute < 0)) {
4564 errorFormat =
"Cannot be negative; ";
4566 }
else if (canParse<double>(parsedAttribute)) {
4567 errorFormat =
"Float cannot be reinterpreted as int; ";
4569 errorFormat =
"Cannot be parsed to int; ";
4573 if (attrProperties.
isFloat()) {
4574 if (canParse<double>(parsedAttribute)) {
4576 double parsedDoubleAttribute = parse<double>(parsedAttribute);
4578 if (attrProperties.
isPositive() && (parsedDoubleAttribute < 0)) {
4579 errorFormat =
"Cannot be negative; ";
4582 errorFormat =
"Cannot be parsed to float; ";
4586 if (attrProperties.
isBool()) {
4587 if (!canParse<bool>(parsedAttribute)) {
4588 errorFormat =
"Cannot be parsed to boolean; ";
4594 if (attrProperties.
isList()) {
4596 if (!canParse<PositionVector>(parsedAttribute)) {
4597 errorFormat =
"List of Positions aren't neither x,y nor x,y,z; ";
4599 }
else if (!canParse<Position>(parsedAttribute)) {
4600 errorFormat =
"Position is neither x,y nor x,y,z; ";
4605 if (!canParse<SUMOTime>(parsedAttribute)) {
4606 errorFormat =
"Cannot be parsed to SUMOTime; ";
4611 if (canParse<double>(parsedAttribute)) {
4613 double probability = parse<double>(parsedAttribute);
4614 if (probability < 0) {
4615 errorFormat =
"Probability cannot be smaller than 0; ";
4616 }
else if (probability > 1) {
4617 errorFormat =
"Probability cannot be greather than 1; ";
4620 errorFormat =
"Cannot be parsed to probability; ";
4625 if (canParse<double>(parsedAttribute)) {
4627 double range = parse<double>(parsedAttribute);
4634 errorFormat =
"Cannot be parsed to float; ";
4643 errorFormat =
"value is not within the set of allowed values for attribute '" +
toString(attribute) +
"'";
4647 if (attrProperties.
isColor() && !canParse<RGBColor>(parsedAttribute)) {
4648 errorFormat =
"Invalid RGB format or named color; ";
4653 errorFormat =
"Filename contains invalid characters; ";
4654 }
else if (parsedAttribute.empty() && !attrProperties.
isOptional()) {
4655 errorFormat =
"Filename cannot be empty; ";
4660 errorFormat =
"name contains invalid characters; ";
4665 errorFormat =
"List of VClasses isn't valid; ";
4666 parsedAttribute = defaultValue;
4671 errorFormat =
"RouteProbe ID contains invalid characters; ";
4675 errorFormat =
"List of edges cannot be empty; ";
4679 errorFormat =
"List of lanes cannot be empty; ";
4683 errorFormat =
"List of vTypes contains invalid characters; ";
4687 errorFormat =
"RouteProbe ID contains invalid characters; ";
4690 if (errorFormat.size() > 0) {
4694 warningMessage +
" is invalid; " + errorFormat +
"Default value will be used.");
4701 parsedAttribute = defaultValue;
4713 const GNEAttributeProperties& attrProperties, std::string& parsedAttribute, std::string& warningMessage) {
4715 std::string x, y, z;
4716 bool parsedOk =
true;
4718 parsedAttribute =
"0,0";
4720 x = attrs.
get<std::string>(
SUMO_ATTR_X, objectID.c_str(), parsedOk,
false);
4722 if (!canParse<double>(x)) {
4735 y = attrs.
get<std::string>(
SUMO_ATTR_Y, objectID.c_str(), parsedOk,
false);
4737 if (!canParse<double>(y)) {
4751 z = attrs.
get<std::string>(
SUMO_ATTR_Z, objectID.c_str(), parsedOk,
false);
4753 if (!canParse<double>(z)) {
4762 parsedAttribute = x +
"," + y;
4764 parsedAttribute = x +
"," + y +
"," + z;
GUISelectedStorage gSelected
A global holder of selected objects.
#define WRITE_WARNING(msg)
SUMOTime string2time(const std::string &r)
convert string to SUMOTime
StringBijection< SUMOVehicleClass > SumoVehicleClassStrings(sumoVehicleClassStringInitializer, SVC_CUSTOM2, false)
bool canParseVehicleClasses(const std::string &classes)
Checks whether the given string contains only known vehicle classes.
StringBijection< SUMOVehicleShape > SumoVehicleShapeStrings(sumoVehicleShapeStringInitializer, SVS_UNKNOWN, false)
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
@ SVC_IGNORING
vehicles ignoring classes
@ SVC_PEDESTRIAN
pedestrian
const double DEFAULT_VEH_PROB
SUMOVehicleShape
Definition of vehicle classes to differ between different appearences.
const std::string DEFAULT_VTYPE_ID
SumoXMLTag
Numbers representing SUMO-XML - element names.
@ GNE_TAG_WALK_BUSSTOP_BUSSTOP
@ GNE_TAG_PERSONTRIP_EDGE_EDGE
@ GNE_TAG_PERSONSTOP_BUSSTOP
@ SUMO_TAG_INTERVAL
an aggreagated-output interval
@ SUMO_TAG_CLOSING_REROUTE
reroute of type closing
@ GNE_TAG_RIDE_BUSSTOP_BUSSTOP
@ SUMO_TAG_STOP_CONTAINERSTOP
stop placed over a containerStop (used in netedit)
@ SUMO_TAG_REROUTER
A rerouter.
@ SUMO_TAG_EDGEREL
a relation between two edges
@ SUMO_TAG_ROUTEPROBE
a routeprobe detector
@ GNE_TAG_PERSONTRIP_BUSSTOP_EDGE
@ SUMO_TAG_TAZ
a traffic assignment zone
@ SUMO_TAG_E2DETECTOR
an e2 detector
@ GNE_TAG_PERSONTRIP_STOP_EDGE
@ SUMO_TAG_CHARGING_STATION
A Charging Station.
@ SUMO_TAG_VTYPE
description of a vehicle type
@ SUMO_TAG_ACCESS
An access point for a train stop.
@ SUMO_TAG_E2DETECTOR_MULTILANE
an e2 detector over multiple lanes (used by Netedit)
@ SUMO_TAG_NOTHING
invalid tag
@ SUMO_TAG_CONTAINER_STOP
A container stop.
@ SUMO_TAG_STOP_CHARGINGSTATION
stop placed over a charging station (used in netedit)
@ SUMO_TAG_TAZSINK
a sink within a district (connection road)
@ SUMO_TAG_STOP_LANE
stop placed over a lane (used in netedit)
@ SUMO_TAG_BUS_STOP
A bus stop.
@ SUMO_TAG_POI
begin/end of the description of a Point of interest
@ SUMO_TAG_LANECALIBRATOR
A calibrator placed over lane (used in netedit)
@ SUMO_TAG_STOP
stop for vehicles
@ SUMO_TAG_STEP
trigger: a step description
@ GNE_TAG_PERSONTRIP_EDGE_STOP
@ SUMO_TAG_VEHICLE
description of a vehicle
@ GNE_TAG_FLOW_ROUTE
a flow definition using a route instead of a from-to edges route (used in NETEDIT)
@ GNE_TAG_VSS_SYMBOL
VSS Symbol.
@ SUMO_TAG_LANETYPE
lane type
@ GNE_TAG_FLOW_WITHROUTE
description of a vehicle with an embedded route (used in NETEDIT)
@ SUMO_TAG_FLOW
a flow definitio nusing a from-to edges instead of a route (used by router)
@ GNE_TAG_RIDE_BUSSTOP_EDGE
@ SUMO_TAG_CONNECTION
connectio between two lanes
@ SUMO_TAG_PARKING_AREA
A parking area.
@ SUMO_TAG_PARKING_ZONE_REROUTE
entry for an alternative parking zone
@ SUMO_TAG_ROUTE_PROB_REROUTE
probability of route of a reroute
@ SUMO_TAG_DET_ENTRY
an e3 entry point
@ GNE_TAG_PERSONSTOP_EDGE
@ SUMO_TAG_PARKING_SPACE
A parking space for a single vehicle within a parking area.
@ SUMO_TAG_JUNCTION
begin/end of the description of a junction
@ SUMO_TAG_CROSSING
crossing between edges for pedestrians
@ GNE_TAG_PERSONTRIP_STOP_STOP
@ SUMO_TAG_ROUTE
begin/end of the description of a route
@ SUMO_TAG_MEANDATA_EDGE
an edge based mean data detector
@ SUMO_TAG_POLY
begin/end of the description of a polygon
@ GNE_TAG_PERSONTRIP_EDGE_BUSSTOP
@ SUMO_TAG_STOP_BUSSTOP
stop placed over a busStop (used in netedit)
@ SUMO_TAG_LANE
begin/end of the description of a single lane
@ GNE_TAG_WALK_BUSSTOP_EDGE
@ SUMO_TAG_INSTANT_INDUCTION_LOOP
An instantenous induction loop.
@ GNE_TAG_VEHICLE_WITHROUTE
@ GNE_TAG_RIDE_EDGE_BUSSTOP
@ GNE_TAG_PERSONTRIP_BUSSTOP_STOP
@ SUMO_TAG_POILANE
begin/end of the description of a Point of interest over Lane (used by Netedit)
@ SUMO_TAG_DEST_PROB_REROUTE
probability of destiny of a reroute
@ SUMO_TAG_E1DETECTOR
an e1 detector
@ GNE_TAG_PERSONTRIP_BUSSTOP_BUSSTOP
@ SUMO_TAG_DET_EXIT
an e3 exit point
@ SUMO_TAG_TYPE
type (edge)
@ SUMO_TAG_VAPORIZER
vaporizer of vehicles
@ GNE_TAG_REROUTER_SYMBOL
Rerouter Symbol.
@ SUMO_TAG_STOP_PARKINGAREA
stop placed over a parking area (used in netedit)
@ SUMO_TAG_TAZREL
a relation between two TAZs
@ SUMO_TAG_TAZSOURCE
a source within a district (connection road)
@ GNE_TAG_PERSONTRIP_STOP_BUSSTOP
@ GNE_TAG_WALK_EDGE_BUSSTOP
@ SUMO_TAG_CLOSING_LANE_REROUTE
lane of a reroute of type closing
@ SUMO_TAG_PTYPE
description of a person type (used in NETEDIT)
@ GNE_TAG_ROUTE_EMBEDDED
embedded route (used in NETEDIT)
@ SUMO_TAG_CALIBRATOR
A calibrator placed over edge.
@ SUMO_TAG_E3DETECTOR
an e3 detector
@ SUMO_TAG_VSS
A variable speed sign.
@ SUMO_TAG_FLOW_CALIBRATOR
a flow definition within in Calibrator (used in NETEDIT)
@ SUMO_TAG_TRIP
a single trip definition (used by router)
@ SUMO_TAG_EDGE
begin/end of the description of an edge
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
@ SUMO_ATTR_CONTAINER_TRIGGERED
@ GNE_ATTR_FROM_BUSSTOP
from busStop (used by personPlans)
@ SUMO_ATTR_EMISSIONCLASS
@ SUMO_ATTR_JM_IGNORE_FOE_SPEED
@ SUMO_ATTR_TLLINKINDEX2
link: the index of the opposite direction link of a pedestrian crossing
@ SUMO_ATTR_JM_IGNORE_KEEPCLEAR_TIME
@ SUMO_ATTR_CF_WIEDEMANN_SECURITY
@ SUMO_ATTR_LCA_ASSERTIVE
@ SUMO_ATTR_RADIUS
The turning radius at an intersection in m.
@ SUMO_ATTR_CONTAINER_STOP
@ GNE_ATTR_OPPOSITE
neighboring lane, simplified lane attr instead of child element
@ SUMO_ATTR_CF_IDMM_ADAPT_TIME
@ SUMO_ATTR_LANE_CHANGE_MODEL
@ SUMO_ATTR_CF_KERNER_PHI
@ SUMO_ATTR_LCA_TURN_ALIGNMENT_DISTANCE
@ SUMO_ATTR_JAM_DIST_THRESHOLD
@ SUMO_ATTR_DEPARTPOS_LAT
@ SUMO_ATTR_PARKING_LENGTH
@ SUMO_ATTR_LCA_LOOKAHEADLEFT
@ SUMO_ATTR_APPARENTDECEL
@ SUMO_ATTR_LCA_SPEEDGAIN_PARAM
@ SUMO_ATTR_ACTIONSTEPLENGTH
@ SUMO_ATTR_TLLAYOUT
node: the layout of the traffic light program
@ SUMO_ATTR_CUSTOMSHAPE
whether a given shape is user-defined
@ SUMO_ATTR_LCA_IMPATIENCE
@ SUMO_ATTR_BEGIN
weights: time range begin
@ SUMO_ATTR_EDGES
the edges of a route
@ GNE_ATTR_PARAMETERS
parameters "key1=value1|key2=value2|...|keyN=valueN"
@ SUMO_ATTR_JM_DRIVE_AFTER_RED_TIME
@ SUMO_ATTR_FRINGE
Fringe type of node.
@ SUMO_ATTR_CONTAINER_NUMBER
@ SUMO_ATTR_HALTING_TIME_THRESHOLD
@ SUMO_ATTR_CHARGING_STATION
@ SUMO_ATTR_LOADING_DURATION
@ SUMO_ATTR_LCA_MAXSPEEDLATFACTOR
@ SUMO_ATTR_CF_PWAGNER2009_TAULAST
@ SUMO_ATTR_SHAPE
edge: the shape in xml-definition
@ SUMO_ATTR_CAR_FOLLOW_MODEL
@ SUMO_ATTR_LCA_MAXSPEEDLATSTANDING
@ SUMO_ATTR_JM_DRIVE_AFTER_YELLOW_TIME
@ SUMO_ATTR_LCA_KEEPRIGHT_PARAM
@ SUMO_ATTR_JM_IGNORE_FOE_PROB
@ GNE_ATTR_TO_BUSSTOP
to busStop (used by personPlans)
@ SUMO_ATTR_TLTYPE
node: the type of traffic light
@ SUMO_ATTR_CHARGEINTRANSIT
Allow/disallow charge in transit in Charging Stations.
@ SUMO_ATTR_CONTAINER_CAPACITY
@ SUMO_ATTR_FILL
Fill the polygon.
@ SUMO_ATTR_LAYER
A layer number.
@ SUMO_ATTR_LCA_COOPERATIVE_PARAM
@ SUMO_ATTR_SPREADTYPE
The information about how to spread the lanes from the given position.
@ SUMO_ATTR_LCA_OPPOSITE_PARAM
@ SUMO_ATTR_HALTING_SPEED_THRESHOLD
@ GNE_ATTR_SHAPE_END
last coordinate of edge shape
@ SUMO_ATTR_EMERGENCYDECEL
@ SUMO_ATTR_END
weights: time range end
@ SUMO_ATTR_LCA_SUBLANE_PARAM
@ SUMO_ATTR_JM_CROSSING_GAP
@ SUMO_ATTR_ROADSIDE_CAPACITY
@ SUMO_ATTR_CARRIAGE_LENGTH
@ GNE_ATTR_FROM_STOP
from stop (used by personPlans)
@ SUMO_ATTR_CF_IDM_STEPPING
@ SUMO_ATTR_CF_IDMM_ADAPT_FACTOR
@ SUMO_ATTR_COLLISION_MINGAP_FACTOR
@ SUMO_ATTR_TLID
link,node: the traffic light id responsible for this link
@ SUMO_ATTR_BOARDING_DURATION
@ SUMO_ATTR_JM_SIGMA_MINOR
@ SUMO_ATTR_CHARGINGPOWER
@ GNE_ATTR_BIDIR
whether an edge is part of a bidirectional railway
@ SUMO_ATTR_EXPECTED_CONTAINERS
@ SUMO_ATTR_PERSON_NUMBER
@ SUMO_ATTR_COLOR
A color information.
@ SUMO_ATTR_EFFICIENCY
Eficiency of the charge in Charging Stations.
@ SUMO_ATTR_CF_PWAGNER2009_APPROB
@ SUMO_ATTR_RIGHT_OF_WAY
How to compute right of way.
@ GNE_ATTR_SHAPE_START
first coordinate of edge shape
@ SUMO_ATTR_LCA_OVERTAKE_RIGHT
@ SUMO_ATTR_ARRIVALPOS_LAT
@ SUMO_ATTR_LCA_ACCEL_LAT
@ SUMO_ATTR_LCA_STRATEGIC_PARAM
@ SUMO_ATTR_VISIBILITY_DISTANCE
foe visibility distance of a link
@ SUMO_ATTR_DIR
The abstract direction of a link.
@ SUMO_ATTR_PERSON_CAPACITY
@ SUMO_ATTR_TLLINKINDEX
link: the index of the link within the traffic light
@ SUMO_ATTR_KEEP_CLEAR
Whether vehicles must keep the junction clear.
@ SUMO_ATTR_LOCOMOTIVE_LENGTH
@ SUMO_ATTR_STATE
The state of a link.
@ SUMO_ATTR_JM_DRIVE_RED_SPEED
@ GNE_ATTR_TO_STOP
to stop (used by personPlans)
@ SUMO_ATTR_CHARGEDELAY
Delay in the charge of charging stations.
@ SUMO_ATTR_LCA_TIME_TO_IMPATIENCE
@ SUMO_ATTR_JM_TIMEGAP_MINOR
@ SUMO_ATTR_TIME
trigger: the time of the step
@ SUMO_ATTR_CF_WIEDEMANN_ESTIMATION
@ SUMO_ATTR_PERSONSPERHOUR
@ SUMO_ATTR_LCA_SPEEDGAINRIGHT
std::string joinToString(const std::vector< T > &v, const T_BETWEEN &between, std::streamsize accuracy=gPrecision)
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
static void fillPersonPlanBusStopEdge(SumoXMLTag currentTag)
fill person plan busStop -> edge
virtual std::string getAttributeForSelection(SumoXMLAttr key) const
method for getting the attribute in the context of object selection
bool isAttributeCarrierSelected() const
check if attribute carrier is selected
static void fillCommonStopAttributes(SumoXMLTag currentTag, const bool parking)
fill stop person attributes (used by stops and personStps)
GNEAttributeCarrier(const SumoXMLTag tag, GNENet *net)
Constructor.
static void fillPersonPlanBusStopStop(SumoXMLTag currentTag)
fill person plan busStop -> stop
static void fillPersonPlanBusStopBusStop(SumoXMLTag currentTag)
fill person plan busStop -> edge
bool mySelected
boolean to check if this AC is selected (instead of GUIGlObjectStorage)
static void fillVehicleElements()
fill vehicle elements
static void fillDemandElements()
fill demand elements
static void fillPersonPlanEdgeEdge(SumoXMLTag currentTag)
fill person plan edge -> edge
static GNETagProperties dummyTagProperty
dummy TagProperty used for reference some elements (for Example, dummyEdge)
static void fillPersonElements()
fill person elements
void setACParameters(const std::string ¶meters, GNEUndoList *undoList)
set parameters (string)
static void fillDataElements()
fill Data elements
static void fillPersonPlanRides()
fill person plan rides
static void fillAdditionals()
fill additional elements
static void fillPersonPlanStopBusStop(SumoXMLTag currentTag)
fill person plan stop -> edge
static void fillLaneChangingModelAttributes(SumoXMLTag currentTag)
fill Junction Model Attributes of Vehicle/Person Types
static void fillAttributeCarriers()
fill Attribute Carriers
static const std::string FEATURE_LOADED
static void fillCommonPersonAttributes(SumoXMLTag currentTag)
fill common person attributes (used by person and personFlows)
static void fillNetworkElements()
fill network elements
static void fillPersonPlanEdgeStop(SumoXMLTag currentTag)
fill person plan edge -> stop
static void fillPersonStopElements()
fill personStop elements
static const std::string FEATURE_APPROVED
feature has been approved but not changed (i.e. after being reguessed)
static T parse(const std::string &string)
parses a value of type T from string (used for basic types: int, double, bool, etc....
std::string getAlternativeValueForDisabledAttributes(SumoXMLAttr key) const
static const GNETagProperties & getTagProperties(SumoXMLTag tag)
get Tag Properties
void removeACParametersKeys(const std::vector< std::string > &keepKeys, GNEUndoList *undoList)
remove keys
const std::string & getTagStr() const
get tag assigned to this object in string format
static void fillPersonPlanEdgeBusStop(SumoXMLTag currentTag)
fill person plan edge -> edge
static const std::string FEATURE_GUESSED
feature has been reguessed (may still be unchanged be we can't tell (yet)
static void fillStopElements()
fill stop elements
virtual GUIGlObject * getGUIGlObject()=0
get GUIGlObject associated with this AttributeCarrier
const GNETagProperties & getTagProperty() const
get Tag Property assigned to this object
static bool parseMaskedPositionAttribute(const SUMOSAXAttributes &attrs, const std::string &objectID, const GNETagProperties &tagProperties, const GNEAttributeProperties &attrProperties, std::string &parsedAttribute, std::string &warningMessage)
parse and check masked (note: This function is only to improve legilibility)
static void fillPersonTripAttributes(SumoXMLTag currentTag)
fill specific person trip attributes
void unselectAttributeCarrier(const bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection
bool drawUsingSelectColor() const
check if attribute carrier must be drawn using selecting color.
static void fillPersonPlanStopStop(SumoXMLTag currentTag)
fill person plan stop -> stop
static void fillCommonVehicleAttributes(SumoXMLTag currentTag)
fill common vehicle attributes (used by vehicles, trips, routeFlows and flows)
void addACParameters(const std::string &key, const std::string &attribute, GNEUndoList *undoList)
add (or update attribute) key and attribute
FXIcon * getIcon() const
get FXIcon associated to this AC
virtual const std::map< std::string, std::string > & getACParametersMap() const =0
virtual bool isAttributeEnabled(SumoXMLAttr key) const =0
static bool lanesConsecutives(const std::vector< GNELane * > &lanes)
check if lanes are consecutives
static void fillCommonFlowAttributes(SumoXMLTag currentTag, const bool forVehicles)
fill common flow attributes (used by flows, routeFlows and personFlows)
static void fillPersonPlanStopEdge(SumoXMLTag currentTag)
fill person plan stop -> edge
static std::vector< std::pair< SumoXMLTag, const std::string > > getAllowedTagsByCategory(const int tagPropertyCategory, const bool onlyDrawables)
get tags of all editable element types using TagProperty Type (NetworkEditMode::NETWORKELEMENT,...
static void fillPersonPlanWalks()
fill person plan walks
static void fillTAZElements()
fill TAZ elements
static const double INVALID_POSITION
invalid double position
static bool checkParsedAttribute(const GNETagProperties &tagProperties, const GNEAttributeProperties &attrProperties, const SumoXMLAttr attribute, std::string &defaultValue, std::string &parsedAttribute, std::string &warningMessage)
parse and check attribute (note: This function is only to improve legilibility)
GNENet * myNet
pointer to net
static void fillJunctionModelAttributes(SumoXMLTag currentTag)
fill Junction Model Attributes of Vehicle/Person Types
static void fillShapes()
fill shape elements
GNENet * getNet() const
get pointer to net
static void fillPersonPlanTrips()
fill person plan trips
static std::string parseIDs(const std::vector< T > &ACs)
parses a list of specific Attribute Carriers into a string of IDs
void selectAttributeCarrier(const bool changeFlag=true)
select attribute carrier using GUIGlobalSelection
static const std::string FEATURE_MODIFIED
feature has been manually modified (implies approval)
static std::vector< SumoXMLTag > allowedTags(const bool onlyDrawables)
get tags of all editable element types
static void fillCarFollowingModelAttributes(SumoXMLTag currentTag)
fill Car Following Model of Vehicle/Person Types
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
T getACParameters() const
get parameters
static void fillRideAttributes(SumoXMLTag currentTag)
fill specific ride attributes
virtual ~GNEAttributeCarrier()
Destructor.
virtual std::string getAttribute(SumoXMLAttr key) const =0
const GNETagProperties & myTagProperty
the xml tag to which this attribute carrier corresponds
static std::map< SumoXMLTag, GNETagProperties > myTagProperties
map with the tags properties
static const size_t MAXNUMBEROFATTRIBUTES
max number of attributes allowed for every tag
double getMaximumRange() const
get maximum range
bool isVClass() const
return true if atribute is a VehicleClass
bool isProbability() const
return true if atribute is a probability
bool isColor() const
return true if atribute is a color
void setDiscreteValues(const std::vector< std::string > &discreteValues)
set discrete values
bool isBool() const
return true if atribute is boolean
std::string getDescription() const
return a description of attribute
bool isFlowDefinition() const
return true if atribute is part of a flow definition
bool hasAttrRange() const
return true if Attr correspond to an element that only accept a range of values
bool isList() const
return true if atribute is a list
bool isInt() const
return true if atribute is an integer
bool isDiscrete() const
return true if atribute is discrete
bool isOptional() const
return true if atribute is optional (it will be written in XML only if his value is different of defa...
const std::string & getDefaultValue() const
get default value
double getMinimumRange() const
get minimum range
bool isFloat() const
return true if atribute is a float
void setRange(const double minimum, const double maximum)
set range
bool isSUMOTime() const
return true if atribute is a SUMOTime
bool isposition() const
return true if atribute is a position
bool isPositive() const
return true if atribute is positive
const std::vector< std::string > & getDiscreteValues() const
get discrete values
bool isFilename() const
return true if atribute is a filename
A road/street connecting two junctions (netedit-version)
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
A NBNetBuilder extended by visualisation and editing capabilities.
GNELane * retrieveLane(const std::string &id, bool failHard=true, bool checkVolatileChange=false)
get lane by id
GNEEdge * retrieveEdge(const std::string &id, bool failHard=true) const
get edge by id
GNEViewNet * getViewNet() const
get view net
void addedLockedObject(const GUIGlObjectType type)
set object selected
void removeLockedObject(const GUIGlObjectType type)
set object unselected
LockGLObjectTypes * getLockGLObjectTypes() const
get selected items Modul
bool isShape() const
return true if tag correspond to a shape
@ PERSONPLAN_START_BUSSTOP
bool isTAZElement() const
return true if tag correspond to a TAZ element
bool isGenericData() const
return true if tag correspond to a generic data element
const std::string & getTagStr() const
get Tag vinculated with this attribute Property in String Format (used to avoid multiple calls to toS...
const GNEAttributeProperties & getAttributeProperties(SumoXMLAttr attr) const
get attribute (throw error if doesn't exist)
bool isNetworkElement() const
return true if tag correspond to a network element
bool isSelectable() const
return true if tag correspond to a selectable element
GUIIcon getGUIIcon() const
get GUI icon associated to this Tag
bool isDetector() const
return true if tag correspond to a shape (Only used to group all detectors in the XML)
bool isDemandElement() const
return true if tag correspond to a demand element
bool isAdditionalElement() const
return true if tag correspond to an additional element
bool hasAttribute(SumoXMLAttr attr) const
check if current TagProperties owns the attribute "attr"
const GNEViewNetHelper::EditModes & getEditModes() const
get edit modes
GNEViewParent * getViewParent() const
get the net object
GNESelectorFrame * getSelectorFrame() const
get frame for select elements
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon
void select(GUIGlID id, bool update=true)
Adds the object with the given id.
void deselect(GUIGlID id)
Deselects the object with the given id.
static PositionVector parseShapeReporting(const std::string &shpdef, const std::string &objecttype, const char *objectid, bool &ok, bool allowEmpty, bool report=true)
Builds a PositionVector from a string representation, reporting occurred errors.
static const double UNSPECIFIED_LOADED_LENGTH
no length override given
static const double UNSPECIFIED_CONTPOS
unspecified internal junction position
static const double UNSPECIFIED_VISIBILITY_DISTANCE
unspecified foe visibility for connections
static const double UNSPECIFIED_SPEED
unspecified lane speed
A storage for options typed value containers)
double getFloat(const std::string &name) const
Returns the double-value of the named option (only for Option_Float)
int getInt(const std::string &name) const
Returns the int-value of the named option (only for Option_Integer)
static OptionsCont & getOptions()
Retrieves the options.
static const std::vector< std::string > & getAllClassesStr()
Get all SUMOEmissionClass in string format.
A point in 2D or 3D with translation and scaling methods.
static RGBColor parseColor(std::string coldef)
Parses a color information.
Encapsulated SAX-Attributes.
T get(int attr, const char *objectid, bool &ok, bool report=true) const
Tries to read given attribute assuming it is an int.
virtual bool hasAttribute(int id) const =0
Returns the information whether the named (by its enum-value) attribute is within the current list.
static StringBijection< LaneSpreadFunction > LaneSpreadFunctions
lane spread functions
static StringBijection< SumoXMLTag > CarFollowModels
car following models
static StringBijection< SumoXMLNodeType > NodeTypes
node types
static bool isValidVehicleID(const std::string &value)
whether the given string is a valid id for a vehicle or flow
static bool isValidFilename(const std::string &value)
whether the given string is a valid attribute for a filename (for example, a name)
static bool isValidAdditionalID(const std::string &value)
whether the given string is a valid id for an additional object
static StringBijection< TrainType > TrainTypes
train types
static bool isValidDetectorID(const std::string &value)
whether the given string is a valid id for an detector
static bool isValidListOfTypeID(const std::string &value)
whether the given string is a valid list of ids for an edge or vehicle type (empty aren't allowed)
static StringBijection< LaneChangeModel > LaneChangeModels
lane change models
static StringBijection< RightOfWay > RightOfWayValues
righ of way algorithms
static StringBijection< LateralAlignment > LateralAlignments
lateral alignments
static bool isValidAttribute(const std::string &value)
whether the given string is a valid attribute for a certain key (for example, a name)
static StringBijection< FringeType > FringeTypeValues
fringe types
static const bool DEFAULT_RELATIVEPATH
static const double DEFAULT_LAYER
static const double DEFAULT_LAYER_POI
static const double DEFAULT_IMG_WIDTH
static const std::string DEFAULT_IMG_FILE
static const double DEFAULT_ANGLE
static const double DEFAULT_IMG_HEIGHT
static const std::string DEFAULT_TYPE
std::vector< std::string > getStrings() const
std::vector< std::string > getVector()
return vector of strings
bool hasNext()
returns the information whether further substrings exist
std::string next()
returns the next substring when it exists. Otherwise the behaviour is undefined
static double toDouble(const std::string &sData)
converts a string into the double value described by it by calling the char-type converter
static int toInt(const std::string &sData)
converts a string into the integer value described by it by calling the char-type converter,...
static bool toBool(const std::string &sData)
converts a string into the bool value described by it by calling the char-type converter
bool isCurrentSupermodeDemand() const
@check if current supermode is Demand
bool isCurrentSupermodeData() const
@check if current supermode is Data
bool isCurrentSupermodeNetwork() const
@check if current supermode is Network