Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/src/netedit/GNETagPropertiesDatabase.cpp
169665 views
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials are made available under the
5
// terms of the Eclipse Public License 2.0 which is available at
6
// https://www.eclipse.org/legal/epl-2.0/
7
// This Source Code may also be made available under the following Secondary
8
// Licenses when the conditions for such availability set forth in the Eclipse
9
// Public License 2.0 are satisfied: GNU General Public License, version 2
10
// or later which is available at
11
// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13
/****************************************************************************/
14
/// @file GNETagPropertiesDatabase.cpp
15
/// @author Pablo Alvarez lopez
16
/// @date Feb 2025
17
///
18
// Database with all information about netedit elements
19
/****************************************************************************/
20
21
#include <netedit/GNENet.h>
22
#include <utils/emissions/PollutantsInterface.h>
23
#include <utils/options/OptionsCont.h>
24
25
#include "GNETagPropertiesDatabase.h"
26
27
// ===========================================================================
28
// method definitions
29
// ===========================================================================
30
31
GNETagPropertiesDatabase::GNETagPropertiesDatabase() {
32
// fill all groups of ACs
33
fillHierarchy();
34
fillNetworkElements();
35
fillAdditionalElements();
36
fillShapeElements();
37
fillTAZElements();
38
fillWireElements();
39
fillJuPedSimElements();
40
// demand
41
fillDemandElements();
42
fillVehicleElements();
43
fillStopElements();
44
fillWaypointElements();
45
// persons
46
fillPersonElements();
47
fillPersonPlanTrips();
48
fillPersonPlanWalks();
49
fillPersonPlanRides();
50
fillPersonStopElements();
51
// containers
52
fillContainerElements();
53
fillContainerTransportElements();
54
fillContainerTranshipElements();
55
fillContainerStopElements();
56
//data
57
fillDataElements();
58
// add common attributes to all elements
59
for (auto& tagProperties : myTagProperties) {
60
fillCommonAttributes(tagProperties.second);
61
}
62
// update max number of editable attributes
63
updateMaxNumberOfAttributesEditorRows();
64
// calculate hierarchy dept
65
updateMaxHierarchyDepth();
66
// check integrity of all Tags (function checkTagIntegrity() throws an exception if there is an inconsistency)
67
for (const auto& tagProperties : myTagProperties) {
68
tagProperties.second->checkTagIntegrity();
69
}
70
}
71
72
73
GNETagPropertiesDatabase::~GNETagPropertiesDatabase() {
74
// delete all tag properties (this also delete all attributeProperties)
75
for (auto& tagProperties : myTagProperties) {
76
delete tagProperties.second;
77
}
78
}
79
80
81
const GNETagProperties*
82
GNETagPropertiesDatabase::getTagProperty(SumoXMLTag tag, const bool hardFail) const {
83
// check that tag is defined in tagProperties or in tagPropertiesSet
84
if (myTagProperties.count(tag) > 0) {
85
return myTagProperties.at(tag);
86
} else if (mySetTagProperties.count(tag) > 0) {
87
return mySetTagProperties.at(tag);
88
} else if (hardFail) {
89
throw ProcessError(TLF("Property for tag '%' not defined", toString(tag)));
90
} else {
91
return nullptr;
92
}
93
}
94
95
96
const std::vector<const GNETagProperties*>
97
GNETagPropertiesDatabase::getTagPropertiesSet(const SumoXMLTag tag, const bool hardFail) const {
98
// check that tag is defined in tagProperties or in tagPropertiesSet
99
if (mySetTagProperties.count(tag) > 0) {
100
return mySetTagProperties.at(tag)->getHierarchicalChildren();
101
} else if (hardFail) {
102
throw ProcessError(TLF("TagPropertySet for tag '%' not defined", toString(tag)));
103
} else {
104
return {};
105
}
106
}
107
108
109
const std::vector<const GNETagProperties*>
110
GNETagPropertiesDatabase::getTagPropertiesByType(const GNETagProperties::Type type) const {
111
std::vector<const GNETagProperties*> allowedTags;
112
if (type & GNETagProperties::Type::NETWORKELEMENT) {
113
// fill networkElements tags
114
for (const auto& tagProperty : myTagProperties) {
115
if (tagProperty.second->isNetworkElement()) {
116
allowedTags.push_back(tagProperty.second);
117
}
118
}
119
}
120
if (type & GNETagProperties::Type::ADDITIONALELEMENT) {
121
// fill additional tags (only with pure additionals)
122
for (const auto& tagProperty : myTagProperties) {
123
if (tagProperty.second->isAdditionalPureElement()) {
124
allowedTags.push_back(tagProperty.second);
125
}
126
}
127
}
128
if (type & GNETagProperties::Type::SHAPE) {
129
// fill shape tags
130
for (const auto& tagProperty : myTagProperties) {
131
if (tagProperty.second->isShapeElement()) {
132
allowedTags.push_back(tagProperty.second);
133
}
134
}
135
}
136
if (type & GNETagProperties::Type::TAZELEMENT) {
137
// fill taz tags
138
for (const auto& tagProperty : myTagProperties) {
139
if (tagProperty.second->isTAZElement()) {
140
allowedTags.push_back(tagProperty.second);
141
}
142
}
143
}
144
if (type & GNETagProperties::Type::WIRE) {
145
// fill wire tags
146
for (const auto& tagProperty : myTagProperties) {
147
if (tagProperty.second->isWireElement()) {
148
allowedTags.push_back(tagProperty.second);
149
}
150
}
151
}
152
if (type & GNETagProperties::Type::DEMANDELEMENT) {
153
// fill demand tags
154
for (const auto& tagProperty : myTagProperties) {
155
if (tagProperty.second->isDemandElement()) {
156
allowedTags.push_back(tagProperty.second);
157
}
158
}
159
}
160
if (type & GNETagProperties::Type::ROUTE) {
161
// fill route tags
162
for (const auto& tagProperty : myTagProperties) {
163
if (tagProperty.second->isRoute()) {
164
allowedTags.push_back(tagProperty.second);
165
}
166
}
167
}
168
if (type & GNETagProperties::Type::VEHICLE) {
169
// fill vehicle tags
170
for (const auto& tagProperty : myTagProperties) {
171
if (tagProperty.second->isVehicle()) {
172
allowedTags.push_back(tagProperty.second);
173
}
174
}
175
}
176
if (type & GNETagProperties::Type::STOP_VEHICLE) {
177
// fill stop (and waypoints) tags
178
for (const auto& tagProperty : myTagProperties) {
179
if (tagProperty.second->isVehicleStop()) {
180
allowedTags.push_back(tagProperty.second);
181
}
182
}
183
}
184
if (type & GNETagProperties::Type::PERSON) {
185
// fill person tags
186
for (const auto& tagProperty : myTagProperties) {
187
if (tagProperty.second->isPerson()) {
188
allowedTags.push_back(tagProperty.second);
189
}
190
}
191
}
192
if (type & GNETagProperties::Type::PERSONPLAN) {
193
// fill person plan tags
194
for (const auto& tagProperty : myTagProperties) {
195
if (tagProperty.second->isPlanPerson()) {
196
allowedTags.push_back(tagProperty.second);
197
}
198
}
199
}
200
if (type & GNETagProperties::Type::PERSONTRIP) {
201
// fill demand tags
202
for (const auto& tagProperty : myTagProperties) {
203
if (tagProperty.second->isPlanPersonTrip()) {
204
allowedTags.push_back(tagProperty.second);
205
}
206
}
207
}
208
if (type & GNETagProperties::Type::WALK) {
209
// fill demand tags
210
for (const auto& tagProperty : myTagProperties) {
211
if (tagProperty.second->isPlanWalk()) {
212
allowedTags.push_back(tagProperty.second);
213
}
214
}
215
}
216
if (type & GNETagProperties::Type::RIDE) {
217
// fill demand tags
218
for (const auto& tagProperty : myTagProperties) {
219
if (tagProperty.second->isPlanRide()) {
220
allowedTags.push_back(tagProperty.second);
221
}
222
}
223
}
224
if (type & GNETagProperties::Type::STOP_PERSON) {
225
// fill demand tags
226
for (const auto& tagProperty : myTagProperties) {
227
if (tagProperty.second->isPlanStopPerson()) {
228
allowedTags.push_back(tagProperty.second);
229
}
230
}
231
}
232
if (type & GNETagProperties::Type::GENERICDATA) {
233
// fill generic data tags
234
for (const auto& tagProperty : myTagProperties) {
235
if (tagProperty.second->isGenericData()) {
236
allowedTags.push_back(tagProperty.second);
237
}
238
}
239
}
240
if (type & GNETagProperties::Type::MEANDATA) {
241
// fill generic data tags
242
for (const auto& tagProperty : myTagProperties) {
243
if (tagProperty.second->isMeanData()) {
244
allowedTags.push_back(tagProperty.second);
245
}
246
}
247
}
248
if (type & GNETagProperties::Type::CONTAINER) {
249
// fill container tags
250
for (const auto& tagProperty : myTagProperties) {
251
if (tagProperty.second->isContainer()) {
252
allowedTags.push_back(tagProperty.second);
253
}
254
}
255
}
256
if (type & GNETagProperties::Type::CONTAINERPLAN) {
257
// fill container plan tags
258
for (const auto& tagProperty : myTagProperties) {
259
if (tagProperty.second->isPlanContainer()) {
260
allowedTags.push_back(tagProperty.second);
261
}
262
}
263
}
264
if (type & GNETagProperties::Type::TRANSPORT) {
265
// fill demand tags
266
for (const auto& tagProperty : myTagProperties) {
267
if (tagProperty.second->isPlanTransport()) {
268
allowedTags.push_back(tagProperty.second);
269
}
270
}
271
}
272
if (type & GNETagProperties::Type::TRANSHIP) {
273
// fill demand tags
274
for (const auto& tagProperty : myTagProperties) {
275
if (tagProperty.second->isPlanTranship()) {
276
allowedTags.push_back(tagProperty.second);
277
}
278
}
279
}
280
if (type & GNETagProperties::Type::STOP_CONTAINER) {
281
// fill demand tags
282
for (const auto& tagProperty : myTagProperties) {
283
if (tagProperty.second->isPlanStopContainer()) {
284
allowedTags.push_back(tagProperty.second);
285
}
286
}
287
}
288
return allowedTags;
289
}
290
291
292
int
293
GNETagPropertiesDatabase::getMaxNumberOfEditableAttributeRows() const {
294
return myMaxNumberOfEditableAttributeRows;
295
}
296
297
298
int
299
GNETagPropertiesDatabase::getMaxNumberOfGeoAttributeRows() const {
300
return myMaxNumberOfGeoAttributeRows;
301
}
302
303
304
int
305
GNETagPropertiesDatabase::getMaxNumberOfFlowAttributeRows() const {
306
return myMaxNumberOfFlowAttributeRows;
307
}
308
309
310
int
311
GNETagPropertiesDatabase::getMaxNumberOfNeteditAttributesRows() const {
312
return myMaxNumberOfNeteditAttributeRows;
313
}
314
315
316
int
317
GNETagPropertiesDatabase::getHierarchyDepth() const {
318
return myHierarchyDepth;
319
}
320
321
322
void
323
GNETagPropertiesDatabase::writeAttributeHelp() const {
324
const std::string opt = "attribute-help-output";
325
OutputDevice::createDeviceByOption(opt);
326
OutputDevice& dev = OutputDevice::getDeviceByOption(opt);
327
dev << "# Netedit attribute help\n";
328
for (const auto& tagProperty : myTagProperties) {
329
if (tagProperty.second->getAttributeProperties().begin() == tagProperty.second->getAttributeProperties().end()) {
330
// don't write elements without attributes, they are only used for internal purposes
331
continue;
332
}
333
if (tagProperty.second->getXMLTag() != tagProperty.first) {
334
dev << "\n## " << toString(tagProperty.second->getXMLTag()) << " (" << toString(tagProperty.first) << ")\n";
335
} else if (tagProperty.second->getXMLParentTags().empty()) {
336
dev << "\n## " << toString(tagProperty.first) << "\n";
337
} else {
338
if (tagProperty.first == SUMO_TAG_FLOW) {
339
dev << "\n## " << toString(tagProperty.first) << "\n";
340
dev << "also child element of ";
341
} else {
342
dev << "\n### " << toString(tagProperty.first) << "\n";
343
dev << "child element of ";
344
}
345
bool sep = false;
346
for (const auto& pTag : tagProperty.second->getXMLParentTags()) {
347
if (sep) {
348
dev << ", ";
349
} else {
350
sep = true;
351
}
352
dev << "[" << toString(pTag) << "](#" << StringUtils::to_lower_case(toString(pTag)) << ")";
353
}
354
dev << "\n\n";
355
}
356
dev << "| Attribute | Type | Description |\n";
357
dev << "|-----------|------|-------------|\n";
358
for (const auto& attr : tagProperty.second->getAttributeProperties()) {
359
// ignore netedit attributes (front, selected, etc.)
360
if (!attr->isNeteditEditor() && (attr->getAttr() != GNE_ATTR_PARAMETERS)) {
361
dev << "|" << toString(attr->getAttr()) << "|"
362
<< attr->getDescription() << "|"
363
<< StringUtils::replace(attr->getDefinition(), "\n", " ");
364
if (attr->hasDefaultValue()) {
365
dev << " *default:* **" << attr->getDefaultStringValue() << "**";
366
}
367
dev << "|\n";
368
}
369
}
370
}
371
}
372
373
374
void
375
GNETagPropertiesDatabase::fillHierarchy() {
376
// root - level 0
377
mySetTagProperties[SUMO_TAG_ROOTFILE] = new GNETagProperties(SUMO_TAG_ROOTFILE,
378
nullptr,
379
GUIIcon::NETEDIT_MINI,
380
TL("Root"));
381
// supermodes - level 1
382
mySetTagProperties[GNE_TAG_SUPERMODE_NETWORK] = new GNETagProperties(GNE_TAG_SUPERMODE_NETWORK,
383
mySetTagProperties.at(SUMO_TAG_ROOTFILE),
384
GUIIcon::SUPERMODENETWORK,
385
TL("Supermode network"),
386
FXRGBA(255, 255, 255, 255),
387
TL("Supermode network"));
388
mySetTagProperties[GNE_TAG_SUPERMODE_DEMAND] = new GNETagProperties(GNE_TAG_SUPERMODE_DEMAND,
389
mySetTagProperties.at(SUMO_TAG_ROOTFILE),
390
GUIIcon::SUPERMODEDEMAND,
391
TL("Supermode demand"),
392
FXRGBA(255, 255, 255, 255),
393
TL("Supermode demand"));
394
mySetTagProperties[GNE_TAG_SUPERMODE_DATA] = new GNETagProperties(GNE_TAG_SUPERMODE_DATA,
395
mySetTagProperties.at(SUMO_TAG_ROOTFILE),
396
GUIIcon::SUPERMODEDATA,
397
TL("Supermode data"),
398
FXRGBA(255, 255, 255, 255),
399
TL("Supermode data"));
400
// net - level 2
401
mySetTagProperties[SUMO_TAG_NET] = new GNETagProperties(SUMO_TAG_NET,
402
mySetTagProperties.at(GNE_TAG_SUPERMODE_NETWORK),
403
GUIIcon::MODECREATEEDGE,
404
TL("Network elements"),
405
FXRGBA(255, 255, 255, 255),
406
TL("Network elements"));
407
// additionals - level 2
408
mySetTagProperties[SUMO_TAG_VIEWSETTINGS_ADDITIONALS] = new GNETagProperties(SUMO_TAG_VIEWSETTINGS_ADDITIONALS,
409
mySetTagProperties.at(GNE_TAG_SUPERMODE_NETWORK),
410
GUIIcon::MODEADDITIONAL,
411
TL("Additional elements"),
412
FXRGBA(255, 255, 255, 255),
413
TL("Additional elements"));
414
// stoppingPlaces - level 3
415
mySetTagProperties[GNE_TAG_STOPPINGPLACES] = new GNETagProperties(GNE_TAG_STOPPINGPLACES,
416
mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_ADDITIONALS),
417
GUIIcon::BUSSTOP,
418
TL("Stopping places"),
419
FXRGBA(255, 255, 255, 255),
420
TL("Stopping places"));
421
// detectors - level 3
422
mySetTagProperties[GNE_TAG_DETECTORS] = new GNETagProperties(GNE_TAG_DETECTORS,
423
mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_ADDITIONALS),
424
GUIIcon::E1,
425
TL("Detectors"),
426
FXRGBA(255, 255, 255, 255),
427
TL("Detectors"));
428
// wires - level 2
429
mySetTagProperties[GNE_TAG_WIRES] = new GNETagProperties(GNE_TAG_WIRES,
430
mySetTagProperties.at(GNE_TAG_SUPERMODE_NETWORK),
431
GUIIcon::MODEWIRE,
432
TL("Wire elements"),
433
FXRGBA(255, 255, 255, 255),
434
TL("Wire elements"));
435
// shapes - level 2
436
mySetTagProperties[GNE_TAG_SHAPES] = new GNETagProperties(GNE_TAG_SHAPES,
437
mySetTagProperties.at(GNE_TAG_SUPERMODE_NETWORK),
438
GUIIcon::MODESHAPE,
439
TL("Shape elements"),
440
FXRGBA(255, 255, 255, 255),
441
TL("Shape elements"));
442
mySetTagProperties[GNE_TAG_JUPEDSIM] = new GNETagProperties(GNE_TAG_JUPEDSIM,
443
mySetTagProperties.at(GNE_TAG_SHAPES),
444
GUIIcon::JPS_WALKABLEAREA,
445
TL("JuPedSim elements"),
446
FXRGBA(255, 255, 255, 255),
447
TL("JuPedSim elements"));
448
// TAZs - level 2
449
mySetTagProperties[GNE_TAG_TAZS] = new GNETagProperties(GNE_TAG_TAZS,
450
mySetTagProperties.at(GNE_TAG_SUPERMODE_NETWORK),
451
GUIIcon::MODEADDITIONAL,
452
TL("TAZ elements"),
453
FXRGBA(255, 255, 255, 255),
454
TL("TAZ elements"));
455
// vehicles - level 2
456
mySetTagProperties[SUMO_TAG_VIEWSETTINGS_VEHICLES] = new GNETagProperties(SUMO_TAG_VIEWSETTINGS_VEHICLES,
457
mySetTagProperties.at(GNE_TAG_SUPERMODE_DEMAND),
458
GUIIcon::VEHICLE,
459
TL("Vehicles"),
460
FXRGBA(255, 255, 255, 255),
461
TL("Vehicles"));
462
// flows - level 2
463
mySetTagProperties[GNE_TAG_FLOWS] = new GNETagProperties(GNE_TAG_FLOWS,
464
mySetTagProperties.at(GNE_TAG_SUPERMODE_DEMAND),
465
GUIIcon::FLOW,
466
TL("Flows"),
467
FXRGBA(255, 255, 255, 255),
468
TL("Vehicle flows"));
469
// stops - level 2
470
mySetTagProperties[GNE_TAG_STOPS] = new GNETagProperties(GNE_TAG_STOPS,
471
mySetTagProperties.at(GNE_TAG_SUPERMODE_DEMAND),
472
GUIIcon::MODESTOP,
473
TL("Vehicle stops"),
474
FXRGBA(255, 255, 255, 255),
475
TL("Vehicle stops"));
476
// personPlans - level 2
477
mySetTagProperties[GNE_TAG_PERSONPLANS] = new GNETagProperties(GNE_TAG_PERSONPLANS,
478
mySetTagProperties.at(GNE_TAG_SUPERMODE_DEMAND),
479
GUIIcon::MODEPERSONPLAN,
480
TL("Person plans"),
481
FXRGBA(255, 255, 255, 255),
482
TL("Person plans"));
483
// personTrips - level 3
484
mySetTagProperties[GNE_TAG_PERSONTRIPS] = new GNETagProperties(GNE_TAG_PERSONTRIPS,
485
mySetTagProperties.at(GNE_TAG_PERSONPLANS),
486
GUIIcon::PERSONTRIP_BUSSTOP,
487
TL("Person trips"),
488
FXRGBA(255, 255, 255, 255),
489
TL("Person trips"));
490
// rides - level 3
491
mySetTagProperties[GNE_TAG_RIDES] = new GNETagProperties(GNE_TAG_RIDES,
492
mySetTagProperties.at(GNE_TAG_PERSONPLANS),
493
GUIIcon::RIDE_BUSSTOP,
494
TL("Person rides"),
495
FXRGBA(255, 255, 255, 255),
496
TL("Person rides"));
497
// walks - level 3
498
mySetTagProperties[GNE_TAG_WALKS] = new GNETagProperties(GNE_TAG_WALKS,
499
mySetTagProperties.at(GNE_TAG_PERSONPLANS),
500
GUIIcon::WALK_BUSSTOP,
501
TL("Person walks"),
502
FXRGBA(255, 255, 255, 255),
503
TL("Person walks"));
504
// personStops - level 3
505
mySetTagProperties[GNE_TAG_PERSONSTOPS] = new GNETagProperties(GNE_TAG_PERSONSTOPS,
506
mySetTagProperties.at(GNE_TAG_PERSONPLANS),
507
GUIIcon::STOP,
508
TL("Person stop"),
509
FXRGBA(255, 255, 255, 255),
510
TL("Person stop"));
511
// containerPlans - level 2
512
mySetTagProperties[GNE_TAG_CONTAINERPLANS] = new GNETagProperties(GNE_TAG_CONTAINERPLANS,
513
mySetTagProperties.at(GNE_TAG_SUPERMODE_DEMAND),
514
GUIIcon::MODECONTAINERPLAN,
515
TL("Container plans"),
516
FXRGBA(255, 255, 255, 255),
517
TL("Container plans"));
518
// transports - level 3
519
mySetTagProperties[GNE_TAG_TRANSPORTS] = new GNETagProperties(GNE_TAG_TRANSPORTS,
520
mySetTagProperties.at(GNE_TAG_CONTAINERPLANS),
521
GUIIcon::TRANSPORT_BUSSTOP,
522
TL("Container transports"),
523
FXRGBA(255, 255, 255, 255),
524
TL("Container transports"));
525
// tranships - level 3
526
mySetTagProperties[GNE_TAG_TRANSHIPS] = new GNETagProperties(GNE_TAG_TRANSHIPS,
527
mySetTagProperties.at(GNE_TAG_CONTAINERPLANS),
528
GUIIcon::TRANSHIP_BUSSTOP,
529
TL("Container tranships"),
530
FXRGBA(255, 255, 255, 255),
531
TL("Container tranships"));
532
// containerStops - level 3
533
mySetTagProperties[GNE_TAG_CONTAINERSTOPS] = new GNETagProperties(GNE_TAG_CONTAINERSTOPS,
534
mySetTagProperties.at(GNE_TAG_CONTAINERPLANS),
535
GUIIcon::STOP,
536
TL("Container stops"),
537
FXRGBA(255, 255, 255, 255),
538
TL("Container stops"));
539
// datas - level 2
540
mySetTagProperties[GNE_TAG_DATAS] = new GNETagProperties(GNE_TAG_DATAS,
541
mySetTagProperties.at(GNE_TAG_SUPERMODE_DATA),
542
GUIIcon::EDGEDATA,
543
TL("Datas"),
544
FXRGBA(255, 255, 255, 255),
545
TL("Datas"));
546
}
547
548
549
void
550
GNETagPropertiesDatabase::fillNetworkElements() {
551
// obtain Node Types except SumoXMLNodeType::DEAD_END_DEPRECATED
552
const auto& neteditOptions = OptionsCont::getOptions();
553
std::vector<std::string> nodeTypes = SUMOXMLDefinitions::NodeTypes.getStrings();
554
nodeTypes.erase(std::find(nodeTypes.begin(), nodeTypes.end(), toString(SumoXMLNodeType::DEAD_END_DEPRECATED)));
555
nodeTypes.erase(std::find(nodeTypes.begin(), nodeTypes.end(), toString(SumoXMLNodeType::DEAD_END)));
556
nodeTypes.erase(std::find(nodeTypes.begin(), nodeTypes.end(), toString(SumoXMLNodeType::INTERNAL)));
557
// obtain TLTypes (note: avoid insert all TLTypes because some of them are experimental and not documented)
558
std::vector<std::string> TLTypes;
559
TLTypes.push_back(toString(TrafficLightType::STATIC));
560
TLTypes.push_back(toString(TrafficLightType::ACTUATED));
561
TLTypes.push_back(toString(TrafficLightType::DELAYBASED));
562
TLTypes.push_back(toString(TrafficLightType::NEMA));
563
// fill networkElement ACs
564
SumoXMLTag currentTag = SUMO_TAG_JUNCTION;
565
{
566
// set values of tag
567
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_NET),
568
GNETagProperties::Type::NETWORKELEMENT,
569
GNETagProperties::Property::RTREE,
570
GNETagProperties::Over::VIEW,
571
GNETagProperties::Conflicts::NO_CONFLICTS,
572
GUIIcon::JUNCTION, GUIGlObjectType::GLO_JUNCTION, currentTag, TL("Junction"));
573
// set values of attributes
574
fillIDAttribute(myTagProperties[currentTag], true);
575
576
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_POSITION,
577
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::UPDATEGEOMETRY, // virtual attribute from the combination of the actually attributes SUMO_ATTR_X, SUMO_ATTR_Y
578
GNEAttributeProperties::Edit::EDITMODE,
579
TL("The x-y-z position of the node on the plane in meters"));
580
581
auto type = new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TYPE,
582
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Property::DEFAULTVALUE,
583
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
584
TL("An optional type for the node"));
585
type->setDiscreteValues(nodeTypes);
586
587
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SHAPE,
588
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
589
GNEAttributeProperties::Edit::EDITMODE,
590
TL("A custom shape for that node"));
591
592
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_RADIUS,
593
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
594
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
595
TL("Optional turning radius (for all corners) for that node in meters"),
596
"4");
597
598
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_KEEP_CLEAR,
599
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
600
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
601
TL("Whether the junction-blocking-heuristic should be activated at this node"),
602
GNEAttributeCarrier::TRUE_STR);
603
604
auto rightOfWay = new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_RIGHT_OF_WAY,
605
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Property::DEFAULTVALUE,
606
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
607
TL("How to compute right of way rules at this node"),
608
SUMOXMLDefinitions::RightOfWayValues.getString(RightOfWay::DEFAULT));
609
rightOfWay->setDiscreteValues(SUMOXMLDefinitions::RightOfWayValues.getStrings());
610
611
auto fringe = new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_FRINGE,
612
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Property::DEFAULTVALUE,
613
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
614
TL("Whether this junction is at the fringe of the network"),
615
SUMOXMLDefinitions::FringeTypeValues.getString(FringeType::DEFAULT));
616
fringe->setDiscreteValues(SUMOXMLDefinitions::FringeTypeValues.getStrings());
617
618
fillNameAttribute(myTagProperties[currentTag]);
619
620
auto tlType = new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TLTYPE,
621
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Property::DEFAULTVALUE,
622
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
623
TL("An optional type for the traffic light algorithm"));
624
tlType->setDiscreteValues(TLTypes);
625
626
auto tlLayout = new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TLLAYOUT,
627
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Property::DEFAULTVALUE,
628
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
629
TL("An optional layout for the traffic light plan"),
630
toString(TrafficLightLayout::DEFAULT));
631
tlLayout->setDiscreteValues({toString(TrafficLightLayout::DEFAULT),
632
toString(TrafficLightLayout::OPPOSITES),
633
toString(TrafficLightLayout::INCOMING),
634
toString(TrafficLightLayout::ALTERNATE_ONEWAY)});
635
636
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TLID,
637
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
638
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
639
TL("An optional id for the traffic light program"));
640
641
new GNEAttributeProperties(myTagProperties[currentTag], GNE_ATTR_IS_ROUNDABOUT,
642
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
643
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
644
TL("Whether this junction is part of a roundabout"),
645
GNEAttributeCarrier::FALSE_STR);
646
}
647
currentTag = SUMO_TAG_TYPE;
648
{
649
// set values of tag
650
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_NET),
651
GNETagProperties::Type::NETWORKELEMENT,
652
GNETagProperties::Property::NOTDRAWABLE | GNETagProperties::Property::NOTSELECTABLE,
653
GNETagProperties::Over::VIEW,
654
GNETagProperties::Conflicts::NO_CONFLICTS,
655
GUIIcon::EDGETYPE, GUIGlObjectType::GLO_EDGETYPE, currentTag, TL("EdgeType"));
656
// set values of attributes
657
fillIDAttribute(myTagProperties[currentTag], false);
658
659
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_NUMLANES,
660
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
661
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
662
TL("The number of lanes of the edge"),
663
toString(neteditOptions.getInt("default.lanenumber")));
664
665
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SPEED,
666
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
667
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
668
TL("The maximum speed allowed on the edge in m/s"),
669
toString(neteditOptions.getFloat("default.speed")));
670
671
fillAllowDisallowAttributes(myTagProperties[currentTag]);
672
673
auto spreadType = new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SPREADTYPE,
674
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
675
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
676
TL("The spreadType defines how to compute the lane geometry from the edge geometry (used for visualization)"),
677
SUMOXMLDefinitions::LaneSpreadFunctions.getString(LaneSpreadFunction::RIGHT));
678
spreadType->setDiscreteValues(SUMOXMLDefinitions::LaneSpreadFunctions.getStrings());
679
680
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_PRIORITY,
681
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
682
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
683
TL("The priority of the edge"),
684
toString(neteditOptions.getInt("default.priority")));
685
686
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_WIDTH,
687
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
688
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
689
TL("Lane width for all lanes of this edge in meters (used for visualization)"),
690
"", toString(SUMO_const_laneWidth));
691
692
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SIDEWALKWIDTH,
693
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
694
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
695
TL("The width of the sidewalk that should be added as an additional lane"),
696
"", "2");
697
698
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_BIKELANEWIDTH,
699
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
700
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
701
TL("The width of the bike lane that should be added as an additional lane"),
702
"", "1");
703
}
704
currentTag = SUMO_TAG_LANETYPE;
705
{
706
// set values of tag
707
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_NET),
708
GNETagProperties::Type::NETWORKELEMENT,
709
GNETagProperties::Property::NOTDRAWABLE | GNETagProperties::Property::NOTSELECTABLE,
710
GNETagProperties::Over::VIEW,
711
GNETagProperties::Conflicts::NO_CONFLICTS,
712
GUIIcon::LANETYPE, GUIGlObjectType::GLO_LANETYPE, currentTag, TL("LaneType"));
713
// set values of attributes
714
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SPEED,
715
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
716
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
717
TL("The maximum speed allowed on the lane in m/s"),
718
toString(neteditOptions.getFloat("default.speed")));
719
720
fillAllowDisallowAttributes(myTagProperties[currentTag]);
721
722
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_WIDTH,
723
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::COPYABLE,
724
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
725
TL("Lane width for all lanes of this type in meters (used for visualization)"),
726
"3.2");
727
}
728
currentTag = SUMO_TAG_EDGE;
729
{
730
// set values of tag
731
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_NET),
732
GNETagProperties::Type::NETWORKELEMENT,
733
GNETagProperties::Property::RTREE,
734
GNETagProperties::Over::VIEW,
735
GNETagProperties::Conflicts::NO_CONFLICTS,
736
GUIIcon::EDGE, GUIGlObjectType::GLO_EDGE, currentTag, TL("Edge"));
737
// set values of attributes
738
fillIDAttribute(myTagProperties[currentTag], true);
739
740
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_FROM,
741
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
742
GNEAttributeProperties::Edit::EDITMODE,
743
TL("The name of a node within the nodes-file the edge shall start at"));
744
745
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TO,
746
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
747
GNEAttributeProperties::Edit::EDITMODE,
748
TL("The name of a node within the nodes-file the edge shall end at"));
749
750
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SPEED,
751
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
752
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
753
TL("The maximum speed allowed on the edge in m/s"),
754
toString(neteditOptions.getFloat("default.speed")));
755
756
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_PRIORITY,
757
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
758
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
759
TL("The priority of the edge"),
760
toString(neteditOptions.getInt("default.priority")));
761
762
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_NUMLANES,
763
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
764
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
765
TL("The number of lanes of the edge"),
766
toString(neteditOptions.getInt("default.lanenumber")));
767
768
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TYPE,
769
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
770
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
771
TL("The name of a type within the SUMO edge type file"));
772
773
fillAllowDisallowAttributes(myTagProperties[currentTag]);
774
775
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SHAPE,
776
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
777
GNEAttributeProperties::Edit::EDITMODE,
778
TL("If the shape is given it should start and end with the positions of the from-node and to-node"));
779
780
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_LENGTH,
781
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
782
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
783
TL("The length of the edge in meter"));
784
785
auto spreadType = new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SPREADTYPE,
786
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
787
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
788
TL("The spreadType defines how to compute the lane geometry from the edge geometry (used for visualization)"),
789
SUMOXMLDefinitions::LaneSpreadFunctions.getString(LaneSpreadFunction::RIGHT));
790
spreadType->setDiscreteValues(SUMOXMLDefinitions::LaneSpreadFunctions.getStrings());
791
792
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_NAME,
793
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
794
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
795
TL("street name (does not need to be unique, used for visualization)"));
796
797
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_WIDTH,
798
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::COPYABLE,
799
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
800
TL("Lane width for all lanes of this edge in meters (used for visualization)"),
801
"3.2");
802
803
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ENDOFFSET,
804
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
805
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
806
TL("Move the stop line back from the intersection by the given amount"),
807
"0");
808
809
new GNEAttributeProperties(myTagProperties[currentTag], GNE_ATTR_SHAPE_START,
810
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY, // virtual attribute used to define an endPoint
811
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
812
TL("Custom position in which shape start (by default position of junction from)"));
813
814
new GNEAttributeProperties(myTagProperties[currentTag], GNE_ATTR_SHAPE_END,
815
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY, // virtual attribute from to define an endPoint
816
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
817
TL("Custom position in which shape end (by default position of junction from)"));
818
819
new GNEAttributeProperties(myTagProperties[currentTag], GNE_ATTR_BIDIR,
820
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UNIQUE, // virtual attribute to check of this edge is part of a bidirectional railway (cannot be edited)
821
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
822
TL("Show if edge is bidirectional"),
823
GNEAttributeCarrier::FALSE_STR);
824
825
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_DISTANCE,
826
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UNIQUE,
827
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
828
TL("Distance"),
829
"0");
830
831
new GNEAttributeProperties(myTagProperties[currentTag], GNE_ATTR_STOPOFFSET,
832
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
833
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
834
TL("The stop offset as positive value in meters"),
835
"0");
836
837
new GNEAttributeProperties(myTagProperties[currentTag], GNE_ATTR_STOPOEXCEPTION,
838
GNEAttributeProperties::Property::VCLASS | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE,
839
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
840
TL("Specifies, for which vehicle classes the stopOffset does NOT apply."));
841
842
new GNEAttributeProperties(myTagProperties[currentTag], GNE_ATTR_IS_ROUNDABOUT,
843
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UNIQUE, // cannot be edited
844
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
845
TL("Whether this edge is part of a roundabout"),
846
GNEAttributeCarrier::FALSE_STR);
847
}
848
currentTag = SUMO_TAG_LANE;
849
{
850
// set values of tag
851
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_NET),
852
GNETagProperties::Type::NETWORKELEMENT,
853
GNETagProperties::Property::NO_PROPERTY,
854
GNETagProperties::Over::VIEW,
855
GNETagProperties::Conflicts::NO_CONFLICTS,
856
GUIIcon::LANE, GUIGlObjectType::GLO_LANE, currentTag, TL("Lane"));
857
// set values of attributes
858
fillIDAttribute(myTagProperties[currentTag], true);
859
860
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_INDEX,
861
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
862
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
863
TL("The enumeration index of the lane (0 is the rightmost lane, <NUMBER_LANES>-1 is the leftmost one)"));
864
865
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SPEED,
866
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
867
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
868
TL("Speed in meters per second"),
869
toString(neteditOptions.getFloat("default.speed")));
870
871
fillAllowDisallowAttributes(myTagProperties[currentTag]);
872
873
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_WIDTH,
874
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::COPYABLE,
875
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
876
TL("Width in meters (used for visualization)"),
877
"", "-1");
878
879
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ENDOFFSET,
880
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
881
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
882
TL("Move the stop line back from the intersection by the given amount"),
883
"0");
884
885
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ACCELERATION,
886
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
887
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
888
TL("Enable or disable lane as acceleration lane"),
889
GNEAttributeCarrier::FALSE_STR);
890
891
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_CUSTOMSHAPE,
892
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
893
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
894
TL("If the shape is given it overrides the computation based on edge shape"));
895
896
new GNEAttributeProperties(myTagProperties[currentTag], GNE_ATTR_OPPOSITE,
897
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UNIQUE,
898
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
899
TL("If given, this defines the opposite direction lane"));
900
901
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_CHANGE_LEFT,
902
GNEAttributeProperties::Property::VCLASS | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
903
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
904
TL("Permit changing left only for to the given vehicle classes"),
905
"all");
906
907
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_CHANGE_RIGHT,
908
GNEAttributeProperties::Property::VCLASS | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
909
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
910
TL("Permit changing right only for to the given vehicle classes"),
911
"all");
912
913
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TYPE,
914
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
915
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
916
TL("Lane type description (optional)"));
917
918
new GNEAttributeProperties(myTagProperties[currentTag], GNE_ATTR_STOPOFFSET,
919
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
920
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
921
TL("The stop offset as positive value in meters"),
922
"0");
923
924
new GNEAttributeProperties(myTagProperties[currentTag], GNE_ATTR_STOPOEXCEPTION,
925
GNEAttributeProperties::Property::VCLASS | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE,
926
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
927
TL("Specifies, for which vehicle classes the stopOffset does NOT apply."));
928
}
929
currentTag = SUMO_TAG_CROSSING;
930
{
931
// set values of tag
932
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_NET),
933
GNETagProperties::Type::NETWORKELEMENT,
934
GNETagProperties::Property::NO_PROPERTY,
935
GNETagProperties::Over::JUNCTION,
936
GNETagProperties::Conflicts::NO_CONFLICTS,
937
GUIIcon::CROSSING, GUIGlObjectType::GLO_CROSSING, currentTag, TL("Crossing"));
938
// set values of attributes
939
fillIDAttribute(myTagProperties[currentTag], true);
940
941
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_EDGES,
942
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
943
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
944
TL("The (road) edges which are crossed"));
945
946
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_PRIORITY,
947
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
948
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
949
TL("Whether the pedestrians have priority over the vehicles (automatically set to true at tls-controlled intersections)"),
950
GNEAttributeCarrier::FALSE_STR);
951
952
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_WIDTH,
953
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
954
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
955
TL("The width of the crossings"),
956
toString(OptionsCont::getOptions().getFloat("default.crossing-width")));
957
958
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TLLINKINDEX,
959
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::DEFAULTVALUE,
960
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
961
TL("sets the tls-index for this crossing (-1 means automatic assignment)"),
962
"-1");
963
964
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TLLINKINDEX2,
965
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::DEFAULTVALUE,
966
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
967
TL("sets the opposite-direction tls-index for this crossing (-1 means not assigned)"),
968
"-1");
969
970
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_CUSTOMSHAPE,
971
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
972
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
973
TL("Overrides default shape of pedestrian crossing"));
974
}
975
currentTag = SUMO_TAG_WALKINGAREA;
976
{
977
// set values of tag
978
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_NET),
979
GNETagProperties::Type::NETWORKELEMENT,
980
GNETagProperties::Property::NOPARAMETERS,
981
GNETagProperties::Over::JUNCTION,
982
GNETagProperties::Conflicts::NO_CONFLICTS,
983
GUIIcon::WALKINGAREA, GUIGlObjectType::GLO_WALKINGAREA, currentTag, TL("WalkingArea"));
984
// set values of attributes
985
fillIDAttribute(myTagProperties[currentTag], true);
986
987
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_WIDTH,
988
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
989
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
990
TL("The width of the WalkingArea"),
991
toString(OptionsCont::getOptions().getFloat("default.sidewalk-width")));
992
993
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_LENGTH,
994
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
995
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
996
TL("The length of the WalkingArea in meter"));
997
998
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SHAPE,
999
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1000
GNEAttributeProperties::Edit::EDITMODE,
1001
TL("Overrides default shape of pedestrian sidewalk"));
1002
1003
}
1004
currentTag = SUMO_TAG_CONNECTION;
1005
{
1006
// set values of tag
1007
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_NET),
1008
GNETagProperties::Type::NETWORKELEMENT,
1009
GNETagProperties::Property::NO_PROPERTY,
1010
GNETagProperties::Over::JUNCTION,
1011
GNETagProperties::Conflicts::NO_CONFLICTS,
1012
GUIIcon::CONNECTION, GUIGlObjectType::GLO_CONNECTION, currentTag, TL("Connection"));
1013
// set values of attributes
1014
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_FROM,
1015
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1016
GNEAttributeProperties::Edit::EDITMODE,
1017
TL("The ID of the edge the vehicles leave"));
1018
1019
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TO,
1020
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1021
GNEAttributeProperties::Edit::EDITMODE,
1022
TL("The ID of the edge the vehicles may reach when leaving 'from'"));
1023
1024
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_FROM_LANE,
1025
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1026
GNEAttributeProperties::Edit::EDITMODE,
1027
TL("the lane index of the incoming lane (numbers starting with 0)"));
1028
1029
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TO_LANE,
1030
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1031
GNEAttributeProperties::Edit::EDITMODE,
1032
TL("the lane index of the outgoing lane (numbers starting with 0)"));
1033
1034
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_PASS,
1035
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
1036
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1037
TL("if set, vehicles which pass this (lane-2-lane) connection) will not wait"),
1038
GNEAttributeCarrier::FALSE_STR);
1039
1040
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_KEEP_CLEAR,
1041
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
1042
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1043
TL("if set to false, vehicles which pass this (lane-2-lane) connection) will not worry about blocking the intersection"),
1044
GNEAttributeCarrier::FALSE_STR);
1045
1046
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_CONTPOS,
1047
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
1048
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1049
TL("If set to a more than 0 value, an internal junction will be built at this position (in m)/n from the start of the internal lane for this connection"),
1050
"", toString(NBEdge::UNSPECIFIED_CONTPOS));
1051
1052
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_UNCONTROLLED,
1053
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
1054
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1055
TL("If set to true, This connection will not be TLS-controlled despite its node being controlled"),
1056
GNEAttributeCarrier::FALSE_STR);
1057
1058
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_VISIBILITY_DISTANCE,
1059
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
1060
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1061
TL("Vision distance between vehicles"),
1062
"", toString(NBEdge::UNSPECIFIED_VISIBILITY_DISTANCE));
1063
1064
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TLLINKINDEX,
1065
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::DEFAULTVALUE,
1066
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1067
TL("sets index of this connection within the controlling traffic light (-1 means automatic assignment)"),
1068
"-1");
1069
1070
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TLLINKINDEX2,
1071
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::DEFAULTVALUE,
1072
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1073
TL("sets index for the internal junction of this connection within the controlling traffic light (-1 means internal junction not controlled)"),
1074
"-1");
1075
1076
fillAllowDisallowAttributes(myTagProperties[currentTag]);
1077
1078
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SPEED,
1079
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
1080
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1081
TL("sets custom speed limit for the connection"),
1082
"", toString(NBEdge::UNSPECIFIED_SPEED));
1083
1084
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_LENGTH,
1085
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
1086
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1087
TL("sets custom length for the connection"),
1088
"", toString(NBEdge::UNSPECIFIED_LOADED_LENGTH));
1089
1090
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_CUSTOMSHAPE,
1091
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1092
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1093
TL("sets custom shape for the connection"));
1094
1095
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_CHANGE_LEFT,
1096
GNEAttributeProperties::Property::VCLASS | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE,
1097
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1098
TL("Permit changing left only for to the given vehicle classes"),
1099
"all");
1100
1101
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_CHANGE_RIGHT,
1102
GNEAttributeProperties::Property::VCLASS | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE,
1103
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1104
TL("Permit changing right only for to the given vehicle classes"),
1105
"all");
1106
1107
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_INDIRECT,
1108
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
1109
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1110
TL("if set to true, vehicles will make a turn in 2 steps"),
1111
GNEAttributeCarrier::FALSE_STR);
1112
1113
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TYPE,
1114
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
1115
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1116
TL("set a custom edge type (for applying vClass-specific speed restrictions)"));
1117
1118
1119
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_DIR,
1120
GNEAttributeProperties::Property::STRING,
1121
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1122
TL("turning direction for this connection (computed)"));
1123
1124
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_STATE,
1125
GNEAttributeProperties::Property::STRING,
1126
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1127
TL("link state for this connection (computed)"));
1128
}
1129
currentTag = GNE_TAG_INTERNAL_LANE;
1130
{
1131
// set values of tag
1132
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_NET),
1133
GNETagProperties::Type::INTERNALLANE,
1134
GNETagProperties::Property::NO_PROPERTY,
1135
GNETagProperties::Over::JUNCTION,
1136
GNETagProperties::Conflicts::NO_CONFLICTS,
1137
GUIIcon::JUNCTION, GUIGlObjectType::GLO_TLLOGIC, currentTag, TL("InternalLanes"));
1138
// internal lanes does't have attributes
1139
}
1140
}
1141
1142
1143
void
1144
GNETagPropertiesDatabase::fillAdditionalElements() {
1145
// fill additional elements
1146
SumoXMLTag currentTag = SUMO_TAG_BUS_STOP;
1147
{
1148
// set values of tag
1149
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_STOPPINGPLACES),
1150
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::STOPPINGPLACE,
1151
GNETagProperties::Property::NO_PROPERTY,
1152
GNETagProperties::Over::LANE,
1153
GNETagProperties::Conflicts::POS_LANE_START | GNETagProperties::Conflicts::POS_LANE_END,
1154
GUIIcon::BUSSTOP, GUIGlObjectType::GLO_BUS_STOP, currentTag, TL("BusStop"),
1155
{}, FXRGBA(240, 255, 205, 255));
1156
// set common attributes
1157
fillCommonStoppingPlaceAttributes(myTagProperties[currentTag], true);
1158
1159
// set specific attributes
1160
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_LINES,
1161
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE,
1162
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1163
TL("Meant to be the names of the bus lines that stop at this bus stop. This is only used for visualization purposes"));
1164
1165
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_PERSON_CAPACITY,
1166
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
1167
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1168
TL("Larger numbers of persons trying to enter will create an upstream jam on the sidewalk"),
1169
"6");
1170
1171
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_PARKING_LENGTH,
1172
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE,
1173
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1174
TL("Optional space definition for vehicles that park at this stop"),
1175
"0");
1176
}
1177
currentTag = SUMO_TAG_TRAIN_STOP;
1178
{
1179
// set values of tag
1180
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_STOPPINGPLACES),
1181
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::STOPPINGPLACE,
1182
GNETagProperties::Property::NO_PROPERTY,
1183
GNETagProperties::Over::LANE,
1184
GNETagProperties::Conflicts::POS_LANE_START | GNETagProperties::Conflicts::POS_LANE_END,
1185
GUIIcon::TRAINSTOP, GUIGlObjectType::GLO_TRAIN_STOP, currentTag, TL("TrainStop"),
1186
{}, FXRGBA(240, 255, 205, 255));
1187
// set common attributes
1188
fillCommonStoppingPlaceAttributes(myTagProperties[currentTag], true);
1189
1190
// set specific attributes
1191
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_LINES,
1192
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE,
1193
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1194
TL("Meant to be the names of the train lines that stop at this train stop. This is only used for visualization purposes"));
1195
1196
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_PERSON_CAPACITY,
1197
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
1198
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1199
TL("Larger numbers of persons trying to enter will create an upstream jam on the sidewalk"),
1200
"6");
1201
1202
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_PARKING_LENGTH,
1203
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE,
1204
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1205
TL("Optional space definition for vehicles that park at this stop"),
1206
"0");
1207
1208
}
1209
currentTag = SUMO_TAG_ACCESS;
1210
{
1211
// set values of tag
1212
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_ADDITIONALS),
1213
GNETagProperties::Type::ADDITIONALELEMENT,
1214
GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::REPARENT,
1215
GNETagProperties::Over::LANE,
1216
GNETagProperties::Conflicts::POS_LANE,
1217
GUIIcon::ACCESS, GUIGlObjectType::GLO_ACCESS, currentTag, TL("Access"),
1218
{SUMO_TAG_BUS_STOP, SUMO_TAG_TRAIN_STOP, SUMO_TAG_CONTAINER_STOP}, FXRGBA(240, 255, 205, 255));
1219
// set values of attributes
1220
fillLaneAttribute(myTagProperties[currentTag], false);
1221
1222
fillPosOverLaneAttribute(myTagProperties[currentTag]);
1223
1224
fillFriendlyPosAttribute(myTagProperties[currentTag]);
1225
1226
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_LENGTH,
1227
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
1228
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1229
TL("The walking length of the access in meters (default is geometric length)"),
1230
"", "-1");
1231
}
1232
currentTag = SUMO_TAG_CONTAINER_STOP;
1233
{
1234
// set values of tag
1235
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_STOPPINGPLACES),
1236
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::STOPPINGPLACE,
1237
GNETagProperties::Property::NO_PROPERTY,
1238
GNETagProperties::Over::LANE,
1239
GNETagProperties::Conflicts::POS_LANE_START | GNETagProperties::Conflicts::POS_LANE_END,
1240
GUIIcon::CONTAINERSTOP, GUIGlObjectType::GLO_CONTAINER_STOP, currentTag, TL("ContainerStop"),
1241
{}, FXRGBA(240, 255, 205, 255));
1242
// set common attributes
1243
fillCommonStoppingPlaceAttributes(myTagProperties[currentTag], true);
1244
1245
// set specific attributes
1246
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_LINES,
1247
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE,
1248
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1249
TL("meant to be the names of the bus lines that stop at this container stop. This is only used for visualization purposes"));
1250
1251
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_CONTAINER_CAPACITY,
1252
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
1253
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1254
TL("Larger numbers of container trying to enter will create an upstream jam on the sidewalk"),
1255
"6");
1256
1257
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_PARKING_LENGTH,
1258
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE,
1259
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1260
TL("Optional space definition for vehicles that park at this stop"),
1261
"", "0");
1262
}
1263
currentTag = SUMO_TAG_CHARGING_STATION;
1264
{
1265
// set values of tag
1266
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_STOPPINGPLACES),
1267
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::STOPPINGPLACE,
1268
GNETagProperties::Property::NO_PROPERTY,
1269
GNETagProperties::Over::LANE,
1270
GNETagProperties::Conflicts::POS_LANE_START | GNETagProperties::Conflicts::POS_LANE_END,
1271
GUIIcon::CHARGINGSTATION, GUIGlObjectType::GLO_CHARGING_STATION, currentTag, TL("ChargingStation"),
1272
{}, FXRGBA(240, 255, 205, 255));
1273
// set common attributes
1274
fillCommonStoppingPlaceAttributes(myTagProperties[currentTag], false);
1275
1276
// set specific attributes
1277
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_CHARGINGPOWER,
1278
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
1279
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1280
TL("Charging power in W"),
1281
"22000");
1282
1283
auto efficiency = new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_EFFICIENCY,
1284
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::RANGE | GNEAttributeProperties::Property::DEFAULTVALUE,
1285
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1286
TL("Charging efficiency [0,1]"),
1287
"0.95");
1288
efficiency->setRange(0, 1);
1289
1290
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_CHARGEINTRANSIT,
1291
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
1292
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1293
TL("Enable or disable charge in transit, i.e. vehicle must or must not to stop for charging"),
1294
GNEAttributeCarrier::FALSE_STR);
1295
1296
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_CHARGEDELAY,
1297
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
1298
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1299
TL("Time delay after the vehicles has reached / stopped on the charging station, before the energy transfer (charging) begins"),
1300
"0");
1301
1302
auto chargeType = new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_CHARGETYPE,
1303
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Property::DEFAULTVALUE,
1304
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1305
TL("Battery charging type"),
1306
SUMOXMLDefinitions::ChargeTypes.getString(ChargeType::NORMAL));
1307
chargeType->setDiscreteValues(SUMOXMLDefinitions::ChargeTypes.getStrings());
1308
1309
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_WAITINGTIME,
1310
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
1311
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1312
TL("Waiting time before start charging"),
1313
"900");
1314
1315
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_PARKING_AREA,
1316
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::DEFAULTVALUE,
1317
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1318
TL("Parking area the charging station is located"));
1319
}
1320
currentTag = SUMO_TAG_PARKING_AREA;
1321
{
1322
// set values of tag
1323
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_STOPPINGPLACES),
1324
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::STOPPINGPLACE,
1325
GNETagProperties::Property::NO_PROPERTY,
1326
GNETagProperties::Over::LANE,
1327
GNETagProperties::Conflicts::POS_LANE_START | GNETagProperties::Conflicts::POS_LANE_END,
1328
GUIIcon::PARKINGAREA, GUIGlObjectType::GLO_PARKING_AREA, currentTag, TL("ParkingArea"),
1329
{}, FXRGBA(240, 255, 205, 255));
1330
// set common attributes
1331
fillCommonStoppingPlaceAttributes(myTagProperties[currentTag], false);
1332
1333
// set specific attributes
1334
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_DEPARTPOS,
1335
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1336
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1337
TL("Lane position in that vehicle must depart when leaves parkingArea"));
1338
1339
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ACCEPTED_BADGES,
1340
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE,
1341
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1342
TL("Accepted badges to access this parkingArea"));
1343
1344
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ROADSIDE_CAPACITY,
1345
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
1346
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1347
TL(" The number of parking spaces for road-side parking"),
1348
"0");
1349
1350
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ONROAD,
1351
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
1352
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1353
TL("If set, vehicles will park on the road lane and thereby reducing capacity"),
1354
"0");
1355
1356
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_WIDTH,
1357
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1358
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1359
TL("The width of the road-side parking spaces"),
1360
toString(SUMO_const_laneWidth));
1361
1362
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_LENGTH,
1363
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1364
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1365
TL("The length of the road-side parking spaces. By default (endPos - startPos) / roadsideCapacity"),
1366
"", "0");
1367
1368
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_LEFTHAND,
1369
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
1370
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1371
TL("Enable or disable lefthand position"),
1372
GNEAttributeCarrier::FALSE_STR);
1373
1374
}
1375
currentTag = SUMO_TAG_PARKING_SPACE;
1376
{
1377
// set values of tag
1378
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_ADDITIONALS),
1379
GNETagProperties::Type::ADDITIONALELEMENT,
1380
GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::REPARENT | GNETagProperties::Property::RTREE,
1381
GNETagProperties::Over::VIEW,
1382
GNETagProperties::Conflicts::NO_CONFLICTS,
1383
GUIIcon::PARKINGSPACE, GUIGlObjectType::GLO_PARKING_SPACE, currentTag, TL("ParkingSpace"),
1384
{SUMO_TAG_PARKING_AREA}, FXRGBA(240, 255, 205, 255));
1385
// set values of attributes
1386
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_POSITION,
1387
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::UPDATEGEOMETRY, // virtual attribute from the combination of the actually attributes SUMO_ATTR_X, SUMO_ATTR_Y
1388
GNEAttributeProperties::Edit::EDITMODE,
1389
TL("The x-y-z position of the node on the plane in meters"));
1390
1391
fillNameAttribute(myTagProperties[currentTag]);
1392
1393
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_WIDTH,
1394
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1395
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1396
TL("The width of the road-side parking spaces"));
1397
1398
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_LENGTH,
1399
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1400
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1401
TL("The length of the road-side parking spaces"));
1402
1403
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ANGLE,
1404
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1405
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1406
TL("The angle of the road-side parking spaces relative to the lane angle, positive means clockwise"));
1407
1408
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SLOPE,
1409
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::ANGLE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1410
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1411
TL("The slope of the road-side parking spaces"),
1412
"0");
1413
1414
}
1415
currentTag = SUMO_TAG_INDUCTION_LOOP;
1416
{
1417
// set values of tag
1418
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_DETECTORS),
1419
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::DETECTOR,
1420
GNETagProperties::Property::NO_PROPERTY,
1421
GNETagProperties::Over::LANE,
1422
GNETagProperties::Conflicts::POS_LANE,
1423
GUIIcon::E1, GUIGlObjectType::GLO_E1DETECTOR, currentTag, TL("E1 InductionLoop"),
1424
{}, FXRGBA(210, 233, 255, 255));
1425
// set values of attributes
1426
fillIDAttribute(myTagProperties[currentTag], true);
1427
1428
fillLaneAttribute(myTagProperties[currentTag], false);
1429
1430
fillPosOverLaneAttribute(myTagProperties[currentTag]);
1431
1432
fillFriendlyPosAttribute(myTagProperties[currentTag]);
1433
1434
fillNameAttribute(myTagProperties[currentTag]);
1435
1436
fillDetectorPeriodAttribute(myTagProperties[currentTag]);
1437
1438
fillFileAttribute(myTagProperties[currentTag]);
1439
1440
fillVTypesAttribute(myTagProperties[currentTag]);
1441
1442
fillDetectorNextEdgesAttribute(myTagProperties[currentTag]);
1443
1444
fillDetectPersonsAttribute(myTagProperties[currentTag]);
1445
}
1446
currentTag = SUMO_TAG_LANE_AREA_DETECTOR;
1447
{
1448
// set values of tag
1449
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_DETECTORS),
1450
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::DETECTOR,
1451
GNETagProperties::Property::NO_PROPERTY,
1452
GNETagProperties::Over::LANE,
1453
GNETagProperties::Conflicts::NO_CONFLICTS,
1454
GUIIcon::E2, GUIGlObjectType::GLO_E2DETECTOR, currentTag, TL("E2 LaneAreaDetector"),
1455
{}, FXRGBA(210, 233, 255, 255));
1456
// set values of attributes
1457
fillIDAttribute(myTagProperties[currentTag], true);
1458
1459
fillLaneAttribute(myTagProperties[currentTag], false);
1460
1461
fillPosOverLaneAttribute(myTagProperties[currentTag]);
1462
1463
fillFriendlyPosAttribute(myTagProperties[currentTag]);
1464
1465
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_LENGTH,
1466
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1467
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1468
TL("The length of the detector in meters"),
1469
"10");
1470
1471
fillNameAttribute(myTagProperties[currentTag]);
1472
1473
fillDetectorPeriodAttribute(myTagProperties[currentTag]);
1474
1475
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TLID,
1476
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
1477
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1478
TL("The traffic light that triggers aggregation when switching"));
1479
1480
fillFileAttribute(myTagProperties[currentTag]);
1481
1482
fillVTypesAttribute(myTagProperties[currentTag]);
1483
1484
fillDetectorNextEdgesAttribute(myTagProperties[currentTag]);
1485
1486
fillDetectPersonsAttribute(myTagProperties[currentTag]);
1487
1488
fillDetectorThresholdAttributes(myTagProperties[currentTag], true);
1489
1490
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SHOW_DETECTOR,
1491
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
1492
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1493
TL("Show detector in sumo-gui"),
1494
GNEAttributeCarrier::TRUE_STR);
1495
}
1496
currentTag = GNE_TAG_MULTI_LANE_AREA_DETECTOR;
1497
{
1498
// set values of tag
1499
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_DETECTORS),
1500
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::DETECTOR,
1501
GNETagProperties::Property::NO_PROPERTY,
1502
GNETagProperties::Over::CONSECUTIVE_LANES,
1503
GNETagProperties::Conflicts::NO_CONFLICTS,
1504
GUIIcon::E2, GUIGlObjectType::GLO_E2DETECTOR, SUMO_TAG_LANE_AREA_DETECTOR, TL("E2 MultiLaneAreaDetector"),
1505
{}, FXRGBA(210, 233, 255, 255));
1506
// set values of attributes
1507
fillIDAttribute(myTagProperties[currentTag], true);
1508
1509
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_LANES,
1510
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::SECUENCIAL | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1511
GNEAttributeProperties::Edit::EDITMODE,
1512
TL("The sequence of lane ids in which the detector shall be laid on"));
1513
1514
fillPosOverLaneAttribute(myTagProperties[currentTag]);
1515
1516
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ENDPOS,
1517
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1518
GNEAttributeProperties::Edit::EDITMODE,
1519
TL("The end position on the lane the detector shall be laid on in meters"));
1520
1521
fillFriendlyPosAttribute(myTagProperties[currentTag]);
1522
1523
fillDetectorPeriodAttribute(myTagProperties[currentTag]);
1524
1525
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TLID,
1526
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
1527
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1528
TL("The traffic light that triggers aggregation when switching"));
1529
1530
fillNameAttribute(myTagProperties[currentTag]);
1531
1532
fillFileAttribute(myTagProperties[currentTag]);
1533
1534
fillVTypesAttribute(myTagProperties[currentTag]);
1535
1536
fillDetectorNextEdgesAttribute(myTagProperties[currentTag]);
1537
1538
fillDetectPersonsAttribute(myTagProperties[currentTag]);
1539
1540
fillDetectorThresholdAttributes(myTagProperties[currentTag], true);
1541
1542
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SHOW_DETECTOR,
1543
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
1544
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1545
TL("Show detector in sumo-gui"),
1546
GNEAttributeCarrier::TRUE_STR);
1547
}
1548
currentTag = SUMO_TAG_ENTRY_EXIT_DETECTOR;
1549
{
1550
// set values of tag
1551
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_DETECTORS),
1552
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::DETECTOR,
1553
GNETagProperties::Property::RTREE,
1554
GNETagProperties::Over::VIEW,
1555
GNETagProperties::Conflicts::NO_ADDITIONAL_CHILDREN,
1556
GUIIcon::E3, GUIGlObjectType::GLO_DET_ENTRYEXIT, currentTag, TL("E3 EntryExitDetector"),
1557
{}, FXRGBA(210, 233, 255, 255));
1558
// set values of attributes
1559
fillIDAttribute(myTagProperties[currentTag], true);
1560
1561
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_POSITION,
1562
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1563
GNEAttributeProperties::Edit::EDITMODE,
1564
TL("X-Y position of detector in editor (Only used in netedit)"),
1565
"0,0"); // virtual attribute from the combination of the actually attributes SUMO_ATTR_X, SUMO_ATTR_Y
1566
1567
fillNameAttribute(myTagProperties[currentTag]);
1568
1569
fillDetectorPeriodAttribute(myTagProperties[currentTag]);
1570
1571
fillFileAttribute(myTagProperties[currentTag]);
1572
1573
fillVTypesAttribute(myTagProperties[currentTag]);
1574
1575
fillDetectorNextEdgesAttribute(myTagProperties[currentTag]);
1576
1577
fillDetectPersonsAttribute(myTagProperties[currentTag]);
1578
1579
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_OPEN_ENTRY,
1580
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
1581
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1582
TL("If set to true, no error will be reported if vehicles leave the detector without first entering it"),
1583
GNEAttributeCarrier::FALSE_STR);
1584
1585
fillDetectorThresholdAttributes(myTagProperties[currentTag], false);
1586
1587
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_EXPECT_ARRIVAL,
1588
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
1589
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1590
TL("Whether no warning should be issued when a vehicle arrives within the detector area."),
1591
GNEAttributeCarrier::FALSE_STR);
1592
}
1593
currentTag = SUMO_TAG_DET_ENTRY;
1594
{
1595
// set values of tag
1596
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_DETECTORS),
1597
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::DETECTOR,
1598
GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::REPARENT,
1599
GNETagProperties::Over::LANE,
1600
GNETagProperties::Conflicts::POS_LANE,
1601
GUIIcon::E3ENTRY, GUIGlObjectType::GLO_DET_ENTRY, currentTag, TL("E3 DetEntry"),
1602
{SUMO_TAG_ENTRY_EXIT_DETECTOR}, FXRGBA(210, 233, 255, 255));
1603
// set values of attributes
1604
fillLaneAttribute(myTagProperties[currentTag], false);
1605
1606
fillPosOverLaneAttribute(myTagProperties[currentTag]);
1607
1608
fillFriendlyPosAttribute(myTagProperties[currentTag]);
1609
1610
}
1611
currentTag = SUMO_TAG_DET_EXIT;
1612
{
1613
// set values of tag
1614
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_DETECTORS),
1615
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::DETECTOR,
1616
GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::REPARENT,
1617
GNETagProperties::Over::LANE,
1618
GNETagProperties::Conflicts::POS_LANE,
1619
GUIIcon::E3EXIT, GUIGlObjectType::GLO_DET_EXIT, currentTag, TL("E3 DetExit"),
1620
{SUMO_TAG_ENTRY_EXIT_DETECTOR}, FXRGBA(210, 233, 255, 255));
1621
// set values of attributes
1622
fillLaneAttribute(myTagProperties[currentTag], false);
1623
1624
fillPosOverLaneAttribute(myTagProperties[currentTag]);
1625
1626
fillFriendlyPosAttribute(myTagProperties[currentTag]);
1627
1628
}
1629
currentTag = SUMO_TAG_INSTANT_INDUCTION_LOOP;
1630
{
1631
// set values of tag
1632
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_DETECTORS),
1633
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::DETECTOR,
1634
GNETagProperties::Property::NO_PROPERTY,
1635
GNETagProperties::Over::LANE,
1636
GNETagProperties::Conflicts::POS_LANE,
1637
GUIIcon::E1INSTANT, GUIGlObjectType::GLO_E1DETECTOR_INSTANT, currentTag, TL("E3 DetExit"),
1638
{}, FXRGBA(210, 233, 255, 255));
1639
// set values of attributes
1640
fillIDAttribute(myTagProperties[currentTag], true);
1641
1642
fillLaneAttribute(myTagProperties[currentTag], false);
1643
1644
fillPosOverLaneAttribute(myTagProperties[currentTag]);
1645
1646
fillFriendlyPosAttribute(myTagProperties[currentTag]);
1647
1648
fillNameAttribute(myTagProperties[currentTag]);
1649
1650
fillFileAttribute(myTagProperties[currentTag]);
1651
1652
fillVTypesAttribute(myTagProperties[currentTag]);
1653
1654
fillDetectorNextEdgesAttribute(myTagProperties[currentTag]);
1655
1656
fillDetectPersonsAttribute(myTagProperties[currentTag]);
1657
}
1658
currentTag = SUMO_TAG_ROUTEPROBE;
1659
{
1660
// set values of tag
1661
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_ADDITIONALS),
1662
GNETagProperties::Type::ADDITIONALELEMENT,
1663
GNETagProperties::Property::CENTERAFTERCREATION,
1664
GNETagProperties::Over::EDGE,
1665
GNETagProperties::Conflicts::NO_CONFLICTS,
1666
GUIIcon::ROUTEPROBE, GUIGlObjectType::GLO_ROUTEPROBE, currentTag, TL("RouteProbe"),
1667
{}, FXRGBA(210, 233, 255, 255));
1668
// set values of attributes
1669
fillIDAttribute(myTagProperties[currentTag], true);
1670
1671
fillEdgeAttribute(myTagProperties[currentTag], false);
1672
1673
fillNameAttribute(myTagProperties[currentTag]);
1674
1675
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_PERIOD,
1676
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
1677
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1678
TL("The frequency in which to report the distribution"),
1679
"3600");
1680
1681
fillFileAttribute(myTagProperties[currentTag]);
1682
1683
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_BEGIN,
1684
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
1685
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1686
TL("The time at which to start generating output"),
1687
"0");
1688
1689
fillVTypesAttribute(myTagProperties[currentTag]);
1690
}
1691
currentTag = SUMO_TAG_VSS;
1692
{
1693
// set values of tag
1694
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_ADDITIONALS),
1695
GNETagProperties::Type::ADDITIONALELEMENT,
1696
GNETagProperties::Property::RTREE | GNETagProperties::Property::DIALOG,
1697
GNETagProperties::Over::LANES,
1698
GNETagProperties::Conflicts::NO_CONFLICTS,
1699
GUIIcon::VARIABLESPEEDSIGN, GUIGlObjectType::GLO_VSS, currentTag, TL("VariableSpeedSign"),
1700
{}, FXRGBA(210, 233, 255, 255));
1701
// set values of attributes
1702
fillIDAttribute(myTagProperties[currentTag], true);
1703
1704
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_LANES,
1705
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1706
GNEAttributeProperties::Edit::EDITMODE,
1707
TL("List of Variable Speed Sign lanes"));
1708
1709
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_POSITION,
1710
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1711
GNEAttributeProperties::Edit::EDITMODE,
1712
TL("X-Y position of detector in editor (Only used in netedit)"),
1713
"0,0"); // virtual attribute from the combination of the actually attributes SUMO_ATTR_X, SUMO_ATTR_Y
1714
1715
fillNameAttribute(myTagProperties[currentTag]);
1716
1717
fillVTypesAttribute(myTagProperties[currentTag]);
1718
}
1719
currentTag = GNE_TAG_VSS_SYMBOL;
1720
{
1721
// set values of tag
1722
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_ADDITIONALS),
1723
GNETagProperties::Type::ADDITIONALELEMENT,
1724
GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOPARAMETERS | GNETagProperties::Property::NOTSELECTABLE | GNETagProperties::Property::SYMBOL,
1725
GNETagProperties::Over::LANE,
1726
GNETagProperties::Conflicts::NO_CONFLICTS,
1727
GUIIcon::LANE, GUIGlObjectType::GLO_VSS, currentTag, TL("VariableSpeedSign (lane)"),
1728
{SUMO_TAG_VSS}, FXRGBA(210, 233, 255, 255));
1729
}
1730
currentTag = SUMO_TAG_STEP;
1731
{
1732
// set values of tag
1733
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_ADDITIONALS),
1734
GNETagProperties::Type::ADDITIONALELEMENT,
1735
GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOPARAMETERS | GNETagProperties::Property::LISTED,
1736
GNETagProperties::Over::VIEW,
1737
GNETagProperties::Conflicts::NO_CONFLICTS,
1738
GUIIcon::VSSSTEP, GUIGlObjectType::GLO_VSS_STEP, currentTag, TL("VariableSpeedSign Step"),
1739
{SUMO_TAG_VSS}, FXRGBA(210, 233, 255, 255));
1740
// set values of attributes
1741
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TIME,
1742
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::UNIQUE,
1743
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
1744
TL("Time"));
1745
1746
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SPEED,
1747
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE,
1748
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
1749
TL("Speed"),
1750
toString(OptionsCont::getOptions().getFloat("default.speed")));
1751
}
1752
currentTag = SUMO_TAG_CALIBRATOR;
1753
{
1754
// set values of tag
1755
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_ADDITIONALS),
1756
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::CALIBRATOR,
1757
GNETagProperties::Property::DIALOG | GNETagProperties::Property::CENTERAFTERCREATION,
1758
GNETagProperties::Over::EDGE,
1759
GNETagProperties::Conflicts::NO_CONFLICTS,
1760
GUIIcon::CALIBRATOR, GUIGlObjectType::GLO_CALIBRATOR, currentTag, TL("Calibrator"),
1761
{}, FXRGBA(253, 255, 206, 255));
1762
// set values of attributes
1763
fillIDAttribute(myTagProperties[currentTag], true);
1764
1765
fillEdgeAttribute(myTagProperties[currentTag], false);
1766
1767
fillPosOverLaneAttribute(myTagProperties[currentTag]);
1768
1769
fillNameAttribute(myTagProperties[currentTag]);
1770
1771
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_PERIOD,
1772
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
1773
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1774
TL("The aggregation interval in which to calibrate the flows. Default is step-length"),
1775
"1");
1776
1777
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ROUTEPROBE,
1778
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
1779
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1780
TL("The id of the routeProbe element from which to determine the route distribution for generated vehicles"));
1781
1782
fillOutputAttribute(myTagProperties[currentTag]);
1783
1784
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_JAM_DIST_THRESHOLD,
1785
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
1786
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1787
TL("A threshold value to detect and clear unexpected jamming"),
1788
"0.50");
1789
1790
fillVTypesAttribute(myTagProperties[currentTag]);
1791
}
1792
currentTag = GNE_TAG_CALIBRATOR_LANE;
1793
{
1794
// set values of tag
1795
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_ADDITIONALS),
1796
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::CALIBRATOR,
1797
GNETagProperties::Property::DIALOG | GNETagProperties::Property::CENTERAFTERCREATION,
1798
GNETagProperties::Over::LANE,
1799
GNETagProperties::Conflicts::NO_CONFLICTS,
1800
GUIIcon::CALIBRATOR, GUIGlObjectType::GLO_CALIBRATOR, SUMO_TAG_CALIBRATOR, TL("CalibratorLane"),
1801
{}, FXRGBA(253, 255, 206, 255));
1802
// set values of attributes
1803
fillIDAttribute(myTagProperties[currentTag], true);
1804
1805
fillLaneAttribute(myTagProperties[currentTag], false);
1806
1807
fillPosOverLaneAttribute(myTagProperties[currentTag]);
1808
1809
fillNameAttribute(myTagProperties[currentTag]);
1810
1811
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_PERIOD,
1812
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
1813
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1814
TL("The aggregation interval in which to calibrate the flows. Default is step-length"),
1815
"1");
1816
1817
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ROUTEPROBE,
1818
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
1819
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1820
TL("The id of the routeProbe element from which to determine the route distribution for generated vehicles"));
1821
1822
fillOutputAttribute(myTagProperties[currentTag]);
1823
1824
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_JAM_DIST_THRESHOLD,
1825
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
1826
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1827
TL("A threshold value to detect and clear unexpected jamming"),
1828
"0.50");
1829
1830
fillVTypesAttribute(myTagProperties[currentTag]);
1831
}
1832
currentTag = GNE_TAG_CALIBRATOR_FLOW;
1833
{
1834
// set values of tag
1835
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_ADDITIONALS),
1836
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::CALIBRATOR,
1837
GNETagProperties::Property::XMLCHILD,
1838
GNETagProperties::Over::VIEW,
1839
GNETagProperties::Conflicts::NO_CONFLICTS,
1840
GUIIcon::FLOW, GUIGlObjectType::GLO_CALIBRATOR_FLOW, SUMO_TAG_FLOW, TL("CalibratorFlow"),
1841
{SUMO_TAG_CALIBRATOR}, FXRGBA(253, 255, 206, 255));
1842
// set values of attributes
1843
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_BEGIN,
1844
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
1845
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
1846
TL("First calibrator flow departure time"),
1847
"0");
1848
1849
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_END,
1850
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
1851
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1852
TL("End of departure interval"),
1853
"3600");
1854
1855
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TYPE,
1856
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::ACTIVATABLE | GNEAttributeProperties::Property::VTYPE,
1857
GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
1858
TL("The id of the vehicle type to use for this calibrator flow"),
1859
DEFAULT_VTYPE_ID);
1860
1861
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ROUTE,
1862
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1863
GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
1864
TL("The id of the route the vehicle shall drive along"));
1865
1866
// at least one of the following attributes must be defined
1867
1868
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_VEHSPERHOUR,
1869
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::ACTIVATABLE,
1870
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1871
TL("Number of vehicles per hour, equally spaced"),
1872
"1800");
1873
1874
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SPEED,
1875
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::ACTIVATABLE,
1876
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1877
TL("Vehicle's speed"),
1878
"15");
1879
1880
// fill common vehicle attributes
1881
fillCommonVehicleAttributes(myTagProperties[currentTag]);
1882
}
1883
currentTag = SUMO_TAG_REROUTER;
1884
{
1885
// set values of tag
1886
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_ADDITIONALS),
1887
GNETagProperties::Type::ADDITIONALELEMENT,
1888
GNETagProperties::Property::RTREE | GNETagProperties::Property::DIALOG,
1889
GNETagProperties::Over::VIEW,
1890
GNETagProperties::Conflicts::NO_CONFLICTS,
1891
GUIIcon::REROUTER, GUIGlObjectType::GLO_REROUTER, currentTag, TL("Rerouter"),
1892
{}, FXRGBA(255, 213, 213, 255));
1893
1894
// set values of attributes
1895
fillIDAttribute(myTagProperties[currentTag], true);
1896
1897
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_POSITION,
1898
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1899
GNEAttributeProperties::Edit::EDITMODE,
1900
TL("X,Y position in editor (Only used in netedit)"),
1901
"0,0"); // virtual attribute from the combination of the actually attributes SUMO_ATTR_X, SUMO_ATTR_Y
1902
1903
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_EDGES,
1904
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
1905
GNEAttributeProperties::Edit::EDITMODE,
1906
TL("An edge id or a list of edge ids where vehicles shall be rerouted"));
1907
1908
fillNameAttribute(myTagProperties[currentTag]);
1909
1910
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_PROB,
1911
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::PROBABILITY | GNEAttributeProperties::Property::DEFAULTVALUE,
1912
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1913
TL("The probability for vehicle rerouting (0-1)"),
1914
"1");
1915
1916
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_HALTING_TIME_THRESHOLD,
1917
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
1918
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1919
TL("The waiting time threshold (in s) that must be reached to activate rerouting (default -1 which disables the threshold)"),
1920
"0");
1921
1922
fillVTypesAttribute(myTagProperties[currentTag]);
1923
1924
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_OFF,
1925
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
1926
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1927
TL("Whether the router should be inactive initially (and switched on in the gui)"),
1928
GNEAttributeCarrier::FALSE_STR);
1929
1930
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_OPTIONAL,
1931
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
1932
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
1933
TL("If rerouter is optional"),
1934
GNEAttributeCarrier::FALSE_STR);
1935
}
1936
currentTag = GNE_TAG_REROUTER_SYMBOL;
1937
{
1938
// set values of tag
1939
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_ADDITIONALS),
1940
GNETagProperties::Type::ADDITIONALELEMENT,
1941
GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOPARAMETERS | GNETagProperties::Property::NOTSELECTABLE | GNETagProperties::Property::SYMBOL,
1942
GNETagProperties::Over::EDGE,
1943
GNETagProperties::Conflicts::NO_CONFLICTS,
1944
GUIIcon::EDGE, GUIGlObjectType::GLO_REROUTER, currentTag, TL("Rerouter (Edge)"),
1945
{GNE_TAG_REROUTER_SYMBOL}, FXRGBA(255, 213, 213, 255));
1946
}
1947
currentTag = SUMO_TAG_INTERVAL;
1948
{
1949
// set values of tag
1950
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_ADDITIONALS),
1951
GNETagProperties::Type::ADDITIONALELEMENT,
1952
GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOPARAMETERS,
1953
GNETagProperties::Over::VIEW,
1954
GNETagProperties::Conflicts::NO_CONFLICTS,
1955
GUIIcon::REROUTERINTERVAL, GUIGlObjectType::GLO_REROUTER_INTERVAL, currentTag, TL("Rerouter Interval"),
1956
{SUMO_TAG_REROUTER}, FXRGBA(255, 213, 213, 255));
1957
// set values of attributes
1958
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_BEGIN,
1959
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::DEFAULTVALUE,
1960
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
1961
TL("Begin"),
1962
"0");
1963
1964
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_END,
1965
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::DEFAULTVALUE,
1966
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
1967
TL("End"),
1968
"3600");
1969
}
1970
currentTag = SUMO_TAG_CLOSING_REROUTE;
1971
{
1972
// set values of tag
1973
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_ADDITIONALS),
1974
GNETagProperties::Type::ADDITIONALELEMENT,
1975
GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOPARAMETERS | GNETagProperties::Property::LISTED,
1976
GNETagProperties::Over::VIEW,
1977
GNETagProperties::Conflicts::NO_CONFLICTS,
1978
GUIIcon::CLOSINGREROUTE, GUIGlObjectType::GLO_REROUTER_CLOSINGREROUTE, currentTag, TL("ClosingReroute"),
1979
{SUMO_TAG_INTERVAL}, FXRGBA(255, 213, 213, 255));
1980
// set values of attributes
1981
fillEdgeAttribute(myTagProperties[currentTag], true);
1982
1983
fillAllowDisallowAttributes(myTagProperties[currentTag]);
1984
}
1985
currentTag = SUMO_TAG_CLOSING_LANE_REROUTE;
1986
{
1987
// set values of tag
1988
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_ADDITIONALS),
1989
GNETagProperties::Type::ADDITIONALELEMENT,
1990
GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOPARAMETERS | GNETagProperties::Property::LISTED,
1991
GNETagProperties::Over::VIEW,
1992
GNETagProperties::Conflicts::NO_CONFLICTS,
1993
GUIIcon::CLOSINGLANEREROUTE, GUIGlObjectType::GLO_REROUTER_CLOSINGLANEREROUTE, currentTag, TL("ClosingLaneReroute"),
1994
{SUMO_TAG_INTERVAL}, FXRGBA(255, 213, 213, 255));
1995
// set values of attributes
1996
fillLaneAttribute(myTagProperties[currentTag], true);
1997
1998
fillAllowDisallowAttributes(myTagProperties[currentTag]);
1999
}
2000
currentTag = SUMO_TAG_DEST_PROB_REROUTE;
2001
{
2002
// set values of tag
2003
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_ADDITIONALS),
2004
GNETagProperties::Type::ADDITIONALELEMENT,
2005
GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOPARAMETERS | GNETagProperties::Property::LISTED,
2006
GNETagProperties::Over::VIEW,
2007
GNETagProperties::Conflicts::NO_CONFLICTS,
2008
GUIIcon::DESTPROBREROUTE, GUIGlObjectType::GLO_REROUTER_DESTPROBREROUTE, currentTag, TL("DestinationProbabilityReroute"),
2009
{SUMO_TAG_INTERVAL}, FXRGBA(255, 213, 213, 255));
2010
// set values of attributes
2011
fillEdgeAttribute(myTagProperties[currentTag], true);
2012
2013
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_PROB,
2014
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
2015
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
2016
TL("SUMO Probability"),
2017
"1");
2018
}
2019
currentTag = SUMO_TAG_PARKING_AREA_REROUTE;
2020
{
2021
// set values of tag
2022
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_ADDITIONALS),
2023
GNETagProperties::Type::ADDITIONALELEMENT,
2024
GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOPARAMETERS | GNETagProperties::Property::LISTED,
2025
GNETagProperties::Over::VIEW,
2026
GNETagProperties::Conflicts::NO_CONFLICTS,
2027
GUIIcon::PARKINGZONEREROUTE, GUIGlObjectType::GLO_REROUTER_PARKINGAREAREROUTE, currentTag, TL("ParkingAreaReroute"),
2028
{SUMO_TAG_INTERVAL}, FXRGBA(255, 213, 213, 255));
2029
// set values of attributes
2030
auto parking = new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_PARKING,
2031
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::SYNONYM,
2032
GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
2033
TL("ParkingArea ID"));
2034
parking->setSynonym(SUMO_ATTR_ID);
2035
2036
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_PROB,
2037
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
2038
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
2039
TL("SUMO Probability"),
2040
"1");
2041
2042
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_VISIBLE,
2043
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
2044
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
2045
TL("Enable or disable visibility for parking area reroutes"),
2046
GNEAttributeCarrier::TRUE_STR);
2047
}
2048
currentTag = SUMO_TAG_ROUTE_PROB_REROUTE;
2049
{
2050
// set values of tag
2051
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_ADDITIONALS),
2052
GNETagProperties::Type::ADDITIONALELEMENT,
2053
GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOPARAMETERS | GNETagProperties::Property::LISTED,
2054
GNETagProperties::Over::VIEW,
2055
GNETagProperties::Conflicts::NO_CONFLICTS,
2056
GUIIcon::ROUTEPROBREROUTE, GUIGlObjectType::GLO_REROUTER_ROUTEPROBREROUTE, currentTag, TL("RouteProbabilityReroute"),
2057
{SUMO_TAG_INTERVAL}, FXRGBA(255, 213, 213, 255));
2058
// set values of attributes
2059
auto route = new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ROUTE,
2060
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::SYNONYM | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2061
GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
2062
TL("Route"));
2063
route->setSynonym(SUMO_ATTR_ID);
2064
2065
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_PROB,
2066
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
2067
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
2068
TL("SUMO Probability"),
2069
"1");
2070
}
2071
currentTag = SUMO_TAG_VAPORIZER;
2072
{
2073
// set values of tag
2074
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_ADDITIONALS),
2075
GNETagProperties::Type::ADDITIONALELEMENT,
2076
GNETagProperties::Property::CENTERAFTERCREATION,
2077
GNETagProperties::Over::EDGE,
2078
GNETagProperties::Conflicts::NO_CONFLICTS,
2079
GUIIcon::VAPORIZER, GUIGlObjectType::GLO_VAPORIZER, currentTag, TL("Vaporizer"),
2080
{}, FXRGBA(253, 255, 206, 255));
2081
// set values of attributes
2082
fillEdgeAttribute(myTagProperties[currentTag], true);
2083
2084
fillNameAttribute(myTagProperties[currentTag]);
2085
2086
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_BEGIN,
2087
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
2088
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2089
TL("Start Time"),
2090
"0");
2091
2092
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_END,
2093
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
2094
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2095
TL("End Time"),
2096
"3600");
2097
}
2098
}
2099
2100
2101
void
2102
GNETagPropertiesDatabase::fillShapeElements() {
2103
// fill shape ACs
2104
SumoXMLTag currentTag = SUMO_TAG_POLY;
2105
{
2106
// set values of tag
2107
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_SHAPES),
2108
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::SHAPE,
2109
GNETagProperties::Property::RTREE | GNETagProperties::Property::GEOSHAPE,
2110
GNETagProperties::Over::VIEW,
2111
GNETagProperties::Conflicts::NO_CONFLICTS,
2112
GUIIcon::POLY, GUIGlObjectType::GLO_POLYGON, currentTag, TL("Polygon"),
2113
{}, FXRGBA(240, 255, 205, 255));
2114
// set values of attributes
2115
fillIDAttribute(myTagProperties[currentTag], true);
2116
2117
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SHAPE,
2118
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE,
2119
GNEAttributeProperties::Edit::EDITMODE,
2120
TL("The shape of the polygon"));
2121
2122
fillNameAttribute(myTagProperties[currentTag]);
2123
2124
fillColorAttribute(myTagProperties[currentTag], "red");
2125
2126
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_FILL,
2127
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
2128
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2129
TL("An information whether the polygon shall be filled"),
2130
GNEAttributeCarrier::FALSE_STR);
2131
2132
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_LINEWIDTH,
2133
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
2134
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2135
TL("The default line width for drawing an unfilled polygon"),
2136
"1");
2137
2138
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_LAYER,
2139
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE,
2140
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2141
TL("The layer in which the polygon lies"),
2142
toString(Shape::DEFAULT_LAYER));
2143
2144
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TYPE,
2145
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
2146
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2147
TL("A typename for the polygon"),
2148
toString(Shape::DEFAULT_TYPE));
2149
2150
fillImgFileAttribute(myTagProperties[currentTag], false);
2151
2152
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ANGLE,
2153
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::ANGLE | GNEAttributeProperties::Property::DEFAULTVALUE,
2154
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2155
TL("Angle of rendered image in degree"),
2156
toString(Shape::DEFAULT_ANGLE));
2157
2158
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_GEO,
2159
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
2160
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::GEOEDITOR,
2161
TL("Enable or disable GEO attributes"),
2162
GNEAttributeCarrier::FALSE_STR);
2163
2164
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_GEOSHAPE,
2165
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2166
GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::GEOEDITOR,
2167
TL("A custom geo shape for this polygon"));
2168
2169
new GNEAttributeProperties(myTagProperties[currentTag], GNE_ATTR_CLOSE_SHAPE,
2170
GNEAttributeProperties::Property::BOOL,
2171
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::NETEDITEDITOR,
2172
TL("Toggle close or open shape"));
2173
}
2174
currentTag = SUMO_TAG_POI;
2175
{
2176
// set values of tag
2177
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_SHAPES),
2178
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::SHAPE,
2179
GNETagProperties::Property::RTREE,
2180
GNETagProperties::Over::VIEW,
2181
GNETagProperties::Conflicts::NO_CONFLICTS,
2182
GUIIcon::POI, GUIGlObjectType::GLO_POI, currentTag, TL("PointOfInterest"),
2183
{}, FXRGBA(210, 233, 255, 255));
2184
// set values of attributes
2185
fillIDAttribute(myTagProperties[currentTag], true);
2186
2187
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_POSITION,
2188
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY, // virtual attribute from the combination of the actually attributes SUMO_ATTR_X, SUMO_ATTR_Y
2189
GNEAttributeProperties::Edit::EDITMODE,
2190
TL("The position in view"));
2191
2192
// fill Poi attributes
2193
fillCommonPOIAttributes(myTagProperties[currentTag]);
2194
}
2195
currentTag = GNE_TAG_POILANE;
2196
{
2197
// set values of tag
2198
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_SHAPES),
2199
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::SHAPE,
2200
GNETagProperties::Property::NO_PROPERTY,
2201
GNETagProperties::Over::LANE,
2202
GNETagProperties::Conflicts::POS_LANE,
2203
GUIIcon::POILANE, GUIGlObjectType::GLO_POI, SUMO_TAG_POI, TL("PointOfInterestLane"),
2204
{}, FXRGBA(210, 233, 255, 255));
2205
// set values of attributes
2206
fillIDAttribute(myTagProperties[currentTag], true);
2207
2208
fillLaneAttribute(myTagProperties[currentTag], false);
2209
2210
fillPosOverLaneAttribute(myTagProperties[currentTag]);
2211
2212
fillFriendlyPosAttribute(myTagProperties[currentTag]);
2213
2214
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_POSITION_LAT,
2215
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2216
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2217
TL("The lateral offset on the named lane at which the POI is located at"),
2218
"0");
2219
2220
// fill Poi attributes
2221
fillCommonPOIAttributes(myTagProperties[currentTag]);
2222
}
2223
currentTag = GNE_TAG_POIGEO;
2224
{
2225
// set values of tag
2226
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_SHAPES),
2227
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::SHAPE,
2228
GNETagProperties::Property::RTREE | GNETagProperties::Property::REQUIRE_PROJ,
2229
GNETagProperties::Over::VIEW,
2230
GNETagProperties::Conflicts::NO_CONFLICTS,
2231
GUIIcon::POIGEO, GUIGlObjectType::GLO_POI, SUMO_TAG_POI, TL("PointOfInterestGeo"),
2232
{}, FXRGBA(210, 233, 255, 255));
2233
// set values of attributes
2234
fillIDAttribute(myTagProperties[currentTag], true);
2235
2236
// set values of attributes
2237
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_LON,
2238
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2239
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::GEOEDITOR,
2240
TL("The longitude position of the parking vehicle on the view"));
2241
2242
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_LAT,
2243
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2244
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::GEOEDITOR,
2245
TL("The latitude position of the parking vehicle on the view"));
2246
2247
// fill Poi attributes
2248
fillCommonPOIAttributes(myTagProperties[currentTag]);
2249
}
2250
}
2251
2252
2253
void
2254
GNETagPropertiesDatabase::fillTAZElements() {
2255
// fill TAZ ACs
2256
SumoXMLTag currentTag = SUMO_TAG_TAZ;
2257
{
2258
// set values of tag
2259
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TAZS),
2260
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::TAZELEMENT,
2261
GNETagProperties::Property::RTREE,
2262
GNETagProperties::Over::VIEW,
2263
GNETagProperties::Conflicts::NO_CONFLICTS,
2264
GUIIcon::TAZ, GUIGlObjectType::GLO_TAZ, currentTag, TL("TrafficAssignmentZones"));
2265
// set values of attributes
2266
fillIDAttribute(myTagProperties[currentTag], true);
2267
2268
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SHAPE,
2269
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2270
GNEAttributeProperties::Edit::EDITMODE,
2271
TL("The shape of the TAZ"));
2272
2273
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_CENTER,
2274
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2275
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2276
TL("TAZ center"));
2277
2278
fillNameAttribute(myTagProperties[currentTag]);
2279
2280
fillColorAttribute(myTagProperties[currentTag], "red");
2281
2282
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_FILL,
2283
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
2284
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2285
TL("An information whether the TAZ shall be filled"),
2286
GNEAttributeCarrier::FALSE_STR);
2287
2288
auto edgesWithin = new GNEAttributeProperties(myTagProperties[currentTag], GNE_ATTR_EDGES_WITHIN,
2289
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
2290
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::NETEDITEDITOR,
2291
TL("Use the edges within the shape"),
2292
GNEAttributeCarrier::TRUE_STR);
2293
edgesWithin->setAlternativeName(TL("edges within"));
2294
}
2295
currentTag = SUMO_TAG_TAZSOURCE;
2296
{
2297
// set values of tag
2298
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TAZS),
2299
GNETagProperties::Type::OTHER,
2300
GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOPARAMETERS,
2301
GNETagProperties::Over::EDGE,
2302
GNETagProperties::Conflicts::NO_CONFLICTS,
2303
GUIIcon::TAZEDGE, GUIGlObjectType::GLO_TAZ, currentTag, TL("TAZ Source"),
2304
{SUMO_TAG_TAZ});
2305
// set values of attributes
2306
fillEdgeAttribute(myTagProperties[currentTag], true);
2307
2308
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_WEIGHT,
2309
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
2310
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2311
TL("Depart weight associated to this Edge"),
2312
"1");
2313
}
2314
currentTag = SUMO_TAG_TAZSINK;
2315
{
2316
// set values of tag
2317
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TAZS),
2318
GNETagProperties::Type::OTHER,
2319
GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOPARAMETERS,
2320
GNETagProperties::Over::EDGE,
2321
GNETagProperties::Conflicts::NO_CONFLICTS,
2322
GUIIcon::TAZEDGE, GUIGlObjectType::GLO_TAZ, currentTag, TL("TAZ Sink"),
2323
{SUMO_TAG_TAZ});
2324
// set values of attributes
2325
fillEdgeAttribute(myTagProperties[currentTag], true);
2326
2327
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_WEIGHT,
2328
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
2329
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2330
TL("Arrival weight associated to this Edge"),
2331
"1");
2332
}
2333
}
2334
2335
2336
void
2337
GNETagPropertiesDatabase::fillWireElements() {
2338
// fill wire elements
2339
SumoXMLTag currentTag = SUMO_TAG_TRACTION_SUBSTATION;
2340
{
2341
// set tag properties
2342
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WIRES),
2343
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::WIRE,
2344
GNETagProperties::Property::RTREE,
2345
GNETagProperties::Over::VIEW,
2346
GNETagProperties::Conflicts::NO_CONFLICTS,
2347
GUIIcon::TRACTION_SUBSTATION, GUIGlObjectType::GLO_TRACTIONSUBSTATION, currentTag, TL("TractionSubstation"));
2348
// set attribute properties
2349
fillIDAttribute(myTagProperties[currentTag], true);
2350
2351
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_POSITION,
2352
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2353
GNEAttributeProperties::Edit::EDITMODE,
2354
TL("X-Y position of detector in editor (Only used in netedit)"),
2355
"0,0"); // virtual attribute from the combination of the actually attributes SUMO_ATTR_X, SUMO_ATTR_Y
2356
2357
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_VOLTAGE,
2358
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
2359
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2360
TL("Voltage of at connection point for the overhead wire"),
2361
"600");
2362
2363
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_CURRENTLIMIT,
2364
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
2365
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2366
TL("Current limit of the feeder line"),
2367
"400");
2368
}
2369
currentTag = SUMO_TAG_OVERHEAD_WIRE_SECTION;
2370
{
2371
// set tag properties
2372
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WIRES),
2373
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::WIRE,
2374
GNETagProperties::Property::NO_PROPERTY,
2375
GNETagProperties::Over::CONSECUTIVE_LANES,
2376
GNETagProperties::Conflicts::NO_CONFLICTS,
2377
GUIIcon::OVERHEADWIRE, GUIGlObjectType::GLO_OVERHEAD_WIRE_SEGMENT, currentTag, TL("WireSection"));
2378
// set attribute properties
2379
fillIDAttribute(myTagProperties[currentTag], true);
2380
2381
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SUBSTATIONID,
2382
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
2383
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2384
TL("Substation to which the circuit is connected"));
2385
2386
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_LANES,
2387
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE,
2388
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2389
TL("List of consecutive lanes of the circuit"));
2390
2391
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_STARTPOS,
2392
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::DEFAULTVALUE,
2393
GNEAttributeProperties::Edit::EDITMODE,
2394
TL("Starting position in the specified lane"),
2395
"", "0");
2396
2397
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ENDPOS,
2398
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::DEFAULTVALUE,
2399
GNEAttributeProperties::Edit::EDITMODE,
2400
TL("Ending position in the specified lane"),
2401
"", "INVALID_DOUBLE");
2402
2403
fillFriendlyPosAttribute(myTagProperties[currentTag]);
2404
2405
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_OVERHEAD_WIRE_FORBIDDEN,
2406
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST,
2407
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2408
TL("Inner lanes, where placing of overhead wire is restricted"));
2409
}
2410
currentTag = SUMO_TAG_OVERHEAD_WIRE_CLAMP;
2411
{
2412
// set tag properties
2413
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WIRES),
2414
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::WIRE,
2415
GNETagProperties::Property::NO_PROPERTY,
2416
GNETagProperties::Over::VIEW,
2417
GNETagProperties::Conflicts::NO_CONFLICTS,
2418
GUIIcon::OVERHEADWIRE_CLAMP, GUIGlObjectType::GLO_OVERHEAD_WIRE_SEGMENT, currentTag, TL("OverheadWireClamp"));
2419
// set attribute properties
2420
fillIDAttribute(myTagProperties[currentTag], true);
2421
2422
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_OVERHEAD_WIRECLAMP_START,
2423
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
2424
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2425
TL("ID of the overhead wire segment, to the start of which the overhead wire clamp is connected"));
2426
2427
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_OVERHEAD_WIRECLAMP_LANESTART,
2428
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
2429
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2430
TL("ID of the overhead wire segment lane of overheadWireIDStartClamp"));
2431
2432
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_OVERHEAD_WIRECLAMP_END,
2433
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
2434
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2435
TL("ID of the overhead wire segment, to the end of which the overhead wire clamp is connected"));
2436
2437
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_OVERHEAD_WIRECLAMP_LANEEND,
2438
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
2439
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2440
TL("ID of the overhead wire segment lane of overheadWireIDEndClamp"));
2441
}
2442
}
2443
2444
2445
void
2446
GNETagPropertiesDatabase::fillJuPedSimElements() {
2447
// fill shape ACs
2448
SumoXMLTag currentTag = GNE_TAG_JPS_WALKABLEAREA;
2449
{
2450
// set values of tag
2451
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_JUPEDSIM),
2452
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::SHAPE | GNETagProperties::Type::JUPEDSIM,
2453
GNETagProperties::Property::RTREE,
2454
GNETagProperties::Over::VIEW,
2455
GNETagProperties::Conflicts::NO_CONFLICTS,
2456
GUIIcon::JPS_WALKABLEAREA, GUIGlObjectType::GLO_JPS_WALKABLEAREA, SUMO_TAG_POLY, TL("JuPedSim WalkableArea"),
2457
{}, FXRGBA(253, 255, 206, 255));
2458
// set values of attributes
2459
fillIDAttribute(myTagProperties[currentTag], true);
2460
2461
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SHAPE,
2462
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE,
2463
GNEAttributeProperties::Edit::EDITMODE,
2464
TL("The shape of the walkable area"));
2465
2466
fillNameAttribute(myTagProperties[currentTag]);
2467
2468
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_GEO,
2469
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
2470
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::GEOEDITOR,
2471
TL("Enable or disable GEO attributes"),
2472
GNEAttributeCarrier::FALSE_STR);
2473
2474
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_GEOSHAPE,
2475
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2476
GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::GEOEDITOR,
2477
TL("A custom geo shape for this walkable area"));
2478
}
2479
currentTag = GNE_TAG_JPS_OBSTACLE;
2480
{
2481
// set values of tag
2482
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_JUPEDSIM),
2483
GNETagProperties::Type::ADDITIONALELEMENT | GNETagProperties::Type::SHAPE | GNETagProperties::Type::JUPEDSIM,
2484
GNETagProperties::Property::RTREE,
2485
GNETagProperties::Over::VIEW,
2486
GNETagProperties::Conflicts::NO_CONFLICTS,
2487
GUIIcon::JPS_OBSTACLE, GUIGlObjectType::GLO_JPS_OBSTACLE, SUMO_TAG_POLY, TL("JuPedSim Obstacle"),
2488
{}, FXRGBA(253, 255, 206, 255));
2489
// set values of attributes
2490
fillIDAttribute(myTagProperties[currentTag], true);
2491
2492
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_SHAPE,
2493
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE,
2494
GNEAttributeProperties::Edit::EDITMODE,
2495
TL("The shape of the obstacle"));
2496
2497
fillNameAttribute(myTagProperties[currentTag]);
2498
2499
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_GEO,
2500
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
2501
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::GEOEDITOR,
2502
TL("Enable or disable GEO attributes"),
2503
GNEAttributeCarrier::FALSE_STR);
2504
2505
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_GEOSHAPE,
2506
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::POSITION | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2507
GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::GEOEDITOR,
2508
TL("A custom geo shape for this obstacle"));
2509
}
2510
}
2511
2512
2513
void
2514
GNETagPropertiesDatabase::fillDemandElements() {
2515
// fill demand elements
2516
SumoXMLTag currentTag = SUMO_TAG_ROUTE_DISTRIBUTION;
2517
{
2518
// set values of tag
2519
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties[GNE_TAG_SUPERMODE_DEMAND],
2520
GNETagProperties::Type::DEMANDELEMENT,
2521
GNETagProperties::Property::NOTDRAWABLE | GNETagProperties::Property::NOTSELECTABLE | GNETagProperties::Property::NOPARAMETERS,
2522
GNETagProperties::Over::VIEW,
2523
GNETagProperties::Conflicts::NO_CONFLICTS,
2524
GUIIcon::ROUTEDISTRIBUTION, GUIGlObjectType::GLO_ROUTE_DISTRIBUTION, currentTag, TL("RouteDistribution"));
2525
2526
// set values of attributes
2527
fillIDAttribute(myTagProperties[currentTag], true);
2528
}
2529
currentTag = SUMO_TAG_ROUTE;
2530
{
2531
// set values of tag
2532
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties[GNE_TAG_SUPERMODE_DEMAND],
2533
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::ROUTE,
2534
GNETagProperties::Property::NO_PROPERTY,
2535
GNETagProperties::Over::CONSECUTIVE_EDGES,
2536
GNETagProperties::Conflicts::NO_CONFLICTS,
2537
GUIIcon::ROUTE, GUIGlObjectType::GLO_ROUTE, currentTag, TL("Route"));
2538
2539
// set values of attributes
2540
fillIDAttribute(myTagProperties[currentTag], true);
2541
2542
// add common route attributes
2543
fillCommonRouteAttributes(myTagProperties[currentTag]);
2544
}
2545
currentTag = GNE_TAG_ROUTEREF;
2546
{
2547
// set values of tag
2548
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties[GNE_TAG_SUPERMODE_DEMAND],
2549
GNETagProperties::Type::DEMANDELEMENT,
2550
GNETagProperties::Property::XMLCHILD,
2551
GNETagProperties::Over::VIEW,
2552
GNETagProperties::Conflicts::NO_CONFLICTS,
2553
GUIIcon::ROUTEREF, GUIGlObjectType::GLO_ROUTE_REF, currentTag, TL("Route (Ref)"),
2554
{SUMO_TAG_ROUTE_DISTRIBUTION});
2555
2556
// set values of attributes
2557
new GNEAttributeProperties(myTagProperties[currentTag], GNE_ATTR_ROUTE_DISTRIBUTION,
2558
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
2559
GNEAttributeProperties::Edit::EDITMODE,
2560
TL("Route distribution in which this routeRef is defined"));
2561
2562
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_REFID,
2563
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
2564
GNEAttributeProperties::Edit::EDITMODE,
2565
TL("Reference ID of route"));
2566
2567
fillDistributionProbability(myTagProperties[currentTag], true);
2568
}
2569
currentTag = GNE_TAG_ROUTE_EMBEDDED;
2570
{
2571
// set values of tag
2572
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties[GNE_TAG_SUPERMODE_DEMAND],
2573
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::ROUTE,
2574
GNETagProperties::Property::XMLCHILD,
2575
GNETagProperties::Over::CONSECUTIVE_EDGES,
2576
GNETagProperties::Conflicts::NO_CONFLICTS,
2577
GUIIcon::ROUTE, GUIGlObjectType::GLO_ROUTE_EMBEDDED, SUMO_TAG_ROUTE, TL("Route (embedded)"),
2578
{GNE_TAG_VEHICLE_WITHROUTE, GNE_TAG_FLOW_WITHROUTE});
2579
2580
// add common route attributes
2581
fillCommonRouteAttributes(myTagProperties[currentTag]);
2582
}
2583
currentTag = SUMO_TAG_VTYPE_DISTRIBUTION;
2584
{
2585
// set values of tag
2586
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties[GNE_TAG_SUPERMODE_DEMAND],
2587
GNETagProperties::Type::DEMANDELEMENT,
2588
GNETagProperties::Property::NOTDRAWABLE | GNETagProperties::Property::NOTSELECTABLE | GNETagProperties::Property::NOPARAMETERS,
2589
GNETagProperties::Over::VIEW,
2590
GNETagProperties::Conflicts::NO_CONFLICTS,
2591
GUIIcon::VTYPEDISTRIBUTION, GUIGlObjectType::GLO_VTYPE_DISTRIBUTION, currentTag, TL("TypeDistribution"));
2592
2593
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_DETERMINISTIC,
2594
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
2595
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
2596
TL("Deterministic distribution"),
2597
"-1");
2598
2599
// set values of attributes
2600
fillIDAttribute(myTagProperties[currentTag], true);
2601
}
2602
currentTag = SUMO_TAG_VTYPE;
2603
{
2604
// set values of tag
2605
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties[GNE_TAG_SUPERMODE_DEMAND],
2606
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::VTYPE,
2607
GNETagProperties::Property::NOTDRAWABLE | GNETagProperties::Property::NOTSELECTABLE | GNETagProperties::Property::VCLASS_ICON | GNETagProperties::Property::EXTENDED,
2608
GNETagProperties::Over::VIEW,
2609
GNETagProperties::Conflicts::NO_CONFLICTS,
2610
GUIIcon::VTYPE, GUIGlObjectType::GLO_VTYPE, currentTag, TL("VehicleType"));
2611
2612
// set values of attributes
2613
fillIDAttribute(myTagProperties[currentTag], true);
2614
2615
// add common vType attributes
2616
fillCommonVTypeAttributes(myTagProperties[currentTag]);
2617
}
2618
currentTag = GNE_TAG_VTYPEREF;
2619
{
2620
// set values of tag
2621
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties[GNE_TAG_SUPERMODE_DEMAND],
2622
GNETagProperties::Type::DEMANDELEMENT,
2623
GNETagProperties::Property::XMLCHILD,
2624
GNETagProperties::Over::VIEW,
2625
GNETagProperties::Conflicts::NO_CONFLICTS,
2626
GUIIcon::VTYPEREF, GUIGlObjectType::GLO_VTYPE_REF, currentTag, TL("VType (Ref)"),
2627
{SUMO_TAG_VTYPE_DISTRIBUTION});
2628
2629
// set values of attributes
2630
new GNEAttributeProperties(myTagProperties[currentTag], GNE_ATTR_VTYPE_DISTRIBUTION,
2631
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
2632
GNEAttributeProperties::Edit::EDITMODE,
2633
TL("VType distribution in which this vTypeRef is defined"));
2634
2635
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_REFID,
2636
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
2637
GNEAttributeProperties::Edit::EDITMODE,
2638
TL("Reference ID of vType"));
2639
2640
fillDistributionProbability(myTagProperties[currentTag], true);
2641
}
2642
}
2643
2644
2645
void
2646
GNETagPropertiesDatabase::fillVehicleElements() {
2647
// fill vehicle ACs
2648
SumoXMLTag currentTag = SUMO_TAG_TRIP;
2649
{
2650
// set values of tag
2651
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_VEHICLES),
2652
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::VEHICLE,
2653
GNETagProperties::Property::NO_PROPERTY,
2654
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_EDGE,
2655
GNETagProperties::Conflicts::NO_CONFLICTS,
2656
GUIIcon::TRIP, GUIGlObjectType::GLO_TRIP, currentTag, TL("TripEdges"),
2657
{}, FXRGBA(253, 255, 206, 255), "trip (from-to edges)");
2658
2659
// set values of attributes
2660
fillIDAttribute(myTagProperties[currentTag], true);
2661
2662
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TYPE,
2663
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::VTYPE,
2664
GNEAttributeProperties::Edit::EDITMODE,
2665
TL("The id of the vehicle type to use for this trip"),
2666
DEFAULT_VTYPE_ID);
2667
2668
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_FROM,
2669
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2670
GNEAttributeProperties::Edit::EDITMODE,
2671
TL("The ID of the edge the trip starts at"));
2672
2673
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TO,
2674
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2675
GNEAttributeProperties::Edit::EDITMODE,
2676
TL("The ID of the edge the trip ends at"));
2677
2678
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_VIA,
2679
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::LIST,
2680
GNEAttributeProperties::Edit::EDITMODE,
2681
TL("List of intermediate edge ids which shall be part of the trip"));
2682
2683
// add common attributes
2684
fillCommonVehicleAttributes(myTagProperties[currentTag]);
2685
2686
fillDepartAttribute(myTagProperties[currentTag]);
2687
}
2688
currentTag = GNE_TAG_TRIP_JUNCTIONS;
2689
{
2690
// set values of tag
2691
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_VEHICLES),
2692
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::VEHICLE,
2693
GNETagProperties::Property::NO_PROPERTY,
2694
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_JUNCTION,
2695
GNETagProperties::Conflicts::NO_CONFLICTS,
2696
GUIIcon::TRIP_JUNCTIONS, GUIGlObjectType::GLO_TRIP, SUMO_TAG_TRIP, TL("TripJunctions"),
2697
{}, FXRGBA(255, 213, 213, 255), "trip (from-to junctions)");
2698
2699
// set values of attributes
2700
fillIDAttribute(myTagProperties[currentTag], true);
2701
2702
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TYPE,
2703
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::VTYPE,
2704
GNEAttributeProperties::Edit::EDITMODE,
2705
TL("The id of the vehicle type to use for this trip"),
2706
DEFAULT_VTYPE_ID);
2707
2708
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_FROM_JUNCTION,
2709
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2710
GNEAttributeProperties::Edit::EDITMODE,
2711
TL("The name of the junction the trip starts at"));
2712
2713
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TO_JUNCTION,
2714
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2715
GNEAttributeProperties::Edit::EDITMODE,
2716
TL("The name of the junction the trip ends at"));
2717
2718
// add common attributes
2719
fillCommonVehicleAttributes(myTagProperties[currentTag]);
2720
2721
fillDepartAttribute(myTagProperties[currentTag]);
2722
}
2723
currentTag = GNE_TAG_TRIP_TAZS;
2724
{
2725
// set values of tag
2726
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_VEHICLES),
2727
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::VEHICLE,
2728
GNETagProperties::Property::NO_PROPERTY,
2729
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_TAZ,
2730
GNETagProperties::Conflicts::NO_CONFLICTS,
2731
GUIIcon::TRIP_TAZS, GUIGlObjectType::GLO_TRIP, SUMO_TAG_TRIP, TL("TripTAZs"),
2732
{}, FXRGBA(240, 255, 205, 255), "trip (from-to TAZs)");
2733
2734
// set values of attributes
2735
fillIDAttribute(myTagProperties[currentTag], true);
2736
2737
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TYPE,
2738
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::VTYPE,
2739
GNEAttributeProperties::Edit::EDITMODE,
2740
TL("The id of the vehicle type to use for this trip"),
2741
DEFAULT_VTYPE_ID);
2742
2743
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_FROM_TAZ,
2744
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2745
GNEAttributeProperties::Edit::EDITMODE,
2746
TL("The name of the TAZ the trip starts at"));
2747
2748
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TO_TAZ,
2749
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2750
GNEAttributeProperties::Edit::EDITMODE,
2751
TL("The name of the TAZ the trip ends at"));
2752
2753
// add common attributes
2754
fillCommonVehicleAttributes(myTagProperties[currentTag]);
2755
2756
fillDepartAttribute(myTagProperties[currentTag]);
2757
}
2758
currentTag = SUMO_TAG_VEHICLE;
2759
{
2760
// set values of tag
2761
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_VEHICLES),
2762
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::VEHICLE,
2763
GNETagProperties::Property::NO_PROPERTY,
2764
GNETagProperties::Over::ROUTE,
2765
GNETagProperties::Conflicts::NO_CONFLICTS,
2766
GUIIcon::VEHICLE, GUIGlObjectType::GLO_VEHICLE, currentTag, TL("VehicleRoute"),
2767
{}, FXRGBA(210, 233, 255, 255), "vehicle (over route)");
2768
2769
// set values of attributes
2770
fillIDAttribute(myTagProperties[currentTag], true);
2771
2772
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TYPE,
2773
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::VTYPE,
2774
GNEAttributeProperties::Edit::EDITMODE,
2775
TL("The id of the vehicle type to use for this vehicle"),
2776
DEFAULT_VTYPE_ID);
2777
2778
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ROUTE,
2779
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2780
GNEAttributeProperties::Edit::EDITMODE,
2781
TL("The id of the route the vehicle shall drive along"));
2782
2783
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_DEPARTEDGE,
2784
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::DEFAULTVALUE,
2785
GNEAttributeProperties::Edit::EDITMODE,
2786
TL("The index of the edge within route the vehicle starts at"));
2787
2788
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ARRIVALEDGE,
2789
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::DEFAULTVALUE,
2790
GNEAttributeProperties::Edit::EDITMODE,
2791
TL("The index of the edge within route the vehicle ends at"));
2792
2793
// add common attributes
2794
fillCommonVehicleAttributes(myTagProperties[currentTag]);
2795
2796
fillDepartAttribute(myTagProperties[currentTag]);
2797
}
2798
currentTag = GNE_TAG_VEHICLE_WITHROUTE;
2799
{
2800
// set values of tag
2801
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_VEHICLES),
2802
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::VEHICLE,
2803
GNETagProperties::Property::NO_PROPERTY,
2804
GNETagProperties::Over::ROUTE_EMBEDDED,
2805
GNETagProperties::Conflicts::NO_CONFLICTS,
2806
GUIIcon::VEHICLE, GUIGlObjectType::GLO_VEHICLE, SUMO_TAG_VEHICLE, TL("VehicleEmbeddedRoute"),
2807
{}, FXRGBA(210, 233, 255, 255), "vehicle (embedded route)");
2808
2809
// set values of attributes
2810
fillIDAttribute(myTagProperties[currentTag], true);
2811
2812
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TYPE,
2813
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::VTYPE,
2814
GNEAttributeProperties::Edit::EDITMODE,
2815
TL("The id of the vehicle type to use for this vehicle"),
2816
DEFAULT_VTYPE_ID);
2817
2818
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_DEPARTEDGE,
2819
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::DEFAULTVALUE,
2820
GNEAttributeProperties::Edit::EDITMODE,
2821
TL("The index of the edge within route the vehicle starts at"));
2822
2823
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ARRIVALEDGE,
2824
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::DEFAULTVALUE,
2825
GNEAttributeProperties::Edit::EDITMODE,
2826
TL("The index of the edge within route the vehicle ends at"));
2827
2828
// add common attributes
2829
fillCommonVehicleAttributes(myTagProperties[currentTag]);
2830
2831
fillDepartAttribute(myTagProperties[currentTag]);
2832
}
2833
currentTag = SUMO_TAG_FLOW;
2834
{
2835
// set values of tag
2836
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_VEHICLES),
2837
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::VEHICLE | GNETagProperties::Type::FLOW,
2838
GNETagProperties::Property::NO_PROPERTY,
2839
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_EDGE,
2840
GNETagProperties::Conflicts::NO_CONFLICTS,
2841
GUIIcon::FLOW, GUIGlObjectType::GLO_FLOW, currentTag, TL("FlowEdges"),
2842
{}, FXRGBA(253, 255, 206, 255), "flow (from-to edges)");
2843
2844
// set values of attributes
2845
fillIDAttribute(myTagProperties[currentTag], true);
2846
2847
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TYPE,
2848
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::VTYPE,
2849
GNEAttributeProperties::Edit::EDITMODE,
2850
TL("The id of the flow type to use for this flow"),
2851
DEFAULT_VTYPE_ID);
2852
2853
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_FROM,
2854
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2855
GNEAttributeProperties::Edit::EDITMODE,
2856
TL("The ID of the edge the flow starts at"));
2857
2858
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TO,
2859
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2860
GNEAttributeProperties::Edit::EDITMODE,
2861
TL("The ID of the edge the flow ends at"));
2862
2863
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_VIA,
2864
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::LIST,
2865
GNEAttributeProperties::Edit::EDITMODE,
2866
TL("List of intermediate edge ids which shall be part of the flow"));
2867
2868
// add common attributes
2869
fillCommonVehicleAttributes(myTagProperties[currentTag]);
2870
2871
// add flow attributes
2872
fillCommonFlowAttributes(myTagProperties[currentTag], SUMO_ATTR_VEHSPERHOUR);
2873
}
2874
currentTag = GNE_TAG_FLOW_JUNCTIONS;
2875
{
2876
// set values of tag
2877
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_VEHICLES),
2878
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::VEHICLE | GNETagProperties::Type::FLOW,
2879
GNETagProperties::Property::NO_PROPERTY,
2880
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_JUNCTION,
2881
GNETagProperties::Conflicts::NO_CONFLICTS,
2882
GUIIcon::FLOW_JUNCTIONS, GUIGlObjectType::GLO_FLOW, SUMO_TAG_FLOW, TL("FlowJunctions"),
2883
{}, FXRGBA(255, 213, 213, 255), "flow (from-to junctions)");
2884
2885
// set values of attributes
2886
fillIDAttribute(myTagProperties[currentTag], true);
2887
2888
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TYPE,
2889
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::VTYPE,
2890
GNEAttributeProperties::Edit::EDITMODE,
2891
TL("The id of the flow type to use for this flow"),
2892
DEFAULT_VTYPE_ID);
2893
2894
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_FROM_JUNCTION,
2895
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2896
GNEAttributeProperties::Edit::EDITMODE,
2897
TL("The name of the junction the flow starts at"));
2898
2899
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TO_JUNCTION,
2900
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2901
GNEAttributeProperties::Edit::EDITMODE,
2902
TL("The name of the junction the flow ends at"));
2903
2904
// add common attributes
2905
fillCommonVehicleAttributes(myTagProperties[currentTag]);
2906
2907
// add flow attributes
2908
fillCommonFlowAttributes(myTagProperties[currentTag], SUMO_ATTR_VEHSPERHOUR);
2909
}
2910
currentTag = GNE_TAG_FLOW_TAZS;
2911
{
2912
// set values of tag
2913
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_VEHICLES),
2914
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::VEHICLE | GNETagProperties::Type::FLOW,
2915
GNETagProperties::Property::NO_PROPERTY,
2916
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_TAZ,
2917
GNETagProperties::Conflicts::NO_CONFLICTS,
2918
GUIIcon::FLOW_TAZS, GUIGlObjectType::GLO_FLOW, SUMO_TAG_FLOW, TL("FlowTAZs"),
2919
{}, FXRGBA(240, 255, 205, 255), "flow (from-to TAZs)");
2920
2921
// set values of attributes
2922
fillIDAttribute(myTagProperties[currentTag], true);
2923
2924
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TYPE,
2925
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::VTYPE,
2926
GNEAttributeProperties::Edit::EDITMODE,
2927
TL("The id of the flow type to use for this flow"),
2928
DEFAULT_VTYPE_ID);
2929
2930
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_FROM_TAZ,
2931
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2932
GNEAttributeProperties::Edit::EDITMODE,
2933
TL("The name of the TAZ the flow starts at"));
2934
2935
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TO_TAZ,
2936
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2937
GNEAttributeProperties::Edit::EDITMODE,
2938
TL("The name of the TAZ the flow ends at"));
2939
2940
// add common attributes
2941
fillCommonVehicleAttributes(myTagProperties[currentTag]);
2942
2943
// add flow attributes
2944
fillCommonFlowAttributes(myTagProperties[currentTag], SUMO_ATTR_VEHSPERHOUR);
2945
}
2946
currentTag = GNE_TAG_FLOW_ROUTE;
2947
{
2948
// set values of tag
2949
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_VEHICLES),
2950
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::VEHICLE | GNETagProperties::Type::FLOW,
2951
GNETagProperties::Property::NO_PROPERTY,
2952
GNETagProperties::Over::ROUTE,
2953
GNETagProperties::Conflicts::NO_CONFLICTS,
2954
GUIIcon::ROUTEFLOW, GUIGlObjectType::GLO_ROUTEFLOW, SUMO_TAG_FLOW, TL("FlowRoute"),
2955
{}, FXRGBA(210, 233, 255, 255), "flow (over route)");
2956
2957
// set values of attributes
2958
fillIDAttribute(myTagProperties[currentTag], true);
2959
2960
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TYPE,
2961
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::VTYPE,
2962
GNEAttributeProperties::Edit::EDITMODE,
2963
TL("The id of the flow type to use for this flow"),
2964
DEFAULT_VTYPE_ID);
2965
2966
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ROUTE,
2967
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
2968
GNEAttributeProperties::Edit::EDITMODE,
2969
TL("The id of the route the flow shall drive along"));
2970
2971
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_DEPARTEDGE,
2972
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::DEFAULTVALUE,
2973
GNEAttributeProperties::Edit::EDITMODE,
2974
TL("The index of the edge within route the flow starts at"));
2975
2976
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ARRIVALEDGE,
2977
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::DEFAULTVALUE,
2978
GNEAttributeProperties::Edit::EDITMODE,
2979
TL("The index of the edge within route the flow ends at"));
2980
2981
// add common attributes
2982
fillCommonVehicleAttributes(myTagProperties[currentTag]);
2983
2984
// add flow attributes
2985
fillCommonFlowAttributes(myTagProperties[currentTag], SUMO_ATTR_VEHSPERHOUR);
2986
}
2987
currentTag = GNE_TAG_FLOW_WITHROUTE;
2988
{
2989
// set values of tag
2990
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(SUMO_TAG_VIEWSETTINGS_VEHICLES),
2991
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::VEHICLE | GNETagProperties::Type::FLOW,
2992
GNETagProperties::Property::NO_PROPERTY,
2993
GNETagProperties::Over::ROUTE_EMBEDDED,
2994
GNETagProperties::Conflicts::NO_CONFLICTS,
2995
GUIIcon::ROUTEFLOW, GUIGlObjectType::GLO_ROUTEFLOW, SUMO_TAG_FLOW, TL("FlowEmbeddedRoute"),
2996
{}, FXRGBA(210, 233, 255, 255), "flow (embedded route)");
2997
2998
// set values of attributes
2999
fillIDAttribute(myTagProperties[currentTag], true);
3000
3001
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TYPE,
3002
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::VTYPE,
3003
GNEAttributeProperties::Edit::EDITMODE,
3004
TL("The id of the flow type to use for this flow"),
3005
DEFAULT_VTYPE_ID);
3006
3007
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_DEPARTEDGE,
3008
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::DEFAULTVALUE,
3009
GNEAttributeProperties::Edit::EDITMODE,
3010
TL("The index of the edge within route the flow starts at"));
3011
3012
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ARRIVALEDGE,
3013
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::DEFAULTVALUE,
3014
GNEAttributeProperties::Edit::EDITMODE,
3015
TL("The index of the edge within route the flow ends at"));
3016
3017
// add common attributes
3018
fillCommonVehicleAttributes(myTagProperties[currentTag]);
3019
3020
// add flow attributes
3021
fillCommonFlowAttributes(myTagProperties[currentTag], SUMO_ATTR_VEHSPERHOUR);
3022
}
3023
}
3024
3025
3026
void
3027
GNETagPropertiesDatabase::fillStopElements() {
3028
// fill stops ACs
3029
SumoXMLTag currentTag = GNE_TAG_STOP_LANE;
3030
{
3031
// set values of tag
3032
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_STOPS),
3033
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::STOP_VEHICLE,
3034
GNETagProperties::Property::XMLCHILD,
3035
GNETagProperties::Over::LANE,
3036
GNETagProperties::Conflicts::POS_LANE_START | GNETagProperties::Conflicts::POS_LANE_END,
3037
GUIIcon::STOPELEMENT, GUIGlObjectType::GLO_STOP, SUMO_TAG_STOP, TL("StopLane"),
3038
{SUMO_TAG_ROUTE, SUMO_TAG_TRIP, SUMO_TAG_FLOW}, FXRGBA(255, 213, 213, 255));
3039
// set values of attributes
3040
fillLaneAttribute(myTagProperties[currentTag], false);
3041
3042
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_STARTPOS,
3043
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
3044
GNEAttributeProperties::Edit::EDITMODE,
3045
TL("The begin position on the lane (the lower position on the lane) in meters"));
3046
3047
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ENDPOS,
3048
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
3049
GNEAttributeProperties::Edit::EDITMODE,
3050
TL("The end position on the lane (the higher position on the lane) in meters, must be larger than startPos by more than 0.1m"));
3051
3052
fillFriendlyPosAttribute(myTagProperties[currentTag]);
3053
3054
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_POSITION_LAT,
3055
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
3056
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
3057
TL("The lateral offset on the named lane at which the vehicle must stop"));
3058
3059
// fill common stop attributes
3060
fillCommonStopAttributes(myTagProperties[currentTag], false);
3061
/*
3062
// netedit attributes
3063
new GNEAttributeProperties(myTagProperties[currentTag], GNE_ATTR_SIZE,
3064
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Edit::NETEDITEDITOR,
3065
TLF("Length of %", myTagProperties[currentTag]->getTagStr()));
3066
3067
new GNEAttributeProperties(myTagProperties[currentTag], GNE_ATTR_FORCESIZE,
3068
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Edit::NETEDITEDITOR,
3069
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
3070
TL("Force size during creation"),
3071
GNEAttributeCarrier::FALSE_STR);
3072
3073
new GNEAttributeProperties(myTagProperties[currentTag], GNE_ATTR_REFERENCE,
3074
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Edit::NETEDITEDITOR,
3075
TLF("Reference position used for creating %", myTagProperties[currentTag]->getTagStr()));
3076
attrProperty->setDiscreteValues(SUMOXMLDefinitions::ReferencePositions.getStrings());
3077
*/
3078
}
3079
currentTag = GNE_TAG_STOP_BUSSTOP;
3080
{
3081
// set values of tag
3082
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_STOPS),
3083
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::STOP_VEHICLE,
3084
GNETagProperties::Property::XMLCHILD,
3085
GNETagProperties::Over::BUSSTOP,
3086
GNETagProperties::Conflicts::NO_CONFLICTS,
3087
GUIIcon::STOPELEMENT, GUIGlObjectType::GLO_STOP, SUMO_TAG_STOP, TL("StopBusStop"),
3088
{SUMO_TAG_ROUTE, SUMO_TAG_TRIP, SUMO_TAG_FLOW}, FXRGBA(255, 213, 213, 255));
3089
// set values of attributes
3090
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_BUS_STOP,
3091
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
3092
GNEAttributeProperties::Edit::EDITMODE,
3093
TL("BusStop associated with this stop"));
3094
3095
// fill common stop attributes
3096
fillCommonStopAttributes(myTagProperties[currentTag], false);
3097
}
3098
currentTag = GNE_TAG_STOP_TRAINSTOP;
3099
{
3100
// set values of tag
3101
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_STOPS),
3102
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::STOP_VEHICLE,
3103
GNETagProperties::Property::XMLCHILD,
3104
GNETagProperties::Over::TRAINSTOP,
3105
GNETagProperties::Conflicts::NO_CONFLICTS,
3106
GUIIcon::STOPELEMENT, GUIGlObjectType::GLO_STOP, SUMO_TAG_STOP, TL("StopTrainStop"),
3107
{SUMO_TAG_ROUTE, SUMO_TAG_TRIP, SUMO_TAG_FLOW}, FXRGBA(255, 213, 213, 255));
3108
// set values of attributes
3109
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TRAIN_STOP,
3110
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
3111
GNEAttributeProperties::Edit::EDITMODE,
3112
TL("TrainStop associated with this stop"));
3113
3114
// fill common stop attributes
3115
fillCommonStopAttributes(myTagProperties[currentTag], false);
3116
}
3117
currentTag = GNE_TAG_STOP_CONTAINERSTOP;
3118
{
3119
// set values of tag
3120
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_STOPS),
3121
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::STOP_VEHICLE,
3122
GNETagProperties::Property::XMLCHILD,
3123
GNETagProperties::Over::CONTAINERSTOP,
3124
GNETagProperties::Conflicts::NO_CONFLICTS,
3125
GUIIcon::STOPELEMENT, GUIGlObjectType::GLO_STOP, SUMO_TAG_STOP, TL("StopContainerStop"),
3126
{SUMO_TAG_ROUTE, SUMO_TAG_TRIP, SUMO_TAG_FLOW}, FXRGBA(255, 213, 213, 255));
3127
// set values of attributes
3128
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_CONTAINER_STOP,
3129
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
3130
GNEAttributeProperties::Edit::EDITMODE,
3131
TL("ContainerStop associated with this stop"));
3132
3133
// fill common stop attributes
3134
fillCommonStopAttributes(myTagProperties[currentTag], false);
3135
}
3136
currentTag = GNE_TAG_STOP_CHARGINGSTATION;
3137
{
3138
// set values of tag
3139
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_STOPS),
3140
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::STOP_VEHICLE,
3141
GNETagProperties::Property::XMLCHILD,
3142
GNETagProperties::Over::CHARGINGSTATION,
3143
GNETagProperties::Conflicts::NO_CONFLICTS,
3144
GUIIcon::STOPELEMENT, GUIGlObjectType::GLO_STOP, SUMO_TAG_STOP, TL("StopChargingStation"),
3145
{SUMO_TAG_ROUTE, SUMO_TAG_TRIP, SUMO_TAG_FLOW}, FXRGBA(255, 213, 213, 255));
3146
// set values of attributes
3147
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_CHARGING_STATION,
3148
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
3149
GNEAttributeProperties::Edit::EDITMODE,
3150
TL("ChargingStation associated with this stop"));
3151
3152
// fill common stop attributes
3153
fillCommonStopAttributes(myTagProperties[currentTag], false);
3154
}
3155
currentTag = GNE_TAG_STOP_PARKINGAREA;
3156
{
3157
// set values of tag
3158
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_STOPS),
3159
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::STOP_VEHICLE,
3160
GNETagProperties::Property::XMLCHILD,
3161
GNETagProperties::Over::PARKINGAREA,
3162
GNETagProperties::Conflicts::NO_CONFLICTS,
3163
GUIIcon::STOPELEMENT, GUIGlObjectType::GLO_STOP, SUMO_TAG_STOP, TL("StopParkingArea"),
3164
{SUMO_TAG_ROUTE, SUMO_TAG_TRIP, SUMO_TAG_FLOW}, FXRGBA(255, 213, 213, 255));
3165
// set values of attributes
3166
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_PARKING_AREA,
3167
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
3168
GNEAttributeProperties::Edit::EDITMODE,
3169
TL("ParkingArea associated with this stop"));
3170
3171
// fill common stop attributes (no parking)
3172
fillCommonStopAttributes(myTagProperties[currentTag], false);
3173
}
3174
}
3175
3176
3177
void
3178
GNETagPropertiesDatabase::fillWaypointElements() {
3179
// fill waypoints ACs
3180
SumoXMLTag currentTag = GNE_TAG_WAYPOINT_LANE;
3181
{
3182
// set values of tag
3183
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_STOPS),
3184
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::STOP_VEHICLE | GNETagProperties::Type::WAYPOINT_VEHICLE,
3185
GNETagProperties::Property::XMLCHILD,
3186
GNETagProperties::Over::LANE,
3187
GNETagProperties::Conflicts::POS_LANE_START | GNETagProperties::Conflicts::POS_LANE_END,
3188
GUIIcon::WAYPOINT, GUIGlObjectType::GLO_STOP, SUMO_TAG_STOP, TL("WaypointLane"),
3189
{SUMO_TAG_ROUTE, SUMO_TAG_TRIP, SUMO_TAG_FLOW}, FXRGBA(240, 255, 205, 255));
3190
// set values of attributes
3191
fillLaneAttribute(myTagProperties[currentTag], false);
3192
3193
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_STARTPOS,
3194
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
3195
GNEAttributeProperties::Edit::EDITMODE,
3196
TL("The begin position on the lane (the lower position on the lane) in meters"));
3197
3198
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_ENDPOS,
3199
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
3200
GNEAttributeProperties::Edit::EDITMODE,
3201
TL("The end position on the lane (the higher position on the lane) in meters, must be larger than startPos by more than 0.1m"));
3202
3203
fillFriendlyPosAttribute(myTagProperties[currentTag]);
3204
3205
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_POSITION_LAT,
3206
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
3207
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
3208
TL("The lateral offset on the named lane at which the vehicle must waypoint"));
3209
3210
// fill common waypoint (stop) attributes
3211
fillCommonStopAttributes(myTagProperties[currentTag], true);
3212
/*
3213
// netedit attributes
3214
new GNEAttributeProperties(myTagProperties[currentTag], GNE_ATTR_SIZE,
3215
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Edit::NETEDITEDITOR,
3216
TLF("Length of %", myTagProperties[currentTag]->getTagStr()));
3217
3218
new GNEAttributeProperties(myTagProperties[currentTag], GNE_ATTR_FORCESIZE,
3219
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Edit::NETEDITEDITOR,
3220
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
3221
TL("Force size during creation"),
3222
GNEAttributeCarrier::FALSE_STR);
3223
3224
new GNEAttributeProperties(myTagProperties[currentTag], GNE_ATTR_REFERENCE,
3225
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Edit::NETEDITEDITOR,
3226
TLF("Reference position used for creating %", myTagProperties[currentTag]->getTagStr()));
3227
attrProperty->setDiscreteValues(SUMOXMLDefinitions::ReferencePositions.getStrings());
3228
*/
3229
}
3230
currentTag = GNE_TAG_WAYPOINT_BUSSTOP;
3231
{
3232
// set values of tag
3233
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_STOPS),
3234
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::STOP_VEHICLE | GNETagProperties::Type::WAYPOINT_VEHICLE,
3235
GNETagProperties::Property::XMLCHILD,
3236
GNETagProperties::Over::BUSSTOP,
3237
GNETagProperties::Conflicts::NO_CONFLICTS,
3238
GUIIcon::WAYPOINT, GUIGlObjectType::GLO_STOP, SUMO_TAG_STOP, TL("WaypointBusStop"),
3239
{SUMO_TAG_ROUTE, SUMO_TAG_TRIP, SUMO_TAG_FLOW}, FXRGBA(240, 255, 205, 255));
3240
// set values of attributes
3241
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_BUS_STOP,
3242
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
3243
GNEAttributeProperties::Edit::EDITMODE,
3244
TL("BusWaypoint associated with this waypoint"));
3245
3246
// fill common waypoint (stop) attributes
3247
fillCommonStopAttributes(myTagProperties[currentTag], true);
3248
}
3249
currentTag = GNE_TAG_WAYPOINT_TRAINSTOP;
3250
{
3251
// set values of tag
3252
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_STOPS),
3253
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::STOP_VEHICLE | GNETagProperties::Type::WAYPOINT_VEHICLE,
3254
GNETagProperties::Property::XMLCHILD,
3255
GNETagProperties::Over::TRAINSTOP,
3256
GNETagProperties::Conflicts::NO_CONFLICTS,
3257
GUIIcon::WAYPOINT, GUIGlObjectType::GLO_STOP, SUMO_TAG_STOP, TL("WaypointTrainStop"),
3258
{SUMO_TAG_ROUTE, SUMO_TAG_TRIP, SUMO_TAG_FLOW}, FXRGBA(240, 255, 205, 255));
3259
// set values of attributes
3260
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TRAIN_STOP,
3261
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
3262
GNEAttributeProperties::Edit::EDITMODE,
3263
TL("TrainWaypoint associated with this waypoint"));
3264
3265
// fill common waypoint (stop) attributes
3266
fillCommonStopAttributes(myTagProperties[currentTag], true);
3267
}
3268
currentTag = GNE_TAG_WAYPOINT_CONTAINERSTOP;
3269
{
3270
// set values of tag
3271
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_STOPS),
3272
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::STOP_VEHICLE | GNETagProperties::Type::WAYPOINT_VEHICLE,
3273
GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOPARAMETERS,
3274
GNETagProperties::Over::CONTAINERSTOP,
3275
GNETagProperties::Conflicts::NO_CONFLICTS,
3276
GUIIcon::WAYPOINT, GUIGlObjectType::GLO_STOP, SUMO_TAG_STOP, TL("WaypointContainerStop"),
3277
{SUMO_TAG_ROUTE, SUMO_TAG_TRIP, SUMO_TAG_FLOW}, FXRGBA(240, 255, 205, 255));
3278
// set values of attributes
3279
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_CONTAINER_STOP,
3280
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
3281
GNEAttributeProperties::Edit::EDITMODE,
3282
TL("ContainerWaypoint associated with this waypoint"));
3283
3284
// fill common waypoint (stop) attributes
3285
fillCommonStopAttributes(myTagProperties[currentTag], true);
3286
}
3287
currentTag = GNE_TAG_WAYPOINT_CHARGINGSTATION;
3288
{
3289
// set values of tag
3290
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_STOPS),
3291
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::STOP_VEHICLE | GNETagProperties::Type::WAYPOINT_VEHICLE,
3292
GNETagProperties::Property::XMLCHILD,
3293
GNETagProperties::Over::CHARGINGSTATION,
3294
GNETagProperties::Conflicts::NO_CONFLICTS,
3295
GUIIcon::WAYPOINT, GUIGlObjectType::GLO_STOP, SUMO_TAG_STOP, TL("WaypointChargingStation"),
3296
{SUMO_TAG_ROUTE, SUMO_TAG_TRIP, SUMO_TAG_FLOW}, FXRGBA(240, 255, 205, 255));
3297
// set values of attributes
3298
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_CHARGING_STATION,
3299
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
3300
GNEAttributeProperties::Edit::EDITMODE,
3301
TL("ChargingStation associated with this waypoint"));
3302
3303
// fill common waypoint (stop) attributes
3304
fillCommonStopAttributes(myTagProperties[currentTag], true);
3305
}
3306
currentTag = GNE_TAG_WAYPOINT_PARKINGAREA;
3307
{
3308
// set values of tag
3309
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_STOPS),
3310
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::STOP_VEHICLE | GNETagProperties::Type::WAYPOINT_VEHICLE,
3311
GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOPARAMETERS,
3312
GNETagProperties::Over::PARKINGAREA,
3313
GNETagProperties::Conflicts::NO_CONFLICTS,
3314
GUIIcon::WAYPOINT, GUIGlObjectType::GLO_STOP, SUMO_TAG_STOP, TL("WaypointParkingArea"),
3315
{SUMO_TAG_ROUTE, SUMO_TAG_TRIP, SUMO_TAG_FLOW}, FXRGBA(240, 255, 205, 255));
3316
// set values of attributes
3317
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_PARKING_AREA,
3318
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
3319
GNEAttributeProperties::Edit::EDITMODE,
3320
TL("ParkingArea associated with this waypoint"));
3321
3322
// fill common waypoint (stop) attributes
3323
fillCommonStopAttributes(myTagProperties[currentTag], true);
3324
}
3325
}
3326
3327
3328
void
3329
GNETagPropertiesDatabase::fillPersonElements() {
3330
// fill vehicle ACs
3331
SumoXMLTag currentTag = SUMO_TAG_PERSON;
3332
{
3333
// set values of tag
3334
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_SUPERMODE_DEMAND),
3335
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::PERSON,
3336
GNETagProperties::Property::NO_PROPERTY,
3337
GNETagProperties::Over::VIEW,
3338
GNETagProperties::Conflicts::NO_CONFLICTS,
3339
GUIIcon::PERSON, GUIGlObjectType::GLO_PERSON, currentTag, TL("Person"));
3340
3341
// add flow attributes
3342
fillCommonPersonAttributes(myTagProperties[currentTag]);
3343
3344
fillDepartAttribute(myTagProperties[currentTag]);
3345
3346
}
3347
currentTag = SUMO_TAG_PERSONFLOW;
3348
{
3349
// set values of tag
3350
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_SUPERMODE_DEMAND),
3351
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::PERSON | GNETagProperties::Type::FLOW,
3352
GNETagProperties::Property::NO_PROPERTY,
3353
GNETagProperties::Over::BUSSTOP,
3354
GNETagProperties::Conflicts::NO_CONFLICTS,
3355
GUIIcon::PERSONFLOW, GUIGlObjectType::GLO_PERSONFLOW, currentTag, TL("PersonFlow"));
3356
3357
// add flow attributes
3358
fillCommonPersonAttributes(myTagProperties[currentTag]);
3359
3360
// add flow attributes
3361
fillCommonFlowAttributes(myTagProperties[currentTag], SUMO_ATTR_PERSONSPERHOUR);
3362
}
3363
}
3364
3365
3366
void
3367
GNETagPropertiesDatabase::fillContainerElements() {
3368
// fill vehicle ACs
3369
SumoXMLTag currentTag = SUMO_TAG_CONTAINER;
3370
{
3371
// set values of tag
3372
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_SUPERMODE_DEMAND),
3373
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::CONTAINER,
3374
GNETagProperties::Property::NO_PROPERTY,
3375
GNETagProperties::Over::BUSSTOP,
3376
GNETagProperties::Conflicts::NO_CONFLICTS,
3377
GUIIcon::CONTAINER, GUIGlObjectType::GLO_CONTAINER, currentTag, TL("Container"));
3378
3379
// add flow attributes
3380
fillCommonContainerAttributes(myTagProperties[currentTag]);
3381
3382
fillDepartAttribute(myTagProperties[currentTag]);
3383
}
3384
currentTag = SUMO_TAG_CONTAINERFLOW;
3385
{
3386
// set values of tag
3387
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_SUPERMODE_DEMAND),
3388
GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::CONTAINER | GNETagProperties::Type::FLOW,
3389
GNETagProperties::Property::NO_PROPERTY,
3390
GNETagProperties::Over::BUSSTOP,
3391
GNETagProperties::Conflicts::NO_CONFLICTS,
3392
GUIIcon::CONTAINERFLOW, GUIGlObjectType::GLO_CONTAINERFLOW, currentTag, TL("ContainerFlow"));
3393
3394
// add common container attribute
3395
fillCommonContainerAttributes(myTagProperties[currentTag]);
3396
3397
// add flow attributes
3398
fillCommonFlowAttributes(myTagProperties[currentTag], SUMO_ATTR_CONTAINERSPERHOUR);
3399
}
3400
}
3401
3402
3403
void
3404
GNETagPropertiesDatabase::fillContainerTransportElements() {
3405
// declare common tag types and properties
3406
const auto tagType = GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::CONTAINERPLAN | GNETagProperties::Type::TRANSPORT;
3407
const auto tagProperty = GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOPARAMETERS;
3408
const auto tagPropertyTAZ = GNETagProperties::Property::RTREE | tagProperty;
3409
const auto conflicts = GNETagProperties::Conflicts::NO_CONFLICTS;
3410
const std::vector<SumoXMLTag> parents({SUMO_TAG_CONTAINER, SUMO_TAG_CONTAINERFLOW});
3411
const unsigned int color = FXRGBA(240, 255, 205, 255);
3412
const GUIIcon icon = GUIIcon::TRANSPORT_EDGE;
3413
const GUIGlObjectType GLType = GUIGlObjectType::GLO_TRANSPORT;
3414
const SumoXMLTag xmlTag = SUMO_TAG_TRANSPORT;
3415
// from edge
3416
SumoXMLTag currentTag = GNE_TAG_TRANSPORT_EDGE_EDGE;
3417
{
3418
// set values of tag
3419
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3420
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_EDGE,
3421
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("edge"), TL("edge")), parents, color);
3422
// set values of attributes
3423
fillPlanParentAttributes(myTagProperties[currentTag]);
3424
fillTransportCommonAttributes(myTagProperties[currentTag]);
3425
}
3426
currentTag = GNE_TAG_TRANSPORT_EDGE_TAZ;
3427
{
3428
// set values of tag
3429
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagPropertyTAZ,
3430
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_TAZ,
3431
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("edge"), TL("taz")), parents, color);
3432
// set values of attributes
3433
fillPlanParentAttributes(myTagProperties[currentTag]);
3434
fillTransportCommonAttributes(myTagProperties[currentTag]);
3435
}
3436
currentTag = GNE_TAG_TRANSPORT_EDGE_JUNCTION;
3437
{
3438
// set values of tag
3439
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3440
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_JUNCTION,
3441
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("edge"), TL("junction")), parents, color);
3442
// set values of attributes
3443
fillPlanParentAttributes(myTagProperties[currentTag]);
3444
fillTransportCommonAttributes(myTagProperties[currentTag]);
3445
}
3446
currentTag = GNE_TAG_TRANSPORT_EDGE_BUSSTOP;
3447
{
3448
// set values of tag
3449
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3450
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_BUSSTOP,
3451
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("edge"), TL("busStop")), parents, color);
3452
// set values of attributes
3453
fillPlanParentAttributes(myTagProperties[currentTag]);
3454
fillTransportCommonAttributes(myTagProperties[currentTag]);
3455
}
3456
currentTag = GNE_TAG_TRANSPORT_EDGE_TRAINSTOP;
3457
{
3458
// set values of tag
3459
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3460
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_TRAINSTOP,
3461
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("edge"), TL("trainStop")), parents, color);
3462
// set values of attributes
3463
fillPlanParentAttributes(myTagProperties[currentTag]);
3464
fillTransportCommonAttributes(myTagProperties[currentTag]);
3465
}
3466
currentTag = GNE_TAG_TRANSPORT_EDGE_CONTAINERSTOP;
3467
{
3468
// set values of tag
3469
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3470
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_CONTAINERSTOP,
3471
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("edge"), TL("containerStop")), parents, color);
3472
// set values of attributes
3473
fillPlanParentAttributes(myTagProperties[currentTag]);
3474
fillTransportCommonAttributes(myTagProperties[currentTag]);
3475
}
3476
currentTag = GNE_TAG_TRANSPORT_EDGE_CHARGINGSTATION;
3477
{
3478
// set values of tag
3479
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3480
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_CHARGINGSTATION,
3481
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("edge"), TL("chargingStation")), parents, color);
3482
// set values of attributes
3483
fillPlanParentAttributes(myTagProperties[currentTag]);
3484
fillTransportCommonAttributes(myTagProperties[currentTag]);
3485
}
3486
currentTag = GNE_TAG_TRANSPORT_EDGE_PARKINGAREA;
3487
{
3488
// set values of tag
3489
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3490
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_PARKINGAREA,
3491
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("edge"), TL("parkingArea")), parents, color);
3492
// set values of attributes
3493
fillPlanParentAttributes(myTagProperties[currentTag]);
3494
fillTransportCommonAttributes(myTagProperties[currentTag]);
3495
}
3496
// from taz
3497
currentTag = GNE_TAG_TRANSPORT_TAZ_EDGE;
3498
{
3499
// set values of tag
3500
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagPropertyTAZ,
3501
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_EDGE,
3502
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("taz"), TL("taz")), parents, color);
3503
// set values of attributes
3504
fillPlanParentAttributes(myTagProperties[currentTag]);
3505
fillTransportCommonAttributes(myTagProperties[currentTag]);
3506
}
3507
currentTag = GNE_TAG_TRANSPORT_TAZ_TAZ;
3508
{
3509
// set values of tag
3510
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagPropertyTAZ,
3511
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_TAZ,
3512
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("taz"), TL("taz")), parents, color);
3513
// set values of attributes
3514
fillPlanParentAttributes(myTagProperties[currentTag]);
3515
fillTransportCommonAttributes(myTagProperties[currentTag]);
3516
}
3517
currentTag = GNE_TAG_TRANSPORT_TAZ_JUNCTION;
3518
{
3519
// set values of tag
3520
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagPropertyTAZ,
3521
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_JUNCTION,
3522
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("taz"), TL("junction")), parents, color);
3523
// set values of attributes
3524
fillPlanParentAttributes(myTagProperties[currentTag]);
3525
fillTransportCommonAttributes(myTagProperties[currentTag]);
3526
}
3527
currentTag = GNE_TAG_TRANSPORT_TAZ_BUSSTOP;
3528
{
3529
// set values of tag
3530
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagPropertyTAZ,
3531
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_BUSSTOP,
3532
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("taz"), TL("busStop")), parents, color);
3533
// set values of attributes
3534
fillPlanParentAttributes(myTagProperties[currentTag]);
3535
fillTransportCommonAttributes(myTagProperties[currentTag]);
3536
}
3537
currentTag = GNE_TAG_TRANSPORT_TAZ_TRAINSTOP;
3538
{
3539
// set values of tag
3540
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagPropertyTAZ,
3541
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_TRAINSTOP,
3542
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("taz"), TL("trainStop")), parents, color);
3543
// set values of attributes
3544
fillPlanParentAttributes(myTagProperties[currentTag]);
3545
fillTransportCommonAttributes(myTagProperties[currentTag]);
3546
}
3547
currentTag = GNE_TAG_TRANSPORT_TAZ_CONTAINERSTOP;
3548
{
3549
// set values of tag
3550
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagPropertyTAZ,
3551
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_CONTAINERSTOP,
3552
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("taz"), TL("containerStop")), parents, color);
3553
// set values of attributes
3554
fillPlanParentAttributes(myTagProperties[currentTag]);
3555
fillTransportCommonAttributes(myTagProperties[currentTag]);
3556
}
3557
currentTag = GNE_TAG_TRANSPORT_TAZ_CHARGINGSTATION;
3558
{
3559
// set values of tag
3560
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagPropertyTAZ,
3561
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_CHARGINGSTATION,
3562
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("taz"), TL("chargingStation")), parents, color);
3563
// set values of attributes
3564
fillPlanParentAttributes(myTagProperties[currentTag]);
3565
fillTransportCommonAttributes(myTagProperties[currentTag]);
3566
}
3567
currentTag = GNE_TAG_TRANSPORT_TAZ_PARKINGAREA;
3568
{
3569
// set values of tag
3570
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagPropertyTAZ,
3571
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_PARKINGAREA,
3572
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("taz"), TL("parkingArea")), parents, color);
3573
// set values of attributes
3574
fillPlanParentAttributes(myTagProperties[currentTag]);
3575
fillTransportCommonAttributes(myTagProperties[currentTag]);
3576
}
3577
// from junction
3578
currentTag = GNE_TAG_TRANSPORT_JUNCTION_EDGE;
3579
{
3580
// set values of tag
3581
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3582
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_EDGE,
3583
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("junction"), TL("edge")), parents, color);
3584
// set values of attributes
3585
fillPlanParentAttributes(myTagProperties[currentTag]);
3586
fillTransportCommonAttributes(myTagProperties[currentTag]);
3587
}
3588
currentTag = GNE_TAG_TRANSPORT_JUNCTION_TAZ;
3589
{
3590
// set values of tag
3591
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagPropertyTAZ,
3592
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_TAZ,
3593
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("junction"), TL("taz")), parents, color);
3594
// set values of attributes
3595
fillPlanParentAttributes(myTagProperties[currentTag]);
3596
fillTransportCommonAttributes(myTagProperties[currentTag]);
3597
}
3598
currentTag = GNE_TAG_TRANSPORT_JUNCTION_JUNCTION;
3599
{
3600
// set values of tag
3601
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3602
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_JUNCTION,
3603
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("junction"), TL("junction")), parents, color);
3604
// set values of attributes
3605
fillPlanParentAttributes(myTagProperties[currentTag]);
3606
fillTransportCommonAttributes(myTagProperties[currentTag]);
3607
}
3608
currentTag = GNE_TAG_TRANSPORT_JUNCTION_BUSSTOP;
3609
{
3610
// set values of tag
3611
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3612
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_BUSSTOP,
3613
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("junction"), TL("busStop")), parents, color);
3614
// set values of attributes
3615
fillPlanParentAttributes(myTagProperties[currentTag]);
3616
fillTransportCommonAttributes(myTagProperties[currentTag]);
3617
}
3618
currentTag = GNE_TAG_TRANSPORT_JUNCTION_TRAINSTOP;
3619
{
3620
// set values of tag
3621
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3622
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_TRAINSTOP,
3623
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("junction"), TL("trainStop")), parents, color);
3624
// set values of attributes
3625
fillPlanParentAttributes(myTagProperties[currentTag]);
3626
fillTransportCommonAttributes(myTagProperties[currentTag]);
3627
}
3628
currentTag = GNE_TAG_TRANSPORT_JUNCTION_CONTAINERSTOP;
3629
{
3630
// set values of tag
3631
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3632
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_CONTAINERSTOP,
3633
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("junction"), TL("containerStop")), parents, color);
3634
// set values of attributes
3635
fillPlanParentAttributes(myTagProperties[currentTag]);
3636
fillTransportCommonAttributes(myTagProperties[currentTag]);
3637
}
3638
currentTag = GNE_TAG_TRANSPORT_JUNCTION_CHARGINGSTATION;
3639
{
3640
// set values of tag
3641
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3642
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_CHARGINGSTATION,
3643
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("junction"), TL("chargingStation")), parents, color);
3644
// set values of attributes
3645
fillPlanParentAttributes(myTagProperties[currentTag]);
3646
fillTransportCommonAttributes(myTagProperties[currentTag]);
3647
}
3648
currentTag = GNE_TAG_TRANSPORT_JUNCTION_PARKINGAREA;
3649
{
3650
// set values of tag
3651
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3652
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_PARKINGAREA,
3653
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("junction"), TL("parkingArea")), parents, color);
3654
// set values of attributes
3655
fillPlanParentAttributes(myTagProperties[currentTag]);
3656
fillTransportCommonAttributes(myTagProperties[currentTag]);
3657
}
3658
// from busStop
3659
currentTag = GNE_TAG_TRANSPORT_BUSSTOP_EDGE;
3660
{
3661
// set values of tag
3662
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3663
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_EDGE,
3664
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("busStop"), TL("edge")), parents, color);
3665
// set values of attributes
3666
fillPlanParentAttributes(myTagProperties[currentTag]);
3667
fillTransportCommonAttributes(myTagProperties[currentTag]);
3668
}
3669
currentTag = GNE_TAG_TRANSPORT_BUSSTOP_TAZ;
3670
{
3671
// set values of tag
3672
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagPropertyTAZ,
3673
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_TAZ,
3674
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("busStop"), TL("taz")), parents, color);
3675
// set values of attributes
3676
fillPlanParentAttributes(myTagProperties[currentTag]);
3677
fillTransportCommonAttributes(myTagProperties[currentTag]);
3678
}
3679
currentTag = GNE_TAG_TRANSPORT_BUSSTOP_JUNCTION;
3680
{
3681
// set values of tag
3682
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3683
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_JUNCTION,
3684
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("busStop"), TL("junction")), parents, color);
3685
// set values of attributes
3686
fillPlanParentAttributes(myTagProperties[currentTag]);
3687
fillTransportCommonAttributes(myTagProperties[currentTag]);
3688
}
3689
currentTag = GNE_TAG_TRANSPORT_BUSSTOP_BUSSTOP;
3690
{
3691
// set values of tag
3692
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3693
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_BUSSTOP,
3694
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("busStop"), TL("busStop")), parents, color);
3695
// set values of attributes
3696
fillPlanParentAttributes(myTagProperties[currentTag]);
3697
fillTransportCommonAttributes(myTagProperties[currentTag]);
3698
}
3699
currentTag = GNE_TAG_TRANSPORT_BUSSTOP_TRAINSTOP;
3700
{
3701
// set values of tag
3702
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3703
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_TRAINSTOP,
3704
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("busStop"), TL("trainStop")), parents, color);
3705
// set values of attributes
3706
fillPlanParentAttributes(myTagProperties[currentTag]);
3707
fillTransportCommonAttributes(myTagProperties[currentTag]);
3708
}
3709
currentTag = GNE_TAG_TRANSPORT_BUSSTOP_CONTAINERSTOP;
3710
{
3711
// set values of tag
3712
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3713
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_CONTAINERSTOP,
3714
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("busStop"), TL("containerStop")), parents, color);
3715
// set values of attributes
3716
fillPlanParentAttributes(myTagProperties[currentTag]);
3717
fillTransportCommonAttributes(myTagProperties[currentTag]);
3718
}
3719
currentTag = GNE_TAG_TRANSPORT_BUSSTOP_CHARGINGSTATION;
3720
{
3721
// set values of tag
3722
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3723
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_CHARGINGSTATION,
3724
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("busStop"), TL("chargingStation")), parents, color);
3725
// set values of attributes
3726
fillPlanParentAttributes(myTagProperties[currentTag]);
3727
fillTransportCommonAttributes(myTagProperties[currentTag]);
3728
}
3729
currentTag = GNE_TAG_TRANSPORT_BUSSTOP_PARKINGAREA;
3730
{
3731
// set values of tag
3732
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3733
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_PARKINGAREA,
3734
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("busStop"), TL("parkingArea")), parents, color);
3735
// set values of attributes
3736
fillPlanParentAttributes(myTagProperties[currentTag]);
3737
fillTransportCommonAttributes(myTagProperties[currentTag]);
3738
}
3739
// from trainStop
3740
currentTag = GNE_TAG_TRANSPORT_TRAINSTOP_EDGE;
3741
{
3742
// set values of tag
3743
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3744
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_EDGE,
3745
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("trainStop"), TL("edge")), parents, color);
3746
// set values of attributes
3747
fillPlanParentAttributes(myTagProperties[currentTag]);
3748
fillTransportCommonAttributes(myTagProperties[currentTag]);
3749
}
3750
currentTag = GNE_TAG_TRANSPORT_TRAINSTOP_TAZ;
3751
{
3752
// set values of tag
3753
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagPropertyTAZ,
3754
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_TAZ,
3755
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("trainStop"), TL("taz")), parents, color);
3756
// set values of attributes
3757
fillPlanParentAttributes(myTagProperties[currentTag]);
3758
fillTransportCommonAttributes(myTagProperties[currentTag]);
3759
}
3760
currentTag = GNE_TAG_TRANSPORT_TRAINSTOP_JUNCTION;
3761
{
3762
// set values of tag
3763
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3764
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_JUNCTION,
3765
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("trainStop"), TL("junction")), parents, color);
3766
// set values of attributes
3767
fillPlanParentAttributes(myTagProperties[currentTag]);
3768
fillTransportCommonAttributes(myTagProperties[currentTag]);
3769
}
3770
currentTag = GNE_TAG_TRANSPORT_TRAINSTOP_BUSSTOP;
3771
{
3772
// set values of tag
3773
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3774
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_BUSSTOP,
3775
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("trainStop"), TL("busStop")), parents, color);
3776
// set values of attributes
3777
fillPlanParentAttributes(myTagProperties[currentTag]);
3778
fillTransportCommonAttributes(myTagProperties[currentTag]);
3779
}
3780
currentTag = GNE_TAG_TRANSPORT_TRAINSTOP_TRAINSTOP;
3781
{
3782
// set values of tag
3783
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3784
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_TRAINSTOP,
3785
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("trainStop"), TL("trainStop")), parents, color);
3786
// set values of attributes
3787
fillPlanParentAttributes(myTagProperties[currentTag]);
3788
fillTransportCommonAttributes(myTagProperties[currentTag]);
3789
}
3790
currentTag = GNE_TAG_TRANSPORT_TRAINSTOP_CONTAINERSTOP;
3791
{
3792
// set values of tag
3793
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3794
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_CONTAINERSTOP,
3795
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("trainStop"), TL("containerStop")), parents, color);
3796
// set values of attributes
3797
fillPlanParentAttributes(myTagProperties[currentTag]);
3798
fillTransportCommonAttributes(myTagProperties[currentTag]);
3799
}
3800
currentTag = GNE_TAG_TRANSPORT_TRAINSTOP_CHARGINGSTATION;
3801
{
3802
// set values of tag
3803
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3804
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_CHARGINGSTATION,
3805
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("trainStop"), TL("chargingStation")), parents, color);
3806
// set values of attributes
3807
fillPlanParentAttributes(myTagProperties[currentTag]);
3808
fillTransportCommonAttributes(myTagProperties[currentTag]);
3809
}
3810
currentTag = GNE_TAG_TRANSPORT_TRAINSTOP_PARKINGAREA;
3811
{
3812
// set values of tag
3813
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3814
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_PARKINGAREA,
3815
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("trainStop"), TL("parkingArea")), parents, color);
3816
// set values of attributes
3817
fillPlanParentAttributes(myTagProperties[currentTag]);
3818
fillTransportCommonAttributes(myTagProperties[currentTag]);
3819
}
3820
// from containerStop
3821
currentTag = GNE_TAG_TRANSPORT_CONTAINERSTOP_EDGE;
3822
{
3823
// set values of tag
3824
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3825
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_EDGE,
3826
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("containerStop"), TL("edge")), parents, color);
3827
// set values of attributes
3828
fillPlanParentAttributes(myTagProperties[currentTag]);
3829
fillTransportCommonAttributes(myTagProperties[currentTag]);
3830
}
3831
currentTag = GNE_TAG_TRANSPORT_CONTAINERSTOP_TAZ;
3832
{
3833
// set values of tag
3834
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagPropertyTAZ,
3835
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_TAZ,
3836
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("containerStop"), TL("taz")), parents, color);
3837
// set values of attributes
3838
fillPlanParentAttributes(myTagProperties[currentTag]);
3839
fillTransportCommonAttributes(myTagProperties[currentTag]);
3840
}
3841
currentTag = GNE_TAG_TRANSPORT_CONTAINERSTOP_JUNCTION;
3842
{
3843
// set values of tag
3844
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3845
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_JUNCTION,
3846
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("containerStop"), TL("junction")), parents, color);
3847
// set values of attributes
3848
fillPlanParentAttributes(myTagProperties[currentTag]);
3849
fillTransportCommonAttributes(myTagProperties[currentTag]);
3850
}
3851
currentTag = GNE_TAG_TRANSPORT_CONTAINERSTOP_BUSSTOP;
3852
{
3853
// set values of tag
3854
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3855
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_BUSSTOP,
3856
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("containerStop"), TL("busStop")), parents, color);
3857
// set values of attributes
3858
fillPlanParentAttributes(myTagProperties[currentTag]);
3859
fillTransportCommonAttributes(myTagProperties[currentTag]);
3860
}
3861
currentTag = GNE_TAG_TRANSPORT_CONTAINERSTOP_TRAINSTOP;
3862
{
3863
// set values of tag
3864
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3865
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_TRAINSTOP,
3866
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("containerStop"), TL("trainStop")), parents, color);
3867
// set values of attributes
3868
fillPlanParentAttributes(myTagProperties[currentTag]);
3869
fillTransportCommonAttributes(myTagProperties[currentTag]);
3870
}
3871
currentTag = GNE_TAG_TRANSPORT_CONTAINERSTOP_CONTAINERSTOP;
3872
{
3873
// set values of tag
3874
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3875
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_CONTAINERSTOP,
3876
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("containerStop"), TL("containerStop")), parents, color);
3877
// set values of attributes
3878
fillPlanParentAttributes(myTagProperties[currentTag]);
3879
fillTransportCommonAttributes(myTagProperties[currentTag]);
3880
}
3881
currentTag = GNE_TAG_TRANSPORT_CONTAINERSTOP_CHARGINGSTATION;
3882
{
3883
// set values of tag
3884
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3885
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_CHARGINGSTATION,
3886
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("containerStop"), TL("chargingStation")), parents, color);
3887
// set values of attributes
3888
fillPlanParentAttributes(myTagProperties[currentTag]);
3889
fillTransportCommonAttributes(myTagProperties[currentTag]);
3890
}
3891
currentTag = GNE_TAG_TRANSPORT_CONTAINERSTOP_PARKINGAREA;
3892
{
3893
// set values of tag
3894
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3895
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_PARKINGAREA,
3896
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("containerStop"), TL("parkingArea")), parents, color);
3897
3898
// set values of attributes
3899
fillPlanParentAttributes(myTagProperties[currentTag]);
3900
fillTransportCommonAttributes(myTagProperties[currentTag]);
3901
}
3902
// from chargingStation
3903
currentTag = GNE_TAG_TRANSPORT_CHARGINGSTATION_EDGE;
3904
{
3905
// set values of tag
3906
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3907
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_EDGE,
3908
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("chargingStation"), TL("edge")), parents, color);
3909
// set values of attributes
3910
fillPlanParentAttributes(myTagProperties[currentTag]);
3911
fillTransportCommonAttributes(myTagProperties[currentTag]);
3912
}
3913
currentTag = GNE_TAG_TRANSPORT_CHARGINGSTATION_TAZ;
3914
{
3915
// set values of tag
3916
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagPropertyTAZ,
3917
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_TAZ,
3918
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("chargingStation"), TL("taz")), parents, color);
3919
// set values of attributes
3920
fillPlanParentAttributes(myTagProperties[currentTag]);
3921
fillTransportCommonAttributes(myTagProperties[currentTag]);
3922
}
3923
currentTag = GNE_TAG_TRANSPORT_CHARGINGSTATION_JUNCTION;
3924
{
3925
// set values of tag
3926
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3927
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_JUNCTION,
3928
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("chargingStation"), TL("junction")), parents, color);
3929
// set values of attributes
3930
fillPlanParentAttributes(myTagProperties[currentTag]);
3931
fillTransportCommonAttributes(myTagProperties[currentTag]);
3932
}
3933
currentTag = GNE_TAG_TRANSPORT_CHARGINGSTATION_BUSSTOP;
3934
{
3935
// set values of tag
3936
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3937
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_BUSSTOP,
3938
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("chargingStation"), TL("busStop")), parents, color);
3939
// set values of attributes
3940
fillPlanParentAttributes(myTagProperties[currentTag]);
3941
fillTransportCommonAttributes(myTagProperties[currentTag]);
3942
}
3943
currentTag = GNE_TAG_TRANSPORT_CHARGINGSTATION_TRAINSTOP;
3944
{
3945
// set values of tag
3946
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3947
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_TRAINSTOP,
3948
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("chargingStation"), TL("trainStop")), parents, color);
3949
// set values of attributes
3950
fillPlanParentAttributes(myTagProperties[currentTag]);
3951
fillTransportCommonAttributes(myTagProperties[currentTag]);
3952
}
3953
currentTag = GNE_TAG_TRANSPORT_CHARGINGSTATION_CONTAINERSTOP;
3954
{
3955
// set values of tag
3956
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3957
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_CONTAINERSTOP,
3958
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("chargingStation"), TL("containerStop")), parents, color);
3959
// set values of attributes
3960
fillPlanParentAttributes(myTagProperties[currentTag]);
3961
fillTransportCommonAttributes(myTagProperties[currentTag]);
3962
}
3963
currentTag = GNE_TAG_TRANSPORT_CHARGINGSTATION_CHARGINGSTATION;
3964
{
3965
// set values of tag
3966
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3967
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_CHARGINGSTATION,
3968
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("chargingStation"), TL("chargingStation")), parents, color);
3969
// set values of attributes
3970
fillPlanParentAttributes(myTagProperties[currentTag]);
3971
fillTransportCommonAttributes(myTagProperties[currentTag]);
3972
}
3973
currentTag = GNE_TAG_TRANSPORT_CHARGINGSTATION_PARKINGAREA;
3974
{
3975
// set values of tag
3976
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3977
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_PARKINGAREA,
3978
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("chargingStation"), TL("parkingArea")), parents, color);
3979
// set values of attributes
3980
fillPlanParentAttributes(myTagProperties[currentTag]);
3981
fillTransportCommonAttributes(myTagProperties[currentTag]);
3982
}
3983
// from parkingArea
3984
currentTag = GNE_TAG_TRANSPORT_PARKINGAREA_EDGE;
3985
{
3986
// set values of tag
3987
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
3988
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_EDGE,
3989
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("parkingArea"), TL("edge")), parents, color);
3990
// set values of attributes
3991
fillPlanParentAttributes(myTagProperties[currentTag]);
3992
fillTransportCommonAttributes(myTagProperties[currentTag]);
3993
}
3994
currentTag = GNE_TAG_TRANSPORT_PARKINGAREA_TAZ;
3995
{
3996
// set values of tag
3997
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagPropertyTAZ,
3998
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_TAZ,
3999
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("parkingArea"), TL("taz")), parents, color);
4000
// set values of attributes
4001
fillPlanParentAttributes(myTagProperties[currentTag]);
4002
fillTransportCommonAttributes(myTagProperties[currentTag]);
4003
}
4004
currentTag = GNE_TAG_TRANSPORT_PARKINGAREA_JUNCTION;
4005
{
4006
// set values of tag
4007
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
4008
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_JUNCTION,
4009
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("parkingArea"), TL("junction")), parents, color);
4010
// set values of attributes
4011
fillPlanParentAttributes(myTagProperties[currentTag]);
4012
fillTransportCommonAttributes(myTagProperties[currentTag]);
4013
}
4014
currentTag = GNE_TAG_TRANSPORT_PARKINGAREA_BUSSTOP;
4015
{
4016
// set values of tag
4017
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
4018
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_BUSSTOP,
4019
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("parkingArea"), TL("busStop")), parents, color);
4020
// set values of attributes
4021
fillPlanParentAttributes(myTagProperties[currentTag]);
4022
fillTransportCommonAttributes(myTagProperties[currentTag]);
4023
}
4024
currentTag = GNE_TAG_TRANSPORT_PARKINGAREA_TRAINSTOP;
4025
{
4026
// set values of tag
4027
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
4028
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_TRAINSTOP,
4029
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("parkingArea"), TL("trainStop")), parents, color);
4030
// set values of attributes
4031
fillPlanParentAttributes(myTagProperties[currentTag]);
4032
fillTransportCommonAttributes(myTagProperties[currentTag]);
4033
}
4034
currentTag = GNE_TAG_TRANSPORT_PARKINGAREA_CONTAINERSTOP;
4035
{
4036
// set values of tag
4037
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
4038
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_CONTAINERSTOP,
4039
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("parkingArea"), TL("containerStop")), parents, color);
4040
// set values of attributes
4041
fillPlanParentAttributes(myTagProperties[currentTag]);
4042
fillTransportCommonAttributes(myTagProperties[currentTag]);
4043
}
4044
currentTag = GNE_TAG_TRANSPORT_PARKINGAREA_CHARGINGSTATION;
4045
{
4046
// set values of tag
4047
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
4048
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_CHARGINGSTATION,
4049
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("parkingArea"), TL("chargingStation")), parents, color);
4050
// set values of attributes
4051
fillPlanParentAttributes(myTagProperties[currentTag]);
4052
fillTransportCommonAttributes(myTagProperties[currentTag]);
4053
}
4054
currentTag = GNE_TAG_TRANSPORT_PARKINGAREA_PARKINGAREA;
4055
{
4056
// set values of tag
4057
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSPORTS), tagType, tagProperty,
4058
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_PARKINGAREA,
4059
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Transport"), TL("parkingArea"), TL("parkingArea")), parents, color);
4060
// set values of attributes
4061
fillPlanParentAttributes(myTagProperties[currentTag]);
4062
fillTransportCommonAttributes(myTagProperties[currentTag]);
4063
}
4064
}
4065
4066
4067
void
4068
GNETagPropertiesDatabase::fillContainerTranshipElements() {
4069
// declare common tag types and properties
4070
const auto tagType = GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::CONTAINERPLAN | GNETagProperties::Type::TRANSHIP;
4071
const auto tagProperty = GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOPARAMETERS;
4072
const auto tagPropertyTAZ = GNETagProperties::Property::RTREE | tagProperty;
4073
const auto conflicts = GNETagProperties::Conflicts::NO_CONFLICTS;
4074
const std::vector<SumoXMLTag> parents({SUMO_TAG_CONTAINER, SUMO_TAG_CONTAINERFLOW});
4075
const unsigned int color = FXRGBA(210, 233, 255, 255);
4076
const GUIIcon icon = GUIIcon::TRANSHIP_EDGES;
4077
const GUIGlObjectType GLType = GUIGlObjectType::GLO_TRANSHIP;
4078
const SumoXMLTag xmlTag = SUMO_TAG_TRANSHIP;
4079
// fill tags
4080
SumoXMLTag currentTag = GNE_TAG_TRANSHIP_EDGES;
4081
{
4082
// set values of tag
4083
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4084
GNETagProperties::Over::CONSECUTIVE_EDGES,
4085
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %", TL("Tranship"), TL("edges")), parents, color);
4086
// set values of attributes
4087
fillPlanParentAttributes(myTagProperties[currentTag]);
4088
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4089
}
4090
// from edge
4091
currentTag = GNE_TAG_TRANSHIP_EDGE_EDGE;
4092
{
4093
// set values of tag
4094
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4095
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_EDGE,
4096
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("edge"), TL("edge")), parents, color);
4097
// set values of attributes
4098
fillPlanParentAttributes(myTagProperties[currentTag]);
4099
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4100
}
4101
currentTag = GNE_TAG_TRANSHIP_EDGE_TAZ;
4102
{
4103
// set values of tag
4104
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagPropertyTAZ,
4105
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_TAZ,
4106
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("edge"), TL("taz")), parents, color);
4107
// set values of attributes
4108
fillPlanParentAttributes(myTagProperties[currentTag]);
4109
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4110
}
4111
currentTag = GNE_TAG_TRANSHIP_EDGE_JUNCTION;
4112
{
4113
// set values of tag
4114
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4115
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_JUNCTION,
4116
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("edge"), TL("junction")), parents, color);
4117
// set values of attributes
4118
fillPlanParentAttributes(myTagProperties[currentTag]);
4119
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4120
}
4121
currentTag = GNE_TAG_TRANSHIP_EDGE_BUSSTOP;
4122
{
4123
// set values of tag
4124
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4125
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_BUSSTOP,
4126
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("edge"), TL("busStop")), parents, color);
4127
// set values of attributes
4128
fillPlanParentAttributes(myTagProperties[currentTag]);
4129
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4130
}
4131
currentTag = GNE_TAG_TRANSHIP_EDGE_TRAINSTOP;
4132
{
4133
// set values of tag
4134
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4135
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_TRAINSTOP,
4136
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("edge"), TL("trainStop")), parents, color);
4137
// set values of attributes
4138
fillPlanParentAttributes(myTagProperties[currentTag]);
4139
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4140
}
4141
currentTag = GNE_TAG_TRANSHIP_EDGE_CONTAINERSTOP;
4142
{
4143
// set values of tag
4144
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4145
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_CONTAINERSTOP,
4146
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("edge"), TL("containerStop")), parents, color);
4147
// set values of attributes
4148
fillPlanParentAttributes(myTagProperties[currentTag]);
4149
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4150
}
4151
currentTag = GNE_TAG_TRANSHIP_EDGE_CHARGINGSTATION;
4152
{
4153
// set values of tag
4154
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4155
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_CHARGINGSTATION,
4156
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("edge"), TL("chargingStation")), parents, color);
4157
// set values of attributes
4158
fillPlanParentAttributes(myTagProperties[currentTag]);
4159
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4160
}
4161
currentTag = GNE_TAG_TRANSHIP_EDGE_PARKINGAREA;
4162
{
4163
// set values of tag
4164
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4165
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_PARKINGAREA,
4166
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("edge"), TL("parkingArea")), parents, color);
4167
// set values of attributes
4168
fillPlanParentAttributes(myTagProperties[currentTag]);
4169
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4170
}
4171
// from taz
4172
currentTag = GNE_TAG_TRANSHIP_TAZ_EDGE;
4173
{
4174
// set values of tag
4175
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagPropertyTAZ,
4176
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_EDGE,
4177
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("taz"), TL("taz")), parents, color);
4178
// set values of attributes
4179
fillPlanParentAttributes(myTagProperties[currentTag]);
4180
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4181
}
4182
currentTag = GNE_TAG_TRANSHIP_TAZ_TAZ;
4183
{
4184
// set values of tag
4185
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagPropertyTAZ,
4186
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_TAZ,
4187
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("taz"), TL("taz")), parents, color);
4188
// set values of attributes
4189
fillPlanParentAttributes(myTagProperties[currentTag]);
4190
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4191
}
4192
currentTag = GNE_TAG_TRANSHIP_TAZ_JUNCTION;
4193
{
4194
// set values of tag
4195
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagPropertyTAZ,
4196
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_JUNCTION,
4197
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("taz"), TL("junction")), parents, color);
4198
// set values of attributes
4199
fillPlanParentAttributes(myTagProperties[currentTag]);
4200
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4201
}
4202
currentTag = GNE_TAG_TRANSHIP_TAZ_BUSSTOP;
4203
{
4204
// set values of tag
4205
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagPropertyTAZ,
4206
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_BUSSTOP,
4207
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("taz"), TL("busStop")), parents, color);
4208
// set values of attributes
4209
fillPlanParentAttributes(myTagProperties[currentTag]);
4210
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4211
}
4212
currentTag = GNE_TAG_TRANSHIP_TAZ_TRAINSTOP;
4213
{
4214
// set values of tag
4215
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagPropertyTAZ,
4216
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_TRAINSTOP,
4217
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("taz"), TL("trainStop")), parents, color);
4218
// set values of attributes
4219
fillPlanParentAttributes(myTagProperties[currentTag]);
4220
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4221
}
4222
currentTag = GNE_TAG_TRANSHIP_TAZ_CONTAINERSTOP;
4223
{
4224
// set values of tag
4225
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagPropertyTAZ,
4226
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_CONTAINERSTOP,
4227
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("taz"), TL("containerStop")), parents, color);
4228
// set values of attributes
4229
fillPlanParentAttributes(myTagProperties[currentTag]);
4230
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4231
}
4232
currentTag = GNE_TAG_TRANSHIP_TAZ_CHARGINGSTATION;
4233
{
4234
// set values of tag
4235
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagPropertyTAZ,
4236
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_CHARGINGSTATION,
4237
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("taz"), TL("chargingStation")), parents, color);
4238
// set values of attributes
4239
fillPlanParentAttributes(myTagProperties[currentTag]);
4240
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4241
}
4242
currentTag = GNE_TAG_TRANSHIP_TAZ_PARKINGAREA;
4243
{
4244
// set values of tag
4245
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagPropertyTAZ,
4246
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_PARKINGAREA,
4247
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("taz"), TL("parkingArea")), parents, color);
4248
// set values of attributes
4249
fillPlanParentAttributes(myTagProperties[currentTag]);
4250
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4251
}
4252
// from junction
4253
currentTag = GNE_TAG_TRANSHIP_JUNCTION_EDGE;
4254
{
4255
// set values of tag
4256
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4257
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_EDGE,
4258
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("junction"), TL("edge")), parents, color);
4259
// set values of attributes
4260
fillPlanParentAttributes(myTagProperties[currentTag]);
4261
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4262
}
4263
currentTag = GNE_TAG_TRANSHIP_JUNCTION_TAZ;
4264
{
4265
// set values of tag
4266
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagPropertyTAZ,
4267
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_TAZ,
4268
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("junction"), TL("taz")), parents, color);
4269
// set values of attributes
4270
fillPlanParentAttributes(myTagProperties[currentTag]);
4271
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4272
}
4273
currentTag = GNE_TAG_TRANSHIP_JUNCTION_JUNCTION;
4274
{
4275
// set values of tag
4276
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4277
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_JUNCTION,
4278
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("junction"), TL("junction")), parents, color);
4279
// set values of attributes
4280
fillPlanParentAttributes(myTagProperties[currentTag]);
4281
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4282
}
4283
currentTag = GNE_TAG_TRANSHIP_JUNCTION_BUSSTOP;
4284
{
4285
// set values of tag
4286
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4287
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_BUSSTOP,
4288
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("junction"), TL("busStop")), parents, color);
4289
// set values of attributes
4290
fillPlanParentAttributes(myTagProperties[currentTag]);
4291
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4292
}
4293
currentTag = GNE_TAG_TRANSHIP_JUNCTION_TRAINSTOP;
4294
{
4295
// set values of tag
4296
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4297
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_TRAINSTOP,
4298
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("junction"), TL("trainStop")), parents, color);
4299
// set values of attributes
4300
fillPlanParentAttributes(myTagProperties[currentTag]);
4301
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4302
}
4303
currentTag = GNE_TAG_TRANSHIP_JUNCTION_CONTAINERSTOP;
4304
{
4305
// set values of tag
4306
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4307
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_CONTAINERSTOP,
4308
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("junction"), TL("containerStop")), parents, color);
4309
// set values of attributes
4310
fillPlanParentAttributes(myTagProperties[currentTag]);
4311
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4312
}
4313
currentTag = GNE_TAG_TRANSHIP_JUNCTION_CHARGINGSTATION;
4314
{
4315
// set values of tag
4316
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4317
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_CHARGINGSTATION,
4318
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("junction"), TL("chargingStation")), parents, color);
4319
// set values of attributes
4320
fillPlanParentAttributes(myTagProperties[currentTag]);
4321
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4322
}
4323
currentTag = GNE_TAG_TRANSHIP_JUNCTION_PARKINGAREA;
4324
{
4325
// set values of tag
4326
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4327
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_PARKINGAREA,
4328
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("junction"), TL("parkingArea")), parents, color);
4329
// set values of attributes
4330
fillPlanParentAttributes(myTagProperties[currentTag]);
4331
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4332
}
4333
// from busStop
4334
currentTag = GNE_TAG_TRANSHIP_BUSSTOP_EDGE;
4335
{
4336
// set values of tag
4337
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4338
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_EDGE,
4339
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("busStop"), TL("edge")), parents, color);
4340
// set values of attributes
4341
fillPlanParentAttributes(myTagProperties[currentTag]);
4342
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4343
}
4344
currentTag = GNE_TAG_TRANSHIP_BUSSTOP_TAZ;
4345
{
4346
// set values of tag
4347
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagPropertyTAZ,
4348
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_TAZ,
4349
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("busStop"), TL("taz")), parents, color);
4350
// set values of attributes
4351
fillPlanParentAttributes(myTagProperties[currentTag]);
4352
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4353
}
4354
currentTag = GNE_TAG_TRANSHIP_BUSSTOP_JUNCTION;
4355
{
4356
// set values of tag
4357
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4358
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_JUNCTION,
4359
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("busStop"), TL("junction")), parents, color);
4360
// set values of attributes
4361
fillPlanParentAttributes(myTagProperties[currentTag]);
4362
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4363
}
4364
currentTag = GNE_TAG_TRANSHIP_BUSSTOP_BUSSTOP;
4365
{
4366
// set values of tag
4367
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4368
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_BUSSTOP,
4369
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("busStop"), TL("busStop")), parents, color);
4370
// set values of attributes
4371
fillPlanParentAttributes(myTagProperties[currentTag]);
4372
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4373
}
4374
currentTag = GNE_TAG_TRANSHIP_BUSSTOP_TRAINSTOP;
4375
{
4376
// set values of tag
4377
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4378
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_TRAINSTOP,
4379
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("busStop"), TL("trainStop")), parents, color);
4380
// set values of attributes
4381
fillPlanParentAttributes(myTagProperties[currentTag]);
4382
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4383
}
4384
currentTag = GNE_TAG_TRANSHIP_BUSSTOP_CONTAINERSTOP;
4385
{
4386
// set values of tag
4387
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4388
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_CONTAINERSTOP,
4389
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("busStop"), TL("containerStop")), parents, color);
4390
// set values of attributes
4391
fillPlanParentAttributes(myTagProperties[currentTag]);
4392
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4393
}
4394
currentTag = GNE_TAG_TRANSHIP_BUSSTOP_CHARGINGSTATION;
4395
{
4396
// set values of tag
4397
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4398
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_CHARGINGSTATION,
4399
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("busStop"), TL("chargingStation")), parents, color);
4400
// set values of attributes
4401
fillPlanParentAttributes(myTagProperties[currentTag]);
4402
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4403
}
4404
currentTag = GNE_TAG_TRANSHIP_BUSSTOP_PARKINGAREA;
4405
{
4406
// set values of tag
4407
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4408
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_PARKINGAREA,
4409
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("busStop"), TL("parkingArea")), parents, color);
4410
// set values of attributes
4411
fillPlanParentAttributes(myTagProperties[currentTag]);
4412
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4413
}
4414
// from trainStop
4415
currentTag = GNE_TAG_TRANSHIP_TRAINSTOP_EDGE;
4416
{
4417
// set values of tag
4418
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4419
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_EDGE,
4420
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("trainStop"), TL("edge")), parents, color);
4421
// set values of attributes
4422
fillPlanParentAttributes(myTagProperties[currentTag]);
4423
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4424
}
4425
currentTag = GNE_TAG_TRANSHIP_TRAINSTOP_TAZ;
4426
{
4427
// set values of tag
4428
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagPropertyTAZ,
4429
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_TAZ,
4430
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("trainStop"), TL("taz")), parents, color);
4431
// set values of attributes
4432
fillPlanParentAttributes(myTagProperties[currentTag]);
4433
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4434
}
4435
currentTag = GNE_TAG_TRANSHIP_TRAINSTOP_JUNCTION;
4436
{
4437
// set values of tag
4438
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4439
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_JUNCTION,
4440
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("trainStop"), TL("junction")), parents, color);
4441
// set values of attributes
4442
fillPlanParentAttributes(myTagProperties[currentTag]);
4443
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4444
}
4445
currentTag = GNE_TAG_TRANSHIP_TRAINSTOP_BUSSTOP;
4446
{
4447
// set values of tag
4448
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4449
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_BUSSTOP,
4450
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("trainStop"), TL("busStop")), parents, color);
4451
// set values of attributes
4452
fillPlanParentAttributes(myTagProperties[currentTag]);
4453
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4454
}
4455
currentTag = GNE_TAG_TRANSHIP_TRAINSTOP_TRAINSTOP;
4456
{
4457
// set values of tag
4458
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4459
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_TRAINSTOP,
4460
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("trainStop"), TL("trainStop")), parents, color);
4461
// set values of attributes
4462
fillPlanParentAttributes(myTagProperties[currentTag]);
4463
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4464
}
4465
currentTag = GNE_TAG_TRANSHIP_TRAINSTOP_CONTAINERSTOP;
4466
{
4467
// set values of tag
4468
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4469
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_CONTAINERSTOP,
4470
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("trainStop"), TL("containerStop")), parents, color);
4471
// set values of attributes
4472
fillPlanParentAttributes(myTagProperties[currentTag]);
4473
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4474
}
4475
currentTag = GNE_TAG_TRANSHIP_TRAINSTOP_CHARGINGSTATION;
4476
{
4477
// set values of tag
4478
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4479
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_CHARGINGSTATION,
4480
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("trainStop"), TL("chargingStation")), parents, color);
4481
// set values of attributes
4482
fillPlanParentAttributes(myTagProperties[currentTag]);
4483
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4484
}
4485
currentTag = GNE_TAG_TRANSHIP_TRAINSTOP_PARKINGAREA;
4486
{
4487
// set values of tag
4488
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4489
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_PARKINGAREA,
4490
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("trainStop"), TL("parkingArea")), parents, color);
4491
// set values of attributes
4492
fillPlanParentAttributes(myTagProperties[currentTag]);
4493
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4494
}
4495
// from containerStop
4496
currentTag = GNE_TAG_TRANSHIP_CONTAINERSTOP_EDGE;
4497
{
4498
// set values of tag
4499
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4500
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_EDGE,
4501
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("containerStop"), TL("edge")), parents, color);
4502
// set values of attributes
4503
fillPlanParentAttributes(myTagProperties[currentTag]);
4504
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4505
}
4506
currentTag = GNE_TAG_TRANSHIP_CONTAINERSTOP_TAZ;
4507
{
4508
// set values of tag
4509
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagPropertyTAZ,
4510
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_TAZ,
4511
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("containerStop"), TL("taz")), parents, color);
4512
// set values of attributes
4513
fillPlanParentAttributes(myTagProperties[currentTag]);
4514
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4515
}
4516
currentTag = GNE_TAG_TRANSHIP_CONTAINERSTOP_JUNCTION;
4517
{
4518
// set values of tag
4519
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4520
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_JUNCTION,
4521
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("containerStop"), TL("junction")), parents, color);
4522
// set values of attributes
4523
fillPlanParentAttributes(myTagProperties[currentTag]);
4524
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4525
}
4526
currentTag = GNE_TAG_TRANSHIP_CONTAINERSTOP_BUSSTOP;
4527
{
4528
// set values of tag
4529
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4530
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_BUSSTOP,
4531
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("containerStop"), TL("busStop")), parents, color);
4532
// set values of attributes
4533
fillPlanParentAttributes(myTagProperties[currentTag]);
4534
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4535
}
4536
currentTag = GNE_TAG_TRANSHIP_CONTAINERSTOP_TRAINSTOP;
4537
{
4538
// set values of tag
4539
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4540
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_TRAINSTOP,
4541
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("containerStop"), TL("trainStop")), parents, color);
4542
// set values of attributes
4543
fillPlanParentAttributes(myTagProperties[currentTag]);
4544
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4545
}
4546
currentTag = GNE_TAG_TRANSHIP_CONTAINERSTOP_CONTAINERSTOP;
4547
{
4548
// set values of tag
4549
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4550
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_CONTAINERSTOP,
4551
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("containerStop"), TL("containerStop")), parents, color);
4552
// set values of attributes
4553
fillPlanParentAttributes(myTagProperties[currentTag]);
4554
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4555
}
4556
currentTag = GNE_TAG_TRANSHIP_CONTAINERSTOP_CHARGINGSTATION;
4557
{
4558
// set values of tag
4559
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4560
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_CHARGINGSTATION,
4561
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("containerStop"), TL("chargingStation")), parents, color);
4562
// set values of attributes
4563
fillPlanParentAttributes(myTagProperties[currentTag]);
4564
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4565
}
4566
currentTag = GNE_TAG_TRANSHIP_CONTAINERSTOP_PARKINGAREA;
4567
{
4568
// set values of tag
4569
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4570
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_PARKINGAREA,
4571
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("containerStop"), TL("parkingArea")), parents, color);
4572
// set values of attributes
4573
fillPlanParentAttributes(myTagProperties[currentTag]);
4574
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4575
}
4576
// from chargingStation
4577
currentTag = GNE_TAG_TRANSHIP_CHARGINGSTATION_EDGE;
4578
{
4579
// set values of tag
4580
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4581
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_EDGE,
4582
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("chargingStation"), TL("edge")), parents, color);
4583
// set values of attributes
4584
fillPlanParentAttributes(myTagProperties[currentTag]);
4585
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4586
}
4587
currentTag = GNE_TAG_TRANSHIP_CHARGINGSTATION_TAZ;
4588
{
4589
// set values of tag
4590
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagPropertyTAZ,
4591
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_TAZ,
4592
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("chargingStation"), TL("taz")), parents, color);
4593
// set values of attributes
4594
fillPlanParentAttributes(myTagProperties[currentTag]);
4595
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4596
}
4597
currentTag = GNE_TAG_TRANSHIP_CHARGINGSTATION_JUNCTION;
4598
{
4599
// set values of tag
4600
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4601
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_JUNCTION,
4602
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("chargingStation"), TL("junction")), parents, color);
4603
// set values of attributes
4604
fillPlanParentAttributes(myTagProperties[currentTag]);
4605
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4606
}
4607
currentTag = GNE_TAG_TRANSHIP_CHARGINGSTATION_BUSSTOP;
4608
{
4609
// set values of tag
4610
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4611
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_BUSSTOP,
4612
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("chargingStation"), TL("busStop")), parents, color);
4613
// set values of attributes
4614
fillPlanParentAttributes(myTagProperties[currentTag]);
4615
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4616
}
4617
currentTag = GNE_TAG_TRANSHIP_CHARGINGSTATION_TRAINSTOP;
4618
{
4619
// set values of tag
4620
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4621
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_TRAINSTOP,
4622
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("chargingStation"), TL("trainStop")), parents, color);
4623
// set values of attributes
4624
fillPlanParentAttributes(myTagProperties[currentTag]);
4625
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4626
}
4627
currentTag = GNE_TAG_TRANSHIP_CHARGINGSTATION_CONTAINERSTOP;
4628
{
4629
// set values of tag
4630
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4631
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_CONTAINERSTOP,
4632
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("chargingStation"), TL("containerStop")), parents, color);
4633
// set values of attributes
4634
fillPlanParentAttributes(myTagProperties[currentTag]);
4635
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4636
}
4637
currentTag = GNE_TAG_TRANSHIP_CHARGINGSTATION_CHARGINGSTATION;
4638
{
4639
// set values of tag
4640
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4641
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_CHARGINGSTATION,
4642
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("chargingStation"), TL("chargingStation")), parents, color);
4643
// set values of attributes
4644
fillPlanParentAttributes(myTagProperties[currentTag]);
4645
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4646
}
4647
currentTag = GNE_TAG_TRANSHIP_CHARGINGSTATION_PARKINGAREA;
4648
{
4649
// set values of tag
4650
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4651
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_PARKINGAREA,
4652
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("chargingStation"), TL("parkingArea")), parents, color);
4653
// set values of attributes
4654
fillPlanParentAttributes(myTagProperties[currentTag]);
4655
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4656
}
4657
// from parkingArea
4658
currentTag = GNE_TAG_TRANSHIP_PARKINGAREA_EDGE;
4659
{
4660
// set values of tag
4661
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4662
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_EDGE,
4663
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("parkingArea"), TL("edge")), parents, color);
4664
// set values of attributes
4665
fillPlanParentAttributes(myTagProperties[currentTag]);
4666
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4667
}
4668
currentTag = GNE_TAG_TRANSHIP_PARKINGAREA_TAZ;
4669
{
4670
// set values of tag
4671
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagPropertyTAZ,
4672
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_TAZ,
4673
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("parkingArea"), TL("taz")), parents, color);
4674
// set values of attributes
4675
fillPlanParentAttributes(myTagProperties[currentTag]);
4676
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4677
}
4678
currentTag = GNE_TAG_TRANSHIP_PARKINGAREA_JUNCTION;
4679
{
4680
// set values of tag
4681
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4682
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_JUNCTION,
4683
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("parkingArea"), TL("junction")), parents, color);
4684
// set values of attributes
4685
fillPlanParentAttributes(myTagProperties[currentTag]);
4686
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4687
}
4688
currentTag = GNE_TAG_TRANSHIP_PARKINGAREA_BUSSTOP;
4689
{
4690
// set values of tag
4691
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4692
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_BUSSTOP,
4693
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("parkingArea"), TL("busStop")), parents, color);
4694
// set values of attributes
4695
fillPlanParentAttributes(myTagProperties[currentTag]);
4696
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4697
}
4698
currentTag = GNE_TAG_TRANSHIP_PARKINGAREA_TRAINSTOP;
4699
{
4700
// set values of tag
4701
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4702
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_TRAINSTOP,
4703
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("parkingArea"), TL("trainStop")), parents, color);
4704
// set values of attributes
4705
fillPlanParentAttributes(myTagProperties[currentTag]);
4706
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4707
}
4708
currentTag = GNE_TAG_TRANSHIP_PARKINGAREA_CONTAINERSTOP;
4709
{
4710
// set values of tag
4711
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4712
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_CONTAINERSTOP,
4713
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("parkingArea"), TL("containerStop")), parents, color);
4714
// set values of attributes
4715
fillPlanParentAttributes(myTagProperties[currentTag]);
4716
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4717
}
4718
currentTag = GNE_TAG_TRANSHIP_PARKINGAREA_CHARGINGSTATION;
4719
{
4720
// set values of tag
4721
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4722
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_CHARGINGSTATION,
4723
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("parkingArea"), TL("chargingStation")), parents, color);
4724
// set values of attributes
4725
fillPlanParentAttributes(myTagProperties[currentTag]);
4726
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4727
}
4728
currentTag = GNE_TAG_TRANSHIP_PARKINGAREA_PARKINGAREA;
4729
{
4730
// set values of tag
4731
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_TRANSHIPS), tagType, tagProperty,
4732
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_PARKINGAREA,
4733
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Tranship"), TL("parkingArea"), TL("parkingArea")), parents, color);
4734
// set values of attributes
4735
fillPlanParentAttributes(myTagProperties[currentTag]);
4736
fillTranshipCommonAttributes(myTagProperties[currentTag]);
4737
}
4738
}
4739
4740
4741
void
4742
GNETagPropertiesDatabase::fillContainerStopElements() {
4743
// declare common tag types and properties
4744
const auto tagType = GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::CONTAINERPLAN | GNETagProperties::Type::STOP_CONTAINER;
4745
const auto tagProperty = GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOPARAMETERS;
4746
const auto conflicts = GNETagProperties::Conflicts::NO_CONFLICTS;
4747
const std::vector<SumoXMLTag> parents({SUMO_TAG_CONTAINER, SUMO_TAG_CONTAINERFLOW});
4748
const unsigned int color = FXRGBA(255, 213, 213, 255);
4749
const GUIIcon icon = GUIIcon::STOPELEMENT;
4750
const GUIGlObjectType GLType = GUIGlObjectType::GLO_STOP_PLAN;
4751
const SumoXMLTag xmlTag = SUMO_TAG_STOP;
4752
// fill tags
4753
SumoXMLTag currentTag = GNE_TAG_STOPCONTAINER_EDGE;
4754
{
4755
// set values of tag
4756
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_CONTAINERSTOPS), tagType, tagProperty,
4757
GNETagProperties::Over::EDGE,
4758
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %", TL("ContainerStop"), TL("edge")), parents, color);
4759
4760
// set values of attributes
4761
fillPlanParentAttributes(myTagProperties[currentTag]);
4762
fillPlanStopCommonAttributes(myTagProperties[currentTag]);
4763
}
4764
currentTag = GNE_TAG_STOPCONTAINER_BUSSTOP;
4765
{
4766
// set values of tag
4767
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_CONTAINERSTOPS), tagType, tagProperty,
4768
GNETagProperties::Over::BUSSTOP,
4769
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %", TL("ContainerStop"), TL("busStop")), parents, color);
4770
4771
// set values of attributes
4772
fillPlanParentAttributes(myTagProperties[currentTag]);
4773
fillPlanStopCommonAttributes(myTagProperties[currentTag]);
4774
}
4775
currentTag = GNE_TAG_STOPCONTAINER_TRAINSTOP;
4776
{
4777
// set values of tag
4778
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_CONTAINERSTOPS), tagType, tagProperty,
4779
GNETagProperties::Over::TRAINSTOP,
4780
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %", TL("ContainerStop"), TL("trainStop")), parents, color);
4781
4782
// set values of attributes
4783
fillPlanParentAttributes(myTagProperties[currentTag]);
4784
fillPlanStopCommonAttributes(myTagProperties[currentTag]);
4785
}
4786
currentTag = GNE_TAG_STOPCONTAINER_CONTAINERSTOP;
4787
{
4788
// set values of tag
4789
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_CONTAINERSTOPS), tagType, tagProperty,
4790
GNETagProperties::Over::CONTAINERSTOP,
4791
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %", TL("ContainerStop"), TL("containerStop")), parents, color);
4792
4793
// set values of attributes
4794
fillPlanParentAttributes(myTagProperties[currentTag]);
4795
fillPlanStopCommonAttributes(myTagProperties[currentTag]);
4796
}
4797
currentTag = GNE_TAG_STOPCONTAINER_CHARGINGSTATION;
4798
{
4799
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_CONTAINERSTOPS), tagType, tagProperty,
4800
GNETagProperties::Over::CHARGINGSTATION,
4801
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %", TL("ContainerStop"), TL("chargingStation")), parents, color);
4802
4803
// set values of attributes
4804
fillPlanParentAttributes(myTagProperties[currentTag]);
4805
fillPlanStopCommonAttributes(myTagProperties[currentTag]);
4806
}
4807
currentTag = GNE_TAG_STOPCONTAINER_PARKINGAREA;
4808
{
4809
// set values of tag
4810
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_CONTAINERSTOPS), tagType, tagProperty,
4811
GNETagProperties::Over::PARKINGAREA,
4812
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %", TL("ContainerStop"), TL("parkingArea")), parents, color);
4813
4814
// set values of attributes
4815
fillPlanParentAttributes(myTagProperties[currentTag]);
4816
fillPlanStopCommonAttributes(myTagProperties[currentTag]);
4817
}
4818
}
4819
4820
4821
void
4822
GNETagPropertiesDatabase::fillPersonPlanTrips() {
4823
// declare common tag types and properties
4824
const auto tagType = GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::PERSONPLAN | GNETagProperties::Type::PERSONTRIP;
4825
const auto tagProperty = GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOPARAMETERS;
4826
const auto tagPropertyTAZ = GNETagProperties::Property::RTREE | tagProperty;
4827
const auto conflicts = GNETagProperties::Conflicts::NO_CONFLICTS;
4828
const std::vector<SumoXMLTag> parents({SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW});
4829
const unsigned int color = FXRGBA(253, 255, 206, 255);
4830
const GUIIcon icon = GUIIcon::PERSONTRIP_EDGE;
4831
const GUIGlObjectType GLType = GUIGlObjectType::GLO_PERSONTRIP;
4832
const SumoXMLTag xmlTag = SUMO_TAG_PERSONTRIP;
4833
// from edge
4834
SumoXMLTag currentTag = GNE_TAG_PERSONTRIP_EDGE_EDGE;
4835
{
4836
// set values of tag
4837
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
4838
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_EDGE,
4839
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("edge"), TL("edge")), parents, color);
4840
// set values of attributes
4841
fillPlanParentAttributes(myTagProperties[currentTag]);
4842
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
4843
}
4844
currentTag = GNE_TAG_PERSONTRIP_EDGE_TAZ;
4845
{
4846
// set values of tag
4847
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagPropertyTAZ,
4848
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_TAZ,
4849
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("edge"), TL("taz")), parents, color);
4850
// set values of attributes
4851
fillPlanParentAttributes(myTagProperties[currentTag]);
4852
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
4853
}
4854
currentTag = GNE_TAG_PERSONTRIP_EDGE_JUNCTION;
4855
{
4856
// set values of tag
4857
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
4858
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_JUNCTION,
4859
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("edge"), TL("junction")), parents, color);
4860
// set values of attributes
4861
fillPlanParentAttributes(myTagProperties[currentTag]);
4862
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
4863
}
4864
currentTag = GNE_TAG_PERSONTRIP_EDGE_BUSSTOP;
4865
{
4866
// set values of tag
4867
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
4868
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_BUSSTOP,
4869
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("edge"), TL("busStop")), parents, color);
4870
// set values of attributes
4871
fillPlanParentAttributes(myTagProperties[currentTag]);
4872
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
4873
}
4874
currentTag = GNE_TAG_PERSONTRIP_EDGE_TRAINSTOP;
4875
{
4876
// set values of tag
4877
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
4878
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_TRAINSTOP,
4879
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("edge"), TL("trainStop")), parents, color);
4880
// set values of attributes
4881
fillPlanParentAttributes(myTagProperties[currentTag]);
4882
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
4883
}
4884
currentTag = GNE_TAG_PERSONTRIP_EDGE_CONTAINERSTOP;
4885
{
4886
// set values of tag
4887
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
4888
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_CONTAINERSTOP,
4889
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("edge"), TL("containerStop")), parents, color);
4890
// set values of attributes
4891
fillPlanParentAttributes(myTagProperties[currentTag]);
4892
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
4893
}
4894
currentTag = GNE_TAG_PERSONTRIP_EDGE_CHARGINGSTATION;
4895
{
4896
// set values of tag
4897
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
4898
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_CHARGINGSTATION,
4899
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("edge"), TL("chargingStation")), parents, color);
4900
// set values of attributes
4901
fillPlanParentAttributes(myTagProperties[currentTag]);
4902
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
4903
}
4904
currentTag = GNE_TAG_PERSONTRIP_EDGE_PARKINGAREA;
4905
{
4906
// set values of tag
4907
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
4908
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_PARKINGAREA,
4909
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("edge"), TL("parkingArea")), parents, color);
4910
// set values of attributes
4911
fillPlanParentAttributes(myTagProperties[currentTag]);
4912
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
4913
}
4914
// from taz
4915
currentTag = GNE_TAG_PERSONTRIP_TAZ_EDGE;
4916
{
4917
// set values of tag
4918
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagPropertyTAZ,
4919
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_EDGE,
4920
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("taz"), TL("taz")), parents, color);
4921
// set values of attributes
4922
fillPlanParentAttributes(myTagProperties[currentTag]);
4923
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
4924
}
4925
currentTag = GNE_TAG_PERSONTRIP_TAZ_TAZ;
4926
{
4927
// set values of tag
4928
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagPropertyTAZ,
4929
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_TAZ,
4930
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("taz"), TL("taz")), parents, color);
4931
// set values of attributes
4932
fillPlanParentAttributes(myTagProperties[currentTag]);
4933
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
4934
}
4935
currentTag = GNE_TAG_PERSONTRIP_TAZ_JUNCTION;
4936
{
4937
// set values of tag
4938
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagPropertyTAZ,
4939
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_JUNCTION,
4940
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("taz"), TL("junction")), parents, color);
4941
// set values of attributes
4942
fillPlanParentAttributes(myTagProperties[currentTag]);
4943
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
4944
}
4945
currentTag = GNE_TAG_PERSONTRIP_TAZ_BUSSTOP;
4946
{
4947
// set values of tag
4948
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagPropertyTAZ,
4949
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_BUSSTOP,
4950
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("taz"), TL("busStop")), parents, color);
4951
// set values of attributes
4952
fillPlanParentAttributes(myTagProperties[currentTag]);
4953
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
4954
}
4955
currentTag = GNE_TAG_PERSONTRIP_TAZ_TRAINSTOP;
4956
{
4957
// set values of tag
4958
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagPropertyTAZ,
4959
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_TRAINSTOP,
4960
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("taz"), TL("trainStop")), parents, color);
4961
// set values of attributes
4962
fillPlanParentAttributes(myTagProperties[currentTag]);
4963
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
4964
}
4965
currentTag = GNE_TAG_PERSONTRIP_TAZ_CONTAINERSTOP;
4966
{
4967
// set values of tag
4968
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagPropertyTAZ,
4969
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_CONTAINERSTOP,
4970
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("taz"), TL("containerStop")), parents, color);
4971
// set values of attributes
4972
fillPlanParentAttributes(myTagProperties[currentTag]);
4973
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
4974
}
4975
currentTag = GNE_TAG_PERSONTRIP_TAZ_CHARGINGSTATION;
4976
{
4977
// set values of tag
4978
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagPropertyTAZ,
4979
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_CHARGINGSTATION,
4980
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("taz"), TL("chargingStation")), parents, color);
4981
// set values of attributes
4982
fillPlanParentAttributes(myTagProperties[currentTag]);
4983
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
4984
}
4985
currentTag = GNE_TAG_PERSONTRIP_TAZ_PARKINGAREA;
4986
{
4987
// set values of tag
4988
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagPropertyTAZ,
4989
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_PARKINGAREA,
4990
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("taz"), TL("parkingArea")), parents, color);
4991
// set values of attributes
4992
fillPlanParentAttributes(myTagProperties[currentTag]);
4993
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
4994
}
4995
// from junction
4996
currentTag = GNE_TAG_PERSONTRIP_JUNCTION_EDGE;
4997
{
4998
// set values of tag
4999
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5000
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_EDGE,
5001
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("junction"), TL("edge")), parents, color);
5002
// set values of attributes
5003
fillPlanParentAttributes(myTagProperties[currentTag]);
5004
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5005
}
5006
currentTag = GNE_TAG_PERSONTRIP_JUNCTION_TAZ;
5007
{
5008
// set values of tag
5009
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagPropertyTAZ,
5010
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_TAZ,
5011
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("junction"), TL("taz")), parents, color);
5012
// set values of attributes
5013
fillPlanParentAttributes(myTagProperties[currentTag]);
5014
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5015
}
5016
currentTag = GNE_TAG_PERSONTRIP_JUNCTION_JUNCTION;
5017
{
5018
// set values of tag
5019
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5020
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_JUNCTION,
5021
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("junction"), TL("junction")), parents, color);
5022
// set values of attributes
5023
fillPlanParentAttributes(myTagProperties[currentTag]);
5024
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5025
}
5026
currentTag = GNE_TAG_PERSONTRIP_JUNCTION_BUSSTOP;
5027
{
5028
// set values of tag
5029
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5030
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_BUSSTOP,
5031
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("junction"), TL("busStop")), parents, color);
5032
// set values of attributes
5033
fillPlanParentAttributes(myTagProperties[currentTag]);
5034
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5035
}
5036
currentTag = GNE_TAG_PERSONTRIP_JUNCTION_TRAINSTOP;
5037
{
5038
// set values of tag
5039
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5040
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_TRAINSTOP,
5041
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("junction"), TL("trainStop")), parents, color);
5042
// set values of attributes
5043
fillPlanParentAttributes(myTagProperties[currentTag]);
5044
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5045
}
5046
currentTag = GNE_TAG_PERSONTRIP_JUNCTION_CONTAINERSTOP;
5047
{
5048
// set values of tag
5049
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5050
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_CONTAINERSTOP,
5051
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("junction"), TL("containerStop")), parents, color);
5052
// set values of attributes
5053
fillPlanParentAttributes(myTagProperties[currentTag]);
5054
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5055
}
5056
currentTag = GNE_TAG_PERSONTRIP_JUNCTION_CHARGINGSTATION;
5057
{
5058
// set values of tag
5059
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5060
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_CHARGINGSTATION,
5061
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("junction"), TL("chargingStation")), parents, color);
5062
// set values of attributes
5063
fillPlanParentAttributes(myTagProperties[currentTag]);
5064
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5065
}
5066
currentTag = GNE_TAG_PERSONTRIP_JUNCTION_PARKINGAREA;
5067
{
5068
// set values of tag
5069
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5070
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_PARKINGAREA,
5071
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("junction"), TL("parkingArea")), parents, color);
5072
// set values of attributes
5073
fillPlanParentAttributes(myTagProperties[currentTag]);
5074
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5075
}
5076
// from busStop
5077
currentTag = GNE_TAG_PERSONTRIP_BUSSTOP_EDGE;
5078
{
5079
// set values of tag
5080
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5081
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_EDGE,
5082
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("busStop"), TL("edge")), parents, color);
5083
// set values of attributes
5084
fillPlanParentAttributes(myTagProperties[currentTag]);
5085
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5086
}
5087
currentTag = GNE_TAG_PERSONTRIP_BUSSTOP_TAZ;
5088
{
5089
// set values of tag
5090
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagPropertyTAZ,
5091
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_TAZ,
5092
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("busStop"), TL("taz")), parents, color);
5093
// set values of attributes
5094
fillPlanParentAttributes(myTagProperties[currentTag]);
5095
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5096
}
5097
currentTag = GNE_TAG_PERSONTRIP_BUSSTOP_JUNCTION;
5098
{
5099
// set values of tag
5100
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5101
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_JUNCTION,
5102
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("busStop"), TL("junction")), parents, color);
5103
// set values of attributes
5104
fillPlanParentAttributes(myTagProperties[currentTag]);
5105
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5106
}
5107
currentTag = GNE_TAG_PERSONTRIP_BUSSTOP_BUSSTOP;
5108
{
5109
// set values of tag
5110
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5111
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_BUSSTOP,
5112
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("busStop"), TL("busStop")), parents, color);
5113
// set values of attributes
5114
fillPlanParentAttributes(myTagProperties[currentTag]);
5115
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5116
}
5117
currentTag = GNE_TAG_PERSONTRIP_BUSSTOP_TRAINSTOP;
5118
{
5119
// set values of tag
5120
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5121
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_TRAINSTOP,
5122
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("busStop"), TL("trainStop")), parents, color);
5123
// set values of attributes
5124
fillPlanParentAttributes(myTagProperties[currentTag]);
5125
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5126
}
5127
currentTag = GNE_TAG_PERSONTRIP_BUSSTOP_CONTAINERSTOP;
5128
{
5129
// set values of tag
5130
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5131
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_CONTAINERSTOP,
5132
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("busStop"), TL("containerStop")), parents, color);
5133
// set values of attributes
5134
fillPlanParentAttributes(myTagProperties[currentTag]);
5135
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5136
}
5137
currentTag = GNE_TAG_PERSONTRIP_BUSSTOP_CHARGINGSTATION;
5138
{
5139
// set values of tag
5140
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5141
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_CHARGINGSTATION,
5142
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("busStop"), TL("chargingStation")), parents, color);
5143
// set values of attributes
5144
fillPlanParentAttributes(myTagProperties[currentTag]);
5145
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5146
}
5147
currentTag = GNE_TAG_PERSONTRIP_BUSSTOP_PARKINGAREA;
5148
{
5149
// set values of tag
5150
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5151
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_PARKINGAREA,
5152
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("busStop"), TL("parkingArea")), parents, color);
5153
// set values of attributes
5154
fillPlanParentAttributes(myTagProperties[currentTag]);
5155
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5156
}
5157
// from trainStop
5158
currentTag = GNE_TAG_PERSONTRIP_TRAINSTOP_EDGE;
5159
{
5160
// set values of tag
5161
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5162
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_EDGE,
5163
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("trainStop"), TL("edge")), parents, color);
5164
// set values of attributes
5165
fillPlanParentAttributes(myTagProperties[currentTag]);
5166
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5167
}
5168
currentTag = GNE_TAG_PERSONTRIP_TRAINSTOP_TAZ;
5169
{
5170
// set values of tag
5171
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagPropertyTAZ,
5172
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_TAZ,
5173
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("trainStop"), TL("taz")), parents, color);
5174
// set values of attributes
5175
fillPlanParentAttributes(myTagProperties[currentTag]);
5176
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5177
}
5178
currentTag = GNE_TAG_PERSONTRIP_TRAINSTOP_JUNCTION;
5179
{
5180
// set values of tag
5181
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5182
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_JUNCTION,
5183
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("trainStop"), TL("junction")), parents, color);
5184
// set values of attributes
5185
fillPlanParentAttributes(myTagProperties[currentTag]);
5186
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5187
}
5188
currentTag = GNE_TAG_PERSONTRIP_TRAINSTOP_BUSSTOP;
5189
{
5190
// set values of tag
5191
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5192
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_BUSSTOP,
5193
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("trainStop"), TL("busStop")), parents, color);
5194
// set values of attributes
5195
fillPlanParentAttributes(myTagProperties[currentTag]);
5196
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5197
}
5198
currentTag = GNE_TAG_PERSONTRIP_TRAINSTOP_TRAINSTOP;
5199
{
5200
// set values of tag
5201
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5202
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_TRAINSTOP,
5203
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("trainStop"), TL("trainStop")), parents, color);
5204
// set values of attributes
5205
fillPlanParentAttributes(myTagProperties[currentTag]);
5206
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5207
}
5208
currentTag = GNE_TAG_PERSONTRIP_TRAINSTOP_CONTAINERSTOP;
5209
{
5210
// set values of tag
5211
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5212
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_CONTAINERSTOP,
5213
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("trainStop"), TL("containerStop")), parents, color);
5214
// set values of attributes
5215
fillPlanParentAttributes(myTagProperties[currentTag]);
5216
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5217
}
5218
currentTag = GNE_TAG_PERSONTRIP_TRAINSTOP_CHARGINGSTATION;
5219
{
5220
// set values of tag
5221
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5222
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_CHARGINGSTATION,
5223
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("trainStop"), TL("chargingStation")), parents, color);
5224
// set values of attributes
5225
fillPlanParentAttributes(myTagProperties[currentTag]);
5226
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5227
}
5228
currentTag = GNE_TAG_PERSONTRIP_TRAINSTOP_PARKINGAREA;
5229
{
5230
// set values of tag
5231
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5232
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_PARKINGAREA,
5233
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("trainStop"), TL("parkingArea")), parents, color);
5234
// set values of attributes
5235
fillPlanParentAttributes(myTagProperties[currentTag]);
5236
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5237
}
5238
// from containerStop
5239
currentTag = GNE_TAG_PERSONTRIP_CONTAINERSTOP_EDGE;
5240
{
5241
// set values of tag
5242
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5243
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_EDGE,
5244
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("containerStop"), TL("edge")), parents, color);
5245
// set values of attributes
5246
fillPlanParentAttributes(myTagProperties[currentTag]);
5247
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5248
}
5249
currentTag = GNE_TAG_PERSONTRIP_CONTAINERSTOP_TAZ;
5250
{
5251
// set values of tag
5252
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagPropertyTAZ,
5253
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_TAZ,
5254
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("containerStop"), TL("taz")), parents, color);
5255
// set values of attributes
5256
fillPlanParentAttributes(myTagProperties[currentTag]);
5257
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5258
}
5259
currentTag = GNE_TAG_PERSONTRIP_CONTAINERSTOP_JUNCTION;
5260
{
5261
// set values of tag
5262
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5263
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_JUNCTION,
5264
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("containerStop"), TL("junction")), parents, color);
5265
// set values of attributes
5266
fillPlanParentAttributes(myTagProperties[currentTag]);
5267
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5268
}
5269
currentTag = GNE_TAG_PERSONTRIP_CONTAINERSTOP_BUSSTOP;
5270
{
5271
// set values of tag
5272
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5273
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_BUSSTOP,
5274
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("containerStop"), TL("busStop")), parents, color);
5275
// set values of attributes
5276
fillPlanParentAttributes(myTagProperties[currentTag]);
5277
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5278
}
5279
currentTag = GNE_TAG_PERSONTRIP_CONTAINERSTOP_TRAINSTOP;
5280
{
5281
// set values of tag
5282
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5283
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_TRAINSTOP,
5284
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("containerStop"), TL("trainStop")), parents, color);
5285
// set values of attributes
5286
fillPlanParentAttributes(myTagProperties[currentTag]);
5287
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5288
}
5289
currentTag = GNE_TAG_PERSONTRIP_CONTAINERSTOP_CONTAINERSTOP;
5290
{
5291
// set values of tag
5292
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5293
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_CONTAINERSTOP,
5294
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("containerStop"), TL("containerStop")), parents, color);
5295
// set values of attributes
5296
fillPlanParentAttributes(myTagProperties[currentTag]);
5297
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5298
}
5299
currentTag = GNE_TAG_PERSONTRIP_CONTAINERSTOP_CHARGINGSTATION;
5300
{
5301
// set values of tag
5302
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5303
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_CHARGINGSTATION,
5304
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("containerStop"), TL("chargingStation")), parents, color);
5305
// set values of attributes
5306
fillPlanParentAttributes(myTagProperties[currentTag]);
5307
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5308
}
5309
currentTag = GNE_TAG_PERSONTRIP_CONTAINERSTOP_PARKINGAREA;
5310
{
5311
// set values of tag
5312
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5313
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_PARKINGAREA,
5314
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("containerStop"), TL("parkingArea")), parents, color);
5315
// set values of attributes
5316
fillPlanParentAttributes(myTagProperties[currentTag]);
5317
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5318
}
5319
// from chargingStation
5320
currentTag = GNE_TAG_PERSONTRIP_CHARGINGSTATION_EDGE;
5321
{
5322
// set values of tag
5323
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5324
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_EDGE,
5325
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("chargingStation"), TL("edge")), parents, color);
5326
// set values of attributes
5327
fillPlanParentAttributes(myTagProperties[currentTag]);
5328
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5329
}
5330
currentTag = GNE_TAG_PERSONTRIP_CHARGINGSTATION_TAZ;
5331
{
5332
// set values of tag
5333
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagPropertyTAZ,
5334
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_TAZ,
5335
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("chargingStation"), TL("taz")), parents, color);
5336
// set values of attributes
5337
fillPlanParentAttributes(myTagProperties[currentTag]);
5338
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5339
}
5340
currentTag = GNE_TAG_PERSONTRIP_CHARGINGSTATION_JUNCTION;
5341
{
5342
// set values of tag
5343
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5344
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_JUNCTION,
5345
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("chargingStation"), TL("junction")), parents, color);
5346
// set values of attributes
5347
fillPlanParentAttributes(myTagProperties[currentTag]);
5348
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5349
}
5350
currentTag = GNE_TAG_PERSONTRIP_CHARGINGSTATION_BUSSTOP;
5351
{
5352
// set values of tag
5353
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5354
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_BUSSTOP,
5355
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("chargingStation"), TL("busStop")), parents, color);
5356
// set values of attributes
5357
fillPlanParentAttributes(myTagProperties[currentTag]);
5358
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5359
}
5360
currentTag = GNE_TAG_PERSONTRIP_CHARGINGSTATION_TRAINSTOP;
5361
{
5362
// set values of tag
5363
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5364
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_TRAINSTOP,
5365
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("chargingStation"), TL("trainStop")), parents, color);
5366
// set values of attributes
5367
fillPlanParentAttributes(myTagProperties[currentTag]);
5368
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5369
}
5370
currentTag = GNE_TAG_PERSONTRIP_CHARGINGSTATION_CONTAINERSTOP;
5371
{
5372
// set values of tag
5373
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5374
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_CONTAINERSTOP,
5375
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("chargingStation"), TL("containerStop")), parents, color);
5376
// set values of attributes
5377
fillPlanParentAttributes(myTagProperties[currentTag]);
5378
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5379
}
5380
currentTag = GNE_TAG_PERSONTRIP_CHARGINGSTATION_CHARGINGSTATION;
5381
{
5382
// set values of tag
5383
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5384
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_CHARGINGSTATION,
5385
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("chargingStation"), TL("chargingStation")), parents, color);
5386
// set values of attributes
5387
fillPlanParentAttributes(myTagProperties[currentTag]);
5388
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5389
}
5390
currentTag = GNE_TAG_PERSONTRIP_CHARGINGSTATION_PARKINGAREA;
5391
{
5392
// set values of tag
5393
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5394
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_PARKINGAREA,
5395
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("chargingStation"), TL("parkingArea")), parents, color);
5396
// set values of attributes
5397
fillPlanParentAttributes(myTagProperties[currentTag]);
5398
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5399
}
5400
// from parkingArea
5401
currentTag = GNE_TAG_PERSONTRIP_PARKINGAREA_EDGE;
5402
{
5403
// set values of tag
5404
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5405
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_EDGE,
5406
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("parkingArea"), TL("edge")), parents, color);
5407
// set values of attributes
5408
fillPlanParentAttributes(myTagProperties[currentTag]);
5409
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5410
}
5411
currentTag = GNE_TAG_PERSONTRIP_PARKINGAREA_TAZ;
5412
{
5413
// set values of tag
5414
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagPropertyTAZ,
5415
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_TAZ,
5416
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("parkingArea"), TL("taz")), parents, color);
5417
// set values of attributes
5418
fillPlanParentAttributes(myTagProperties[currentTag]);
5419
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5420
}
5421
currentTag = GNE_TAG_PERSONTRIP_PARKINGAREA_JUNCTION;
5422
{
5423
// set values of tag
5424
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5425
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_JUNCTION,
5426
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("parkingArea"), TL("junction")), parents, color);
5427
// set values of attributes
5428
fillPlanParentAttributes(myTagProperties[currentTag]);
5429
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5430
}
5431
currentTag = GNE_TAG_PERSONTRIP_PARKINGAREA_BUSSTOP;
5432
{
5433
// set values of tag
5434
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5435
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_BUSSTOP,
5436
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("parkingArea"), TL("busStop")), parents, color);
5437
// set values of attributes
5438
fillPlanParentAttributes(myTagProperties[currentTag]);
5439
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5440
}
5441
currentTag = GNE_TAG_PERSONTRIP_PARKINGAREA_TRAINSTOP;
5442
{
5443
// set values of tag
5444
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5445
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_TRAINSTOP,
5446
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("parkingArea"), TL("trainStop")), parents, color);
5447
// set values of attributes
5448
fillPlanParentAttributes(myTagProperties[currentTag]);
5449
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5450
}
5451
currentTag = GNE_TAG_PERSONTRIP_PARKINGAREA_CONTAINERSTOP;
5452
{
5453
// set values of tag
5454
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5455
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_CONTAINERSTOP,
5456
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("parkingArea"), TL("containerStop")), parents, color);
5457
// set values of attributes
5458
fillPlanParentAttributes(myTagProperties[currentTag]);
5459
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5460
}
5461
currentTag = GNE_TAG_PERSONTRIP_PARKINGAREA_CHARGINGSTATION;
5462
{
5463
// set values of tag
5464
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5465
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_CHARGINGSTATION,
5466
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("parkingArea"), TL("chargingStation")), parents, color);
5467
// set values of attributes
5468
fillPlanParentAttributes(myTagProperties[currentTag]);
5469
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5470
}
5471
currentTag = GNE_TAG_PERSONTRIP_PARKINGAREA_PARKINGAREA;
5472
{
5473
// set values of tag
5474
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONTRIPS), tagType, tagProperty,
5475
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_PARKINGAREA,
5476
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("PersonTrip"), TL("parkingArea"), TL("parkingArea")), parents, color);
5477
// set values of attributes
5478
fillPlanParentAttributes(myTagProperties[currentTag]);
5479
fillPersonTripCommonAttributes(myTagProperties[currentTag]);
5480
}
5481
}
5482
5483
5484
void
5485
GNETagPropertiesDatabase::fillPersonPlanWalks() {
5486
// declare common tag types and properties
5487
const auto tagType = GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::PERSONPLAN | GNETagProperties::Type::WALK;
5488
const auto tagProperty = GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOPARAMETERS;
5489
const auto tagPropertyTAZ = GNETagProperties::Property::RTREE | tagProperty;
5490
const auto conflicts = GNETagProperties::Conflicts::NO_CONFLICTS;
5491
const std::vector<SumoXMLTag> parents({SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW});
5492
const unsigned int color = FXRGBA(240, 255, 205, 255);
5493
const GUIIcon icon = GUIIcon::WALK_EDGES;
5494
const GUIGlObjectType GLType = GUIGlObjectType::GLO_WALK;
5495
const SumoXMLTag xmlTag = SUMO_TAG_WALK;
5496
// fill tags
5497
SumoXMLTag currentTag = GNE_TAG_WALK_EDGES;
5498
{
5499
// set values of tag
5500
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5501
GNETagProperties::Over::CONSECUTIVE_EDGES,
5502
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %", TL("Walk"), TL("edges")), parents, color);
5503
// set values of attributes
5504
fillPlanParentAttributes(myTagProperties[currentTag]);
5505
fillWalkCommonAttributes(myTagProperties[currentTag]);
5506
}
5507
currentTag = GNE_TAG_WALK_ROUTE;
5508
{
5509
// set values of tag
5510
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5511
GNETagProperties::Over::ROUTE,
5512
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %", TL("Walk"), TL("route")), parents, color);
5513
// set values of attributes
5514
fillPlanParentAttributes(myTagProperties[currentTag]);
5515
fillWalkCommonAttributes(myTagProperties[currentTag]);
5516
}
5517
// from edge
5518
currentTag = GNE_TAG_WALK_EDGE_EDGE;
5519
{
5520
// set values of tag
5521
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5522
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_EDGE,
5523
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("edge"), TL("edge")), parents, color);
5524
// set values of attributes
5525
fillPlanParentAttributes(myTagProperties[currentTag]);
5526
fillWalkCommonAttributes(myTagProperties[currentTag]);
5527
}
5528
currentTag = GNE_TAG_WALK_EDGE_TAZ;
5529
{
5530
// set values of tag
5531
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagPropertyTAZ,
5532
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_TAZ,
5533
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("edge"), TL("taz")), parents, color);
5534
// set values of attributes
5535
fillPlanParentAttributes(myTagProperties[currentTag]);
5536
fillWalkCommonAttributes(myTagProperties[currentTag]);
5537
}
5538
currentTag = GNE_TAG_WALK_EDGE_JUNCTION;
5539
{
5540
// set values of tag
5541
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5542
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_JUNCTION,
5543
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("edge"), TL("junction")), parents, color);
5544
// set values of attributes
5545
fillPlanParentAttributes(myTagProperties[currentTag]);
5546
fillWalkCommonAttributes(myTagProperties[currentTag]);
5547
}
5548
currentTag = GNE_TAG_WALK_EDGE_BUSSTOP;
5549
{
5550
// set values of tag
5551
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5552
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_BUSSTOP,
5553
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("edge"), TL("busStop")), parents, color);
5554
// set values of attributes
5555
fillPlanParentAttributes(myTagProperties[currentTag]);
5556
fillWalkCommonAttributes(myTagProperties[currentTag]);
5557
}
5558
currentTag = GNE_TAG_WALK_EDGE_TRAINSTOP;
5559
{
5560
// set values of tag
5561
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5562
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_TRAINSTOP,
5563
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("edge"), TL("trainStop")), parents, color);
5564
// set values of attributes
5565
fillPlanParentAttributes(myTagProperties[currentTag]);
5566
fillWalkCommonAttributes(myTagProperties[currentTag]);
5567
}
5568
currentTag = GNE_TAG_WALK_EDGE_CONTAINERSTOP;
5569
{
5570
// set values of tag
5571
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5572
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_CONTAINERSTOP,
5573
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("edge"), TL("containerStop")), parents, color);
5574
// set values of attributes
5575
fillPlanParentAttributes(myTagProperties[currentTag]);
5576
fillWalkCommonAttributes(myTagProperties[currentTag]);
5577
}
5578
currentTag = GNE_TAG_WALK_EDGE_CHARGINGSTATION;
5579
{
5580
// set values of tag
5581
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5582
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_CHARGINGSTATION,
5583
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("edge"), TL("chargingStation")), parents, color);
5584
// set values of attributes
5585
fillPlanParentAttributes(myTagProperties[currentTag]);
5586
fillWalkCommonAttributes(myTagProperties[currentTag]);
5587
}
5588
currentTag = GNE_TAG_WALK_EDGE_PARKINGAREA;
5589
{
5590
// set values of tag
5591
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5592
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_PARKINGAREA,
5593
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("edge"), TL("parkingArea")), parents, color);
5594
// set values of attributes
5595
fillPlanParentAttributes(myTagProperties[currentTag]);
5596
fillWalkCommonAttributes(myTagProperties[currentTag]);
5597
}
5598
// from taz
5599
currentTag = GNE_TAG_WALK_TAZ_EDGE;
5600
{
5601
// set values of tag
5602
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagPropertyTAZ,
5603
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_EDGE,
5604
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("taz"), TL("taz")), parents, color);
5605
// set values of attributes
5606
fillPlanParentAttributes(myTagProperties[currentTag]);
5607
fillWalkCommonAttributes(myTagProperties[currentTag]);
5608
}
5609
currentTag = GNE_TAG_WALK_TAZ_TAZ;
5610
{
5611
// set values of tag
5612
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagPropertyTAZ,
5613
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_TAZ,
5614
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("taz"), TL("taz")), parents, color);
5615
// set values of attributes
5616
fillPlanParentAttributes(myTagProperties[currentTag]);
5617
fillWalkCommonAttributes(myTagProperties[currentTag]);
5618
}
5619
currentTag = GNE_TAG_WALK_TAZ_JUNCTION;
5620
{
5621
// set values of tag
5622
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagPropertyTAZ,
5623
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_JUNCTION,
5624
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("taz"), TL("junction")), parents, color);
5625
// set values of attributes
5626
fillPlanParentAttributes(myTagProperties[currentTag]);
5627
fillWalkCommonAttributes(myTagProperties[currentTag]);
5628
}
5629
currentTag = GNE_TAG_WALK_TAZ_BUSSTOP;
5630
{
5631
// set values of tag
5632
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagPropertyTAZ,
5633
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_BUSSTOP,
5634
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("taz"), TL("busStop")), parents, color);
5635
// set values of attributes
5636
fillPlanParentAttributes(myTagProperties[currentTag]);
5637
fillWalkCommonAttributes(myTagProperties[currentTag]);
5638
}
5639
currentTag = GNE_TAG_WALK_TAZ_TRAINSTOP;
5640
{
5641
// set values of tag
5642
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagPropertyTAZ,
5643
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_TRAINSTOP,
5644
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("taz"), TL("trainStop")), parents, color);
5645
// set values of attributes
5646
fillPlanParentAttributes(myTagProperties[currentTag]);
5647
fillWalkCommonAttributes(myTagProperties[currentTag]);
5648
}
5649
currentTag = GNE_TAG_WALK_TAZ_CONTAINERSTOP;
5650
{
5651
// set values of tag
5652
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagPropertyTAZ,
5653
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_CONTAINERSTOP,
5654
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("taz"), TL("containerStop")), parents, color);
5655
// set values of attributes
5656
fillPlanParentAttributes(myTagProperties[currentTag]);
5657
fillWalkCommonAttributes(myTagProperties[currentTag]);
5658
}
5659
currentTag = GNE_TAG_WALK_TAZ_CHARGINGSTATION;
5660
{
5661
// set values of tag
5662
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagPropertyTAZ,
5663
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_CHARGINGSTATION,
5664
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("taz"), TL("chargingStation")), parents, color);
5665
// set values of attributes
5666
fillPlanParentAttributes(myTagProperties[currentTag]);
5667
fillWalkCommonAttributes(myTagProperties[currentTag]);
5668
}
5669
currentTag = GNE_TAG_WALK_TAZ_PARKINGAREA;
5670
{
5671
// set values of tag
5672
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagPropertyTAZ,
5673
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_PARKINGAREA,
5674
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("taz"), TL("parkingArea")), parents, color);
5675
// set values of attributes
5676
fillPlanParentAttributes(myTagProperties[currentTag]);
5677
fillWalkCommonAttributes(myTagProperties[currentTag]);
5678
}
5679
// from junction
5680
currentTag = GNE_TAG_WALK_JUNCTION_EDGE;
5681
{
5682
// set values of tag
5683
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5684
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_EDGE,
5685
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("junction"), TL("edge")), parents, color);
5686
// set values of attributes
5687
fillPlanParentAttributes(myTagProperties[currentTag]);
5688
fillWalkCommonAttributes(myTagProperties[currentTag]);
5689
}
5690
currentTag = GNE_TAG_WALK_JUNCTION_TAZ;
5691
{
5692
// set values of tag
5693
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagPropertyTAZ,
5694
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_TAZ,
5695
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("junction"), TL("taz")), parents, color);
5696
// set values of attributes
5697
fillPlanParentAttributes(myTagProperties[currentTag]);
5698
fillWalkCommonAttributes(myTagProperties[currentTag]);
5699
}
5700
currentTag = GNE_TAG_WALK_JUNCTION_JUNCTION;
5701
{
5702
// set values of tag
5703
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5704
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_JUNCTION,
5705
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("junction"), TL("junction")), parents, color);
5706
// set values of attributes
5707
fillPlanParentAttributes(myTagProperties[currentTag]);
5708
fillWalkCommonAttributes(myTagProperties[currentTag]);
5709
}
5710
currentTag = GNE_TAG_WALK_JUNCTION_BUSSTOP;
5711
{
5712
// set values of tag
5713
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5714
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_BUSSTOP,
5715
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("junction"), TL("busStop")), parents, color);
5716
// set values of attributes
5717
fillPlanParentAttributes(myTagProperties[currentTag]);
5718
fillWalkCommonAttributes(myTagProperties[currentTag]);
5719
}
5720
currentTag = GNE_TAG_WALK_JUNCTION_TRAINSTOP;
5721
{
5722
// set values of tag
5723
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5724
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_TRAINSTOP,
5725
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("junction"), TL("trainStop")), parents, color);
5726
// set values of attributes
5727
fillPlanParentAttributes(myTagProperties[currentTag]);
5728
fillWalkCommonAttributes(myTagProperties[currentTag]);
5729
}
5730
currentTag = GNE_TAG_WALK_JUNCTION_CONTAINERSTOP;
5731
{
5732
// set values of tag
5733
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5734
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_CONTAINERSTOP,
5735
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("junction"), TL("containerStop")), parents, color);
5736
// set values of attributes
5737
fillPlanParentAttributes(myTagProperties[currentTag]);
5738
fillWalkCommonAttributes(myTagProperties[currentTag]);
5739
}
5740
currentTag = GNE_TAG_WALK_JUNCTION_CHARGINGSTATION;
5741
{
5742
// set values of tag
5743
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5744
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_CHARGINGSTATION,
5745
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("junction"), TL("chargingStation")), parents, color);
5746
// set values of attributes
5747
fillPlanParentAttributes(myTagProperties[currentTag]);
5748
fillWalkCommonAttributes(myTagProperties[currentTag]);
5749
}
5750
currentTag = GNE_TAG_WALK_JUNCTION_PARKINGAREA;
5751
{
5752
// set values of tag
5753
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5754
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_PARKINGAREA,
5755
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("junction"), TL("parkingArea")), parents, color);
5756
// set values of attributes
5757
fillPlanParentAttributes(myTagProperties[currentTag]);
5758
fillWalkCommonAttributes(myTagProperties[currentTag]);
5759
}
5760
// from busStop
5761
currentTag = GNE_TAG_WALK_BUSSTOP_EDGE;
5762
{
5763
// set values of tag
5764
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5765
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_EDGE,
5766
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("busStop"), TL("edge")), parents, color);
5767
// set values of attributes
5768
fillPlanParentAttributes(myTagProperties[currentTag]);
5769
fillWalkCommonAttributes(myTagProperties[currentTag]);
5770
}
5771
currentTag = GNE_TAG_WALK_BUSSTOP_TAZ;
5772
{
5773
// set values of tag
5774
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagPropertyTAZ,
5775
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_TAZ,
5776
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("busStop"), TL("taz")), parents, color);
5777
// set values of attributes
5778
fillPlanParentAttributes(myTagProperties[currentTag]);
5779
fillWalkCommonAttributes(myTagProperties[currentTag]);
5780
}
5781
currentTag = GNE_TAG_WALK_BUSSTOP_JUNCTION;
5782
{
5783
// set values of tag
5784
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5785
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_JUNCTION,
5786
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("busStop"), TL("junction")), parents, color);
5787
// set values of attributes
5788
fillPlanParentAttributes(myTagProperties[currentTag]);
5789
fillWalkCommonAttributes(myTagProperties[currentTag]);
5790
}
5791
currentTag = GNE_TAG_WALK_BUSSTOP_BUSSTOP;
5792
{
5793
// set values of tag
5794
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5795
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_BUSSTOP,
5796
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("busStop"), TL("busStop")), parents, color);
5797
// set values of attributes
5798
fillPlanParentAttributes(myTagProperties[currentTag]);
5799
fillWalkCommonAttributes(myTagProperties[currentTag]);
5800
}
5801
currentTag = GNE_TAG_WALK_BUSSTOP_TRAINSTOP;
5802
{
5803
// set values of tag
5804
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5805
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_TRAINSTOP,
5806
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("busStop"), TL("trainStop")), parents, color);
5807
// set values of attributes
5808
fillPlanParentAttributes(myTagProperties[currentTag]);
5809
fillWalkCommonAttributes(myTagProperties[currentTag]);
5810
}
5811
currentTag = GNE_TAG_WALK_BUSSTOP_CONTAINERSTOP;
5812
{
5813
// set values of tag
5814
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5815
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_CONTAINERSTOP,
5816
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("busStop"), TL("containerStop")), parents, color);
5817
// set values of attributes
5818
fillPlanParentAttributes(myTagProperties[currentTag]);
5819
fillWalkCommonAttributes(myTagProperties[currentTag]);
5820
}
5821
currentTag = GNE_TAG_WALK_BUSSTOP_CHARGINGSTATION;
5822
{
5823
// set values of tag
5824
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5825
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_CHARGINGSTATION,
5826
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("busStop"), TL("chargingStation")), parents, color);
5827
// set values of attributes
5828
fillPlanParentAttributes(myTagProperties[currentTag]);
5829
fillWalkCommonAttributes(myTagProperties[currentTag]);
5830
}
5831
currentTag = GNE_TAG_WALK_BUSSTOP_PARKINGAREA;
5832
{
5833
// set values of tag
5834
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5835
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_PARKINGAREA,
5836
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("busStop"), TL("parkingArea")), parents, color);
5837
// set values of attributes
5838
fillPlanParentAttributes(myTagProperties[currentTag]);
5839
fillWalkCommonAttributes(myTagProperties[currentTag]);
5840
}
5841
// from trainStop
5842
currentTag = GNE_TAG_WALK_TRAINSTOP_EDGE;
5843
{
5844
// set values of tag
5845
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5846
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_EDGE,
5847
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("trainStop"), TL("edge")), parents, color);
5848
// set values of attributes
5849
fillPlanParentAttributes(myTagProperties[currentTag]);
5850
fillWalkCommonAttributes(myTagProperties[currentTag]);
5851
}
5852
currentTag = GNE_TAG_WALK_TRAINSTOP_TAZ;
5853
{
5854
// set values of tag
5855
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagPropertyTAZ,
5856
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_TAZ,
5857
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("trainStop"), TL("taz")), parents, color);
5858
// set values of attributes
5859
fillPlanParentAttributes(myTagProperties[currentTag]);
5860
fillWalkCommonAttributes(myTagProperties[currentTag]);
5861
}
5862
currentTag = GNE_TAG_WALK_TRAINSTOP_JUNCTION;
5863
{
5864
// set values of tag
5865
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5866
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_JUNCTION,
5867
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("trainStop"), TL("junction")), parents, color);
5868
// set values of attributes
5869
fillPlanParentAttributes(myTagProperties[currentTag]);
5870
fillWalkCommonAttributes(myTagProperties[currentTag]);
5871
}
5872
currentTag = GNE_TAG_WALK_TRAINSTOP_BUSSTOP;
5873
{
5874
// set values of tag
5875
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5876
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_BUSSTOP,
5877
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("trainStop"), TL("busStop")), parents, color);
5878
// set values of attributes
5879
fillPlanParentAttributes(myTagProperties[currentTag]);
5880
fillWalkCommonAttributes(myTagProperties[currentTag]);
5881
}
5882
currentTag = GNE_TAG_WALK_TRAINSTOP_TRAINSTOP;
5883
{
5884
// set values of tag
5885
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5886
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_TRAINSTOP,
5887
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("trainStop"), TL("trainStop")), parents, color);
5888
// set values of attributes
5889
fillPlanParentAttributes(myTagProperties[currentTag]);
5890
fillWalkCommonAttributes(myTagProperties[currentTag]);
5891
}
5892
currentTag = GNE_TAG_WALK_TRAINSTOP_CONTAINERSTOP;
5893
{
5894
// set values of tag
5895
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5896
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_CONTAINERSTOP,
5897
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("trainStop"), TL("containerStop")), parents, color);
5898
// set values of attributes
5899
fillPlanParentAttributes(myTagProperties[currentTag]);
5900
fillWalkCommonAttributes(myTagProperties[currentTag]);
5901
}
5902
currentTag = GNE_TAG_WALK_TRAINSTOP_CHARGINGSTATION;
5903
{
5904
// set values of tag
5905
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5906
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_CHARGINGSTATION,
5907
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("trainStop"), TL("chargingStation")), parents, color);
5908
// set values of attributes
5909
fillPlanParentAttributes(myTagProperties[currentTag]);
5910
fillWalkCommonAttributes(myTagProperties[currentTag]);
5911
}
5912
currentTag = GNE_TAG_WALK_TRAINSTOP_PARKINGAREA;
5913
{
5914
// set values of tag
5915
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5916
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_PARKINGAREA,
5917
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("trainStop"), TL("parkingArea")), parents, color);
5918
// set values of attributes
5919
fillPlanParentAttributes(myTagProperties[currentTag]);
5920
fillWalkCommonAttributes(myTagProperties[currentTag]);
5921
}
5922
// from containerStop
5923
currentTag = GNE_TAG_WALK_CONTAINERSTOP_EDGE;
5924
{
5925
// set values of tag
5926
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5927
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_EDGE,
5928
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("containerStop"), TL("edge")), parents, color);
5929
// set values of attributes
5930
fillPlanParentAttributes(myTagProperties[currentTag]);
5931
fillWalkCommonAttributes(myTagProperties[currentTag]);
5932
}
5933
currentTag = GNE_TAG_WALK_CONTAINERSTOP_TAZ;
5934
{
5935
// set values of tag
5936
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagPropertyTAZ,
5937
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_TAZ,
5938
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("containerStop"), TL("taz")), parents, color);
5939
// set values of attributes
5940
fillPlanParentAttributes(myTagProperties[currentTag]);
5941
fillWalkCommonAttributes(myTagProperties[currentTag]);
5942
}
5943
currentTag = GNE_TAG_WALK_CONTAINERSTOP_JUNCTION;
5944
{
5945
// set values of tag
5946
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5947
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_JUNCTION,
5948
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("containerStop"), TL("junction")), parents, color);
5949
// set values of attributes
5950
fillPlanParentAttributes(myTagProperties[currentTag]);
5951
fillWalkCommonAttributes(myTagProperties[currentTag]);
5952
}
5953
currentTag = GNE_TAG_WALK_CONTAINERSTOP_BUSSTOP;
5954
{
5955
// set values of tag
5956
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5957
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_BUSSTOP,
5958
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("containerStop"), TL("busStop")), parents, color);
5959
// set values of attributes
5960
fillPlanParentAttributes(myTagProperties[currentTag]);
5961
fillWalkCommonAttributes(myTagProperties[currentTag]);
5962
}
5963
currentTag = GNE_TAG_WALK_CONTAINERSTOP_TRAINSTOP;
5964
{
5965
// set values of tag
5966
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5967
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_TRAINSTOP,
5968
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("containerStop"), TL("trainStop")), parents, color);
5969
// set values of attributes
5970
fillPlanParentAttributes(myTagProperties[currentTag]);
5971
fillWalkCommonAttributes(myTagProperties[currentTag]);
5972
}
5973
currentTag = GNE_TAG_WALK_CONTAINERSTOP_CONTAINERSTOP;
5974
{
5975
// set values of tag
5976
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5977
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_CONTAINERSTOP,
5978
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("containerStop"), TL("containerStop")), parents, color);
5979
// set values of attributes
5980
fillPlanParentAttributes(myTagProperties[currentTag]);
5981
fillWalkCommonAttributes(myTagProperties[currentTag]);
5982
}
5983
currentTag = GNE_TAG_WALK_CONTAINERSTOP_CHARGINGSTATION;
5984
{
5985
// set values of tag
5986
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5987
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_CHARGINGSTATION,
5988
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("containerStop"), TL("chargingStation")), parents, color);
5989
// set values of attributes
5990
fillPlanParentAttributes(myTagProperties[currentTag]);
5991
fillWalkCommonAttributes(myTagProperties[currentTag]);
5992
}
5993
currentTag = GNE_TAG_WALK_CONTAINERSTOP_PARKINGAREA;
5994
{
5995
// set values of tag
5996
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
5997
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_PARKINGAREA,
5998
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("containerStop"), TL("parkingArea")), parents, color);
5999
// set values of attributes
6000
fillPlanParentAttributes(myTagProperties[currentTag]);
6001
fillWalkCommonAttributes(myTagProperties[currentTag]);
6002
}
6003
// from chargingStation
6004
currentTag = GNE_TAG_WALK_CHARGINGSTATION_EDGE;
6005
{
6006
// set values of tag
6007
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
6008
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_EDGE,
6009
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("chargingStation"), TL("edge")), parents, color);
6010
// set values of attributes
6011
fillPlanParentAttributes(myTagProperties[currentTag]);
6012
fillWalkCommonAttributes(myTagProperties[currentTag]);
6013
}
6014
currentTag = GNE_TAG_WALK_CHARGINGSTATION_TAZ;
6015
{
6016
// set values of tag
6017
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagPropertyTAZ,
6018
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_TAZ,
6019
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("chargingStation"), TL("taz")), parents, color);
6020
// set values of attributes
6021
fillPlanParentAttributes(myTagProperties[currentTag]);
6022
fillWalkCommonAttributes(myTagProperties[currentTag]);
6023
}
6024
currentTag = GNE_TAG_WALK_CHARGINGSTATION_JUNCTION;
6025
{
6026
// set values of tag
6027
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
6028
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_JUNCTION,
6029
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("chargingStation"), TL("junction")), parents, color);
6030
// set values of attributes
6031
fillPlanParentAttributes(myTagProperties[currentTag]);
6032
fillWalkCommonAttributes(myTagProperties[currentTag]);
6033
}
6034
currentTag = GNE_TAG_WALK_CHARGINGSTATION_BUSSTOP;
6035
{
6036
// set values of tag
6037
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
6038
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_BUSSTOP,
6039
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("chargingStation"), TL("busStop")), parents, color);
6040
// set values of attributes
6041
fillPlanParentAttributes(myTagProperties[currentTag]);
6042
fillWalkCommonAttributes(myTagProperties[currentTag]);
6043
}
6044
currentTag = GNE_TAG_WALK_CHARGINGSTATION_TRAINSTOP;
6045
{
6046
// set values of tag
6047
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
6048
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_TRAINSTOP,
6049
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("chargingStation"), TL("trainStop")), parents, color);
6050
// set values of attributes
6051
fillPlanParentAttributes(myTagProperties[currentTag]);
6052
fillWalkCommonAttributes(myTagProperties[currentTag]);
6053
}
6054
currentTag = GNE_TAG_WALK_CHARGINGSTATION_CONTAINERSTOP;
6055
{
6056
// set values of tag
6057
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
6058
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_CONTAINERSTOP,
6059
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("chargingStation"), TL("containerStop")), parents, color);
6060
// set values of attributes
6061
fillPlanParentAttributes(myTagProperties[currentTag]);
6062
fillWalkCommonAttributes(myTagProperties[currentTag]);
6063
}
6064
currentTag = GNE_TAG_WALK_CHARGINGSTATION_CHARGINGSTATION;
6065
{
6066
// set values of tag
6067
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
6068
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_CHARGINGSTATION,
6069
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("chargingStation"), TL("chargingStation")), parents, color);
6070
// set values of attributes
6071
fillPlanParentAttributes(myTagProperties[currentTag]);
6072
fillWalkCommonAttributes(myTagProperties[currentTag]);
6073
}
6074
currentTag = GNE_TAG_WALK_CHARGINGSTATION_PARKINGAREA;
6075
{
6076
// set values of tag
6077
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
6078
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_PARKINGAREA,
6079
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("chargingStation"), TL("parkingArea")), parents, color);
6080
// set values of attributes
6081
fillPlanParentAttributes(myTagProperties[currentTag]);
6082
fillWalkCommonAttributes(myTagProperties[currentTag]);
6083
}
6084
// from parkingArea
6085
currentTag = GNE_TAG_WALK_PARKINGAREA_EDGE;
6086
{
6087
// set values of tag
6088
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
6089
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_EDGE,
6090
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("parkingArea"), TL("edge")), parents, color);
6091
// set values of attributes
6092
fillPlanParentAttributes(myTagProperties[currentTag]);
6093
fillWalkCommonAttributes(myTagProperties[currentTag]);
6094
}
6095
currentTag = GNE_TAG_WALK_PARKINGAREA_TAZ;
6096
{
6097
// set values of tag
6098
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagPropertyTAZ,
6099
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_TAZ,
6100
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("parkingArea"), TL("taz")), parents, color);
6101
// set values of attributes
6102
fillPlanParentAttributes(myTagProperties[currentTag]);
6103
fillWalkCommonAttributes(myTagProperties[currentTag]);
6104
}
6105
currentTag = GNE_TAG_WALK_PARKINGAREA_JUNCTION;
6106
{
6107
// set values of tag
6108
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
6109
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_JUNCTION,
6110
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("parkingArea"), TL("junction")), parents, color);
6111
// set values of attributes
6112
fillPlanParentAttributes(myTagProperties[currentTag]);
6113
fillWalkCommonAttributes(myTagProperties[currentTag]);
6114
}
6115
currentTag = GNE_TAG_WALK_PARKINGAREA_BUSSTOP;
6116
{
6117
// set values of tag
6118
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
6119
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_BUSSTOP,
6120
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("parkingArea"), TL("busStop")), parents, color);
6121
// set values of attributes
6122
fillPlanParentAttributes(myTagProperties[currentTag]);
6123
fillWalkCommonAttributes(myTagProperties[currentTag]);
6124
}
6125
currentTag = GNE_TAG_WALK_PARKINGAREA_TRAINSTOP;
6126
{
6127
// set values of tag
6128
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
6129
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_TRAINSTOP,
6130
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("parkingArea"), TL("trainStop")), parents, color);
6131
// set values of attributes
6132
fillPlanParentAttributes(myTagProperties[currentTag]);
6133
fillWalkCommonAttributes(myTagProperties[currentTag]);
6134
}
6135
currentTag = GNE_TAG_WALK_PARKINGAREA_CONTAINERSTOP;
6136
{
6137
// set values of tag
6138
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
6139
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_CONTAINERSTOP,
6140
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("parkingArea"), TL("containerStop")), parents, color);
6141
// set values of attributes
6142
fillPlanParentAttributes(myTagProperties[currentTag]);
6143
fillWalkCommonAttributes(myTagProperties[currentTag]);
6144
}
6145
currentTag = GNE_TAG_WALK_PARKINGAREA_CHARGINGSTATION;
6146
{
6147
// set values of tag
6148
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
6149
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_CHARGINGSTATION,
6150
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("parkingArea"), TL("chargingStation")), parents, color);
6151
// set values of attributes
6152
fillPlanParentAttributes(myTagProperties[currentTag]);
6153
fillWalkCommonAttributes(myTagProperties[currentTag]);
6154
}
6155
currentTag = GNE_TAG_WALK_PARKINGAREA_PARKINGAREA;
6156
{
6157
// set values of tag
6158
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_WALKS), tagType, tagProperty,
6159
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_PARKINGAREA,
6160
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Walk"), TL("parkingArea"), TL("parkingArea")), parents, color);
6161
// set values of attributes
6162
fillPlanParentAttributes(myTagProperties[currentTag]);
6163
fillWalkCommonAttributes(myTagProperties[currentTag]);
6164
}
6165
}
6166
6167
6168
void
6169
GNETagPropertiesDatabase::fillPersonPlanRides() {
6170
// declare common tag types and properties
6171
const auto tagType = GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::PERSONPLAN | GNETagProperties::Type::RIDE;
6172
const auto tagProperty = GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOPARAMETERS;
6173
const auto tagPropertyTAZ = GNETagProperties::Property::RTREE | tagProperty;
6174
const auto conflicts = GNETagProperties::Conflicts::NO_CONFLICTS;
6175
const std::vector<SumoXMLTag> parents({SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW});
6176
const unsigned int color = FXRGBA(253, 255, 206, 255);
6177
const GUIIcon icon = GUIIcon::RIDE_EDGE;
6178
const GUIGlObjectType GLType = GUIGlObjectType::GLO_RIDE;
6179
const SumoXMLTag xmlTag = SUMO_TAG_RIDE;
6180
// from edge
6181
SumoXMLTag currentTag = GNE_TAG_RIDE_EDGE_EDGE;
6182
{
6183
// set values of tag
6184
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6185
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_EDGE,
6186
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("edge"), TL("edge")), parents, color);
6187
// set values of attributes
6188
fillPlanParentAttributes(myTagProperties[currentTag]);
6189
fillRideCommonAttributes(myTagProperties[currentTag]);
6190
}
6191
currentTag = GNE_TAG_RIDE_EDGE_TAZ;
6192
{
6193
// set values of tag
6194
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagPropertyTAZ,
6195
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_TAZ,
6196
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("edge"), TL("taz")), parents, color);
6197
// set values of attributes
6198
fillPlanParentAttributes(myTagProperties[currentTag]);
6199
fillRideCommonAttributes(myTagProperties[currentTag]);
6200
}
6201
currentTag = GNE_TAG_RIDE_EDGE_JUNCTION;
6202
{
6203
// set values of tag
6204
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6205
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_JUNCTION,
6206
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("edge"), TL("junction")), parents, color);
6207
// set values of attributes
6208
fillPlanParentAttributes(myTagProperties[currentTag]);
6209
fillRideCommonAttributes(myTagProperties[currentTag]);
6210
}
6211
currentTag = GNE_TAG_RIDE_EDGE_BUSSTOP;
6212
{
6213
// set values of tag
6214
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6215
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_BUSSTOP,
6216
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("edge"), TL("busStop")), parents, color);
6217
// set values of attributes
6218
fillPlanParentAttributes(myTagProperties[currentTag]);
6219
fillRideCommonAttributes(myTagProperties[currentTag]);
6220
}
6221
currentTag = GNE_TAG_RIDE_EDGE_TRAINSTOP;
6222
{
6223
// set values of tag
6224
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6225
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_TRAINSTOP,
6226
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("edge"), TL("trainStop")), parents, color);
6227
// set values of attributes
6228
fillPlanParentAttributes(myTagProperties[currentTag]);
6229
fillRideCommonAttributes(myTagProperties[currentTag]);
6230
}
6231
currentTag = GNE_TAG_RIDE_EDGE_CONTAINERSTOP;
6232
{
6233
// set values of tag
6234
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6235
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_CONTAINERSTOP,
6236
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("edge"), TL("containerStop")), parents, color);
6237
// set values of attributes
6238
fillPlanParentAttributes(myTagProperties[currentTag]);
6239
fillRideCommonAttributes(myTagProperties[currentTag]);
6240
}
6241
currentTag = GNE_TAG_RIDE_EDGE_CHARGINGSTATION;
6242
{
6243
// set values of tag
6244
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6245
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_CHARGINGSTATION,
6246
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("edge"), TL("chargingStation")), parents, color);
6247
// set values of attributes
6248
fillPlanParentAttributes(myTagProperties[currentTag]);
6249
fillRideCommonAttributes(myTagProperties[currentTag]);
6250
}
6251
currentTag = GNE_TAG_RIDE_EDGE_PARKINGAREA;
6252
{
6253
// set values of tag
6254
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6255
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_PARKINGAREA,
6256
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("edge"), TL("parkingArea")), parents, color);
6257
// set values of attributes
6258
fillPlanParentAttributes(myTagProperties[currentTag]);
6259
fillRideCommonAttributes(myTagProperties[currentTag]);
6260
}
6261
// from taz
6262
currentTag = GNE_TAG_RIDE_TAZ_EDGE;
6263
{
6264
// set values of tag
6265
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagPropertyTAZ,
6266
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_EDGE,
6267
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("taz"), TL("taz")), parents, color);
6268
// set values of attributes
6269
fillPlanParentAttributes(myTagProperties[currentTag]);
6270
fillRideCommonAttributes(myTagProperties[currentTag]);
6271
}
6272
currentTag = GNE_TAG_RIDE_TAZ_TAZ;
6273
{
6274
// set values of tag
6275
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagPropertyTAZ,
6276
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_TAZ,
6277
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("taz"), TL("taz")), parents, color);
6278
// set values of attributes
6279
fillPlanParentAttributes(myTagProperties[currentTag]);
6280
fillRideCommonAttributes(myTagProperties[currentTag]);
6281
}
6282
currentTag = GNE_TAG_RIDE_TAZ_JUNCTION;
6283
{
6284
// set values of tag
6285
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagPropertyTAZ,
6286
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_JUNCTION,
6287
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("taz"), TL("junction")), parents, color);
6288
// set values of attributes
6289
fillPlanParentAttributes(myTagProperties[currentTag]);
6290
fillRideCommonAttributes(myTagProperties[currentTag]);
6291
}
6292
currentTag = GNE_TAG_RIDE_TAZ_BUSSTOP;
6293
{
6294
// set values of tag
6295
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagPropertyTAZ,
6296
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_BUSSTOP,
6297
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("taz"), TL("busStop")), parents, color);
6298
// set values of attributes
6299
fillPlanParentAttributes(myTagProperties[currentTag]);
6300
fillRideCommonAttributes(myTagProperties[currentTag]);
6301
}
6302
currentTag = GNE_TAG_RIDE_TAZ_TRAINSTOP;
6303
{
6304
// set values of tag
6305
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagPropertyTAZ,
6306
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_TRAINSTOP,
6307
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("taz"), TL("trainStop")), parents, color);
6308
// set values of attributes
6309
fillPlanParentAttributes(myTagProperties[currentTag]);
6310
fillRideCommonAttributes(myTagProperties[currentTag]);
6311
}
6312
currentTag = GNE_TAG_RIDE_TAZ_CONTAINERSTOP;
6313
{
6314
// set values of tag
6315
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagPropertyTAZ,
6316
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_CONTAINERSTOP,
6317
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("taz"), TL("containerStop")), parents, color);
6318
// set values of attributes
6319
fillPlanParentAttributes(myTagProperties[currentTag]);
6320
fillRideCommonAttributes(myTagProperties[currentTag]);
6321
}
6322
currentTag = GNE_TAG_RIDE_TAZ_CHARGINGSTATION;
6323
{
6324
// set values of tag
6325
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagPropertyTAZ,
6326
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_CHARGINGSTATION,
6327
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("taz"), TL("chargingStation")), parents, color);
6328
// set values of attributes
6329
fillPlanParentAttributes(myTagProperties[currentTag]);
6330
fillRideCommonAttributes(myTagProperties[currentTag]);
6331
}
6332
currentTag = GNE_TAG_RIDE_TAZ_PARKINGAREA;
6333
{
6334
// set values of tag
6335
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagPropertyTAZ,
6336
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_PARKINGAREA,
6337
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("taz"), TL("parkingArea")), parents, color);
6338
// set values of attributes
6339
fillPlanParentAttributes(myTagProperties[currentTag]);
6340
fillRideCommonAttributes(myTagProperties[currentTag]);
6341
}
6342
// from junction
6343
currentTag = GNE_TAG_RIDE_JUNCTION_EDGE;
6344
{
6345
// set values of tag
6346
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6347
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_EDGE,
6348
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("junction"), TL("edge")), parents, color);
6349
// set values of attributes
6350
fillPlanParentAttributes(myTagProperties[currentTag]);
6351
fillRideCommonAttributes(myTagProperties[currentTag]);
6352
}
6353
currentTag = GNE_TAG_RIDE_JUNCTION_TAZ;
6354
{
6355
// set values of tag
6356
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagPropertyTAZ,
6357
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_TAZ,
6358
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("junction"), TL("taz")), parents, color);
6359
// set values of attributes
6360
fillPlanParentAttributes(myTagProperties[currentTag]);
6361
fillRideCommonAttributes(myTagProperties[currentTag]);
6362
}
6363
currentTag = GNE_TAG_RIDE_JUNCTION_JUNCTION;
6364
{
6365
// set values of tag
6366
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6367
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_JUNCTION,
6368
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("junction"), TL("junction")), parents, color);
6369
// set values of attributes
6370
fillPlanParentAttributes(myTagProperties[currentTag]);
6371
fillRideCommonAttributes(myTagProperties[currentTag]);
6372
}
6373
currentTag = GNE_TAG_RIDE_JUNCTION_BUSSTOP;
6374
{
6375
// set values of tag
6376
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6377
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_BUSSTOP,
6378
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("junction"), TL("busStop")), parents, color);
6379
// set values of attributes
6380
fillPlanParentAttributes(myTagProperties[currentTag]);
6381
fillRideCommonAttributes(myTagProperties[currentTag]);
6382
}
6383
currentTag = GNE_TAG_RIDE_JUNCTION_TRAINSTOP;
6384
{
6385
// set values of tag
6386
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6387
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_TRAINSTOP,
6388
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("junction"), TL("trainStop")), parents, color);
6389
// set values of attributes
6390
fillPlanParentAttributes(myTagProperties[currentTag]);
6391
fillRideCommonAttributes(myTagProperties[currentTag]);
6392
}
6393
currentTag = GNE_TAG_RIDE_JUNCTION_CONTAINERSTOP;
6394
{
6395
// set values of tag
6396
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6397
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_CONTAINERSTOP,
6398
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("junction"), TL("containerStop")), parents, color);
6399
// set values of attributes
6400
fillPlanParentAttributes(myTagProperties[currentTag]);
6401
fillRideCommonAttributes(myTagProperties[currentTag]);
6402
}
6403
currentTag = GNE_TAG_RIDE_JUNCTION_CHARGINGSTATION;
6404
{
6405
// set values of tag
6406
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6407
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_CHARGINGSTATION,
6408
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("junction"), TL("chargingStation")), parents, color);
6409
// set values of attributes
6410
fillPlanParentAttributes(myTagProperties[currentTag]);
6411
fillRideCommonAttributes(myTagProperties[currentTag]);
6412
}
6413
currentTag = GNE_TAG_RIDE_JUNCTION_PARKINGAREA;
6414
{
6415
// set values of tag
6416
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6417
GNETagProperties::Over::FROM_JUNCTION | GNETagProperties::Over::TO_PARKINGAREA,
6418
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("junction"), TL("parkingArea")), parents, color);
6419
// set values of attributes
6420
fillPlanParentAttributes(myTagProperties[currentTag]);
6421
fillRideCommonAttributes(myTagProperties[currentTag]);
6422
}
6423
// from busStop
6424
currentTag = GNE_TAG_RIDE_BUSSTOP_EDGE;
6425
{
6426
// set values of tag
6427
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6428
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_EDGE,
6429
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("busStop"), TL("edge")), parents, color);
6430
// set values of attributes
6431
fillPlanParentAttributes(myTagProperties[currentTag]);
6432
fillRideCommonAttributes(myTagProperties[currentTag]);
6433
}
6434
currentTag = GNE_TAG_RIDE_BUSSTOP_TAZ;
6435
{
6436
// set values of tag
6437
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagPropertyTAZ,
6438
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_TAZ,
6439
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("busStop"), TL("taz")), parents, color);
6440
// set values of attributes
6441
fillPlanParentAttributes(myTagProperties[currentTag]);
6442
fillRideCommonAttributes(myTagProperties[currentTag]);
6443
}
6444
currentTag = GNE_TAG_RIDE_BUSSTOP_JUNCTION;
6445
{
6446
// set values of tag
6447
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6448
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_JUNCTION,
6449
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("busStop"), TL("junction")), parents, color);
6450
// set values of attributes
6451
fillPlanParentAttributes(myTagProperties[currentTag]);
6452
fillRideCommonAttributes(myTagProperties[currentTag]);
6453
}
6454
currentTag = GNE_TAG_RIDE_BUSSTOP_BUSSTOP;
6455
{
6456
// set values of tag
6457
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6458
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_BUSSTOP,
6459
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("busStop"), TL("busStop")), parents, color);
6460
// set values of attributes
6461
fillPlanParentAttributes(myTagProperties[currentTag]);
6462
fillRideCommonAttributes(myTagProperties[currentTag]);
6463
}
6464
currentTag = GNE_TAG_RIDE_BUSSTOP_TRAINSTOP;
6465
{
6466
// set values of tag
6467
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6468
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_TRAINSTOP,
6469
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("busStop"), TL("trainStop")), parents, color);
6470
// set values of attributes
6471
fillPlanParentAttributes(myTagProperties[currentTag]);
6472
fillRideCommonAttributes(myTagProperties[currentTag]);
6473
}
6474
currentTag = GNE_TAG_RIDE_BUSSTOP_CONTAINERSTOP;
6475
{
6476
// set values of tag
6477
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6478
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_CONTAINERSTOP,
6479
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("busStop"), TL("containerStop")), parents, color);
6480
// set values of attributes
6481
fillPlanParentAttributes(myTagProperties[currentTag]);
6482
fillRideCommonAttributes(myTagProperties[currentTag]);
6483
}
6484
currentTag = GNE_TAG_RIDE_BUSSTOP_CHARGINGSTATION;
6485
{
6486
// set values of tag
6487
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6488
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_CHARGINGSTATION,
6489
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("busStop"), TL("chargingStation")), parents, color);
6490
// set values of attributes
6491
fillPlanParentAttributes(myTagProperties[currentTag]);
6492
fillRideCommonAttributes(myTagProperties[currentTag]);
6493
}
6494
currentTag = GNE_TAG_RIDE_BUSSTOP_PARKINGAREA;
6495
{
6496
// set values of tag
6497
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6498
GNETagProperties::Over::FROM_BUSSTOP | GNETagProperties::Over::TO_PARKINGAREA,
6499
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("busStop"), TL("parkingArea")), parents, color);
6500
// set values of attributes
6501
fillPlanParentAttributes(myTagProperties[currentTag]);
6502
fillRideCommonAttributes(myTagProperties[currentTag]);
6503
}
6504
// from trainStop
6505
currentTag = GNE_TAG_RIDE_TRAINSTOP_EDGE;
6506
{
6507
// set values of tag
6508
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6509
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_EDGE,
6510
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("trainStop"), TL("edge")), parents, color);
6511
// set values of attributes
6512
fillPlanParentAttributes(myTagProperties[currentTag]);
6513
fillRideCommonAttributes(myTagProperties[currentTag]);
6514
}
6515
currentTag = GNE_TAG_RIDE_TRAINSTOP_TAZ;
6516
{
6517
// set values of tag
6518
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagPropertyTAZ,
6519
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_TAZ,
6520
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("trainStop"), TL("taz")), parents, color);
6521
// set values of attributes
6522
fillPlanParentAttributes(myTagProperties[currentTag]);
6523
fillRideCommonAttributes(myTagProperties[currentTag]);
6524
}
6525
currentTag = GNE_TAG_RIDE_TRAINSTOP_JUNCTION;
6526
{
6527
// set values of tag
6528
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6529
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_JUNCTION,
6530
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("trainStop"), TL("junction")), parents, color);
6531
// set values of attributes
6532
fillPlanParentAttributes(myTagProperties[currentTag]);
6533
fillRideCommonAttributes(myTagProperties[currentTag]);
6534
}
6535
currentTag = GNE_TAG_RIDE_TRAINSTOP_BUSSTOP;
6536
{
6537
// set values of tag
6538
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6539
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_BUSSTOP,
6540
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("trainStop"), TL("busStop")), parents, color);
6541
// set values of attributes
6542
fillPlanParentAttributes(myTagProperties[currentTag]);
6543
fillRideCommonAttributes(myTagProperties[currentTag]);
6544
}
6545
currentTag = GNE_TAG_RIDE_TRAINSTOP_TRAINSTOP;
6546
{
6547
// set values of tag
6548
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6549
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_TRAINSTOP,
6550
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("trainStop"), TL("trainStop")), parents, color);
6551
// set values of attributes
6552
fillPlanParentAttributes(myTagProperties[currentTag]);
6553
fillRideCommonAttributes(myTagProperties[currentTag]);
6554
}
6555
currentTag = GNE_TAG_RIDE_TRAINSTOP_CONTAINERSTOP;
6556
{
6557
// set values of tag
6558
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6559
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_CONTAINERSTOP,
6560
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("trainStop"), TL("containerStop")), parents, color);
6561
// set values of attributes
6562
fillPlanParentAttributes(myTagProperties[currentTag]);
6563
fillRideCommonAttributes(myTagProperties[currentTag]);
6564
}
6565
currentTag = GNE_TAG_RIDE_TRAINSTOP_CHARGINGSTATION;
6566
{
6567
// set values of tag
6568
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6569
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_CHARGINGSTATION,
6570
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("trainStop"), TL("chargingStation")), parents, color);
6571
// set values of attributes
6572
fillPlanParentAttributes(myTagProperties[currentTag]);
6573
fillRideCommonAttributes(myTagProperties[currentTag]);
6574
}
6575
currentTag = GNE_TAG_RIDE_TRAINSTOP_PARKINGAREA;
6576
{
6577
// set values of tag
6578
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6579
GNETagProperties::Over::FROM_TRAINSTOP | GNETagProperties::Over::TO_PARKINGAREA,
6580
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("trainStop"), TL("parkingArea")), parents, color);
6581
// set values of attributes
6582
fillPlanParentAttributes(myTagProperties[currentTag]);
6583
fillRideCommonAttributes(myTagProperties[currentTag]);
6584
}
6585
// from containerStop
6586
currentTag = GNE_TAG_RIDE_CONTAINERSTOP_EDGE;
6587
{
6588
// set values of tag
6589
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6590
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_EDGE,
6591
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("containerStop"), TL("edge")), parents, color);
6592
// set values of attributes
6593
fillPlanParentAttributes(myTagProperties[currentTag]);
6594
fillRideCommonAttributes(myTagProperties[currentTag]);
6595
}
6596
currentTag = GNE_TAG_RIDE_CONTAINERSTOP_TAZ;
6597
{
6598
// set values of tag
6599
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagPropertyTAZ,
6600
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_TAZ,
6601
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("containerStop"), TL("taz")), parents, color);
6602
// set values of attributes
6603
fillPlanParentAttributes(myTagProperties[currentTag]);
6604
fillRideCommonAttributes(myTagProperties[currentTag]);
6605
}
6606
currentTag = GNE_TAG_RIDE_CONTAINERSTOP_JUNCTION;
6607
{
6608
// set values of tag
6609
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6610
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_JUNCTION,
6611
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("containerStop"), TL("junction")), parents, color);
6612
// set values of attributes
6613
fillPlanParentAttributes(myTagProperties[currentTag]);
6614
fillRideCommonAttributes(myTagProperties[currentTag]);
6615
}
6616
currentTag = GNE_TAG_RIDE_CONTAINERSTOP_BUSSTOP;
6617
{
6618
// set values of tag
6619
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6620
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_BUSSTOP,
6621
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("containerStop"), TL("busStop")), parents, color);
6622
// set values of attributes
6623
fillPlanParentAttributes(myTagProperties[currentTag]);
6624
fillRideCommonAttributes(myTagProperties[currentTag]);
6625
}
6626
currentTag = GNE_TAG_RIDE_CONTAINERSTOP_TRAINSTOP;
6627
{
6628
// set values of tag
6629
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6630
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_TRAINSTOP,
6631
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("containerStop"), TL("trainStop")), parents, color);
6632
// set values of attributes
6633
fillPlanParentAttributes(myTagProperties[currentTag]);
6634
fillRideCommonAttributes(myTagProperties[currentTag]);
6635
}
6636
currentTag = GNE_TAG_RIDE_CONTAINERSTOP_CONTAINERSTOP;
6637
{
6638
// set values of tag
6639
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6640
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_CONTAINERSTOP,
6641
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("containerStop"), TL("containerStop")), parents, color);
6642
// set values of attributes
6643
fillPlanParentAttributes(myTagProperties[currentTag]);
6644
fillRideCommonAttributes(myTagProperties[currentTag]);
6645
}
6646
currentTag = GNE_TAG_RIDE_CONTAINERSTOP_CHARGINGSTATION;
6647
{
6648
// set values of tag
6649
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6650
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_CHARGINGSTATION,
6651
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("containerStop"), TL("chargingStation")), parents, color);
6652
// set values of attributes
6653
fillPlanParentAttributes(myTagProperties[currentTag]);
6654
fillRideCommonAttributes(myTagProperties[currentTag]);
6655
}
6656
currentTag = GNE_TAG_RIDE_CONTAINERSTOP_PARKINGAREA;
6657
{
6658
// set values of tag
6659
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6660
GNETagProperties::Over::FROM_CONTAINERSTOP | GNETagProperties::Over::TO_PARKINGAREA,
6661
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("containerStop"), TL("parkingArea")), parents, color);
6662
// set values of attributes
6663
fillPlanParentAttributes(myTagProperties[currentTag]);
6664
fillRideCommonAttributes(myTagProperties[currentTag]);
6665
}
6666
// from chargingStation
6667
currentTag = GNE_TAG_RIDE_CHARGINGSTATION_EDGE;
6668
{
6669
// set values of tag
6670
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6671
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_EDGE,
6672
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("chargingStation"), TL("edge")), parents, color);
6673
// set values of attributes
6674
fillPlanParentAttributes(myTagProperties[currentTag]);
6675
fillRideCommonAttributes(myTagProperties[currentTag]);
6676
}
6677
currentTag = GNE_TAG_RIDE_CHARGINGSTATION_TAZ;
6678
{
6679
// set values of tag
6680
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagPropertyTAZ,
6681
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_TAZ,
6682
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("chargingStation"), TL("taz")), parents, color);
6683
// set values of attributes
6684
fillPlanParentAttributes(myTagProperties[currentTag]);
6685
fillRideCommonAttributes(myTagProperties[currentTag]);
6686
}
6687
currentTag = GNE_TAG_RIDE_CHARGINGSTATION_JUNCTION;
6688
{
6689
// set values of tag
6690
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6691
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_JUNCTION,
6692
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("chargingStation"), TL("junction")), parents, color);
6693
// set values of attributes
6694
fillPlanParentAttributes(myTagProperties[currentTag]);
6695
fillRideCommonAttributes(myTagProperties[currentTag]);
6696
}
6697
currentTag = GNE_TAG_RIDE_CHARGINGSTATION_BUSSTOP;
6698
{
6699
// set values of tag
6700
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6701
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_BUSSTOP,
6702
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("chargingStation"), TL("busStop")), parents, color);
6703
// set values of attributes
6704
fillPlanParentAttributes(myTagProperties[currentTag]);
6705
fillRideCommonAttributes(myTagProperties[currentTag]);
6706
}
6707
currentTag = GNE_TAG_RIDE_CHARGINGSTATION_TRAINSTOP;
6708
{
6709
// set values of tag
6710
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6711
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_TRAINSTOP,
6712
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("chargingStation"), TL("trainStop")), parents, color);
6713
// set values of attributes
6714
fillPlanParentAttributes(myTagProperties[currentTag]);
6715
fillRideCommonAttributes(myTagProperties[currentTag]);
6716
}
6717
currentTag = GNE_TAG_RIDE_CHARGINGSTATION_CONTAINERSTOP;
6718
{
6719
// set values of tag
6720
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6721
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_CONTAINERSTOP,
6722
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("chargingStation"), TL("containerStop")), parents, color);
6723
// set values of attributes
6724
fillPlanParentAttributes(myTagProperties[currentTag]);
6725
fillRideCommonAttributes(myTagProperties[currentTag]);
6726
}
6727
currentTag = GNE_TAG_RIDE_CHARGINGSTATION_CHARGINGSTATION;
6728
{
6729
// set values of tag
6730
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6731
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_CHARGINGSTATION,
6732
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("chargingStation"), TL("chargingStation")), parents, color);
6733
// set values of attributes
6734
fillPlanParentAttributes(myTagProperties[currentTag]);
6735
fillRideCommonAttributes(myTagProperties[currentTag]);
6736
}
6737
currentTag = GNE_TAG_RIDE_CHARGINGSTATION_PARKINGAREA;
6738
{
6739
// set values of tag
6740
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6741
GNETagProperties::Over::FROM_CHARGINGSTATION | GNETagProperties::Over::TO_PARKINGAREA,
6742
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("chargingStation"), TL("parkingArea")), parents, color);
6743
// set values of attributes
6744
fillPlanParentAttributes(myTagProperties[currentTag]);
6745
fillRideCommonAttributes(myTagProperties[currentTag]);
6746
}
6747
// from parkingArea
6748
currentTag = GNE_TAG_RIDE_PARKINGAREA_EDGE;
6749
{
6750
// set values of tag
6751
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6752
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_EDGE,
6753
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("parkingArea"), TL("edge")), parents, color);
6754
// set values of attributes
6755
fillPlanParentAttributes(myTagProperties[currentTag]);
6756
fillRideCommonAttributes(myTagProperties[currentTag]);
6757
}
6758
currentTag = GNE_TAG_RIDE_PARKINGAREA_TAZ;
6759
{
6760
// set values of tag
6761
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagPropertyTAZ,
6762
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_TAZ,
6763
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("parkingArea"), TL("taz")), parents, color);
6764
// set values of attributes
6765
fillPlanParentAttributes(myTagProperties[currentTag]);
6766
fillRideCommonAttributes(myTagProperties[currentTag]);
6767
}
6768
currentTag = GNE_TAG_RIDE_PARKINGAREA_JUNCTION;
6769
{
6770
// set values of tag
6771
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6772
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_JUNCTION,
6773
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("parkingArea"), TL("junction")), parents, color);
6774
// set values of attributes
6775
fillPlanParentAttributes(myTagProperties[currentTag]);
6776
fillRideCommonAttributes(myTagProperties[currentTag]);
6777
}
6778
currentTag = GNE_TAG_RIDE_PARKINGAREA_BUSSTOP;
6779
{
6780
// set values of tag
6781
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6782
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_BUSSTOP,
6783
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("parkingArea"), TL("busStop")), parents, color);
6784
// set values of attributes
6785
fillPlanParentAttributes(myTagProperties[currentTag]);
6786
fillRideCommonAttributes(myTagProperties[currentTag]);
6787
}
6788
currentTag = GNE_TAG_RIDE_PARKINGAREA_TRAINSTOP;
6789
{
6790
// set values of tag
6791
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6792
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_TRAINSTOP,
6793
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("parkingArea"), TL("trainStop")), parents, color);
6794
// set values of attributes
6795
fillPlanParentAttributes(myTagProperties[currentTag]);
6796
fillRideCommonAttributes(myTagProperties[currentTag]);
6797
}
6798
currentTag = GNE_TAG_RIDE_PARKINGAREA_CONTAINERSTOP;
6799
{
6800
// set values of tag
6801
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6802
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_CONTAINERSTOP,
6803
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("parkingArea"), TL("containerStop")), parents, color);
6804
// set values of attributes
6805
fillPlanParentAttributes(myTagProperties[currentTag]);
6806
fillRideCommonAttributes(myTagProperties[currentTag]);
6807
}
6808
currentTag = GNE_TAG_RIDE_PARKINGAREA_CHARGINGSTATION;
6809
{
6810
// set values of tag
6811
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6812
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_CHARGINGSTATION,
6813
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("parkingArea"), TL("chargingStation")), parents, color);
6814
// set values of attributes
6815
fillPlanParentAttributes(myTagProperties[currentTag]);
6816
fillRideCommonAttributes(myTagProperties[currentTag]);
6817
}
6818
currentTag = GNE_TAG_RIDE_PARKINGAREA_PARKINGAREA;
6819
{
6820
// set values of tag
6821
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_RIDES), tagType, tagProperty,
6822
GNETagProperties::Over::FROM_PARKINGAREA | GNETagProperties::Over::TO_PARKINGAREA,
6823
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %->%", TL("Ride"), TL("parkingArea"), TL("parkingArea")), parents, color);
6824
// set values of attributes
6825
fillPlanParentAttributes(myTagProperties[currentTag]);
6826
fillRideCommonAttributes(myTagProperties[currentTag]);
6827
}
6828
}
6829
6830
6831
void
6832
GNETagPropertiesDatabase::fillPersonStopElements() {
6833
// declare common tag types and properties
6834
const auto tagType = GNETagProperties::Type::DEMANDELEMENT | GNETagProperties::Type::PERSONPLAN | GNETagProperties::Type::STOP_PERSON;
6835
const auto tagProperty = GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOPARAMETERS;
6836
const auto conflicts = GNETagProperties::Conflicts::NO_CONFLICTS;
6837
const std::vector<SumoXMLTag> parents({SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW});
6838
const unsigned int color = FXRGBA(255, 213, 213, 255);
6839
const GUIIcon icon = GUIIcon::STOPELEMENT;
6840
const GUIGlObjectType GLType = GUIGlObjectType::GLO_STOP_PLAN;
6841
const SumoXMLTag xmlTag = SUMO_TAG_STOP;
6842
// fill tags
6843
SumoXMLTag currentTag = GNE_TAG_STOPPERSON_EDGE;
6844
{
6845
// set values of tag
6846
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONSTOPS), tagType, tagProperty,
6847
GNETagProperties::Over::EDGE,
6848
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %", TL("PersonStop"), TL("edge")), parents, color);
6849
6850
// set values of attributes
6851
fillPlanParentAttributes(myTagProperties[currentTag]);
6852
fillPlanStopCommonAttributes(myTagProperties[currentTag]);
6853
}
6854
currentTag = GNE_TAG_STOPPERSON_BUSSTOP;
6855
{
6856
// set values of tag
6857
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONSTOPS), tagType, tagProperty,
6858
GNETagProperties::Over::BUSSTOP,
6859
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %", TL("PersonStop"), TL("busStop")), parents, color);
6860
6861
// set values of attributes
6862
fillPlanParentAttributes(myTagProperties[currentTag]);
6863
fillPlanStopCommonAttributes(myTagProperties[currentTag]);
6864
}
6865
currentTag = GNE_TAG_STOPPERSON_TRAINSTOP;
6866
{
6867
// set values of tag
6868
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONSTOPS), tagType, tagProperty,
6869
GNETagProperties::Over::TRAINSTOP,
6870
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %", TL("PersonStop"), TL("trainStop")), parents, color);
6871
6872
// set values of attributes
6873
fillPlanParentAttributes(myTagProperties[currentTag]);
6874
fillPlanStopCommonAttributes(myTagProperties[currentTag]);
6875
}
6876
currentTag = GNE_TAG_STOPPERSON_CONTAINERSTOP;
6877
{
6878
// set values of tag
6879
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONSTOPS), tagType, tagProperty,
6880
GNETagProperties::Over::CONTAINERSTOP,
6881
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %", TL("PersonStop"), TL("containerStop")), parents, color);
6882
6883
// set values of attributes
6884
fillPlanParentAttributes(myTagProperties[currentTag]);
6885
fillPlanStopCommonAttributes(myTagProperties[currentTag]);
6886
}
6887
currentTag = GNE_TAG_STOPPERSON_CHARGINGSTATION;
6888
{
6889
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONSTOPS), tagType, tagProperty,
6890
GNETagProperties::Over::CHARGINGSTATION,
6891
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %", TL("PersonStop"), TL("chargingStation")), parents, color);
6892
6893
// set values of attributes
6894
fillPlanParentAttributes(myTagProperties[currentTag]);
6895
fillPlanStopCommonAttributes(myTagProperties[currentTag]);
6896
}
6897
currentTag = GNE_TAG_STOPPERSON_PARKINGAREA;
6898
{
6899
// set values of tag
6900
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_PERSONSTOPS), tagType, tagProperty,
6901
GNETagProperties::Over::PARKINGAREA,
6902
conflicts, icon, GLType, xmlTag, StringUtils::format("%: %", TL("PersonStop"), TL("parkingArea")), parents, color);
6903
6904
// set values of attributes
6905
fillPlanParentAttributes(myTagProperties[currentTag]);
6906
fillPlanStopCommonAttributes(myTagProperties[currentTag]);
6907
}
6908
}
6909
6910
6911
void
6912
GNETagPropertiesDatabase::fillCommonAttributes(GNETagProperties* tagProperties) {
6913
GNEAttributeProperties* commonAttribute = nullptr;
6914
// check if element can be reparent
6915
if (tagProperties->canCenterCameraAfterCreation()) {
6916
commonAttribute = new GNEAttributeProperties(tagProperties, GNE_ATTR_CENTER_AFTER_CREATION,
6917
GNEAttributeProperties::Property::BOOL,
6918
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::NETEDITEDITOR,
6919
TLF("Center view over element % after creation", tagProperties->getTagStr()));
6920
commonAttribute->setAlternativeName(TL("center view"));
6921
}
6922
// fill file attributes
6923
if (!tagProperties->isChild() && !tagProperties->isSymbol()) {
6924
if (tagProperties->isAdditionalElement()) {
6925
commonAttribute = new GNEAttributeProperties(tagProperties, GNE_ATTR_ADDITIONAL_FILE,
6926
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::FILESAVE | GNEAttributeProperties::Property::DEFAULTVALUE,
6927
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::NETEDITEDITOR,
6928
TL("The path to the additional file"));
6929
commonAttribute->setFilenameExtensions(SUMOXMLDefinitions::AdditionalFileExtensions.getStrings());
6930
commonAttribute->setAlternativeName(TL("add. file"));
6931
} else if (tagProperties->isDemandElement()) {
6932
commonAttribute = new GNEAttributeProperties(tagProperties, GNE_ATTR_DEMAND_FILE,
6933
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::FILESAVE | GNEAttributeProperties::Property::DEFAULTVALUE,
6934
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::NETEDITEDITOR,
6935
TL("The path to the route file"));
6936
commonAttribute->setFilenameExtensions(SUMOXMLDefinitions::RouteFileExtensions.getStrings());
6937
commonAttribute->setAlternativeName(TL("route file"));
6938
} else if (tagProperties->isDataElement()) {
6939
commonAttribute = new GNEAttributeProperties(tagProperties, GNE_ATTR_DATA_FILE,
6940
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::FILESAVE | GNEAttributeProperties::Property::DEFAULTVALUE,
6941
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::NETEDITEDITOR,
6942
TL("The path to the data file"));
6943
commonAttribute->setFilenameExtensions(SUMOXMLDefinitions::EdgeDataFileExtensions.getStrings());
6944
commonAttribute->setAlternativeName(TL("data file"));
6945
} else if (tagProperties->isMeanData()) {
6946
commonAttribute = new GNEAttributeProperties(tagProperties, GNE_ATTR_MEANDATA_FILE,
6947
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::FILESAVE | GNEAttributeProperties::Property::DEFAULTVALUE,
6948
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::NETEDITEDITOR,
6949
TL("The path to the data file"));
6950
commonAttribute->setFilenameExtensions(SUMOXMLDefinitions::MeanDataFileExtensions.getStrings());
6951
commonAttribute->setAlternativeName(TL("mean file"));
6952
}
6953
}
6954
/*
6955
new GNEAttributeProperties(myTagProperties[currentTag], relativePath,
6956
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
6957
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
6958
TL("Enable or disable use image file as a relative path"),
6959
toString(Shape::DEFAULT_RELATIVEPATH));
6960
*/
6961
// if this is a drawable element, add front and select attributes
6962
if (tagProperties->isDrawable()) {
6963
commonAttribute = new GNEAttributeProperties(tagProperties, GNE_ATTR_FRONTELEMENT,
6964
GNEAttributeProperties::Property::BOOL,
6965
GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::NETEDITEDITOR,
6966
TL("Toggle front element"));
6967
6968
commonAttribute = new GNEAttributeProperties(tagProperties, GNE_ATTR_SELECTED,
6969
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
6970
GNEAttributeProperties::Edit::NETEDITEDITOR,
6971
TL("Toggle select element"),
6972
GNEAttributeCarrier::FALSE_STR);
6973
}
6974
// check if element can be reparent
6975
if (tagProperties->canBeReparent()) {
6976
commonAttribute = new GNEAttributeProperties(tagProperties, GNE_ATTR_PARENT,
6977
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UPDATEGEOMETRY,
6978
GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::NETEDITEDITOR,
6979
TL("Change element parent"));
6980
}
6981
// check if element has parameters
6982
if (tagProperties->hasParameters()) {
6983
commonAttribute = new GNEAttributeProperties(tagProperties, GNE_ATTR_PARAMETERS,
6984
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
6985
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
6986
TL("Generic parameters (Format: key1=value1|key2=value2|..."));
6987
commonAttribute->setAlternativeName(TL("parameters"));
6988
}
6989
}
6990
6991
6992
void
6993
GNETagPropertiesDatabase::fillCommonStoppingPlaceAttributes(GNETagProperties* tagProperties, const bool includeColor) {
6994
// set values of attributes
6995
fillIDAttribute(tagProperties, true);
6996
6997
fillLaneAttribute(tagProperties, false);
6998
6999
new GNEAttributeProperties(tagProperties, SUMO_ATTR_STARTPOS,
7000
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
7001
GNEAttributeProperties::Edit::EDITMODE,
7002
TL("The begin position on the lane (the lower position on the lane) in meters"),
7003
GNEAttributeCarrier::LANE_START, "INVALID_DOUBLE");
7004
7005
new GNEAttributeProperties(tagProperties, SUMO_ATTR_ENDPOS,
7006
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
7007
GNEAttributeProperties::Edit::EDITMODE,
7008
TL("The end position on the lane (the higher position on the lane) in meters, must be larger than startPos by more than 0.1m"),
7009
GNEAttributeCarrier::LANE_END, "INVALID_DOUBLE");
7010
7011
fillFriendlyPosAttribute(tagProperties);
7012
7013
fillNameAttribute(tagProperties);
7014
7015
if (includeColor) {
7016
fillColorAttribute(tagProperties, "");
7017
}
7018
7019
new GNEAttributeProperties(tagProperties, SUMO_ATTR_ANGLE,
7020
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::ANGLE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
7021
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7022
TLF("Angle of %", tagProperties->getTagStr()),
7023
"0");
7024
7025
// netedit attributes
7026
new GNEAttributeProperties(tagProperties, GNE_ATTR_SIZE,
7027
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::DEFAULTVALUE,
7028
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::NETEDITEDITOR,
7029
TLF("Length of %", tagProperties->getTagStr()),
7030
"10");
7031
7032
auto forceSize = new GNEAttributeProperties(tagProperties, GNE_ATTR_FORCESIZE,
7033
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
7034
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::NETEDITEDITOR,
7035
TL("Force size during creation"),
7036
GNEAttributeCarrier::FALSE_STR);
7037
forceSize->setAlternativeName(TL("force size"));
7038
7039
auto reference = new GNEAttributeProperties(tagProperties, GNE_ATTR_REFERENCE,
7040
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE,
7041
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::NETEDITEDITOR,
7042
TLF("Reference position used for creating %", tagProperties->getTagStr()));
7043
reference->setDiscreteValues(SUMOXMLDefinitions::ReferencePositions.getStrings());
7044
}
7045
7046
7047
void
7048
GNETagPropertiesDatabase::fillCommonPOIAttributes(GNETagProperties* tagProperties) {
7049
// fill POI attributes
7050
fillNameAttribute(tagProperties);
7051
7052
fillColorAttribute(tagProperties, "red");
7053
7054
new GNEAttributeProperties(tagProperties, SUMO_ATTR_TYPE,
7055
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
7056
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7057
TL("A typename for the POI"),
7058
toString(Shape::DEFAULT_TYPE));
7059
7060
auto icon = new GNEAttributeProperties(tagProperties, SUMO_ATTR_ICON,
7061
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Property::DEFAULTVALUE,
7062
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7063
TL("POI Icon"),
7064
SUMOXMLDefinitions::POIIcons.getString(POIIcon::NONE));
7065
icon->setDiscreteValues(SUMOXMLDefinitions::POIIcons.getStrings());
7066
7067
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LAYER,
7068
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE,
7069
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7070
TL("The layer of the POI for drawing and selecting"),
7071
toString(Shape::DEFAULT_LAYER_POI));
7072
7073
new GNEAttributeProperties(tagProperties, SUMO_ATTR_WIDTH,
7074
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7075
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7076
TL("Width of rendered image in meters"),
7077
toString(Shape::DEFAULT_IMG_WIDTH));
7078
7079
new GNEAttributeProperties(tagProperties, SUMO_ATTR_HEIGHT,
7080
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7081
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7082
TL("Height of rendered image in meters"),
7083
toString(Shape::DEFAULT_IMG_HEIGHT));
7084
7085
fillImgFileAttribute(tagProperties, false);
7086
7087
new GNEAttributeProperties(tagProperties, SUMO_ATTR_ANGLE,
7088
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::ANGLE | GNEAttributeProperties::Property::DEFAULTVALUE,
7089
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7090
TL("Angle of rendered image in degree"),
7091
toString(Shape::DEFAULT_ANGLE));
7092
}
7093
7094
7095
void
7096
GNETagPropertiesDatabase::fillCommonRouteAttributes(GNETagProperties* tagProperties) {
7097
// fill route attributes
7098
new GNEAttributeProperties(tagProperties, SUMO_ATTR_EDGES,
7099
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
7100
GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
7101
TL("The edges the vehicle shall drive along, given as their ids, separated using spaces"));
7102
7103
fillColorAttribute(tagProperties, "");
7104
7105
new GNEAttributeProperties(tagProperties, SUMO_ATTR_REPEAT,
7106
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7107
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7108
TL("The number of times that the edges of this route shall be repeated"),
7109
"0");
7110
7111
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CYCLETIME,
7112
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
7113
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7114
TL("When defining a repeating route with stops and those stops use the until attribute,") + std::string("\n") +
7115
TL("the times will be shifted forward by 'cycleTime' on each repeat"),
7116
"0");
7117
}
7118
7119
7120
void
7121
GNETagPropertiesDatabase::fillCommonVTypeAttributes(GNETagProperties* tagProperties) {
7122
// fill vType attributes
7123
auto vClass = new GNEAttributeProperties(tagProperties, SUMO_ATTR_VCLASS,
7124
GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Property::DEFAULTVALUE,
7125
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
7126
TL("An abstract vehicle class"),
7127
"passenger");
7128
vClass->setDiscreteValues(SumoVehicleClassStrings.getStrings());
7129
7130
fillColorAttribute(tagProperties, "");
7131
7132
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LENGTH,
7133
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::ALWAYSENABLED,
7134
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7135
TL("The vehicle's netto-length (length) [m]"));
7136
7137
new GNEAttributeProperties(tagProperties, SUMO_ATTR_MINGAP,
7138
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::ALWAYSENABLED,
7139
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7140
TL("Empty space after leader [m]"));
7141
7142
new GNEAttributeProperties(tagProperties, SUMO_ATTR_MAXSPEED,
7143
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::ALWAYSENABLED,
7144
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7145
TL("The vehicle's maximum velocity [m/s]"));
7146
7147
new GNEAttributeProperties(tagProperties, SUMO_ATTR_SPEEDFACTOR,
7148
GNEAttributeProperties::Property::STRING,
7149
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7150
TL("The vehicle's expected multiplicator for lane speed limits (or a distribution specifier)"));
7151
7152
new GNEAttributeProperties(tagProperties, SUMO_ATTR_DESIRED_MAXSPEED,
7153
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::ALWAYSENABLED,
7154
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7155
TL("The vehicle's desired maximum velocity (interacts with speedFactor).") + std::string("\n") +
7156
TL("Applicable when no speed limit applies (bicycles, some motorways) [m/s]"));
7157
7158
auto emissionClass = new GNEAttributeProperties(tagProperties, SUMO_ATTR_EMISSIONCLASS,
7159
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE,
7160
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7161
TL("An abstract emission class"));
7162
emissionClass->setDiscreteValues(PollutantsInterface::getAllClassesStr());
7163
7164
auto GUIShape = new GNEAttributeProperties(tagProperties, SUMO_ATTR_GUISHAPE,
7165
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE,
7166
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7167
TL("How this vehicle is rendered"));
7168
GUIShape->setDiscreteValues(SumoVehicleShapeStrings.getStrings());
7169
7170
new GNEAttributeProperties(tagProperties, SUMO_ATTR_WIDTH,
7171
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7172
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7173
TL("The vehicle's width [m] (only used for drawing)"),
7174
"1.8");
7175
7176
new GNEAttributeProperties(tagProperties, SUMO_ATTR_HEIGHT,
7177
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7178
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7179
TL("The vehicle's height [m] (only used for drawing)"),
7180
"1.5");
7181
7182
new GNEAttributeProperties(tagProperties, SUMO_ATTR_PARKING_BADGES,
7183
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE,
7184
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7185
TL("The parking badges assigned to the vehicle"));
7186
7187
fillImgFileAttribute(tagProperties, true);
7188
7189
auto laneChangeModel = new GNEAttributeProperties(tagProperties, SUMO_ATTR_LANE_CHANGE_MODEL,
7190
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Property::DEFAULTVALUE,
7191
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7192
TL("The model used for changing lanes"),
7193
SUMOXMLDefinitions::LaneChangeModels.getString(LaneChangeModel::DEFAULT));
7194
laneChangeModel->setDiscreteValues(SUMOXMLDefinitions::LaneChangeModels.getStrings());
7195
7196
auto carFollowModel = new GNEAttributeProperties(tagProperties, SUMO_ATTR_CAR_FOLLOW_MODEL,
7197
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Property::DEFAULTVALUE,
7198
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7199
TL("The model used for car-following"),
7200
SUMOXMLDefinitions::CarFollowModels.getString(SUMO_TAG_CF_KRAUSS));
7201
carFollowModel->setDiscreteValues(SUMOXMLDefinitions::CarFollowModels.getStrings());
7202
7203
new GNEAttributeProperties(tagProperties, SUMO_ATTR_PERSON_CAPACITY,
7204
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::POSITIVE,
7205
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7206
TL("The number of persons (excluding an autonomous driver) the vehicle can transport"));
7207
7208
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CONTAINER_CAPACITY,
7209
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::POSITIVE,
7210
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7211
TL("The number of containers the vehicle can transport"));
7212
7213
new GNEAttributeProperties(tagProperties, SUMO_ATTR_BOARDING_DURATION,
7214
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
7215
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7216
TL("The time required by a person to board the vehicle"),
7217
"0.50");
7218
7219
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LOADING_DURATION,
7220
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
7221
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7222
TL("The time required to load a container onto the vehicle"),
7223
"90");
7224
7225
auto latAlignment = new GNEAttributeProperties(tagProperties, SUMO_ATTR_LATALIGNMENT,
7226
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Property::DEFAULTVALUE,
7227
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7228
TL("The preferred lateral alignment when using the sublane-model"),
7229
"center");
7230
latAlignment->setDiscreteValues(SUMOVTypeParameter::getLatAlignmentStrings());
7231
7232
new GNEAttributeProperties(tagProperties, SUMO_ATTR_MINGAP_LAT,
7233
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7234
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7235
TL("The minimum lateral gap at a speed difference of 50km/h when using the sublane-model"),
7236
"0.12");
7237
7238
new GNEAttributeProperties(tagProperties, SUMO_ATTR_MAXSPEED_LAT,
7239
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7240
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7241
TL("The maximum lateral speed when using the sublane-model"),
7242
"1");
7243
7244
new GNEAttributeProperties(tagProperties, SUMO_ATTR_ACTIONSTEPLENGTH,
7245
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7246
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7247
TL("The interval length for which vehicle performs its decision logic (acceleration and lane-changing)"),
7248
toString(OptionsCont::getOptions().getFloat("default.action-step-length")));
7249
7250
fillDistributionProbability(tagProperties, false);
7251
7252
new GNEAttributeProperties(tagProperties, SUMO_ATTR_OSGFILE,
7253
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
7254
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7255
TL("3D model file for this class"));
7256
/*
7257
Waiting for #16343
7258
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CARRIAGE_LENGTH,
7259
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE,
7260
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7261
TL("Carriage lengths"));
7262
7263
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LOCOMOTIVE_LENGTH,
7264
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE,
7265
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7266
TL("Locomotive lengths"));
7267
7268
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CARRIAGE_GAP,
7269
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7270
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7271
TL("Gap between carriages"),
7272
"1");
7273
*/
7274
// fill VType Car Following Model Values (implemented in a separated function to improve code legibility)
7275
fillCarFollowingModelAttributes(tagProperties);
7276
7277
// fill VType Junction Model Parameters (implemented in a separated function to improve code legibility)
7278
fillJunctionModelAttributes(tagProperties);
7279
7280
// fill VType Lane Change Model Parameters (implemented in a separated function to improve code legibility)
7281
fillLaneChangingModelAttributes(tagProperties);
7282
}
7283
7284
7285
void
7286
GNETagPropertiesDatabase::fillCommonVehicleAttributes(GNETagProperties* tagProperties) {
7287
// fill vehicle attributes
7288
fillColorAttribute(tagProperties, "yellow");
7289
7290
new GNEAttributeProperties(tagProperties, SUMO_ATTR_DEPARTLANE,
7291
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
7292
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7293
TL("The lane on which the vehicle shall be inserted"),
7294
"first");
7295
7296
new GNEAttributeProperties(tagProperties, SUMO_ATTR_DEPARTPOS,
7297
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
7298
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7299
TL("The position at which the vehicle shall enter the net"),
7300
"base");
7301
7302
new GNEAttributeProperties(tagProperties, SUMO_ATTR_DEPARTSPEED,
7303
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
7304
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7305
TL("The speed with which the vehicle shall enter the network"),
7306
"0");
7307
7308
new GNEAttributeProperties(tagProperties, SUMO_ATTR_ARRIVALLANE,
7309
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
7310
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7311
TL("The lane at which the vehicle shall leave the network"),
7312
"current");
7313
7314
new GNEAttributeProperties(tagProperties, SUMO_ATTR_ARRIVALPOS,
7315
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
7316
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7317
TL("The position at which the vehicle shall leave the network"),
7318
"max");
7319
7320
new GNEAttributeProperties(tagProperties, SUMO_ATTR_ARRIVALSPEED,
7321
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
7322
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7323
TL("The speed with which the vehicle shall leave the network"),
7324
"current");
7325
7326
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LINE,
7327
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
7328
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7329
TL("A string specifying the id of a public transport line which can be used when specifying person rides"));
7330
7331
new GNEAttributeProperties(tagProperties, SUMO_ATTR_PERSON_NUMBER,
7332
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7333
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7334
TL("The number of occupied seats when the vehicle is inserted"),
7335
"0");
7336
7337
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CONTAINER_NUMBER,
7338
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7339
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7340
TL("The number of occupied container places when the vehicle is inserted"),
7341
"0");
7342
7343
new GNEAttributeProperties(tagProperties, SUMO_ATTR_DEPARTPOS_LAT,
7344
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
7345
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7346
TL("The lateral position on the departure lane at which the vehicle shall enter the net"),
7347
"center");
7348
7349
new GNEAttributeProperties(tagProperties, SUMO_ATTR_ARRIVALPOS_LAT,
7350
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
7351
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7352
TL("The lateral position on the arrival lane at which the vehicle shall arrive"),
7353
"center");
7354
7355
new GNEAttributeProperties(tagProperties, SUMO_ATTR_INSERTIONCHECKS,
7356
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
7357
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7358
TL("Insertion checks"),
7359
SUMOXMLDefinitions::InsertionChecks.getString(InsertionCheck::ALL));
7360
}
7361
7362
7363
void
7364
GNETagPropertiesDatabase::fillCommonFlowAttributes(GNETagProperties* tagProperties, SumoXMLAttr perHour) {
7365
// fill common flow attributes
7366
new GNEAttributeProperties(tagProperties, SUMO_ATTR_BEGIN,
7367
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
7368
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7369
TL("First flow departure time"),
7370
"0");
7371
7372
auto flowTerminate = new GNEAttributeProperties(tagProperties, GNE_ATTR_FLOW_TERMINATE,
7373
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::FLOW,
7374
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::FLOWEDITOR,
7375
TL("Criterion for flow termination"),
7376
toString(SUMO_ATTR_END));
7377
flowTerminate->setDiscreteValues({toString(SUMO_ATTR_END), toString(SUMO_ATTR_NUMBER), toString(SUMO_ATTR_END) + "-" + toString(SUMO_ATTR_NUMBER)});
7378
7379
auto flowSpacing = new GNEAttributeProperties(tagProperties, GNE_ATTR_FLOW_SPACING,
7380
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::FLOW,
7381
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::FLOWEDITOR,
7382
TL("Criterion for flow spacing"),
7383
toString(perHour));
7384
flowSpacing->setDiscreteValues({toString(perHour), toString(SUMO_ATTR_PERIOD), toString(SUMO_ATTR_PROB), toString(GNE_ATTR_POISSON)});
7385
7386
new GNEAttributeProperties(tagProperties, SUMO_ATTR_END,
7387
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::FLOW,
7388
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::FLOWEDITOR,
7389
TL("End of departure interval"),
7390
"3600");
7391
7392
new GNEAttributeProperties(tagProperties, SUMO_ATTR_NUMBER,
7393
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::FLOW,
7394
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::FLOWEDITOR,
7395
TL("probability for emitting a flow each second") + std::string("\n") +
7396
TL("(not together with vehsPerHour or period)"),
7397
"1800");
7398
7399
new GNEAttributeProperties(tagProperties, perHour,
7400
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::FLOW,
7401
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::FLOWEDITOR,
7402
TL("Number of flows per hour, equally spaced") + std::string("\n") +
7403
TL("(not together with period or probability or poisson)"),
7404
"1800");
7405
7406
new GNEAttributeProperties(tagProperties, SUMO_ATTR_PERIOD,
7407
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::FLOW,
7408
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::FLOWEDITOR,
7409
TL("Insert equally spaced flows at that period") + std::string("\n") +
7410
TL("(not together with vehsPerHour or probability or poisson)"),
7411
"2");
7412
7413
new GNEAttributeProperties(tagProperties, SUMO_ATTR_PROB,
7414
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::FLOW,
7415
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::FLOWEDITOR,
7416
TL("probability for emitting a flow each second") + std::string("\n") +
7417
TL("(not together with vehsPerHour or period or poisson)"),
7418
"0.5");
7419
7420
new GNEAttributeProperties(tagProperties, GNE_ATTR_POISSON,
7421
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::FLOW,
7422
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::FLOWEDITOR,
7423
TL("Insert flow expected vehicles per second with poisson distributed insertion rate") + std::string("\n") +
7424
TL("(not together with period or vehsPerHour or probability)"),
7425
"0.5");
7426
}
7427
7428
7429
void
7430
GNETagPropertiesDatabase::fillCarFollowingModelAttributes(GNETagProperties* tagProperties) {
7431
// fill CFM attributes
7432
new GNEAttributeProperties(tagProperties, SUMO_ATTR_ACCEL,
7433
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7434
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7435
TL("The acceleration ability of vehicles of this type [m/s^2]"),
7436
toString(SUMOVTypeParameter::getDefaultAccel()));
7437
7438
new GNEAttributeProperties(tagProperties, SUMO_ATTR_DECEL,
7439
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7440
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7441
TL("The deceleration ability of vehicles of this type [m/s^2]"),
7442
toString(SUMOVTypeParameter::getDefaultDecel()));
7443
7444
new GNEAttributeProperties(tagProperties, SUMO_ATTR_APPARENTDECEL,
7445
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7446
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7447
TL("The apparent deceleration of the vehicle as used by the standard model [m/s^2]"),
7448
toString(SUMOVTypeParameter::getDefaultDecel()));
7449
7450
new GNEAttributeProperties(tagProperties, SUMO_ATTR_EMERGENCYDECEL,
7451
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7452
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7453
TL("The maximal physically possible deceleration for the vehicle [m/s^2]"),
7454
toString(SUMOVTypeParameter::getDefaultEmergencyDecel(SVC_IGNORING,
7455
SUMOVTypeParameter::getDefaultDecel(),
7456
VTYPEPARS_DEFAULT_EMERGENCYDECEL_DEFAULT)));
7457
7458
auto sigma = new GNEAttributeProperties(tagProperties, SUMO_ATTR_SIGMA,
7459
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::RANGE | GNEAttributeProperties::Property::DEFAULTVALUE,
7460
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7461
TL("Car-following model parameter"),
7462
toString(SUMOVTypeParameter::getDefaultImperfection()));
7463
sigma->setRange(0, 1);
7464
7465
new GNEAttributeProperties(tagProperties, SUMO_ATTR_TAU,
7466
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7467
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7468
TL("Car-following model parameter"),
7469
"1");
7470
7471
new GNEAttributeProperties(tagProperties, SUMO_ATTR_TMP1,
7472
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
7473
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7474
TL("SKRAUSSX parameter 1"));
7475
7476
new GNEAttributeProperties(tagProperties, SUMO_ATTR_TMP2,
7477
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
7478
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7479
TL("SKRAUSSX parameter 2"));
7480
7481
new GNEAttributeProperties(tagProperties, SUMO_ATTR_TMP3,
7482
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
7483
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7484
TL("SKRAUSSX parameter 3"));
7485
7486
new GNEAttributeProperties(tagProperties, SUMO_ATTR_TMP4,
7487
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
7488
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7489
TL("SKRAUSSX parameter 4"));
7490
7491
new GNEAttributeProperties(tagProperties, SUMO_ATTR_TMP5,
7492
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
7493
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7494
TL("SKRAUSSX parameter 5"));
7495
7496
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_EIDM_T_LOOK_AHEAD,
7497
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7498
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7499
TL("EIDM Look ahead / preview parameter [s]"),
7500
"4");
7501
7502
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_EIDM_T_REACTION,
7503
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7504
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7505
TL("EIDM AP Reaction Time parameter [s]"),
7506
"0.50");
7507
7508
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_EIDM_T_PERSISTENCE_DRIVE,
7509
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7510
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7511
TL("EIDM Wiener Process parameter for the Driving Error [s]"),
7512
"3");
7513
7514
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_EIDM_T_PERSISTENCE_ESTIMATE,
7515
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7516
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7517
TL("EIDM Wiener Process parameter for the Estimation Error [s]"),
7518
"10");
7519
7520
auto coolness = new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_EIDM_C_COOLNESS,
7521
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::RANGE | GNEAttributeProperties::Property::DEFAULTVALUE,
7522
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7523
TL("EIDM Coolness parameter of the Enhanced IDM [-]"),
7524
"0.99");
7525
coolness->setRange(0, 1);
7526
7527
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_EIDM_SIG_LEADER,
7528
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7529
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7530
TL("EIDM leader speed estimation error parameter [-]"),
7531
"0.02");
7532
7533
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_EIDM_SIG_GAP,
7534
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7535
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7536
TL("EIDM gap estimation error parameter [-]"),
7537
"0.10");
7538
7539
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_EIDM_SIG_ERROR,
7540
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7541
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7542
TL("EIDM driving error parameter [-]"),
7543
"0.04");
7544
7545
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_EIDM_JERK_MAX,
7546
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7547
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7548
TL("EIDM maximal jerk parameter [m/s^3]"),
7549
"3");
7550
7551
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_EIDM_EPSILON_ACC,
7552
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7553
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7554
TL("EIDM maximal negative acceleration between two Action Points (threshold) [m/s^2]"),
7555
"1");
7556
7557
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_EIDM_T_ACC_MAX,
7558
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7559
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7560
TL("EIDM Time parameter until vehicle reaches amax after startup/driveoff [s]"),
7561
"1.20");
7562
7563
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_EIDM_M_FLATNESS,
7564
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7565
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7566
TL("EIDM Flatness parameter of startup/driveoff curve [-]"),
7567
"2");
7568
7569
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_EIDM_M_BEGIN,
7570
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7571
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7572
TL("EIDM Shift parameter of startup/driveoff curve [-]"),
7573
"0.70");
7574
7575
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_EIDM_USEVEHDYNAMICS,
7576
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
7577
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7578
TL("EIDM parameter if model shall include vehicle dynamics into the acceleration calculation [0/1]"),
7579
"0");
7580
7581
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_EIDM_MAX_VEH_PREVIEW,
7582
GNEAttributeProperties::Property::INT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7583
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7584
TL("EIDM parameter how many vehicles are taken into the preview calculation of the driver (at least always 1!) [-]"),
7585
"0");
7586
7587
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_PWAGNER2009_TAULAST,
7588
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7589
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7590
TL("Peter Wagner 2009 parameter"),
7591
"0");
7592
7593
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_PWAGNER2009_APPROB,
7594
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7595
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7596
TL("Peter Wagner 2009 parameter"),
7597
"0");
7598
7599
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_IDMM_ADAPT_FACTOR,
7600
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7601
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7602
TL("IDMM parameter"),
7603
"0");
7604
7605
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_IDMM_ADAPT_TIME,
7606
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7607
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7608
TL("IDMM parameter"),
7609
"0");
7610
7611
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_W99_CC1,
7612
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7613
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7614
TL("W99 parameter"),
7615
"1.3");
7616
7617
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_W99_CC2,
7618
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7619
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7620
TL("W99 parameter"),
7621
"8");
7622
7623
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_W99_CC3,
7624
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7625
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7626
TL("W99 parameter"),
7627
"-12");
7628
7629
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_W99_CC4,
7630
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7631
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7632
TL("W99 parameter"),
7633
"-0.25");
7634
7635
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_W99_CC5,
7636
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7637
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7638
TL("W99 parameter"),
7639
"0.35");
7640
7641
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_W99_CC6,
7642
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7643
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7644
TL("W99 parameter"),
7645
"6");
7646
7647
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_W99_CC7,
7648
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7649
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7650
TL("W99 parameter"),
7651
"0.25");
7652
7653
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_W99_CC8,
7654
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7655
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7656
TL("W99 parameter"),
7657
"2");
7658
7659
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_W99_CC9,
7660
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7661
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7662
TL("W99 parameter"),
7663
"1.5");
7664
7665
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_WIEDEMANN_SECURITY,
7666
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
7667
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7668
TL("Wiedemann parameter"));
7669
7670
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_WIEDEMANN_ESTIMATION,
7671
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
7672
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7673
TL("Wiedemann parameter"));
7674
7675
new GNEAttributeProperties(tagProperties, SUMO_ATTR_COLLISION_MINGAP_FACTOR,
7676
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
7677
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7678
TL("MinGap factor parameter"));
7679
7680
new GNEAttributeProperties(tagProperties, SUMO_ATTR_K,
7681
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
7682
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7683
TL("K parameter"));
7684
7685
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_KERNER_PHI,
7686
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
7687
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7688
TL("Kerner Phi parameter"));
7689
7690
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_IDM_DELTA,
7691
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
7692
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7693
TL("IDM Delta parameter"));
7694
7695
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CF_IDM_STEPPING,
7696
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
7697
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7698
TL("IDM Stepping parameter"));
7699
7700
auto trainType = new GNEAttributeProperties(tagProperties, SUMO_ATTR_TRAIN_TYPE,
7701
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Property::DEFAULTVALUE,
7702
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7703
TL("Train Types"),
7704
SUMOXMLDefinitions::TrainTypes.getString(TrainType::NGT400));
7705
trainType->setDiscreteValues(SUMOXMLDefinitions::TrainTypes.getStrings());
7706
}
7707
7708
7709
void
7710
GNETagPropertiesDatabase::fillJunctionModelAttributes(GNETagProperties* tagProperties) {
7711
// fill junction model attributes
7712
new GNEAttributeProperties(tagProperties, SUMO_ATTR_JM_CROSSING_GAP,
7713
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7714
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7715
TL("Minimum distance to pedestrians that are walking towards the conflict point with the ego vehicle."),
7716
"10");
7717
7718
new GNEAttributeProperties(tagProperties, SUMO_ATTR_JM_IGNORE_KEEPCLEAR_TIME,
7719
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE,
7720
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7721
TL("The accumulated waiting time after which a vehicle will drive onto an intersection even though this might cause jamming."),
7722
"", "-1");
7723
7724
new GNEAttributeProperties(tagProperties, SUMO_ATTR_JM_DRIVE_AFTER_YELLOW_TIME,
7725
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7726
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7727
TL("This value causes vehicles to violate a yellow light if the duration of the yellow phase is lower than the given threshold."),
7728
"", "-1");
7729
7730
new GNEAttributeProperties(tagProperties, SUMO_ATTR_JM_DRIVE_AFTER_RED_TIME,
7731
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE,
7732
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7733
TL("This value causes vehicles to violate a red light if the duration of the red phase is lower than the given threshold."),
7734
"", "-1");
7735
7736
new GNEAttributeProperties(tagProperties, SUMO_ATTR_JM_DRIVE_RED_SPEED,
7737
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE,
7738
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7739
TL("This value causes vehicles affected by jmDriveAfterRedTime to slow down when violating a red light."),
7740
"0");
7741
7742
new GNEAttributeProperties(tagProperties, SUMO_ATTR_JM_IGNORE_FOE_PROB,
7743
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7744
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7745
TL("This value causes vehicles to ignore foe vehicles that have right-of-way with the given probability."),
7746
"0");
7747
7748
new GNEAttributeProperties(tagProperties, SUMO_ATTR_JM_IGNORE_FOE_SPEED,
7749
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7750
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7751
TL("This value is used in conjunction with jmIgnoreFoeProb.") + std::string("\n") +
7752
TL("Only vehicles with a speed below or equal to the given value may be ignored."),
7753
"0");
7754
7755
new GNEAttributeProperties(tagProperties, SUMO_ATTR_JM_SIGMA_MINOR,
7756
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE,
7757
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7758
TL("This value configures driving imperfection (dawdling) while passing a minor link."),
7759
"0");
7760
7761
new GNEAttributeProperties(tagProperties, SUMO_ATTR_JM_TIMEGAP_MINOR,
7762
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7763
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7764
TL("This value defines the minimum time gap when passing ahead of a prioritized vehicle. "),
7765
"1");
7766
7767
new GNEAttributeProperties(tagProperties, SUMO_ATTR_IMPATIENCE,
7768
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7769
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7770
TL("Willingess of drivers to impede vehicles with higher priority"),
7771
"0");
7772
}
7773
7774
7775
void
7776
GNETagPropertiesDatabase::fillLaneChangingModelAttributes(GNETagProperties* tagProperties) {
7777
// fill lane changing model
7778
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LCA_STRATEGIC_PARAM,
7779
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7780
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7781
TL("The eagerness for performing strategic lane changing. Higher values result in earlier lane-changing."),
7782
"1");
7783
7784
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LCA_COOPERATIVE_PARAM,
7785
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7786
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7787
TL("The willingness for performing cooperative lane changing. Lower values result in reduced cooperation."),
7788
"1");
7789
7790
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LCA_SPEEDGAIN_PARAM,
7791
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7792
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7793
TL("The eagerness for performing lane changing to gain speed. Higher values result in more lane-changing."),
7794
"1");
7795
7796
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LCA_KEEPRIGHT_PARAM,
7797
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7798
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7799
TL("The eagerness for following the obligation to keep right. Higher values result in earlier lane-changing."),
7800
"1");
7801
7802
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LCA_SUBLANE_PARAM,
7803
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7804
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7805
TL("The eagerness for using the configured lateral alignment within the lane.") + std::string("\n") +
7806
TL("Higher values result in increased willingness to sacrifice speed for alignment."),
7807
"1");
7808
7809
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LCA_OPPOSITE_PARAM,
7810
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7811
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7812
TL("The eagerness for overtaking through the opposite-direction lane. Higher values result in more lane-changing."),
7813
"1");
7814
7815
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LCA_PUSHY,
7816
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7817
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7818
TL("Willingness to encroach laterally on other drivers."),
7819
"0");
7820
7821
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LCA_PUSHYGAP,
7822
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7823
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7824
TL("Minimum lateral gap when encroaching laterally on other drives (alternative way to define lcPushy)"),
7825
"0");
7826
7827
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LCA_ASSERTIVE,
7828
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7829
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7830
TL("Willingness to accept lower front and rear gaps on the target lane."),
7831
"1");
7832
7833
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LCA_IMPATIENCE,
7834
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7835
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7836
TL("Dynamic factor for modifying lcAssertive and lcPushy."),
7837
"0");
7838
7839
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LCA_TIME_TO_IMPATIENCE,
7840
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
7841
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7842
TL("Time to reach maximum impatience (of 1). Impatience grows whenever a lane-change manoeuvre is blocked."),
7843
"infinity");
7844
7845
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LCA_ACCEL_LAT,
7846
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7847
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7848
TL("Maximum lateral acceleration per second."),
7849
"1");
7850
7851
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LCA_LOOKAHEADLEFT,
7852
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7853
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7854
TL("Factor for configuring the strategic lookahead distance when a change to the left is necessary (relative to right lookahead)."),
7855
"2");
7856
7857
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LCA_SPEEDGAINRIGHT,
7858
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7859
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7860
TL("Factor for configuring the threshold asymmetry when changing to the left or to the right for speed gain."),
7861
"0.1");
7862
7863
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LCA_MAXSPEEDLATSTANDING,
7864
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE,
7865
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7866
TL("Upper bound on lateral speed when standing."),
7867
"0");
7868
7869
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LCA_MAXSPEEDLATFACTOR,
7870
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7871
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7872
TL("Upper bound on lateral speed while moving computed as lcMaxSpeedLatStanding + lcMaxSpeedLatFactor * getSpeed()"),
7873
"1");
7874
7875
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LCA_TURN_ALIGNMENT_DISTANCE,
7876
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7877
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7878
TL("Distance to an upcoming turn on the vehicles route, below which the alignment") + std::string("\n") +
7879
TL("should be dynamically adapted to match the turn direction."),
7880
"0");
7881
7882
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LCA_OVERTAKE_RIGHT,
7883
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
7884
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7885
TL("The probability for violating rules gainst overtaking on the right."),
7886
"0");
7887
7888
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LCA_KEEPRIGHT_ACCEPTANCE_TIME,
7889
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE,
7890
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7891
TL("Time threshold for the willingness to change right."),
7892
"", "-1");
7893
7894
auto factor = new GNEAttributeProperties(tagProperties, SUMO_ATTR_LCA_OVERTAKE_DELTASPEED_FACTOR,
7895
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::RANGE | GNEAttributeProperties::Property::DEFAULTVALUE,
7896
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
7897
TL("Speed difference factor for the eagerness of overtaking a neighbor vehicle before changing lanes (threshold = factor*speedlimit)."),
7898
"0");
7899
factor->setRange(-1, 1);
7900
7901
}
7902
7903
7904
void
7905
GNETagPropertiesDatabase::fillCommonPersonAttributes(GNETagProperties* tagProperties) {
7906
// fill person attributes
7907
fillIDAttribute(tagProperties, true);
7908
7909
new GNEAttributeProperties(tagProperties, SUMO_ATTR_TYPE,
7910
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::VTYPE,
7911
GNEAttributeProperties::Edit::EDITMODE,
7912
TL("The id of the person type to use for this person"),
7913
DEFAULT_VTYPE_ID);
7914
7915
fillColorAttribute(tagProperties, "yellow");
7916
7917
new GNEAttributeProperties(tagProperties, SUMO_ATTR_DEPARTPOS,
7918
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
7919
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7920
TL("The position at which the person shall enter the net"),
7921
"base");
7922
}
7923
7924
7925
void
7926
GNETagPropertiesDatabase::fillCommonContainerAttributes(GNETagProperties* tagProperties) {
7927
// fill common container attributes
7928
fillIDAttribute(tagProperties, true);
7929
7930
new GNEAttributeProperties(tagProperties, SUMO_ATTR_TYPE,
7931
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY | GNEAttributeProperties::Property::VTYPE,
7932
GNEAttributeProperties::Edit::EDITMODE,
7933
TL("The id of the container type to use for this container"),
7934
DEFAULT_CONTAINERTYPE_ID);
7935
7936
fillColorAttribute(tagProperties, "yellow");
7937
7938
new GNEAttributeProperties(tagProperties, SUMO_ATTR_DEPARTPOS,
7939
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
7940
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7941
TL("The position at which the container shall enter the net"),
7942
"base");
7943
}
7944
7945
7946
void
7947
GNETagPropertiesDatabase::fillCommonStopAttributes(GNETagProperties* tagProperties, const bool waypoint) {
7948
// fill common stop attributes
7949
auto duration = new GNEAttributeProperties(tagProperties, SUMO_ATTR_DURATION,
7950
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::ACTIVATABLE | GNEAttributeProperties::Property::DEFAULTVALUE,
7951
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7952
TL("Minimum duration for stopping"),
7953
"60");
7954
duration->setDefaultActivated(true);
7955
7956
new GNEAttributeProperties(tagProperties, SUMO_ATTR_UNTIL,
7957
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::ACTIVATABLE | GNEAttributeProperties::Property::DEFAULTVALUE,
7958
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7959
TL("The time step at which the route continues"),
7960
"0");
7961
7962
new GNEAttributeProperties(tagProperties, SUMO_ATTR_EXTENSION,
7963
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::ACTIVATABLE | GNEAttributeProperties::Property::DEFAULTVALUE,
7964
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7965
TL("If set to a non-negative time value, then the stop duration can be extended at most by the extension value in seconds"),
7966
"0");
7967
7968
if (!waypoint) {
7969
auto triggered = new GNEAttributeProperties(tagProperties, SUMO_ATTR_TRIGGERED,
7970
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Property::DEFAULTVALUE,
7971
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7972
TL("Whether a person or container or both may end the stop"),
7973
"false");
7974
triggered->setDiscreteValues({"false", "person", "container", "join"});
7975
7976
new GNEAttributeProperties(tagProperties, SUMO_ATTR_EXPECTED,
7977
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE,
7978
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7979
TL("List of elements that must board the vehicle before it may continue"));
7980
7981
new GNEAttributeProperties(tagProperties, SUMO_ATTR_JOIN,
7982
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
7983
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7984
TL("Joins this train to another upon reaching the stop"));
7985
}
7986
7987
new GNEAttributeProperties(tagProperties, SUMO_ATTR_PERMITTED,
7988
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE,
7989
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7990
TL("List of elements that can board the vehicle before it may continue"));
7991
7992
auto parking = new GNEAttributeProperties(tagProperties, SUMO_ATTR_PARKING,
7993
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Property::DEFAULTVALUE,
7994
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
7995
TL("Whether the vehicle stops on the road or beside"),
7996
"false");
7997
parking->setDiscreteValues({"true", "false", "opportunistic"});
7998
7999
new GNEAttributeProperties(tagProperties, SUMO_ATTR_ACTTYPE,
8000
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
8001
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8002
TL("Activity displayed for stopped person in GUI and output files"));
8003
8004
new GNEAttributeProperties(tagProperties, SUMO_ATTR_TRIP_ID,
8005
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
8006
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8007
TL("Parameter to be applied to the vehicle to track the trip id within a cyclical public transport route"));
8008
8009
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LINE,
8010
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
8011
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8012
TL("New line attribute to be set on the vehicle when reaching this stop (for cyclical public transport route)"));
8013
8014
if (waypoint) {
8015
new GNEAttributeProperties(tagProperties, SUMO_ATTR_SPEED,
8016
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
8017
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8018
TL("Speed to be kept while driving between startPos and endPos"),
8019
"0");
8020
} else {
8021
new GNEAttributeProperties(tagProperties, SUMO_ATTR_ONDEMAND,
8022
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
8023
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8024
TL("Whether the stop may be skipped if no passengers wants to embark or disembark"),
8025
GNEAttributeCarrier::FALSE_STR);
8026
}
8027
8028
new GNEAttributeProperties(tagProperties, SUMO_ATTR_JUMP,
8029
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
8030
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8031
TL("transfer time if there shall be a jump from this stop to the next route edge"),
8032
"", "-1");
8033
8034
new GNEAttributeProperties(tagProperties, SUMO_ATTR_SPLIT,
8035
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
8036
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8037
TL("Splits the train upon reaching the stop"));
8038
}
8039
8040
8041
void
8042
GNETagPropertiesDatabase::fillPlanParentAttributes(GNETagProperties* tagProperties) {
8043
// fill plan parents
8044
// basic parents
8045
if (tagProperties->planConsecutiveEdges()) {
8046
new GNEAttributeProperties(tagProperties, SUMO_ATTR_EDGES,
8047
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
8048
GNEAttributeProperties::Edit::EDITMODE,
8049
TL("list of consecutive edges"));
8050
8051
new GNEAttributeProperties(tagProperties, SUMO_ATTR_ARRIVALPOS,
8052
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE,
8053
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8054
TL("Arrival position on the last edge"),
8055
"", "-1");
8056
}
8057
if (tagProperties->planRoute()) {
8058
new GNEAttributeProperties(tagProperties, SUMO_ATTR_ROUTE,
8059
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
8060
GNEAttributeProperties::Edit::EDITMODE,
8061
TL("Route ID"));
8062
8063
new GNEAttributeProperties(tagProperties, SUMO_ATTR_ARRIVALPOS,
8064
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE,
8065
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8066
TL("Arrival position on the destination edge"),
8067
"", "-1");
8068
}
8069
if (tagProperties->planEdge()) {
8070
8071
fillEdgeAttribute(tagProperties, false);
8072
8073
new GNEAttributeProperties(tagProperties, SUMO_ATTR_ENDPOS,
8074
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
8075
GNEAttributeProperties::Edit::EDITMODE,
8076
TL("The end position on the lane (the higher position on the lane) in meters, must be larger than startPos by more than 0.1m"));
8077
}
8078
if (tagProperties->planBusStop()) {
8079
new GNEAttributeProperties(tagProperties, SUMO_ATTR_BUS_STOP,
8080
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8081
GNEAttributeProperties::Edit::EDITMODE,
8082
TL("Bus stop ID"));
8083
}
8084
if (tagProperties->planTrainStop()) {
8085
new GNEAttributeProperties(tagProperties, SUMO_ATTR_TRAIN_STOP,
8086
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8087
GNEAttributeProperties::Edit::EDITMODE,
8088
TL("Train stop ID"));
8089
}
8090
if (tagProperties->planContainerStop()) {
8091
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CONTAINER_STOP,
8092
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8093
GNEAttributeProperties::Edit::EDITMODE,
8094
TL("Container stop ID"));
8095
}
8096
if (tagProperties->planChargingStation()) {
8097
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CHARGING_STATION,
8098
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8099
GNEAttributeProperties::Edit::EDITMODE,
8100
TL("Charging station ID"));
8101
}
8102
if (tagProperties->planParkingArea()) {
8103
new GNEAttributeProperties(tagProperties, SUMO_ATTR_PARKING_AREA,
8104
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8105
GNEAttributeProperties::Edit::EDITMODE,
8106
TL("Parking area ID"));
8107
}
8108
// from parents
8109
if (tagProperties->planFromEdge()) {
8110
new GNEAttributeProperties(tagProperties, SUMO_ATTR_FROM,
8111
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8112
GNEAttributeProperties::Edit::EDITMODE,
8113
TL("Edge start ID"));
8114
}
8115
if (tagProperties->planFromTAZ()) {
8116
new GNEAttributeProperties(tagProperties, SUMO_ATTR_FROM_TAZ,
8117
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8118
GNEAttributeProperties::Edit::EDITMODE,
8119
TL("TAZ start ID"));
8120
}
8121
if (tagProperties->planFromJunction()) {
8122
new GNEAttributeProperties(tagProperties, SUMO_ATTR_FROM_JUNCTION,
8123
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8124
GNEAttributeProperties::Edit::EDITMODE,
8125
TL("Junction start ID"));
8126
}
8127
if (tagProperties->planFromBusStop()) {
8128
new GNEAttributeProperties(tagProperties, GNE_ATTR_FROM_BUSSTOP,
8129
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8130
GNEAttributeProperties::Edit::EDITMODE,
8131
TL("BusStop start ID"));
8132
}
8133
if (tagProperties->planFromTrainStop()) {
8134
new GNEAttributeProperties(tagProperties, GNE_ATTR_FROM_TRAINSTOP,
8135
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8136
GNEAttributeProperties::Edit::EDITMODE,
8137
TL("TrainStop start ID"));
8138
}
8139
if (tagProperties->planFromContainerStop()) {
8140
new GNEAttributeProperties(tagProperties, GNE_ATTR_FROM_CONTAINERSTOP,
8141
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8142
GNEAttributeProperties::Edit::EDITMODE,
8143
TL("ContainerStop start ID"));
8144
}
8145
if (tagProperties->planFromChargingStation()) {
8146
new GNEAttributeProperties(tagProperties, GNE_ATTR_FROM_CHARGINGSTATION,
8147
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8148
GNEAttributeProperties::Edit::EDITMODE,
8149
TL("ChargingStation start ID"));
8150
}
8151
if (tagProperties->planFromParkingArea()) {
8152
new GNEAttributeProperties(tagProperties, GNE_ATTR_FROM_CHARGINGSTATION,
8153
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8154
GNEAttributeProperties::Edit::EDITMODE,
8155
TL("ParkingArea start ID"));
8156
}
8157
// to parents
8158
if (tagProperties->planToEdge()) {
8159
new GNEAttributeProperties(tagProperties, SUMO_ATTR_TO,
8160
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8161
GNEAttributeProperties::Edit::EDITMODE,
8162
TL("Edge end ID"));
8163
// departPos only for tranships
8164
if (tagProperties->isPlanTranship()) {
8165
// depart pos
8166
new GNEAttributeProperties(tagProperties, SUMO_ATTR_DEPARTPOS,
8167
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
8168
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8169
TL("The position at which the tranship shall enter the net"),
8170
"0");
8171
}
8172
new GNEAttributeProperties(tagProperties, SUMO_ATTR_ARRIVALPOS,
8173
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE,
8174
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8175
TL("arrival position on the destination edge"),
8176
"", "-1");
8177
}
8178
if (tagProperties->planToTAZ()) {
8179
new GNEAttributeProperties(tagProperties, SUMO_ATTR_TO_TAZ,
8180
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8181
GNEAttributeProperties::Edit::EDITMODE,
8182
TL("TAZ end ID"));
8183
}
8184
if (tagProperties->planToJunction()) {
8185
new GNEAttributeProperties(tagProperties, SUMO_ATTR_TO_JUNCTION,
8186
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8187
GNEAttributeProperties::Edit::EDITMODE,
8188
TL("Junction end ID"));
8189
}
8190
if (tagProperties->planToBusStop()) {
8191
new GNEAttributeProperties(tagProperties, SUMO_ATTR_BUS_STOP,
8192
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8193
GNEAttributeProperties::Edit::EDITMODE,
8194
TL("BusStop end ID"));
8195
}
8196
if (tagProperties->planToTrainStop()) {
8197
new GNEAttributeProperties(tagProperties, SUMO_ATTR_TRAIN_STOP,
8198
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8199
GNEAttributeProperties::Edit::EDITMODE,
8200
TL("TrainStop end ID"));
8201
}
8202
if (tagProperties->planToContainerStop()) {
8203
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CONTAINER_STOP,
8204
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8205
GNEAttributeProperties::Edit::EDITMODE,
8206
TL("ContainerStop end ID"));
8207
}
8208
if (tagProperties->planToChargingStation()) {
8209
new GNEAttributeProperties(tagProperties, SUMO_ATTR_CHARGING_STATION,
8210
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8211
GNEAttributeProperties::Edit::EDITMODE,
8212
TL("ChargingStation end ID"));
8213
}
8214
if (tagProperties->planToParkingArea()) {
8215
new GNEAttributeProperties(tagProperties, SUMO_ATTR_PARKING_AREA,
8216
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8217
GNEAttributeProperties::Edit::EDITMODE,
8218
TL("ParkingArea end ID"));
8219
}
8220
}
8221
8222
8223
void
8224
GNETagPropertiesDatabase::fillPersonTripCommonAttributes(GNETagProperties* tagProperties) {
8225
// fill person trip common attributes
8226
fillVTypesAttribute(tagProperties);
8227
8228
new GNEAttributeProperties(tagProperties, SUMO_ATTR_MODES,
8229
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE,
8230
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8231
TL("List of possible traffic modes. Walking is always possible regardless of this value"));
8232
8233
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LINES,
8234
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE,
8235
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8236
TL("list of vehicle alternatives to take for the person trip"));
8237
8238
new GNEAttributeProperties(tagProperties, SUMO_ATTR_WALKFACTOR,
8239
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
8240
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8241
TL("Walk factor"),
8242
"0");
8243
8244
new GNEAttributeProperties(tagProperties, SUMO_ATTR_GROUP,
8245
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
8246
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8247
TL("id of the travel group. Persons with the same group may share a taxi ride"));
8248
}
8249
8250
8251
void
8252
GNETagPropertiesDatabase::fillWalkCommonAttributes(GNETagProperties* tagProperties) {
8253
// fill walk common attributes
8254
new GNEAttributeProperties(tagProperties, SUMO_ATTR_SPEED,
8255
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
8256
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8257
TLF("speed of the person for this % in m/s (not together with duration)", tagProperties->getTagStr()),
8258
"1.39");
8259
8260
new GNEAttributeProperties(tagProperties, SUMO_ATTR_DURATION,
8261
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
8262
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8263
TL("duration of the plan in second (not together with speed)"),
8264
"0");
8265
}
8266
8267
8268
void
8269
GNETagPropertiesDatabase::fillRideCommonAttributes(GNETagProperties* tagProperties) {
8270
// fill ride common attributes
8271
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LINES,
8272
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE,
8273
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8274
TL("list of vehicle alternatives to take for the ride"));
8275
8276
new GNEAttributeProperties(tagProperties, SUMO_ATTR_GROUP,
8277
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
8278
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8279
TL("id of the travel group. Persons with the same group may share a taxi ride"));
8280
}
8281
8282
8283
void
8284
GNETagPropertiesDatabase::fillTransportCommonAttributes(GNETagProperties* tagProperties) {
8285
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LINES,
8286
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE,
8287
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8288
TL("list of vehicle alternatives to take for the transport"));
8289
8290
new GNEAttributeProperties(tagProperties, SUMO_ATTR_GROUP,
8291
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
8292
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8293
TL("id of the travel group. Persons with the same group may share a taxi ride"));
8294
}
8295
8296
8297
void
8298
GNETagPropertiesDatabase::fillTranshipCommonAttributes(GNETagProperties* tagProperties) {
8299
// fill tranship attributes
8300
new GNEAttributeProperties(tagProperties, SUMO_ATTR_SPEED,
8301
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
8302
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8303
TL("speed of the person for this tranship in m/s (not together with duration)"),
8304
"1.39");
8305
8306
new GNEAttributeProperties(tagProperties, SUMO_ATTR_DURATION,
8307
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
8308
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8309
TL("duration of the plan in second (not together with speed)"),
8310
"0");
8311
}
8312
8313
8314
void
8315
GNETagPropertiesDatabase::fillPlanStopCommonAttributes(GNETagProperties* tagProperties) {
8316
// fill plan stop common attributes
8317
auto duration = new GNEAttributeProperties(tagProperties, SUMO_ATTR_DURATION,
8318
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::ACTIVATABLE | GNEAttributeProperties::Property::DEFAULTVALUE,
8319
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8320
TL("Minimum duration for stopping"),
8321
"60");
8322
duration->setDefaultActivated(true);
8323
8324
new GNEAttributeProperties(tagProperties, SUMO_ATTR_UNTIL,
8325
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::ACTIVATABLE | GNEAttributeProperties::Property::DEFAULTVALUE,
8326
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8327
TL("The time step at which the route continues"),
8328
"0");
8329
8330
new GNEAttributeProperties(tagProperties, SUMO_ATTR_ACTTYPE,
8331
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
8332
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8333
TL("Activity displayed for stopped person in GUI and output files "));
8334
8335
// friendlyPos attribute only for stops over edges
8336
if (tagProperties->hasAttribute(SUMO_ATTR_EDGE)) {
8337
fillFriendlyPosAttribute(tagProperties);
8338
}
8339
}
8340
8341
8342
void
8343
GNETagPropertiesDatabase::fillDataElements() {
8344
// fill data set element
8345
SumoXMLTag currentTag = SUMO_TAG_DATASET;
8346
{
8347
// set values of tag
8348
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties[GNE_TAG_SUPERMODE_DATA],
8349
GNETagProperties::Type::DATAELEMENT,
8350
GNETagProperties::Property::NOTDRAWABLE | GNETagProperties::Property::NOPARAMETERS | GNETagProperties::Property::NOTSELECTABLE,
8351
GNETagProperties::Over::VIEW,
8352
GNETagProperties::Conflicts::NO_CONFLICTS,
8353
GUIIcon::DATASET, GUIGlObjectType::GLO_DATASET, currentTag, TL("DataSet"));
8354
8355
// set values of attributes
8356
fillIDAttribute(myTagProperties[currentTag], true);
8357
}
8358
// fill data interval element
8359
currentTag = SUMO_TAG_DATAINTERVAL;
8360
{
8361
// set values of tag
8362
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties[GNE_TAG_SUPERMODE_DATA],
8363
GNETagProperties::Type::DATAELEMENT,
8364
GNETagProperties::Property::NOTDRAWABLE | GNETagProperties::Property::NOPARAMETERS | GNETagProperties::Property::XMLCHILD | GNETagProperties::Property::NOTSELECTABLE,
8365
GNETagProperties::Over::VIEW,
8366
GNETagProperties::Conflicts::NO_CONFLICTS,
8367
GUIIcon::DATAINTERVAL, GUIGlObjectType::GLO_DATAINTERVAL, currentTag, TL("DataInterval"),
8368
{SUMO_TAG_DATASET});
8369
8370
// set values of attributes
8371
fillIDAttribute(myTagProperties[currentTag], true);
8372
8373
// set values of attributes
8374
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_BEGIN,
8375
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
8376
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8377
TL("Data interval begin time"),
8378
"0");
8379
8380
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_END,
8381
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
8382
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8383
TL("Data interval end time"),
8384
"3600");
8385
}
8386
// fill edge data element
8387
currentTag = GNE_TAG_EDGEREL_SINGLE;
8388
{
8389
// set values of tag
8390
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_DATAS),
8391
GNETagProperties::Type::DATAELEMENT | GNETagProperties::Type::GENERICDATA,
8392
GNETagProperties::Property::NO_PROPERTY,
8393
GNETagProperties::Over::EDGE,
8394
GNETagProperties::Conflicts::NO_CONFLICTS,
8395
GUIIcon::EDGEDATA, GUIGlObjectType::GLO_EDGEDATA, SUMO_TAG_EDGE, TL("EdgeRelationSingle"));
8396
}
8397
currentTag = SUMO_TAG_EDGEREL;
8398
{
8399
// set values of tag
8400
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_DATAS),
8401
GNETagProperties::Type::DATAELEMENT | GNETagProperties::Type::GENERICDATA,
8402
GNETagProperties::Property::NO_PROPERTY,
8403
GNETagProperties::Over::FROM_EDGE | GNETagProperties::Over::TO_EDGE,
8404
GNETagProperties::Conflicts::NO_CONFLICTS,
8405
GUIIcon::EDGERELDATA, GUIGlObjectType::GLO_EDGERELDATA, currentTag, TL("EdgeRelation"));
8406
8407
// set values of attributes
8408
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_FROM,
8409
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
8410
GNEAttributeProperties::Edit::EDITMODE,
8411
TL("The ID of the edge the edgeRel starts at"));
8412
8413
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TO,
8414
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
8415
GNEAttributeProperties::Edit::EDITMODE,
8416
TL("The ID of the edge the edgeRel ends at"));
8417
}
8418
currentTag = SUMO_TAG_TAZREL;
8419
{
8420
// set values of tag
8421
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_DATAS),
8422
GNETagProperties::Type::DATAELEMENT | GNETagProperties::Type::GENERICDATA,
8423
GNETagProperties::Property::RTREE | GNETagProperties::Property::XMLCHILD,
8424
GNETagProperties::Over::FROM_TAZ | GNETagProperties::Over::TO_TAZ,
8425
GNETagProperties::Conflicts::NO_CONFLICTS,
8426
GUIIcon::TAZRELDATA, GUIGlObjectType::GLO_TAZRELDATA, currentTag, TL("TAZRelation"),
8427
{SUMO_TAG_DATAINTERVAL});
8428
8429
// set values of attributes
8430
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_FROM,
8431
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
8432
GNEAttributeProperties::Edit::EDITMODE,
8433
TL("The name of the TAZ the TAZRel starts at"));
8434
8435
new GNEAttributeProperties(myTagProperties[currentTag], SUMO_ATTR_TO,
8436
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
8437
GNEAttributeProperties::Edit::EDITMODE,
8438
TL("The name of the TAZ the TAZRel ends at"));
8439
}
8440
currentTag = SUMO_TAG_MEANDATA_EDGE;
8441
{
8442
// set values of tag
8443
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_SUPERMODE_DATA),
8444
GNETagProperties::Type::MEANDATA,
8445
GNETagProperties::Property::NOTDRAWABLE | GNETagProperties::Property::NOPARAMETERS | GNETagProperties::Property::NOTSELECTABLE,
8446
GNETagProperties::Over::VIEW,
8447
GNETagProperties::Conflicts::NO_CONFLICTS,
8448
GUIIcon::MEANDATAEDGE, GUIGlObjectType::GLO_MEANDATA, currentTag, TL("MeanDataEdge"));
8449
8450
// set values of attributes
8451
fillCommonMeanDataAttributes(myTagProperties[currentTag]);
8452
}
8453
currentTag = SUMO_TAG_MEANDATA_LANE;
8454
{
8455
// set values of tag
8456
myTagProperties[currentTag] = new GNETagProperties(currentTag, mySetTagProperties.at(GNE_TAG_SUPERMODE_DATA),
8457
GNETagProperties::Type::MEANDATA,
8458
GNETagProperties::Property::NOTDRAWABLE | GNETagProperties::Property::NOPARAMETERS | GNETagProperties::Property::NOTSELECTABLE,
8459
GNETagProperties::Over::VIEW,
8460
GNETagProperties::Conflicts::NO_CONFLICTS,
8461
GUIIcon::MEANDATALANE, GUIGlObjectType::GLO_MEANDATA, currentTag, TL("MeanDataLane"));
8462
8463
// set values of attributes
8464
fillCommonMeanDataAttributes(myTagProperties[currentTag]);
8465
}
8466
}
8467
8468
8469
void
8470
GNETagPropertiesDatabase::fillCommonMeanDataAttributes(GNETagProperties* tagProperties) {
8471
// fill all meanData attributes
8472
fillIDAttribute(tagProperties, true);
8473
8474
fillFileAttribute(tagProperties);
8475
8476
new GNEAttributeProperties(tagProperties, SUMO_ATTR_PERIOD,
8477
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
8478
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8479
TL("The aggregation period the values the detector collects shall be summed up"),
8480
"-1");
8481
8482
new GNEAttributeProperties(tagProperties, SUMO_ATTR_BEGIN,
8483
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
8484
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8485
TL("The time to start writing. If not given, the simulation's begin is used."),
8486
"-1");
8487
8488
new GNEAttributeProperties(tagProperties, SUMO_ATTR_END,
8489
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
8490
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8491
TL("The time to end writing. If not given the simulation's end is used."),
8492
"-1");
8493
8494
auto excludeEmpty = new GNEAttributeProperties(tagProperties, SUMO_ATTR_EXCLUDE_EMPTY,
8495
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Property::DEFAULTVALUE,
8496
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8497
TL("If set to true, edges/lanes which were not used by a vehicle during this period will not be written"),
8498
SUMOXMLDefinitions::ExcludeEmptys.getString(ExcludeEmpty::FALSES));
8499
excludeEmpty->setDiscreteValues(SUMOXMLDefinitions::ExcludeEmptys.getStrings());
8500
8501
new GNEAttributeProperties(tagProperties, SUMO_ATTR_WITH_INTERNAL,
8502
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
8503
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8504
TL("If set, junction internal edges/lanes will be written as well"),
8505
GNEAttributeCarrier::FALSE_STR);
8506
8507
new GNEAttributeProperties(tagProperties, SUMO_ATTR_MAX_TRAVELTIME,
8508
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE,
8509
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8510
TL("The maximum travel time in seconds to write if only very small movements occur"),
8511
toString(100000));
8512
8513
new GNEAttributeProperties(tagProperties, SUMO_ATTR_MIN_SAMPLES,
8514
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE,
8515
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8516
TL("Consider an edge/lane unused if it has at most this many sampled seconds"),
8517
"0");
8518
8519
new GNEAttributeProperties(tagProperties, SUMO_ATTR_HALTING_SPEED_THRESHOLD,
8520
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::DEFAULTVALUE,
8521
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8522
TL("The maximum speed to consider a vehicle halting;"),
8523
"0.1");
8524
8525
new GNEAttributeProperties(tagProperties, SUMO_ATTR_VTYPES,
8526
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE,
8527
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8528
TL("space separated list of vehicle type ids to consider"));
8529
8530
new GNEAttributeProperties(tagProperties, SUMO_ATTR_TRACK_VEHICLES,
8531
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
8532
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8533
TL("whether aggregation should be performed over all vehicles that entered the edge/lane in the aggregation interval"),
8534
GNEAttributeCarrier::FALSE_STR);
8535
8536
fillDetectPersonsAttribute(tagProperties);
8537
8538
new GNEAttributeProperties(tagProperties, SUMO_ATTR_WRITE_ATTRIBUTES,
8539
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE,
8540
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8541
TL("List of attribute names that shall be written"));
8542
8543
new GNEAttributeProperties(tagProperties, SUMO_ATTR_EDGES,
8544
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE,
8545
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8546
TL("Restrict output to the given list of edge ids"));
8547
8548
auto edgesFile = new GNEAttributeProperties(tagProperties, SUMO_ATTR_EDGESFILE,
8549
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::FILEOPEN | GNEAttributeProperties::Property::DEFAULTVALUE,
8550
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8551
TL("Restrict output to the given list of edges given in file"));
8552
edgesFile->setFilenameExtensions(SUMOXMLDefinitions::OutputFileExtensions.getStrings());
8553
8554
new GNEAttributeProperties(tagProperties, SUMO_ATTR_AGGREGATE,
8555
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
8556
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8557
TL("Whether the traffic statistic of all edges shall be aggregated into a single value"),
8558
GNEAttributeCarrier::FALSE_STR);
8559
}
8560
8561
8562
void
8563
GNETagPropertiesDatabase::fillIDAttribute(GNETagProperties* tagProperties, const bool createMode) {
8564
if (createMode) {
8565
new GNEAttributeProperties(tagProperties, SUMO_ATTR_ID,
8566
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8567
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
8568
TLF("ID of %", tagProperties->getTagStr()));
8569
} else {
8570
new GNEAttributeProperties(tagProperties, SUMO_ATTR_ID,
8571
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE,
8572
GNEAttributeProperties::Edit::EDITMODE,
8573
TLF("ID of %", tagProperties->getTagStr()));
8574
}
8575
}
8576
8577
8578
void
8579
GNETagPropertiesDatabase::fillNameAttribute(GNETagProperties* tagProperties) {
8580
new GNEAttributeProperties(tagProperties, SUMO_ATTR_NAME,
8581
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
8582
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8583
TLF("Optional name for %", tagProperties->getTagStr()));
8584
}
8585
8586
8587
void
8588
GNETagPropertiesDatabase::fillEdgeAttribute(GNETagProperties* tagProperties, const bool synonymID) {
8589
if (synonymID) {
8590
// set values of attributes
8591
auto edge = new GNEAttributeProperties(tagProperties, SUMO_ATTR_EDGE,
8592
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::SYNONYM | GNEAttributeProperties::Property::UPDATEGEOMETRY,
8593
GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
8594
TL("The id of an edge in the simulation network"));
8595
edge->setSynonym(SUMO_ATTR_ID);
8596
} else {
8597
new GNEAttributeProperties(tagProperties, SUMO_ATTR_EDGE,
8598
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
8599
GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
8600
TL("The id of an edge in the simulation network"));
8601
}
8602
}
8603
8604
8605
void
8606
GNETagPropertiesDatabase::fillLaneAttribute(GNETagProperties* tagProperties, const bool synonymID) {
8607
if (synonymID) {
8608
auto lane = new GNEAttributeProperties(tagProperties, SUMO_ATTR_LANE,
8609
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::SYNONYM | GNEAttributeProperties::Property::UPDATEGEOMETRY,
8610
GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
8611
TLF("The name of the lane the % shall be located at", tagProperties->getTagStr()));
8612
lane->setSynonym(SUMO_ATTR_ID);
8613
} else {
8614
new GNEAttributeProperties(tagProperties, SUMO_ATTR_LANE,
8615
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
8616
GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
8617
TLF("The name of the lane the % shall be located at", tagProperties->getTagStr()));
8618
}
8619
}
8620
8621
8622
void
8623
GNETagPropertiesDatabase::fillFriendlyPosAttribute(GNETagProperties* tagProperties) {
8624
new GNEAttributeProperties(tagProperties, SUMO_ATTR_FRIENDLY_POS,
8625
GNEAttributeProperties::Property::BOOL | GNEAttributeProperties::Property::DEFAULTVALUE,
8626
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8627
TL("If set, no error will be reported if element is placed behind the lane.") + std::string("\n") +
8628
TL("Instead, it will be placed 0.1 meters from the lanes end or at position 0.1,") + std::string("\n") +
8629
TL("if the position was negative and larger than the lanes length after multiplication with - 1"),
8630
GNEAttributeCarrier::FALSE_STR);
8631
}
8632
8633
8634
void
8635
GNETagPropertiesDatabase::fillVTypesAttribute(GNETagProperties* tagProperties) {
8636
new GNEAttributeProperties(tagProperties, SUMO_ATTR_VTYPES,
8637
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE,
8638
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8639
TL("Space separated list of vehicle type ids to consider"));
8640
}
8641
8642
8643
void
8644
GNETagPropertiesDatabase::fillFileAttribute(GNETagProperties* tagProperties) {
8645
auto file = new GNEAttributeProperties(tagProperties, SUMO_ATTR_FILE,
8646
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::FILESAVE | GNEAttributeProperties::Property::DEFAULTVALUE,
8647
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8648
TL("The path to the output file"));
8649
file->setFilenameExtensions(SUMOXMLDefinitions::OutputFileExtensions.getStrings());
8650
}
8651
8652
8653
void
8654
GNETagPropertiesDatabase::fillOutputAttribute(GNETagProperties* tagProperties) {
8655
auto output = new GNEAttributeProperties(tagProperties, SUMO_ATTR_OUTPUT,
8656
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::FILESAVE | GNEAttributeProperties::Property::DEFAULTVALUE,
8657
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8658
TL("Path to the output file for writing information"));
8659
output->setFilenameExtensions(SUMOXMLDefinitions::OutputFileExtensions.getStrings());
8660
}
8661
8662
8663
void
8664
GNETagPropertiesDatabase::fillImgFileAttribute(GNETagProperties* tagProperties, const bool isExtended) {
8665
GNEAttributeProperties* imgFile = nullptr;
8666
if (isExtended) {
8667
imgFile = new GNEAttributeProperties(tagProperties, SUMO_ATTR_IMGFILE,
8668
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::FILEOPEN | GNEAttributeProperties::Property::DEFAULTVALUE,
8669
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::EXTENDEDEDITOR,
8670
TLF("A bitmap to use for rendering this %", tagProperties->getTagStr()));
8671
} else {
8672
imgFile = new GNEAttributeProperties(tagProperties, SUMO_ATTR_IMGFILE,
8673
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::FILEOPEN | GNEAttributeProperties::Property::DEFAULTVALUE,
8674
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8675
TLF("A bitmap to use for rendering this %", tagProperties->getTagStr()));
8676
}
8677
imgFile->setFilenameExtensions(SUMOXMLDefinitions::ImageFileExtensions.getStrings());
8678
}
8679
8680
8681
void
8682
GNETagPropertiesDatabase::fillDepartAttribute(GNETagProperties* tagProperties) {
8683
new GNEAttributeProperties(tagProperties, SUMO_ATTR_DEPART,
8684
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DEFAULTVALUE,
8685
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8686
TLF("The departure time of the (first) % which is generated using this trip definition", tagProperties->getTagStr()),
8687
"0");
8688
}
8689
8690
8691
void
8692
GNETagPropertiesDatabase::fillAllowDisallowAttributes(GNETagProperties* tagProperties) {
8693
new GNEAttributeProperties(tagProperties, SUMO_ATTR_ALLOW,
8694
GNEAttributeProperties::Property::VCLASS | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
8695
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
8696
TL("Explicitly allows the given vehicle classes (not given will be not allowed)"),
8697
"all");
8698
8699
new GNEAttributeProperties(tagProperties, SUMO_ATTR_DISALLOW,
8700
GNEAttributeProperties::Property::VCLASS | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::COPYABLE,
8701
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
8702
TL("Explicitly disallows the given vehicle classes (not given will be allowed)"));
8703
}
8704
8705
8706
void
8707
GNETagPropertiesDatabase::fillPosOverLaneAttribute(GNETagProperties* tagProperties) {
8708
new GNEAttributeProperties(tagProperties, SUMO_ATTR_POSITION,
8709
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::UNIQUE | GNEAttributeProperties::Property::DEFAULTVALUE | GNEAttributeProperties::Property::UPDATEGEOMETRY,
8710
GNEAttributeProperties::Edit::EDITMODE | GNEAttributeProperties::Edit::DIALOGEDITOR,
8711
TLF("The position on the lane the % shall be laid on in meters", tagProperties->getTagStr()),
8712
"0");
8713
}
8714
8715
8716
void
8717
GNETagPropertiesDatabase::fillDetectPersonsAttribute(GNETagProperties* tagProperties) {
8718
auto detectPersons = new GNEAttributeProperties(tagProperties, SUMO_ATTR_DETECT_PERSONS,
8719
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::DISCRETE | GNEAttributeProperties::Property::DEFAULTVALUE,
8720
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8721
TL("Detect persons instead of vehicles (pedestrians or passengers)"),
8722
SUMOXMLDefinitions::PersonModeValues.getString(PersonMode::NONE));
8723
detectPersons->setDiscreteValues(SUMOXMLDefinitions::PersonModeValues.getStrings());
8724
}
8725
8726
8727
void
8728
GNETagPropertiesDatabase::fillColorAttribute(GNETagProperties* tagProperties, const std::string& defaultColor) {
8729
new GNEAttributeProperties(tagProperties, SUMO_ATTR_COLOR,
8730
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::COLOR | GNEAttributeProperties::Property::DEFAULTVALUE,
8731
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8732
TLF("The RGBA color with which the % shall be displayed", tagProperties->getTagStr()),
8733
defaultColor);
8734
}
8735
8736
8737
void
8738
GNETagPropertiesDatabase::fillDetectorPeriodAttribute(GNETagProperties* tagProperties) {
8739
new GNEAttributeProperties(tagProperties, SUMO_ATTR_PERIOD,
8740
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
8741
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8742
TLF("The aggregation period the values the % detector collects shall be summed up", tagProperties->getTagStr()),
8743
"300");
8744
}
8745
8746
8747
void
8748
GNETagPropertiesDatabase::fillDetectorNextEdgesAttribute(GNETagProperties* tagProperties) {
8749
new GNEAttributeProperties(tagProperties, SUMO_ATTR_NEXT_EDGES,
8750
GNEAttributeProperties::Property::STRING | GNEAttributeProperties::Property::LIST | GNEAttributeProperties::Property::DEFAULTVALUE,
8751
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8752
TL("List of edge ids that must all be part of the future route of the vehicle to qualify for detection"));
8753
}
8754
8755
8756
void
8757
GNETagPropertiesDatabase::fillDetectorThresholdAttributes(GNETagProperties* tagProperties, const bool includingJam) {
8758
new GNEAttributeProperties(tagProperties, SUMO_ATTR_HALTING_TIME_THRESHOLD,
8759
GNEAttributeProperties::Property::SUMOTIME | GNEAttributeProperties::Property::DEFAULTVALUE,
8760
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8761
TL("The time-based threshold that describes how much time has to pass until a vehicle is recognized as halting)"),
8762
"1");
8763
8764
new GNEAttributeProperties(tagProperties, SUMO_ATTR_HALTING_SPEED_THRESHOLD,
8765
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
8766
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8767
TL("The speed-based threshold that describes how slow a vehicle has to be to be recognized as halting) in m/s"),
8768
"1.39");
8769
if (includingJam) {
8770
new GNEAttributeProperties(tagProperties, SUMO_ATTR_JAM_DIST_THRESHOLD,
8771
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
8772
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8773
TL("The maximum distance to the next standing vehicle in order to make this vehicle count as a participant to the jam in m"),
8774
"10");
8775
}
8776
}
8777
8778
8779
void
8780
GNETagPropertiesDatabase::fillDistributionProbability(GNETagProperties* tagProperties, const bool visible) {
8781
if (visible) {
8782
new GNEAttributeProperties(tagProperties, SUMO_ATTR_PROB,
8783
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
8784
GNEAttributeProperties::Edit::CREATEMODE | GNEAttributeProperties::Edit::EDITMODE,
8785
TL("The probability when being added to a distribution without an explicit probability"),
8786
"1");
8787
} else {
8788
new GNEAttributeProperties(tagProperties, SUMO_ATTR_PROB,
8789
GNEAttributeProperties::Property::FLOAT | GNEAttributeProperties::Property::POSITIVE | GNEAttributeProperties::Property::DEFAULTVALUE,
8790
GNEAttributeProperties::Edit::NO_EDIT,
8791
TL("The probability when being added to a distribution without an explicit probability"),
8792
"1");
8793
}
8794
}
8795
8796
8797
void
8798
GNETagPropertiesDatabase::updateMaxNumberOfAttributesEditorRows() {
8799
for (const auto& tagPropertyItem : myTagProperties) {
8800
int basicEditableAttributes = 0;
8801
int geoAttributes = 0;
8802
int flowAttributes = 0;
8803
int neteditAttributes = 0;
8804
for (const auto& attributeProperty : tagPropertyItem.second->getAttributeProperties()) {
8805
if (attributeProperty->isCreateMode() || attributeProperty->isEditMode()) {
8806
if (attributeProperty->isBasicEditor()) {
8807
basicEditableAttributes++;
8808
}
8809
if (attributeProperty->isGeoEditor()) {
8810
geoAttributes++;
8811
}
8812
if (attributeProperty->isFlowEditor()) {
8813
flowAttributes++;
8814
}
8815
if (attributeProperty->isNeteditEditor()) {
8816
neteditAttributes++;
8817
}
8818
}
8819
}
8820
if (myMaxNumberOfEditableAttributeRows < basicEditableAttributes) {
8821
myMaxNumberOfEditableAttributeRows = basicEditableAttributes;
8822
}
8823
if (myMaxNumberOfGeoAttributeRows < geoAttributes) {
8824
myMaxNumberOfGeoAttributeRows = geoAttributes;
8825
}
8826
if (myMaxNumberOfFlowAttributeRows < flowAttributes) {
8827
myMaxNumberOfFlowAttributeRows = flowAttributes;
8828
}
8829
if (myMaxNumberOfNeteditAttributeRows < neteditAttributes) {
8830
myMaxNumberOfNeteditAttributeRows = neteditAttributes;
8831
}
8832
}
8833
}
8834
8835
8836
void
8837
GNETagPropertiesDatabase::updateMaxHierarchyDepth() {
8838
for (const auto& tagPropertyItem : myTagProperties) {
8839
const int hierarchySize = (int)tagPropertyItem.second->getHierarchicalParentsRecuersively().size();
8840
if (hierarchySize > myHierarchyDepth) {
8841
myHierarchyDepth = hierarchySize;
8842
}
8843
}
8844
}
8845
8846
/****************************************************************************/
8847
8848