Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNENet.h
Go to the documentation of this file.
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/****************************************************************************/
18// The lop level container for GNE-network-components such as GNEEdge and
19// GNEJunction. Contains an internal instances of NBNetBuilder GNE components
20// wrap netbuild-components of this underlying NBNetBuilder and supply
21// visualisation and editing capabilities (adapted from GUINet)
22//
23// WorkrouteFlow (rough draft)
24// wrap NB-components
25// do netedit stuff
26// call NBNetBuilder::buildLoaded to save results
27//
28/****************************************************************************/
29#pragma once
30#include <config.h>
31
32#include "GNENetHelper.h"
33#include "GNEPathManager.h"
34
35// ===========================================================================
36// class definitions
37// ===========================================================================
38
39class GNENet : public GUIGlObject {
40
41public:
43 GNENet(GNEApplicationWindow* applicationWindow, NBNetBuilder* netBuilder);
44
46 ~GNENet();
47
50
52 GNEViewNet* getViewNet() const;
53
56
58 GNEUndoList* getUndoList() const;
59
62
65
68
71
74
77
80
83
86
94
103
109 Boundary getCenteringBoundary() const override;
110
112 void expandBoundary(const Boundary& newBoundary);
113
115 const Boundary& getZBoundary() const;
116
118 void addZValueInBoundary(const double z);
119
124 void drawGL(const GUIVisualizationSettings& s) const override;
125
127
129 const Boundary& getBoundary() const;
130
136
138 const std::map<std::string, int>& getEdgesAndNumberOfLanes() const;
139
145 GNEJunction* createJunction(const Position& pos, GNEUndoList* undoList);
146
159 GNEEdge* createEdge(GNEJunction* src, GNEJunction* dest, GNEEdge* edgeTemplate, GNEUndoList* undoList,
160 const std::string& suggestedName = "", bool wasSplit = false, bool allowDuplicateGeom = false,
161 bool recomputeConnections = true);
162
167 void deleteNetworkElement(GNENetworkElement* networkElement, GNEUndoList* undoList);
168
173 void deleteJunction(GNEJunction* junction, GNEUndoList* undoList);
174
179 void deleteEdge(GNEEdge* edge, GNEUndoList* undoList, bool recomputeConnections);
180
186 void replaceIncomingEdge(GNEEdge* which, GNEEdge* by, GNEUndoList* undoList);
187
192 void deleteLane(GNELane* lane, GNEUndoList* undoList, bool recomputeConnections);
193
198 void deleteConnection(GNEConnection* connection, GNEUndoList* undoList);
199
204 void deleteCrossing(GNECrossing* crossing, GNEUndoList* undoList);
205
210 void deleteAdditional(GNEAdditional* additional, GNEUndoList* undoList);
211
216 void deleteTAZSourceSink(GNETAZSourceSink* TAZSourceSink, GNEUndoList* undoList);
217
222 void deleteDemandElement(GNEDemandElement* demandElement, GNEUndoList* undoList);
223
228 void deleteDataSet(GNEDataSet* dataSet, GNEUndoList* undoList);
229
234 void deleteDataInterval(GNEDataInterval* dataInterval, GNEUndoList* undoList);
235
240 void deleteGenericData(GNEGenericData* genericData, GNEUndoList* undoList);
241
246 void deleteMeanData(GNEMeanData* meanData, GNEUndoList* undoList);
247
252 void duplicateLane(GNELane* lane, GNEUndoList* undoList, bool recomputeConnections);
253
259 bool restrictLane(SUMOVehicleClass vclass, GNELane* lane, GNEUndoList* undoList);
260
267 bool addRestrictedLane(SUMOVehicleClass vclass, GNEEdge* edge, int index, GNEUndoList* undoList);
268
274 bool addGreenVergeLane(GNEEdge* edge, int index, GNEUndoList* undoList);
275
281 bool removeRestrictedLane(SUMOVehicleClass vclass, GNEEdge* edge, GNEUndoList* undoList);
282
288 std::pair<GNEJunction*, GNEEdge*> splitEdge(GNEEdge* edge, const Position& pos, GNEUndoList* undoList, GNEJunction* newJunction = 0);
289
295 void splitEdgesBidi(GNEEdge* edge, GNEEdge* oppositeEdge, const Position& pos, GNEUndoList* undoList);
296
300 void reverseEdge(GNEEdge* edge, GNEUndoList* undoList);
301
307 GNEEdge* addReversedEdge(GNEEdge* edge, const bool disconnected, GNEUndoList* undoList);
308
315 void mergeJunctions(GNEJunction* moved, const GNEJunction* target, GNEUndoList* undoList);
316
318 void selectRoundabout(GNEJunction* junction, GNEUndoList* undoList);
319
321 void createRoundabout(GNEJunction* junction, GNEUndoList* undoList);
322
324 void saveNetwork();
325
327 void savePlain(const std::string& prefix, const OptionsCont& netconvertOptions);
328
330 void saveJoined(const std::string& filename);
331
334
337
339 void changeEdgeEndpoints(GNEEdge* edge, const std::string& newSourceID, const std::string& newDestID);
340
341
344
347
349 void initGNEConnections();
350
352 void computeAndUpdate(OptionsCont& neteditOptions, bool volatileOptions);
353
359 void computeNetwork(GNEApplicationWindow* window, bool force = false, bool volatileOptions = false);
360
365
370
377 bool joinSelectedJunctions(GNEUndoList* undoList);
378
380 bool cleanInvalidCrossings(GNEUndoList* undoList);
381
383 void removeSolitaryJunctions(GNEUndoList* undoList);
384
386 void cleanUnusedRoutes(GNEUndoList* undoList);
387
389 void joinRoutes(GNEUndoList* undoList);
390
392 void adjustPersonPlans(GNEUndoList* undoList);
393
396
398 void replaceJunctionByGeometry(GNEJunction* junction, GNEUndoList* undoList);
399
401 void splitJunction(GNEJunction* junction, bool reconnect, GNEUndoList* undoList);
402
404 void clearJunctionConnections(GNEJunction* junction, GNEUndoList* undoList);
405
407 void resetJunctionConnections(GNEJunction* junction, GNEUndoList* undoList);
408
410 void clearAdditionalElements(GNEUndoList* undoList);
411
413 void clearDemandElements(GNEUndoList* undoList);
414
416 void clearDataElements(GNEUndoList* undoList);
417
419 void clearMeanDataElements(GNEUndoList* undoList);
420
424 void computeJunction(GNEJunction* junction);
425
427 void requireRecompute();
428
430 bool isNetRecomputed() const;
431
433 void addExplicitTurnaround(std::string id);
434
436 void removeExplicitTurnaround(std::string id);
437
439 bool saveAdditionals();
440
442 bool saveJuPedSimElements(const std::string& filename);
443
445 bool saveDemandElements();
446
448 bool saveDataElements();
449
451 double getDataSetIntervalMinimumBegin() const;
452
454 double getDataSetIntervalMaximumEnd() const;
455
457 bool saveMeanDatas();
458
462 void saveTLSPrograms(const std::string& filename);
463
465 int getNumberOfTLSPrograms() const;
466
470 void saveEdgeTypes(const std::string& filename);
471
476
479
481 bool isUpdateGeometryEnabled() const;
482
484
488 void enableUpdateData();
489
491 void disableUpdateData();
492
494 bool isUpdateDataEnabled() const;
495
497
499 unsigned int& getJunctionIDCounter();
500
502 unsigned int& getEdgeIDCounter();
503
505 static const std::map<SumoXMLAttr, std::string> EMPTY_HEADER;
506
507protected:
510
513
516
519
522
525
528
531
534
536 // @{
537 unsigned int myJunctionIDCounter = 0;
538 unsigned int myEdgeIDCounter = 0;
539 // @}
540
542 std::set<std::string> myExplicitTurnarounds;
543
545 bool myNeedRecompute = true;
546
549
552
553private:
556
558 bool checkJunctionPosition(const Position& pos);
559
561 void writeAdditionalFileElements(OutputDevice& device, const FileBucket* fileBucket);
562
564 void writeAdditionalByType(OutputDevice& device, const FileBucket* fileBucket, const std::vector<SumoXMLTag> tags) const;
565
567 void writeDemandByType(OutputDevice& device, const FileBucket* fileBucket, SumoXMLTag tag) const;
568
570 void writeRouteDistributions(OutputDevice& device, const FileBucket* fileBucket) const;
571
573 void writeRoutes(OutputDevice& device, const FileBucket* fileBucket) const;
574
576 void writeVTypeDistributions(OutputDevice& device, const FileBucket* fileBucket) const;
577
579 void writeVTypes(OutputDevice& device, const FileBucket* fileBucket) const;
580
582 void writeMeanDatas(OutputDevice& device, const FileBucket* fileBucket, SumoXMLTag tag) const;
583
585 bool writeVTypeComment(OutputDevice& device, const FileBucket* fileBucket) const;
586
588 bool writeRouteComment(OutputDevice& device, const FileBucket* fileBucket) const;
589
591 bool writeRerouterComment(OutputDevice& device, const FileBucket* fileBucket) const;
592
594 bool writeVariableSpeedSignComment(OutputDevice& device, const FileBucket* fileBucket) const;
595
597 bool writeRouteProbeComment(OutputDevice& device, const FileBucket* fileBucket) const;
598
600 bool writeVaporizerComment(OutputDevice& device, const FileBucket* fileBucket) const;
601
603 bool writeCalibratorComment(OutputDevice& device, const FileBucket* fileBucket) const;
604
606 bool writeStoppingPlaceComment(OutputDevice& device, const FileBucket* fileBucket) const;
607
609 bool writeDetectorComment(OutputDevice& device, const FileBucket* fileBucket) const;
610
612 bool writeShapesComment(OutputDevice& device, const FileBucket* fileBucket) const;
613
615 bool writeJuPedSimComment(OutputDevice& device, const FileBucket* fileBucket) const;
616
618 bool writeTAZComment(OutputDevice& device, const FileBucket* fileBucket) const;
619
621 bool writeWireComment(OutputDevice& device, const FileBucket* fileBucket) const;
622
624 bool writeMeanDataEdgeComment(OutputDevice& device, const FileBucket* fileBucket) const;
625
627 bool writeMeanDataLaneComment(OutputDevice& device, const FileBucket* fileBucket) const;
628
630 static void replaceInListAttribute(GNEAttributeCarrier* ac, SumoXMLAttr key, const std::string& which, const std::string& by, GNEUndoList* undoList);
631
634
636 std::map<std::string, int> myEdgesAndNumberOfLanes;
637
639 static const double Z_INITIALIZED;
640
642 GNENet() = delete;
643
645 GNENet(const GNENet&) = delete;
646
648 GNENet& operator=(const GNENet&) = delete;
649};
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
SumoXMLTag
Numbers representing SUMO-XML - element names.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
A class that stores a 2D geometrical boundary.
Definition Boundary.h:39
modul for AC Templates
struct used for saving all attribute carriers of net, in different formats
modul for Saving status
void clearAdditionalElements(GNEUndoList *undoList)
clear additionals
Definition GNENet.cpp:2129
void removeSolitaryJunctions(GNEUndoList *undoList)
removes junctions that have no edges
Definition GNENet.cpp:1786
GNEPathManager * myDataPathManager
Data path manager.
Definition GNENet.h:533
void deleteEdge(GNEEdge *edge, GNEUndoList *undoList, bool recomputeConnections)
removes edge
Definition GNENet.cpp:482
void writeAdditionalByType(OutputDevice &device, const FileBucket *fileBucket, const std::vector< SumoXMLTag > tags) const
write additional element by type and sorted by ID
Definition GNENet.cpp:2505
bool joinSelectedJunctions(GNEUndoList *undoList)
join selected junctions
Definition GNENet.cpp:1626
bool writeJuPedSimComment(OutputDevice &device, const FileBucket *fileBucket) const
write JuPedSim comment
Definition GNENet.cpp:2756
double getDataSetIntervalMaximumEnd() const
get maximum interval
Definition GNENet.cpp:2380
void deleteLane(GNELane *lane, GNEUndoList *undoList, bool recomputeConnections)
removes lane
Definition GNENet.cpp:661
static const double Z_INITIALIZED
marker for whether the z-boundary is initialized
Definition GNENet.h:639
void deleteCrossing(GNECrossing *crossing, GNEUndoList *undoList)
remove crossing
Definition GNENet.cpp:718
SUMORTree & getGrid()
Returns the RTree used for visualisation speed-up.
Definition GNENet.cpp:217
bool writeRouteProbeComment(OutputDevice &device, const FileBucket *fileBucket) const
write routeProbe comment
Definition GNENet.cpp:2671
void deleteAdditional(GNEAdditional *additional, GNEUndoList *undoList)
remove additional
Definition GNENet.cpp:736
bool saveMeanDatas()
save meanData elements of the network
Definition GNENet.cpp:2397
void disableUpdateGeometry()
disable update geometry of elements after inserting or removing an element in net
Definition GNENet.cpp:2875
void saveTLSPrograms(const std::string &filename)
save TLS Programs elements of the network
Definition GNENet.cpp:2822
void computeAndUpdate(OptionsCont &neteditOptions, bool volatileOptions)
recompute the network and update lane geometries
Definition GNENet.cpp:2979
NBNetBuilder * getNetBuilder() const
get net builder
Definition GNENet.cpp:168
void writeVTypeDistributions(OutputDevice &device, const FileBucket *fileBucket) const
write vTypeDistributions sorted by ID
Definition GNENet.cpp:2570
void addGLObjectIntoGrid(GNEAttributeCarrier *AC)
add GL Object into net
Definition GNENet.cpp:1444
GNEPathManager * getDataPathManager()
get data path manager
Definition GNENet.cpp:204
void reverseEdge(GNEEdge *edge, GNEUndoList *undoList)
reverse edge
Definition GNENet.cpp:1138
bool writeTAZComment(OutputDevice &device, const FileBucket *fileBucket) const
write TAZ comment
Definition GNENet.cpp:2771
void removeGLObjectFromGrid(GNEAttributeCarrier *AC)
add GL Object into net
Definition GNENet.cpp:1454
void saveJoined(const std::string &filename)
save log of joined junctions (and nothing else)
Definition GNENet.cpp:1436
NBTrafficLightLogicCont & getTLLogicCont()
returns the tllcont of the underlying netbuilder
Definition GNENet.cpp:2197
bool restrictLane(SUMOVehicleClass vclass, GNELane *lane, GNEUndoList *undoList)
transform lane to restricted lane
Definition GNENet.cpp:877
GNENetHelper::SavingStatus * getSavingStatus() const
get saving status
Definition GNENet.cpp:186
void enableUpdateData()
Definition GNENet.cpp:2887
void mergeJunctions(GNEJunction *moved, const GNEJunction *target, GNEUndoList *undoList)
merge the given junctions edges between the given junctions will be deleted
Definition GNENet.cpp:1192
void writeAdditionalFileElements(OutputDevice &device, const FileBucket *fileBucket)
write additionals demand elements and meanData in output device
Definition GNENet.cpp:2423
bool myNeedRecompute
whether the net needs recomputation
Definition GNENet.h:545
void deleteDemandElement(GNEDemandElement *demandElement, GNEUndoList *undoList)
remove demand element
Definition GNENet.cpp:770
void duplicateLane(GNELane *lane, GNEUndoList *undoList, bool recomputeConnections)
duplicates lane
Definition GNENet.cpp:861
const Boundary & getZBoundary() const
Returns the Z boundary (stored in the x() coordinate) values of 0 do not affect the boundary.
Definition GNENet.cpp:270
const Boundary & getBoundary() const
returns the bounder of the network
Definition GNENet.cpp:210
void saveEdgeTypes(const std::string &filename)
save edgeTypes elements of the network
Definition GNENet.cpp:2841
GNENet(const GNENet &)=delete
Invalidated copy constructor.
void deleteNetworkElement(GNENetworkElement *networkElement, GNEUndoList *undoList)
delete network element
Definition GNENet.cpp:394
void writeMeanDatas(OutputDevice &device, const FileBucket *fileBucket, SumoXMLTag tag) const
write meanData element by type and sorted by ID
Definition GNENet.cpp:2599
bool writeStoppingPlaceComment(OutputDevice &device, const FileBucket *fileBucket) const
write stoppingPlace comment
Definition GNENet.cpp:2710
SUMORTree myGrid
the rtree which contains all GUIGlObjects (so named for historical reasons)
Definition GNENet.h:509
void clearDataElements(GNEUndoList *undoList)
clear data elements
Definition GNENet.cpp:2164
void deleteDataInterval(GNEDataInterval *dataInterval, GNEUndoList *undoList)
remove data interval
Definition GNENet.cpp:809
bool saveDataElements()
save data set elements of the network
Definition GNENet.cpp:2332
void deleteConnection(GNEConnection *connection, GNEUndoList *undoList)
remove connection
Definition GNENet.cpp:703
void clearDemandElements(GNEUndoList *undoList)
clear demand elements
Definition GNENet.cpp:2142
GNEPathManager * getDemandPathManager()
get demand path manager
Definition GNENet.cpp:198
void adjustPersonPlans(GNEUndoList *undoList)
adjust person plans
Definition GNENet.cpp:1892
GNENetHelper::ACTemplate * getACTemplates() const
get all attribute carriers templates used in this net
Definition GNENet.cpp:180
void computeNetwork(GNEApplicationWindow *window, bool force=false, bool volatileOptions=false)
trigger full netbuild computation param[in] window The window to inform about delay param[in] force W...
Definition GNENet.cpp:1464
void cleanInvalidDemandElements(GNEUndoList *undoList)
clean invalid demand elements
Definition GNENet.cpp:1937
bool myUpdateDataEnabled
Flag to enable or disable update data elements after inserting or removing element in net.
Definition GNENet.h:551
void cleanUnusedRoutes(GNEUndoList *undoList)
clean unused routes
Definition GNENet.cpp:1802
NBNetBuilder * myNetBuilder
The internal netbuilder.
Definition GNENet.h:515
void removeExplicitTurnaround(std::string id)
remove edge id from the list of explicit turnarounds
Definition GNENet.cpp:2215
bool writeCalibratorComment(OutputDevice &device, const FileBucket *fileBucket) const
write calibrator comment
Definition GNENet.cpp:2695
void computeJunction(GNEJunction *junction)
trigger recomputation of junction shape and logic param[in] window The window to inform about delay
Definition GNENet.cpp:1596
void resetJunctionConnections(GNEJunction *junction, GNEUndoList *undoList)
reset junction's connections
Definition GNENet.cpp:2118
bool writeRouteComment(OutputDevice &device, const FileBucket *fileBucket) const
write route comment
Definition GNENet.cpp:2635
void deleteMeanData(GNEMeanData *meanData, GNEUndoList *undoList)
remove generic data
Definition GNENet.cpp:852
void replaceIncomingEdge(GNEEdge *which, GNEEdge *by, GNEUndoList *undoList)
replaces edge
Definition GNENet.cpp:568
void deleteGenericData(GNEGenericData *genericData, GNEUndoList *undoList)
remove generic data
Definition GNENet.cpp:822
std::pair< GNEJunction *, GNEEdge * > splitEdge(GNEEdge *edge, const Position &pos, GNEUndoList *undoList, GNEJunction *newJunction=0)
split edge at position by inserting a new junction
Definition GNENet.cpp:997
Boundary getCenteringBoundary() const override
Returns the boundary to which the view shall be centered in order to show the object.
Definition GNENet.cpp:258
bool writeShapesComment(OutputDevice &device, const FileBucket *fileBucket) const
write shape comment
Definition GNENet.cpp:2740
bool writeMeanDataEdgeComment(OutputDevice &device, const FileBucket *fileBucket) const
write meanDataEdge comment
Definition GNENet.cpp:2798
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
Definition GNENet.cpp:174
void writeRoutes(OutputDevice &device, const FileBucket *fileBucket) const
write route sorted by ID
Definition GNENet.cpp:2556
bool writeMeanDataLaneComment(OutputDevice &device, const FileBucket *fileBucket) const
write Wire comment
Definition GNENet.cpp:2810
GNEEdge * addReversedEdge(GNEEdge *edge, const bool disconnected, GNEUndoList *undoList)
add reversed edge
Definition GNENet.cpp:1154
GNEApplicationWindow * getGNEApplicationWindow() const
get tag properties database
Definition GNENet.cpp:138
void changeEdgeEndpoints(GNEEdge *edge, const std::string &newSourceID, const std::string &newDestID)
modifies endpoins of the given edge
Definition GNENet.cpp:2188
bool myUpdateGeometryEnabled
Flag to enable or disable update geometry of elements after inserting or removing element in net.
Definition GNENet.h:548
void initJunctionsAndEdges()
Init Junctions and edges.
Definition GNENet.cpp:2925
void splitEdgesBidi(GNEEdge *edge, GNEEdge *oppositeEdge, const Position &pos, GNEUndoList *undoList)
split all edges at position by inserting one new junction
Definition GNENet.cpp:1114
GNENetHelper::SavingStatus * mySavingStatus
saving status module
Definition GNENet.h:524
void clearMeanDataElements(GNEUndoList *undoList)
clear meanDatas
Definition GNENet.cpp:2175
unsigned int myEdgeIDCounter
Definition GNENet.h:538
void expandBoundary(const Boundary &newBoundary)
expand boundary
Definition GNENet.cpp:264
void writeVTypes(OutputDevice &device, const FileBucket *fileBucket) const
write vTypes sorted by ID
Definition GNENet.cpp:2585
void disableUpdateData()
disable update data elements after inserting or removing an element in net
Definition GNENet.cpp:2898
bool writeRerouterComment(OutputDevice &device, const FileBucket *fileBucket) const
write rerouter comment
Definition GNENet.cpp:2647
bool removeRestrictedLane(SUMOVehicleClass vclass, GNEEdge *edge, GNEUndoList *undoList)
remove restricted lane
Definition GNENet.cpp:983
void deleteTAZSourceSink(GNETAZSourceSink *TAZSourceSink, GNEUndoList *undoList)
remove TAZSourceSink
Definition GNENet.cpp:761
~GNENet()
Destructor.
Definition GNENet.cpp:123
GNEApplicationWindow * myApplicationWindow
pointer to application window
Definition GNENet.h:512
GNEEdge * createEdge(GNEJunction *src, GNEJunction *dest, GNEEdge *edgeTemplate, GNEUndoList *undoList, const std::string &suggestedName="", bool wasSplit=false, bool allowDuplicateGeom=false, bool recomputeConnections=true)
creates a new edge (unless an edge with the same geometry already exists)
Definition GNENet.cpp:301
std::set< std::string > myExplicitTurnarounds
list of edge ids for which turn-arounds must be added explicitly
Definition GNENet.h:542
bool saveAdditionals()
save additional elements
Definition GNENet.cpp:2221
const std::map< std::string, int > & getEdgesAndNumberOfLanes() const
et edges and number of lanes
Definition GNENet.cpp:222
void writeRouteDistributions(OutputDevice &device, const FileBucket *fileBucket) const
write route distributions sorted by ID
Definition GNENet.cpp:2541
void addZValueInBoundary(const double z)
add Z in net boundary
Definition GNENet.cpp:276
static const std::map< SumoXMLAttr, std::string > EMPTY_HEADER
variable used for write headers in additional, demand and data elements
Definition GNENet.h:505
bool isUpdateGeometryEnabled() const
check if update geometry after inserting or removing has to be updated
Definition GNENet.cpp:2881
bool addRestrictedLane(SUMOVehicleClass vclass, GNEEdge *edge, int index, GNEUndoList *undoList)
add restricted lane to edge
Definition GNENet.cpp:930
void saveNetwork()
save the network
Definition GNENet.cpp:1391
bool writeVTypeComment(OutputDevice &device, const FileBucket *fileBucket) const
write vType comment
Definition GNENet.cpp:2616
bool saveJuPedSimElements(const std::string &filename)
save JuPedSim elements
Definition GNENet.cpp:2266
bool checkJunctionPosition(const Position &pos)
return true if there are already a Junction in the given position, false in other case
Definition GNENet.cpp:1379
bool addGreenVergeLane(GNEEdge *edge, int index, GNEUndoList *undoList)
add restricted lane to edge
Definition GNENet.cpp:966
const GNETagPropertiesDatabase * getTagPropertiesDatabase() const
get tag properties database (used for simplify code)
Definition GNENet.cpp:162
bool isNetRecomputed() const
check if net require recomputing
Definition GNENet.cpp:1620
GNENet & operator=(const GNENet &)=delete
Invalidated assignment operator.
GNEPathManager * myNetworkPathManager
Network path manager.
Definition GNENet.h:527
bool isUpdateDataEnabled() const
check if update data after inserting or removing has to be updated
Definition GNENet.cpp:2904
void deleteDataSet(GNEDataSet *dataSet, GNEUndoList *undoList)
remove data set
Definition GNENet.cpp:796
static void replaceInListAttribute(GNEAttributeCarrier *ac, SumoXMLAttr key, const std::string &which, const std::string &by, GNEUndoList *undoList)
replace in list attribute
Definition GNENet.cpp:3078
bool writeWireComment(OutputDevice &device, const FileBucket *fileBucket) const
write Wire comment
Definition GNENet.cpp:2783
bool cleanInvalidCrossings(GNEUndoList *undoList)
clear invalid crossings
Definition GNENet.cpp:1744
GNEPathManager * getNetworkPathManager()
get network path manager
Definition GNENet.cpp:192
void splitJunction(GNEJunction *junction, bool reconnect, GNEUndoList *undoList)
replace the selected junction by a list of junctions for each unique edge endpoint
Definition GNENet.cpp:2021
void selectRoundabout(GNEJunction *junction, GNEUndoList *undoList)
select all roundabout edges and junctions for the current roundabout
Definition GNENet.cpp:1223
void joinRoutes(GNEUndoList *undoList)
join routes
Definition GNENet.cpp:1828
void replaceJunctionByGeometry(GNEJunction *junction, GNEUndoList *undoList)
replace the selected junction by geometry node(s) and merge the edges
Definition GNENet.cpp:1976
void createRoundabout(GNEJunction *junction, GNEUndoList *undoList)
transform the given junction into a roundabout
Definition GNENet.cpp:1242
void requireRecompute()
inform the net about the need for recomputation
Definition GNENet.cpp:1614
GNEViewParent * getViewParent() const
get view parent (used for simplify code)
Definition GNENet.cpp:150
GNEJunction * createJunction(const Position &pos, GNEUndoList *undoList)
creates a new junction
Definition GNENet.cpp:285
void savePlain(const std::string &prefix, const OptionsCont &netconvertOptions)
save plain xml representation of the network (and nothing else)
Definition GNENet.cpp:1427
unsigned int myJunctionIDCounter
Definition GNENet.h:537
bool writeDetectorComment(OutputDevice &device, const FileBucket *fileBucket) const
write detector comment
Definition GNENet.cpp:2725
std::map< std::string, int > myEdgesAndNumberOfLanes
map with the Edges and their number of lanes
Definition GNENet.h:636
bool writeVariableSpeedSignComment(OutputDevice &device, const FileBucket *fileBucket) const
write variable speed sign comment
Definition GNENet.cpp:2659
GNEPathManager * myDemandPathManager
Demand path manager.
Definition GNENet.h:530
void addExplicitTurnaround(std::string id)
add edge id to the list of explicit turnarounds
Definition GNENet.cpp:2209
void initGNEConnections()
initialize GNEConnections
Definition GNENet.cpp:2966
void deleteJunction(GNEJunction *junction, GNEUndoList *undoList)
removes junction and all incident edges
Definition GNENet.cpp:435
NBEdgeCont & getEdgeCont()
returns the NBEdgeCont of the underlying netbuilder
Definition GNENet.cpp:2203
GNENet()=delete
Invalidated default constructor.
unsigned int & getJunctionIDCounter()
Definition GNENet.cpp:2910
bool saveDemandElements()
save demand element elements of the network
Definition GNENet.cpp:2283
GNENetHelper::AttributeCarriers * myAttributeCarriers
attributeCarriers module
Definition GNENet.h:518
void computeDataElements(GNEApplicationWindow *window)
compute data elements param[in] window The window to inform about delay
Definition GNENet.cpp:1583
GNENetHelper::ACTemplate * myACTemplates
attributeCarriers templates
Definition GNENet.h:521
GNEUndoList * getUndoList() const
get undo list(used for simplify code)
Definition GNENet.cpp:156
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent) override
Returns an own parameter window.
Definition GNENet.cpp:241
void writeDemandByType(OutputDevice &device, const FileBucket *fileBucket, SumoXMLTag tag) const
write demand element by type and sorted by ID
Definition GNENet.cpp:2527
void drawGL(const GUIVisualizationSettings &s) const override
Draws the object.
Definition GNENet.cpp:251
int getNumberOfTLSPrograms() const
get number of TLS Programs
Definition GNENet.cpp:2835
GNEViewNet * getViewNet() const
get view net (used for simplify code)
Definition GNENet.cpp:144
bool writeVaporizerComment(OutputDevice &device, const FileBucket *fileBucket) const
write vaporizer comment
Definition GNENet.cpp:2683
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent) override
Returns an own popup-menu.
Definition GNENet.cpp:228
void enableUpdateGeometry()
Definition GNENet.cpp:2869
void clearJunctionConnections(GNEJunction *junction, GNEUndoList *undoList)
clear junction's connections
Definition GNENet.cpp:2106
Boundary myZBoundary
the z boundary (stored in the x-coordinate), values of 0 are ignored
Definition GNENet.h:633
double getDataSetIntervalMinimumBegin() const
get minimum interval
Definition GNENet.cpp:2363
void computeDemandElements(GNEApplicationWindow *window)
compute demand elements param[in] window The window to inform about delay
Definition GNENet.cpp:1563
unsigned int & getEdgeIDCounter()
Definition GNENet.cpp:2916
A single child window which contains a view of the simulation area.
The popup menu of a globject.
A window containing a gl-object's parameter.
Stores the information about how to visualize structures.
Storage for edges, including some functionality operating on multiple edges.
Definition NBEdgeCont.h:59
Instance responsible for building networks.
A container for traffic light definitions and built programs.
A storage for options typed value containers)
Definition OptionsCont.h:89
Static storage of an output device and its base (abstract) implementation.
A point in 2D or 3D with translation and scaling methods.
Definition Position.h:37
A RT-tree for efficient storing of SUMO's GL-objects.
Definition SUMORTree.h:66