56 myAttributeProperty(ATTRPROPERTY_STRING),
84 throw FormatException(
"Color attributes must own always a default color");
88 throw FormatException(
"Secuential property only is compatible with list properties");
142 pre +=
"non editable ";
154 pre +=
"combinable ";
182 type =
"probability";
192 return pre + type + plural + last;
196 const std::vector<std::string>&
421 throw ProcessError(
"element must be at leas netElement, Additional, or shape");
425 throw ProcessError(
"element only can be netElement, Additional, or shape at the same time");
429 throw ProcessError(
"If attribute is drawable a PLACEDOVER attribute must be defined");
433 throw ProcessError(
"If attribute mask the start and end position, bot attribute has to be defined");
441 i.second.checkAttributeIntegrity();
443 if (i.second.isCombinable()) {
447 throw ProcessError(
"allow need a disallow attribute in the same tag");
449 throw ProcessError(
"disallow need an allow attribute in the same tag");
514 if (i.first == attr) {
515 throw ProcessError(
"Attribute '" +
toString(attr) +
"' is deprecated but was inserted in list of attributes");
530 if (i.second.hasAttrSynonym() && i.second.getAttrSynonym() == attr) {
531 return myAttributeProperties.at(i.first);
540 std::map<SumoXMLAttr, GNEAttributeCarrier::AttributeProperties>::const_iterator
546 std::map<SumoXMLAttr, GNEAttributeCarrier::AttributeProperties>::const_iterator
798 template<> std::string
806 if (
string.size() == 0) {
824 if (
string.size() == 0) {
829 if (!ok || (pos.size() != 1)) {
842 if (
string.empty()) {
866 template<> std::vector<std::string>
872 template<> std::vector<int>
874 std::vector<std::string> parsedValues = parse<std::vector<std::string> >(string);
875 std::vector<int> parsedIntValues;
876 for (
auto i : parsedValues) {
877 parsedIntValues.push_back(parse<int>(i));
879 return parsedIntValues;
883 template<> std::vector<double>
885 std::vector<std::string> parsedValues = parse<std::vector<std::string> >(string);
886 std::vector<double> parsedDoubleValues;
887 for (
auto i : parsedValues) {
888 parsedDoubleValues.push_back(parse<double>(i));
890 return parsedDoubleValues;
894 template<> std::vector<bool>
896 std::vector<std::string> parsedValues = parse<std::vector<std::string> >(string);
897 std::vector<bool> parsedBoolValues;
898 for (
auto i : parsedValues) {
899 parsedBoolValues.push_back(parse<bool>(i));
901 return parsedBoolValues;
905 template<> std::vector<GNEEdge*>
908 std::vector<std::string> edgeIds = GNEAttributeCarrier::parse<std::vector<std::string> > (value);
909 std::vector<GNEEdge*> parsedEdges;
911 for (
auto i : edgeIds) {
923 template<> std::vector<GNELane*>
926 std::vector<std::string> laneIds = GNEAttributeCarrier::parse<std::vector<std::string> > (value);
927 std::vector<GNELane*> parsedLanes;
929 for (
auto i : laneIds) {
941 template<> std::string
944 std::vector<std::string> edgeIDs;
946 edgeIDs.push_back(i->getID());
952 template<> std::string
955 std::vector<std::string> laneIDs;
957 laneIDs.push_back(i->getID());
966 if(lanes.size() > 1) {
969 while (currentLane < ((
int)lanes.size() - 1)) {
972 for (
int i = 0; (i < (int)lanes.at(currentLane)->getParentEdge().getGNEJunctionDestiny()->getGNEOutgoingEdges().size()) && (nextLane == -1); i++) {
974 for (
int j = 0; (j < (int)lanes.at(currentLane)->getParentEdge().getGNEJunctionDestiny()->getGNEOutgoingEdges().at(i)->getLanes().size()) && (nextLane == -1); j++) {
976 if(lanes.at(currentLane)->getParentEdge().getGNEJunctionDestiny()->getGNEOutgoingEdges().at(i)->getLanes().at(j) == lanes.at(currentLane + 1)) {
977 nextLane = currentLane;
1055 std::vector<SumoXMLTag>
1057 std::vector<SumoXMLTag> allTags;
1064 if (!onlyDrawables || i.second.isDrawable()) {
1065 allTags.push_back(i.first);
1072 std::vector<SumoXMLTag>
1074 std::vector<SumoXMLTag> netElementTags;
1079 switch (tagPropertyCategory) {
1083 if (i.second.isNetElement() && (!onlyDrawables || i.second.isDrawable())) {
1084 netElementTags.push_back(i.first);
1090 for (
const auto &i : myTagProperties) {
1091 if (i.second.isAdditional() && (!onlyDrawables || i.second.isDrawable())) {
1092 netElementTags.push_back(i.first);
1098 for (
const auto &i : myTagProperties) {
1099 if (i.second.isShape() && (!onlyDrawables || i.second.isDrawable())) {
1100 netElementTags.push_back(i.first);
1106 for (
const auto &i : myTagProperties) {
1107 if (i.second.isTAZ() && (!onlyDrawables || i.second.isDrawable())) {
1108 netElementTags.push_back(i.first);
1115 return netElementTags;
1121 int maxNumAttribute = 0;
1128 maxNumAttribute =
MAX2(maxNumAttribute, i.second.getNumberOfAttributes());
1130 return maxNumAttribute;
1137 std::vector<std::string> parsedValues;
1140 parsedValues.push_back(stValues.
next());
1143 for (
auto i : parsedValues) {
1144 std::vector<std::string> parsedParameters;
1147 parsedParameters.push_back(stParam.
next());
1150 if (parsedParameters.size() == 2) {
1168 }
else if (settings.
scale >= 10) {
1170 }
else if (settings.
scale >= 2) {
1188 std::vector<std::string> emissions = {
"zero",
"LDV",
"LDV_G_EU0",
"LDV_G_EU1",
"LDV_G_EU2",
"LDV_G_EU3",
"LDV_G_EU4",
"LDV_G_EU5",
1189 "LDV_G_EU6",
"LDV_G_East",
"LDV_D_EU0",
"LDV_D_EU1",
"LDV_D_EU2",
"LDV_D_EU3",
"LDV_D_EU4",
"LDV_D_EU5",
"LDV_D_EU6",
1190 "PC",
"PC_Alternative",
"PC_G_EU0",
"PC_G_EU1",
"PC_G_EU2",
"PC_G_EU3",
"PC_G_EU4",
"PC_G_EU5",
"PC_G_EU6",
"PC_G_East",
1191 "PC_D_EU0",
"PC_D_EU1",
"PC_D_EU2",
"PC_D_EU3",
"PC_D_EU4",
"PC_D_EU5",
"PC_D_EU6",
"Bus",
"Coach",
"HDV",
"HDV_G",
"HDV_D_EU0",
1192 "HDV_D_EU1",
"HDV_D_EU2",
"HDV_D_EU3",
"HDV_D_EU4",
"HDV_D_EU5",
"HDV_D_EU6",
"HDV_D_East" 1207 "The id of the edge",
1211 "The name of a node within the nodes-file the edge shall start at",
1215 "The name of a node within the nodes-file the edge shall end at",
1219 "The maximum speed allowed on the edge in m/s",
1223 "The priority of the edge",
1227 "The number of lanes of the edge",
1231 "The name of a type within the SUMO edge type file",
1235 "Explicitly allows the given vehicle classes (not given will be not allowed)",
1240 "Explicitly disallows the given vehicle classes (not given will be allowed)",
1246 "If the shape is given it should start and end with the positions of the from-node and to-node",
1250 "The length of the edge in meter",
1254 "Lane width for all lanes of this edge in meters (used for visualization)",
1259 "street name (need not be unique, used for visualization)",
1263 "Lane width for all lanes of this edge in meters (used for visualization)",
1267 "Move the stop line back from the intersection by the given amount",
1271 "Custom position in which shape start (by default position of junction from)",
1275 "Custom position in which shape end (by default position of junction from)",
1279 "Show if edge is bidireccional",
1289 "The id of the node",
1293 "The x-y-z position of the node on the plane in meters",
1297 "An optional type for the node",
1302 "A custom shape for that node",
1306 "Optional turning radius (for all corners) for that node in meters",
1310 "Whether the junction-blocking-heuristic should be activated at this node",
1314 "How to compute right of way rules at this node",
1319 "An optional type for the traffic light algorithm",
1324 "An optional id for the traffic light program",
1334 "ID of lane (Automatic, non editable)",
1338 "The enumeration index of the lane (0 is the rightmost lane, <NUMBER_LANES>-1 is the leftmost one)",
1342 "Speed in meters per second",
1346 "Explicitly allows the given vehicle classes (not given will be not allowed)",
1351 "Explicitly disallows the given vehicle classes (not given will be allowed)",
1357 "Width in meters (used for visualization)",
1361 "Move the stop line back from the intersection by the given amount",
1365 "Enable or disable lane as acceleration lane",
1369 "If the shape is given it overrides the computation based on edge shape",
1379 "The ID of Crossing",
1383 "The (road) edges which are crossed",
1387 "Whether the pedestrians have priority over the vehicles (automatically set to true at tls-controlled intersections)",
1391 "The width of the crossings",
1395 "sets the tls-index for this crossing",
1399 "sets the opposite-direction tls-index for this crossing",
1403 "Overrids default shape of pedestrian crossing",
1413 "The name of the edge the vehicles leave",
1417 "The name of the edge the vehicles may reach when leaving 'from'",
1421 "the lane index of the incoming lane (numbers starting with 0)",
1425 "the lane index of the outgoing lane (numbers starting with 0)",
1429 "if set, vehicles which pass this (lane-2-lane) connection) will not wait",
1433 "if set to false, vehicles which pass this (lane-2-lane) connection) will not worry about blocking the intersection",
1437 "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",
1441 "If set to true, This connection will not be TLS-controlled despite its node being controlled",
1449 "sets the distance to the connection at which all relevant foes are visible",
1453 "sets custom speed limit for the connection",
1457 "sets custom shape for the connection",
1467 "The id of bus stop",
1471 "The name of the lane the bus stop shall be located at",
1475 "The begin position on the lane (the lower position on the lane) in meters",
1479 "The end position on the lane (the higher position on the lane) in meters, must be larger than startPos by more than 0.1m",
1487 "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",
1491 "Meant to be the names of the bus lines that stop at this bus stop. This is only used for visualization purposes",
1501 "The name of the lane the stop access shall be located at",
1505 "The position on the lane (the lower position on the lane) in meters",
1509 "The walking length of the access in meters",
1513 "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",
1523 "The id of container stop",
1527 "The name of the lane the container stop shall be located at",
1531 "The begin position on the lane (the lower position on the lane) in meters",
1535 "The end position on the lane (the higher position on the lane) in meters, must be larger than startPos by more than 0.1m",
1543 "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",
1547 "meant to be the names of the bus lines that stop at this container stop. This is only used for visualization purposes",
1557 "The id of charging station",
1561 "Lane of the charging station location",
1565 "Begin position in the specified lane",
1569 "End position in the specified lane",
1577 "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",
1581 "Charging power in W",
1585 "Charging efficiency [0,1]",
1590 "Enable or disable charge in transit, i.e. vehicle must or must not to stop for charging",
1594 "Time delay after the vehicles has reached / stopped on the charging station, before the energy transfer (charging) begins",
1604 "The id of ParkingArea",
1608 "The name of the lane the Parking Area shall be located at",
1612 "The begin position on the lane (the lower position on the lane) in meters",
1616 "The end position on the lane (the higher position on the lane) in meters, must be larger than startPos by more than 0.1m",
1624 " The number of parking spaces for road-side parking ",
1628 "If set, vehicles will park on the road lane and thereby reducing capacity",
1632 "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",
1636 "The width of the road-side parking spaces",
1640 "The length of the road-side parking spaces. By default (endPos - startPos) / roadsideCapacity",
1644 "The angle of the road-side parking spaces relative to the lane angle, positive means clockwise",
1654 "The x-y-z position of the parking vehicle on the plane",
1658 "The width of the road-side parking spaces",
1662 "The length of the road-side parking spaces",
1666 "The angle of the road-side parking spaces relative to the lane angle, positive means clockwise",
1680 "The id of the lane the detector shall be laid on. The lane must be a part of the network used",
1684 "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",
1688 "The aggregation period the values the detector collects shall be summed up",
1696 "The path to the output file",
1700 "Space separated list of vehicle type ids to consider",
1704 "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",
1720 "The id of the lane the detector shall be laid on. The lane must be a part of the network used",
1724 "The position on the lane the detector shall be laid on in meters",
1728 "The length of the detector in meters",
1732 "The aggregation period the values the detector collects shall be summed up",
1740 "The path to the output file",
1744 "Space separated list of vehicle type ids to consider",
1748 "The time-based threshold that describes how much time has to pass until a vehicle is recognized as halting)",
1752 "The speed-based threshold that describes how slow a vehicle has to be to be recognized as halting) in m/s",
1756 "The minimum distance to the next standing vehicle in order to make this vehicle count as a participant to the jam) in m",
1760 "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",
1772 "The id of Multilane E2",
1776 "The list of secuencial lane ids in which the detector shall be laid on",
1780 "The position on the lane the detector shall be laid on in meters",
1784 "The end position on the lane the detector shall be laid on in meters",
1788 "The aggregation period the values the detector collects shall be summed up",
1796 "The path to the output file",
1800 "Space separated list of vehicle type ids to consider",
1804 "The time-based threshold that describes how much time has to pass until a vehicle is recognized as halting)",
1808 "The speed-based threshold that describes how slow a vehicle has to be to be recognized as halting) in m/s",
1812 "The minimum distance to the next standing vehicle in order to make this vehicle count as a participant to the jam) in m",
1816 "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",
1830 "X-Y position of detector in editor (Only used in NETEDIT)",
1834 "The aggregation period the values the detector collects shall be summed up",
1842 "The path to the output file",
1846 "Space separated list of vehicle type ids to consider",
1850 "The time-based threshold that describes how much time has to pass until a vehicle is recognized as halting) in s",
1854 "The speed-based threshold that describes how slow a vehicle has to be to be recognized as halting) in m/s",
1864 "The id of the lane the detector shall be laid on. The lane must be a part of the network used",
1868 "The position on the lane the detector shall be laid on in meters",
1872 "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",
1882 "The id of the lane the detector shall be laid on. The lane must be a part of the network used",
1886 "The position on the lane the detector shall be laid on in meters",
1890 "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",
1900 "The id of Instant Induction Loop (E1Instant)",
1904 "The id of the lane the detector shall be laid on. The lane must be a part of the network used",
1908 "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",
1916 "The path to the output file",
1920 "Space separated list of vehicle type ids to consider",
1924 "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",
1936 "The id of Variable Speed Signal",
1940 "X-Y position of detector in editor (Only used in NETEDIT)",
1944 "list of lanes of Variable Speed Sign",
1972 "The id of Calibrator",
1976 "The id of edge in the simulation network",
1980 "The position of the calibrator on the specified lane",
1984 "The aggregation interval in which to calibrate the flows. default is step-length",
1992 "The id of the routeProbe element from which to determine the route distribution for generated vehicles",
1996 "The output file for writing calibrator information or NULL",
2006 "The id of Calibrator",
2010 "The id of lane in the simulation network",
2014 "The position of the calibrator on the specified lane",
2018 "The aggregation interval in which to calibrate the flows. default is step-length",
2026 "The id of the routeProbe element from which to determine the route distribution for generated vehicles",
2030 "The output file for writing calibrator information or NULL",
2040 "The id of the vehicle type to use for this vehicle",
2044 "The id of the route the vehicle shall drive along",
2048 "Number of vehicles per hour, equally spaced",
2052 "Speed of vehicles",
2056 "This vehicle's color",
2060 "First vehicle departure time",
2064 "End of departure interval",
2068 "The lane on which the vehicle shall be inserted",
2072 "The position at which the vehicle shall enter the net",
2076 "The speed with which the vehicle shall enter the network",
2080 "The lane at which the vehicle shall leave the network",
2084 "The position at which the vehicle shall leave the network",
2088 "The speed with which the vehicle shall leave the network",
2092 "A string specifying the id of a public transport line which can be used when specifying person rides",
2096 "The number of occupied seats when the vehicle is inserted",
2100 "The number of occupied container places when the vehicle is inserted",
2104 "Whether the vehicle should be equipped with a rerouting device",
2108 "The lateral position on the departure lane at which the vehicle shall enter the net",
2113 "The lateral position on the arrival lane at which the vehicle shall arrive",
2128 "The edges the vehicle shall drive along, given as their ids, separated using spaces",
2132 "This route's color",
2142 "The id of Rerouter",
2146 "An edge id or a list of edge ids where vehicles shall be rerouted",
2150 "X,Y position in editor (Only used in NETEDIT)",
2158 "The path to the definition file (alternatively, the intervals may defined as children of the rerouter)",
2162 "The probability for vehicle rerouting (0-1)",
2166 "The waiting time threshold (in s) that must be reached to activate rerouting (default -1 which disables the threshold)",
2170 "The list of vehicle types that shall be affected by this rerouter (empty to affect all types)",
2174 "Whether the router should be inactive initially (and switched on in the gui)",
2207 "disallowed vehicles",
2226 "disallowed vehicles",
2260 "Enable or disable visibility for parking area reroutes",
2285 "The id of RouteProbe",
2289 "The id of an edge in the simulation network",
2293 "The frequency in which to report the distribution",
2301 "The file for generated output",
2305 "The time at which to start generating output",
2315 "Edge in which vaporizer is placed",
2337 "The id of the TAZ",
2341 "The shape of the TAZ",
2345 "The RGBA color with which the TAZ shall be displayed",
2355 "The id of edge in the simulation network",
2360 "Depart weight associated to this Edge",
2370 "The id of edge in the simulation network",
2375 "Arrival weight associated to this Edget",
2385 "The id of VehicleType",
2389 "The acceleration ability of vehicles of this type [m/s^2]",
2393 "The deceleration ability of vehicles of this type [m/s^2]",
2397 "Car-following model parameter",
2402 "Car-following model parameter",
2406 "The vehicle's netto-length (length) [m]",
2410 "Empty space after leader [m]",
2414 "The vehicle's maximum velocity [m/s]",
2418 "The vehicles expected multiplicator for lane speed limits",
2422 "The deviation of the speedFactor",
2426 "This vehicle type's color",
2430 "An abstract vehicle class",
2435 "An abstract emission class",
2440 "How this vehicle is rendered",
2445 "The vehicle's width [m] (only used for drawing)",
2449 "Image file for rendering vehicles of this type (should be grayscale to allow functional coloring)",
2453 "Willingess of drivers to impede vehicles with higher priority",
2457 "The model used for changing lanes",
2462 "The model used for car following",
2467 "The number of persons (excluding an autonomous driver) the vehicle can transport",
2471 "The number of containers the vehicle can transport",
2475 "The time required by a person to board the vehicle",
2479 "The time required to load a container onto the vehicle",
2483 "The preferred lateral alignment when using the sublane-model",
2488 "The minimum lateral gap at a speed difference of 50km/h when using the sublane-model",
2492 "The maximum lateral speed when using the sublane-model",
2502 "The id of the polygon",
2506 "The shape of the polygon",
2510 "The RGBA color with which the polygon shall be displayed",
2514 "An information whether the polygon shall be filled",
2518 "The default line width for drawing an unfilled polygon",
2522 "The layer in which the polygon lies",
2526 "A typename for the polygon",
2530 "A bitmap to use for rendering this polygon",
2534 "Enable or disable use image file as a relative path",
2538 "Angle of rendered image in degree",
2548 "The id of the POI",
2552 "The position in view",
2556 "The color with which the poi shall be displayed",
2560 "A typename for the poi",
2564 "The layer of the poi for drawing and selecting",
2568 "Width of rendered image in meters",
2572 "Height of rendered image in meters",
2576 "A bitmap to use for rendering this poi",
2580 "Enable or disable use image file as a relative path",
2584 "Angle of rendered image in degree",
2594 "The id of the POI",
2598 "The name of the lane the poi is located at",
2602 "The position on the named lane or in the net in meters at which the poi is located at",
2606 "The lateral offset on the named lane at which the poi is located at",
2610 "The color with which the poi shall be displayed",
2614 "A typename for the poi",
2618 "The layer of the poi for drawing and selecting",
2622 "Width of rendered image in meters",
2626 "Height of rendered image in meters",
2630 "A bitmap to use for rendering this poi",
2634 "Enable or disable use image file as a relative path",
2638 "Angle of rendered image in degree",
2643 i.second.checkTagIntegrity();
bool mySelected
boolean to check if this AC is selected (instead of GUIGlObjectStorage)
static const std::string FEATURE_APPROVED
feature has been approved but not changed (i.e. after being reguessed)
The information about how to spread the lanes from the given position.
const TagProperties & myTagProperty
the xml tag to which this attribute carrier corresponds
static StringBijection< RightOfWay > RightOfWayValues
lane spread functions
bool hasTagSynonym() const
return true if tag correspond to an element that will be written in XML with another tag ...
bool hasAttrRange() const
return true if Attr correspond to an element that only accept a range of values
static const std::string FEATURE_MODIFIED
feature has been manually modified (implies approval)
static const TagProperties & getTagProperties(SumoXMLTag tag)
get Tag Properties
static StringBijection< SumoXMLTag > CarFollowModels
car following models
SumoXMLTag
Numbers representing SUMO-XML - element names.
GUIIcon myIcon
icon associated to this Tag
static StringBijection< SumoXMLNodeType > NodeTypes
node types
static RGBColor parseColor(std::string coldef)
Parses a color information.
GNEEdge * retrieveEdge(const std::string &id, bool failHard=true)
get edge by id
SumoXMLTag getTagSynonym() const
get tag synonym
double scale
information about a lane's width (temporary, used for a single view)
description of a vehicle type
int getInt(const std::string &name) const
Returns the int-value of the named option (only for Option_Integer)
Whether vehicles must keep the junction clear.
whether a given shape is user-defined
a source within a district (connection road)
SumoXMLTag myParentTag
parent tag
bool isDrawable() const
return true if tag correspond to a drawable element
static const std::string DEFAULT_IMG_FILE
SumoXMLAttr getAttrSynonym() const
get tag synonym
begin/end of the description of a junction
begin/end of the description of a single lane
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
StringBijection< SUMOVehicleShape > SumoVehicleShapeStrings(sumoVehicleShapeStringInitializer, SVS_UNKNOWN, false)
static const double UNSPECIFIED_VISIBILITY_DISTANCE
unspecified foe visibility for connections
a flow definition (used by router)
GUIIcon
An enumeration of icons used by the gui applications.
const AttributeProperties & getAttributeProperties(SumoXMLAttr attr) const
get attribute (throw error if doesn't exist)
A calibrator placed over edge.
an e2 detector over multiple lanes (used by Netedit)
static StringBijection< LaneSpreadFunction > LaneSpreadFunctions
lane spread functions
a traffic assignment zone
static const double DEFAULT_LAYER_POI
bool canBePlacedOverLane() const
return true if tag correspond to an element that can be placed over a lane
lane of a reroute of type closing
bool isCombinable() const
return true if atribute is combinable with other Attribute
connectio between two lanes
Stores the information about how to visualize structures.
bool hasMinimumNumberOfChilds() const
return true if tag correspond to an element that only have a limited number of childs ...
Allow/disallow charge in transit in Charging Stations.
std::string myDefaultValue
default value (by default empty)
bool isSelectable() const
return true if tag correspond to a selectable element
struct with the attribute Properties
bool isFilename() const
return true if atribute is a filename
const std::string & getDefaultValue(SumoXMLAttr attr) const
return the default value of the attribute of an element
foe visibility distance of a link
static const double DEFAULT_IMG_HEIGHT
void addDeprecatedAttribute(SumoXMLAttr attr)
add deprecated Attribute
bool isPositive() const
return true if atribute is positive
static std::string parseIDs(const std::vector< T > &ACs)
parses a list of specific Attribute Carriers into a string of IDs
static int getHigherNumberOfAttributes()
return the number of attributes of the tag with the most highter number of attributes ...
const std::string & getTagStr() const
get Tag vinculated with this attribute Property in String Format (used to avoid multiple calls to toS...
void checkAttributeIntegrity()
check Attribute integrity (For example, throw an exception if tag has a Float default value...
weights: time range begin
link,node: the traffic light id responsible for this link
bool isposition() const
return true if atribute is a position
static std::vector< SumoXMLTag > allowedTagsByCategory(int tagPropertyCategory, bool onlyDrawables)
get tags of all editable element types using TagProperty Type (TAGPROPERTY_NETELEMENT, TAGPROPERTY_ADDITIONAL, etc.)
bool canMaskStartEndPos() const
return true if tag correspond to an element that can mask the attributes "start" and "end" position a...
FXIcon * getIcon() const
get FXIcon associated to this AC
~AttributeProperties()
destructor
A NBNetBuilder extended by visualisation and editing capabilities.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
bool isNumerical() const
return true if atribute is numerical (int or float)
bool isSecuential() const
return true if atribute is sequential
bool isDetector() const
return true if tag correspond to a shape (Only used to group all detectors in the XML) ...
void addAttribute(SumoXMLAttr attr, const int attributeProperty, const std::string &definition, const std::string &defaultValue, std::vector< std::string > discreteValues=std::vector< std::string >(), SumoXMLAttr synonym=SUMO_ATTR_NOTHING)
add attribute (duplicated attributed aren't allowed)
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
begin/end of the description of a Point of interest
bool canWriteChildsSeparate() const
return true if tag correspond to an element that can sort their childs automatic
bool isNetElement() const
return true if tag correspond to a netElement
SumoXMLAttr myAttrSynonym
Attribute written in XML (If is SUMO_ATTR_NOTHING), original Attribute will be written) ...
A parking space for a single vehicle within a parking area.
static const std::string DEFAULT_TYPE
const std::string DEFAULT_VTYPE_ID
virtual std::string getAttribute(SumoXMLAttr key) const =0
bool cannotBeZero() const
return true if atribute cannot be zero
first coordinate of edge shape
static bool isValidGenericParameterKey(const std::string &value)
whether the given string is a valid key for a generic parameter
int getPositionListed() const
get position in list (used in frames for listing attributes with certain sort)
SumoXMLTag myTag
Sumo XML Tag vinculated wit this tag Property.
bool isProbability() const
return true if atribute is a probability
bool isNonEditable() const
return true if atribute isn't editable
begin/end of the description of a route
std::vector< std::string > getStrings() const
static OptionsCont & getOptions()
Retrieves the options.
bool isInt() const
return true if atribute is an integer
link: the index of the opposite direction link of a pedestrian crossing
bool hasParent() const
return true if tag correspond to an element that can had another element as parent ...
static TagProperties dummyTagProperty
dummy TagProperty used for reference some elements (for Example, dummyEdge)
static bool toBool(const std::string &sData)
converts a string into the bool value described by it by calling the char-type converter ...
static const double UNSPECIFIED_SPEED
unspecified lane speed
bool isList() const
return true if atribute is a list
bool isColor() const
return true if atribute is a color
static std::vector< SumoXMLTag > allowedTags(bool onlyDrawables)
get tags of all editable element types
TagProperties()
default constructor
bool canBeReparent() const
return true if tag correspond to an element that can be reparent
bool canBlockMovement() const
return true if tag correspond to an element that can block their movement
How to compute right of way.
The turning radius at an intersection in m.
whether an edge is part of a bidirectional railway
bool canBePlacedOverEdge() const
return true if tag correspond to an element that can be placed over an edge
double myMaximumRange
maxium Range
static bool isValidGenericParameterValue(const std::string &value)
whether the given string is a valid value for a generic parameter
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
double getMaximumRange() const
get maximum range
SumoXMLTag getTag() const
get Tag vinculated with this attribute Property
std::vector< std::string > myDiscreteValues
discrete values that can take this Attribute (by default empty)
An instantenous induction loop.
static StringBijection< TrafficLightType > TrafficLightTypes
traffic light types
static double toDouble(const std::string &sData)
converts a string into the double value described by it by calling the char-type converter ...
int getNumberOfAttributes() const
get number of attributes
A point in 2D or 3D with translation and scaling methods.
bool isBool() const
return true if atribute is boolean
std::map< SumoXMLAttr, AttributeProperties >::const_iterator begin() const
get begin of attribute values (used for iterate)
std::string getDescription() const
return a description of attribute
static void fillAttributeCarriers()
fill Attribute Carriers
static bool lanesConsecutives(const std::vector< GNELane *> &lanes)
check if lanes are consecutives
bool canAutomaticSortChilds() const
return true if tag correspond to an element that can sort their childs automatic
double getMinimumRange() const
get minimum range
static bool isGenericParametersValid(const std::string &value)
check if given string can be parsed to a map/list of generic parameters
~TagProperties()
destructor
bool hasGenericParameters() const
return true if Tag correspond to an element that supports generic parameters
static const double UNSPECIFIED_CONTPOS
unspecified internal junction position
A calibrator placed over lane (used in netedit)
bool canCloseShape() const
return true if tag correspond to an element that can close their shape
static const bool DEFAULT_RELATIVEPATH
static const std::string FEATURE_GUESSED
feature has been reguessed (may still be unchanged be we can't tell (yet)
bool canBePlacedOverEdges() const
return true if tag correspond to an element that can be placed over a list of edges ...
bool isUnique() const
return true if atribute is unique
std::map< SumoXMLAttr, AttributeProperties > myAttributeProperties
map with the attribute values vinculated with this Tag
bool canBePlacedOverView() const
return true if tag correspond to an element that can be placed over the view
bool isVClass() const
return true if atribute is a VehicleClass
bool isShape() const
return true if tag correspond to a shape
bool isSVCPermission() const
return true if atribute is a VehicleClass
node: the type of traffic light
edge: the shape in xml-definition
probability of route of a reroute
bool isAdditional() const
return true if tag correspond to an additional
probability of destiny of a reroute
const std::string getID() const
function to support debugging
bool isTAZ() const
return true if tag correspond to a TAZ
StringBijection< SUMOVehicleClass > SumoVehicleClassStrings(sumoVehicleClassStringInitializer, SVC_CUSTOM2, false)
static int toInt(const std::string &sData)
converts a string into the integer value described by it by calling the char-type converter...
bool isStoppingPlace() const
return true if tag correspond to a detector (Only used to group all stoppingPlaces in the output XML)...
AttributeProperties()
default constructor
double getFloat(const std::string &name) const
Returns the double-value of the named option (only for Option_Float)
bool canMaskXYZPositions() const
return true if tag correspond to an element that can mask the attributes "X", "Y" and "Z" position as...
begin/end of the description of an edge
std::vector< std::string > getVector()
A road/street connecting two junctions (netedit-version)
entry for an alternative parking zone
std::map< SumoXMLAttr, AttributeProperties >::const_iterator end() const
get end of attribute values (used for iterate)
static StringBijection< LateralAlignment > LateralAlignments
lateral alignments
bool isDiscrete() const
return true if atribute is discrete
trigger: the time of the step
bool canBePlacedOverJunction() const
return true if tag correspond to an element that can be placed over a junction
GNEAttributeCarrier(SumoXMLTag tag)
Constructor.
bool isFloat() const
return true if atribute is a float
SUMOVehicleShape
Definition of vehicle classes to differ between different appearences.
double myMinimumRange
minimun Range
a sink within a district (connection road)
int myTagProperty
Property of attribute.
virtual std::string getAttributeForSelection(SumoXMLAttr key) const
method for getting the attribute in the context of object selection
std::string myDefinition
text with a definition of attribute
struct with the attribute Properties
const std::vector< std::string > & getDiscreteValues() const
get discrete values
const std::string & getTagStr() const
get tag assigned to this object in string format
bool isString() const
return true if atribute is a string
void checkTagIntegrity() const
check Tag integrity (this include all their attributes)
bool hasAttrSynonym() const
return true if Attr correspond to an element that will be written in XML with another name ...
A storage for options typed value containers)
bool hasGEOShape() const
return true if tag correspond to an element that can use a geo shape
static int getCircleResolution(const GUIVisualizationSettings &settings)
function to calculate circle resolution for all circles drawn in drawGL(...) functions ...
crossing between edges for pedestrians
int myPositionListed
listed position
bool hasDefaultValue() const
return true if attribute owns a default value
int getPositionListed() const
get position in list (used in frames for listing tags with certain sort)
int myPositionListed
listed position
static const std::string FEATURE_LOADED
an aggreagated-output interval
static const double DEFAULT_IMG_WIDTH
SumoXMLTag getParentTag() const
if Tag owns a parent, return parent tag
Eficiency of the charge in Charging Stations.
const std::string & getDefaultValue() const
get default value
bool hasAttribute(SumoXMLAttr attr) const
check if current TagProperties owns the attribute attr
const TagProperties & getTagProperty() const
get Tag Property assigned to this object
link: the index of the link within the traffic light
last coordinate of edge shape
bool isTime() const
return true if atribute is time
Delay in the charge of charging stations.
std::vector< SumoXMLAttr > myDeprecatedAttributes
List with the deprecated Attributes.
bool isAttributeDeprecated(SumoXMLAttr attr) const
return true if attribute of this tag is deprecated
const std::string & getDefinition() const
get default value
bool drawForSelecting
whether drawing is performed for the purpose of selecting objects
begin/end of the description of a Point of interest over Lane (used by Netedit)
bool canBlockShape() const
return true if tag correspond to an element that can block their shape
bool hasDialog() const
return true if tag correspond to an element that can be edited using a dialog
An access point for a train stop.
GUIIcon getGUIIcon() const
get GUI icon associated to this Tag
SumoXMLTag myTagSynonym
Tag written in XML (If is SUMO_TAG_NOTHING), original Tag name will be written)
GNELane * retrieveLane(const std::string &id, bool failHard=true, bool checkVolatileChange=false)
get lane by id
static T parse(const std::string &string)
parses a value of type T from string (used for basic types: int, double, bool, etc.)
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
static StringBijection< LaneChangeModel > LaneChangeModels
lane change models
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.
bool canBePlacedOverLanes() const
return true if tag correspond
static std::map< SumoXMLTag, TagProperties > myTagProperties
map with the tags properties
std::string joinToString(const std::vector< T > &v, const T_BETWEEN &between, std::streamsize accuracy=gPrecision)
vehicles ignoring classes
int myAttributeProperty
Property of attribute.
static const double DEFAULT_ANGLE
begin/end of the description of a polygon
bool hasGEOPosition() const
return true if tag correspond to an element that can use a geo position
static const double DEFAULT_LAYER
trigger: a step description
std::string myTagStr
Sumo XML Tag vinculated wit this tag Property in String format.
bool isOptional() const
return true if atribute is optional