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-2024 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// ===========================================================================
42class GNENet : public GUIGlObject {
43
44public:
49 GNENet(NBNetBuilder* netBuilder);
50
52 ~GNENet();
53
56
59
62
65
68
71
79
88
95
97 void expandBoundary(const Boundary& newBoundary);
98
100 const Boundary& getZBoundary() const;
101
103 void addZValueInBoundary(const double z);
104
109 void drawGL(const GUIVisualizationSettings& s) const;
110
112
114 const Boundary& getBoundary() const;
115
121
123 const std::map<std::string, int>& getEdgesAndNumberOfLanes() const;
124
130 GNEJunction* createJunction(const Position& pos, GNEUndoList* undoList);
131
144 GNEEdge* createEdge(GNEJunction* src, GNEJunction* dest, GNEEdge* edgeTemplate, GNEUndoList* undoList,
145 const std::string& suggestedName = "", bool wasSplit = false, bool allowDuplicateGeom = false,
146 bool recomputeConnections = true);
147
152 void deleteNetworkElement(GNENetworkElement* networkElement, GNEUndoList* undoList);
153
158 void deleteJunction(GNEJunction* junction, GNEUndoList* undoList);
159
164 void deleteEdge(GNEEdge* edge, GNEUndoList* undoList, bool recomputeConnections);
165
171 void replaceIncomingEdge(GNEEdge* which, GNEEdge* by, GNEUndoList* undoList);
172
177 void deleteLane(GNELane* lane, GNEUndoList* undoList, bool recomputeConnections);
178
183 void deleteConnection(GNEConnection* connection, GNEUndoList* undoList);
184
189 void deleteCrossing(GNECrossing* crossing, GNEUndoList* undoList);
190
195 void deleteAdditional(GNEAdditional* additional, GNEUndoList* undoList);
196
201 void deleteDemandElement(GNEDemandElement* demandElement, GNEUndoList* undoList);
202
207 void deleteDataSet(GNEDataSet* dataSet, GNEUndoList* undoList);
208
213 void deleteDataInterval(GNEDataInterval* dataInterval, GNEUndoList* undoList);
214
219 void deleteGenericData(GNEGenericData* genericData, GNEUndoList* undoList);
220
225 void deleteMeanData(GNEMeanData* meanData, GNEUndoList* undoList);
226
231 void duplicateLane(GNELane* lane, GNEUndoList* undoList, bool recomputeConnections);
232
238 bool restrictLane(SUMOVehicleClass vclass, GNELane* lane, GNEUndoList* undoList);
239
246 bool addRestrictedLane(SUMOVehicleClass vclass, GNEEdge* edge, int index, GNEUndoList* undoList);
247
253 bool addGreenVergeLane(GNEEdge* edge, int index, GNEUndoList* undoList);
254
260 bool removeRestrictedLane(SUMOVehicleClass vclass, GNEEdge* edge, GNEUndoList* undoList);
261
267 std::pair<GNEJunction*, GNEEdge*> splitEdge(GNEEdge* edge, const Position& pos, GNEUndoList* undoList, GNEJunction* newJunction = 0);
268
274 void splitEdgesBidi(GNEEdge* edge, GNEEdge* oppositeEdge, const Position& pos, GNEUndoList* undoList);
275
279 void reverseEdge(GNEEdge* edge, GNEUndoList* undoList);
280
286 GNEEdge* addReversedEdge(GNEEdge* edge, const bool disconnected, GNEUndoList* undoList);
287
294 void mergeJunctions(GNEJunction* moved, GNEJunction* target, GNEUndoList* undoList);
295
297 void selectRoundabout(GNEJunction* junction, GNEUndoList* undoList);
298
300 void createRoundabout(GNEJunction* junction, GNEUndoList* undoList);
301
303 void saveNetwork();
304
306 void savePlain(const std::string& prefix);
307
309 void saveJoined(const std::string& filename);
310
312 void setViewNet(GNEViewNet* viewNet);
313
316
319
321 void changeEdgeEndpoints(GNEEdge* edge, const std::string& newSourceID, const std::string& newDestID);
322
324 GNEViewNet* getViewNet() const;
325
328
331
333 void initGNEConnections();
334
336 void computeAndUpdate(OptionsCont& neteditOptions, bool volatileOptions);
337
343 void computeNetwork(GNEApplicationWindow* window, bool force = false, bool volatileOptions = false);
344
349
354
361 bool joinSelectedJunctions(GNEUndoList* undoList);
362
364 bool cleanInvalidCrossings(GNEUndoList* undoList);
365
367 void removeSolitaryJunctions(GNEUndoList* undoList);
368
370 void cleanUnusedRoutes(GNEUndoList* undoList);
371
373 void joinRoutes(GNEUndoList* undoList);
374
376 void adjustPersonPlans(GNEUndoList* undoList);
377
380
382 void replaceJunctionByGeometry(GNEJunction* junction, GNEUndoList* undoList);
383
385 void splitJunction(GNEJunction* junction, bool reconnect, GNEUndoList* undoList);
386
388 void clearJunctionConnections(GNEJunction* junction, GNEUndoList* undoList);
389
391 void resetJunctionConnections(GNEJunction* junction, GNEUndoList* undoList);
392
394 void clearAdditionalElements(GNEUndoList* undoList);
395
397 void clearDemandElements(GNEUndoList* undoList);
398
400 void clearDataElements(GNEUndoList* undoList);
401
403 void clearMeanDataElements(GNEUndoList* undoList);
404
408 void computeJunction(GNEJunction* junction);
409
411 void requireRecompute();
412
414 bool isNetRecomputed() const;
415
417 FXApp* getApp();
418
421
423 void addExplicitTurnaround(std::string id);
424
426 void removeExplicitTurnaround(std::string id);
427
429 void saveAdditionals();
430
432 void saveJuPedSimElements(const std::string& file);
433
435 void saveDemandElements();
436
438 void saveDataElements();
439
441 double getDataSetIntervalMinimumBegin() const;
442
444 double getDataSetIntervalMaximumEnd() const;
445
447 void saveMeanDatas();
448
452 void saveTLSPrograms(const std::string& filename);
453
455 int getNumberOfTLSPrograms() const;
456
460 void saveEdgeTypes(const std::string& filename);
461
466
469
471 bool isUpdateGeometryEnabled() const;
472
474
478 void enableUpdateData();
479
481 void disableUpdateData();
482
484 bool isUpdateDataEnabled() const;
485
487
489 static const std::map<SumoXMLAttr, std::string> EMPTY_HEADER;
490
491protected:
494
497
500
503
506
509
512
515
517 // @{
518 unsigned int myJunctionIDCounter = 0;
519 unsigned int myEdgeIDCounter = 0;
520 // @}
521
523 std::set<std::string> myExplicitTurnarounds;
524
526 bool myNeedRecompute = true;
527
530
533
534private:
537
539 bool checkJunctionPosition(const Position& pos);
540
543
546
549
552
554 void writeAdditionalByType(OutputDevice& device, const std::vector<SumoXMLTag> tags) const;
555
557 void writeDemandByType(OutputDevice& device, SumoXMLTag tag) const;
558
560 void writeRouteDistributions(OutputDevice& device, const bool additionalFile) const;
561
563 void writeRoutes(OutputDevice& device, const bool additionalFile) const;
564
566 void writeVTypeDistributions(OutputDevice& device, const bool additionalFile) const;
567
569 void writeVTypes(OutputDevice& device, const bool additionalFile) const;
570
572 void writeMeanDatas(OutputDevice& device, SumoXMLTag tag) const;
573
575 bool writeVTypeComment(OutputDevice& device, const bool additionalFile) const;
576
578 bool writeRouteComment(OutputDevice& device, const bool additionalFile) const;
579
581 bool writeRouteProbeComment(OutputDevice& device) const;
582
584 bool writeCalibratorComment(OutputDevice& device) const;
585
587 bool writeStoppingPlaceComment(OutputDevice& device) const;
588
590 bool writeDetectorComment(OutputDevice& device) const;
591
593 bool writeOtherAdditionalsComment(OutputDevice& device) const;
594
596 bool writeShapesComment(OutputDevice& device) const;
597
599 bool writeJuPedSimComment(OutputDevice& device) const;
600
602 bool writeTAZComment(OutputDevice& device) const;
603
605 bool writeWireComment(OutputDevice& device) const;
606
608 bool writeMeanDataEdgeComment(OutputDevice& device) const;
609
611 bool writeMeanDataLaneComment(OutputDevice& device) const;
612
614 static void replaceInListAttribute(GNEAttributeCarrier* ac, SumoXMLAttr key, const std::string& which, const std::string& by, GNEUndoList* undoList);
615
618
620 std::map<std::string, int> myEdgesAndNumberOfLanes;
621
623 static const double Z_INITIALIZED;
624
626 GNENet(const GNENet&) = delete;
627
629 GNENet& operator=(const GNENet&) = delete;
630};
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
An Element which don't belong to GNENet but has influence in the simulation.
The main window of Netedit.
This object is responsible for drawing a shape and for supplying a a popup menu. Messages are routete...
Definition GNECrossing.h:44
An Element which don't belong to GNENet but has influence in the simulation.
A road/street connecting two junctions (netedit-version)
Definition GNEEdge.h:53
An Element which don't belong to GNENet but has influence in the simulation.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
Definition GNELane.h:46
An Element which don't belong to GNENet but has influence in the simulation.
Definition GNEMeanData.h:33
struct used for saving all attribute carriers of net, in different formats
modul for Saving status
A NBNetBuilder extended by visualisation and editing capabilities.
Definition GNENet.h:42
void clearAdditionalElements(GNEUndoList *undoList)
clear additionals
Definition GNENet.cpp:2096
void removeSolitaryJunctions(GNEUndoList *undoList)
removes junctions that have no edges
Definition GNENet.cpp:1745
GNEPathManager * myDataPathManager
Data path manager.
Definition GNENet.h:514
void deleteEdge(GNEEdge *edge, GNEUndoList *undoList, bool recomputeConnections)
removes edge
Definition GNENet.cpp:433
void writeMeanDatas(OutputDevice &device, SumoXMLTag tag) const
write meanData element by type and sorted by ID
Definition GNENet.cpp:2560
bool joinSelectedJunctions(GNEUndoList *undoList)
join selected junctions
Definition GNENet.cpp:1565
void writeVTypeDistributions(OutputDevice &device, const bool additionalFile) const
write vTypeDistributions sorted by ID
Definition GNENet.cpp:2525
double getDataSetIntervalMaximumEnd() const
get maximum interval
Definition GNENet.cpp:2306
bool writeJuPedSimComment(OutputDevice &device) const
write JuPedSim comment
Definition GNENet.cpp:2689
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Definition GNENet.cpp:205
void deleteLane(GNELane *lane, GNEUndoList *undoList, bool recomputeConnections)
removes lane
Definition GNENet.cpp:601
bool writeRouteProbeComment(OutputDevice &device) const
write routeProbe comment
Definition GNENet.cpp:2612
static const double Z_INITIALIZED
marker for whether the z-boundary is initialized
Definition GNENet.h:623
void deleteCrossing(GNECrossing *crossing, GNEUndoList *undoList)
remove crossing
Definition GNENet.cpp:658
SUMORTree & getGrid()
Returns the RTree used for visualisation speed-up.
Definition GNENet.cpp:164
GNEViewNet * myViewNet
The net to be notified of about changes.
Definition GNENet.h:499
void deleteAdditional(GNEAdditional *additional, GNEUndoList *undoList)
remove additional
Definition GNENet.cpp:676
void disableUpdateGeometry()
disable update geometry of elements after inserting or removing an element in net
Definition GNENet.cpp:2796
void saveDemandElementsConfirmed()
save demand elements after confirming invalid objects
Definition GNENet.cpp:2391
void saveTLSPrograms(const std::string &filename)
save TLS Programs elements of the network
Definition GNENet.cpp:2741
void computeAndUpdate(OptionsCont &neteditOptions, bool volatileOptions)
recompute the network and update lane geometries
Definition GNENet.cpp:2888
NBNetBuilder * getNetBuilder() const
get net builder
Definition GNENet.cpp:1559
void saveAdditionalsConfirmed()
save additionals after confirming invalid objects
Definition GNENet.cpp:2331
void addGLObjectIntoGrid(GNEAttributeCarrier *AC)
add GL Object into net
Definition GNENet.cpp:1386
GNEPathManager * getDataPathManager()
get data path manager
Definition GNENet.cpp:151
bool writeMeanDataLaneComment(OutputDevice &device) const
write Wire comment
Definition GNENet.cpp:2731
void reverseEdge(GNEEdge *edge, GNEUndoList *undoList)
reverse edge
Definition GNENet.cpp:1065
bool writeTAZComment(OutputDevice &device) const
write TAZ comment
Definition GNENet.cpp:2701
void removeGLObjectFromGrid(GNEAttributeCarrier *AC)
add GL Object into net
Definition GNENet.cpp:1396
void saveJoined(const std::string &filename)
save log of joined junctions (and nothing else)
Definition GNENet.cpp:1360
NBTrafficLightLogicCont & getTLLogicCont()
returns the tllcont of the underlying netbuilder
Definition GNENet.cpp:2161
bool restrictLane(SUMOVehicleClass vclass, GNELane *lane, GNEUndoList *undoList)
transform lane to restricted lane
Definition GNENet.cpp:804
GNENetHelper::SavingStatus * getSavingStatus() const
get saving status
Definition GNENet.cpp:133
void enableUpdateData()
Definition GNENet.cpp:2808
void setViewNet(GNEViewNet *viewNet)
Set the net to be notified of network changes.
Definition GNENet.cpp:1368
bool writeCalibratorComment(OutputDevice &device) const
write calibrator comment
Definition GNENet.cpp:2622
bool myNeedRecompute
whether the net needs recomputation
Definition GNENet.h:526
void deleteDemandElement(GNEDemandElement *demandElement, GNEUndoList *undoList)
remove demand element
Definition GNENet.cpp:697
void duplicateLane(GNELane *lane, GNEUndoList *undoList, bool recomputeConnections)
duplicates lane
Definition GNENet.cpp:788
const Boundary & getZBoundary() const
Returns the Z boundary (stored in the x() coordinate) values of 0 do not affect the boundary.
Definition GNENet.cpp:217
const Boundary & getBoundary() const
returns the bounder of the network
Definition GNENet.cpp:157
void saveEdgeTypes(const std::string &filename)
save edgeTypes elements of the network
Definition GNENet.cpp:2762
GNENet(const GNENet &)=delete
Invalidated copy constructor.
void deleteNetworkElement(GNENetworkElement *networkElement, GNEUndoList *undoList)
delete network element
Definition GNENet.cpp:345
void saveAdditionals()
save additional elements
Definition GNENet.cpp:2185
SUMORTree myGrid
the rtree which contains all GUIGlObjects (so named for historical reasons)
Definition GNENet.h:493
void writeVTypes(OutputDevice &device, const bool additionalFile) const
write vTypes sorted by ID
Definition GNENet.cpp:2543
void clearDataElements(GNEUndoList *undoList)
clear data elements
Definition GNENet.cpp:2122
void deleteDataInterval(GNEDataInterval *dataInterval, GNEUndoList *undoList)
remove data interval
Definition GNENet.cpp:736
void deleteConnection(GNEConnection *connection, GNEUndoList *undoList)
remove connection
Definition GNENet.cpp:643
void clearDemandElements(GNEUndoList *undoList)
clear demand elements
Definition GNENet.cpp:2109
GNEPathManager * getDemandPathManager()
get demand path manager
Definition GNENet.cpp:145
bool writeMeanDataEdgeComment(OutputDevice &device) const
write meanDataEdge comment
Definition GNENet.cpp:2721
void adjustPersonPlans(GNEUndoList *undoList)
adjust person plans
Definition GNENet.cpp:1851
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:1406
void writeRoutes(OutputDevice &device, const bool additionalFile) const
write route sorted by ID
Definition GNENet.cpp:2510
void cleanInvalidDemandElements(GNEUndoList *undoList)
clean invalid demand elements
Definition GNENet.cpp:1896
bool myUpdateDataEnabled
Flag to enable or disable update data elements after inserting or removing element in net.
Definition GNENet.h:532
void cleanUnusedRoutes(GNEUndoList *undoList)
clean unused routes
Definition GNENet.cpp:1761
NBNetBuilder * myNetBuilder
The internal netbuilder.
Definition GNENet.h:496
void removeExplicitTurnaround(std::string id)
remove edge id from the list of explicit turnarounds
Definition GNENet.cpp:2179
void computeJunction(GNEJunction *junction)
trigger recomputation of junction shape and logic param[in] window The window to inform about delay
Definition GNENet.cpp:1523
void resetJunctionConnections(GNEJunction *junction, GNEUndoList *undoList)
reset junction's connections
Definition GNENet.cpp:2085
void deleteMeanData(GNEMeanData *meanData, GNEUndoList *undoList)
remove generic data
Definition GNENet.cpp:779
void replaceIncomingEdge(GNEEdge *which, GNEEdge *by, GNEUndoList *undoList)
replaces edge
Definition GNENet.cpp:508
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition GNENet.cpp:198
void deleteGenericData(GNEGenericData *genericData, GNEUndoList *undoList)
remove generic data
Definition GNENet.cpp:749
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:924
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
Definition GNENet.cpp:127
GNEEdge * addReversedEdge(GNEEdge *edge, const bool disconnected, GNEUndoList *undoList)
add reversed edge
Definition GNENet.cpp:1078
void changeEdgeEndpoints(GNEEdge *edge, const std::string &newSourceID, const std::string &newDestID)
modifies endpoins of the given edge
Definition GNENet.cpp:2146
bool myUpdateGeometryEnabled
Flag to enable or disable update geometry of elements after inserting or removing element in net.
Definition GNENet.h:529
void initJunctionsAndEdges()
Init Junctions and edges.
Definition GNENet.cpp:2834
bool writeWireComment(OutputDevice &device) const
write Wire comment
Definition GNENet.cpp:2711
void splitEdgesBidi(GNEEdge *edge, GNEEdge *oppositeEdge, const Position &pos, GNEUndoList *undoList)
split all edges at position by inserting one new junction
Definition GNENet.cpp:1041
GNENetHelper::SavingStatus * mySavingStatus
AttributeCarriers of net.
Definition GNENet.h:505
void saveDemandElements()
save demand element elements of the network
Definition GNENet.cpp:2238
void clearMeanDataElements(GNEUndoList *undoList)
clear meanDatas
Definition GNENet.cpp:2133
unsigned int myEdgeIDCounter
Definition GNENet.h:519
void expandBoundary(const Boundary &newBoundary)
expand boundary
Definition GNENet.cpp:211
void disableUpdateData()
disable update data elements after inserting or removing an element in net
Definition GNENet.cpp:2819
bool removeRestrictedLane(SUMOVehicleClass vclass, GNEEdge *edge, GNEUndoList *undoList)
remove restricted lane
Definition GNENet.cpp:910
void saveDataElements()
save data set elements of the network
Definition GNENet.cpp:2278
~GNENet()
Destructor.
Definition GNENet.cpp:111
void mergeJunctions(GNEJunction *moved, GNEJunction *target, GNEUndoList *undoList)
merge the given junctions edges between the given junctions will be deleted
Definition GNENet.cpp:1116
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:248
std::set< std::string > myExplicitTurnarounds
list of edge ids for which turn-arounds must be added explicitly
Definition GNENet.h:523
void saveJuPedSimElements(const std::string &file)
save JuPedSim elements
Definition GNENet.cpp:2224
const std::map< std::string, int > & getEdgesAndNumberOfLanes() const
et edges and number of lanes
Definition GNENet.cpp:169
bool writeStoppingPlaceComment(OutputDevice &device) const
write stoppingPlace comment
Definition GNENet.cpp:2634
void addZValueInBoundary(const double z)
add Z in net boundary
Definition GNENet.cpp:223
static const std::map< SumoXMLAttr, std::string > EMPTY_HEADER
variable used for write headers in additional, demand and data elements
Definition GNENet.h:489
void writeRouteDistributions(OutputDevice &device, const bool additionalFile) const
write route distributions sorted by ID
Definition GNENet.cpp:2492
bool isUpdateGeometryEnabled() const
check if update geometry after inserting or removing has to be updated
Definition GNENet.cpp:2802
bool addRestrictedLane(SUMOVehicleClass vclass, GNEEdge *edge, int index, GNEUndoList *undoList)
add restricted lane to edge
Definition GNENet.cpp:857
void saveNetwork()
save the network
Definition GNENet.cpp:1317
bool checkJunctionPosition(const Position &pos)
return true if there are already a Junction in the given position, false in other case
Definition GNENet.cpp:1305
bool addGreenVergeLane(GNEEdge *edge, int index, GNEUndoList *undoList)
add restricted lane to edge
Definition GNENet.cpp:893
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Definition GNENet.cpp:188
bool isNetRecomputed() const
check if net require recomputing
Definition GNENet.cpp:1547
GNENet & operator=(const GNENet &)=delete
Invalidated assignment operator.
void writeAdditionalByType(OutputDevice &device, const std::vector< SumoXMLTag > tags) const
write additional element by type and sorted by ID
Definition GNENet.cpp:2462
GNEPathManager * myNetworkPathManager
Network path manager.
Definition GNENet.h:508
bool isUpdateDataEnabled() const
check if update data after inserting or removing has to be updated
Definition GNENet.cpp:2825
bool writeShapesComment(OutputDevice &device) const
write shape comment
Definition GNENet.cpp:2675
void deleteDataSet(GNEDataSet *dataSet, GNEUndoList *undoList)
remove data set
Definition GNENet.cpp:723
static void replaceInListAttribute(GNEAttributeCarrier *ac, SumoXMLAttr key, const std::string &which, const std::string &by, GNEUndoList *undoList)
replace in list attribute
Definition GNENet.cpp:2993
bool cleanInvalidCrossings(GNEUndoList *undoList)
clear invalid crossings
Definition GNENet.cpp:1692
GNEPathManager * getNetworkPathManager()
get network path manager
Definition GNENet.cpp:139
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:1989
void selectRoundabout(GNEJunction *junction, GNEUndoList *undoList)
select all roundabout edges and junctions for the current roundabout
Definition GNENet.cpp:1149
void joinRoutes(GNEUndoList *undoList)
join routes
Definition GNENet.cpp:1787
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Definition GNENet.cpp:175
bool writeRouteComment(OutputDevice &device, const bool additionalFile) const
write route comment
Definition GNENet.cpp:2597
bool writeVTypeComment(OutputDevice &device, const bool additionalFile) const
write vType comment
Definition GNENet.cpp:2575
void replaceJunctionByGeometry(GNEJunction *junction, GNEUndoList *undoList)
replace the selected junction by geometry node(s) and merge the edges
Definition GNENet.cpp:1935
bool writeDetectorComment(OutputDevice &device) const
write detector comment
Definition GNENet.cpp:2646
void createRoundabout(GNEJunction *junction, GNEUndoList *undoList)
transform the given junction into a roundabout
Definition GNENet.cpp:1168
void writeDemandByType(OutputDevice &device, SumoXMLTag tag) const
write demand element by type and sorted by ID
Definition GNENet.cpp:2480
void requireRecompute()
inform the net about the need for recomputation
Definition GNENet.cpp:1541
GNEJunction * createJunction(const Position &pos, GNEUndoList *undoList)
creates a new junction
Definition GNENet.cpp:232
unsigned int myJunctionIDCounter
Definition GNENet.h:518
bool writeOtherAdditionalsComment(OutputDevice &device) const
write other additional comment
Definition GNENet.cpp:2658
std::map< std::string, int > myEdgesAndNumberOfLanes
map with the Edges and their number of lanes
Definition GNENet.h:620
GNEPathManager * myDemandPathManager
Demand path manager.
Definition GNENet.h:511
void saveMeanDatasConfirmed()
save meanDatas
Definition GNENet.cpp:2444
void addExplicitTurnaround(std::string id)
add edge id to the list of explicit turnarounds
Definition GNENet.cpp:2173
void initGNEConnections()
initialize GNEConnections
Definition GNENet.cpp:2875
void deleteJunction(GNEJunction *junction, GNEUndoList *undoList)
removes junction and all incident edges
Definition GNENet.cpp:386
NBEdgeCont & getEdgeCont()
returns the NBEdgeCont of the underlying netbuilder
Definition GNENet.cpp:2167
void savePlain(const std::string &prefix)
save plain xml representation of the network (and nothing else)
Definition GNENet.cpp:1351
GNENetHelper::AttributeCarriers * myAttributeCarriers
AttributeCarriers of net.
Definition GNENet.h:502
void computeDataElements(GNEApplicationWindow *window)
compute data elements param[in] window The window to inform about delay
Definition GNENet.cpp:1510
FXApp * getApp()
get pointer to the main App
Definition GNENet.cpp:1553
int getNumberOfTLSPrograms() const
get number of TLS Programs
Definition GNENet.cpp:2756
GNEViewNet * getViewNet() const
get view net
Definition GNENet.cpp:2155
void saveDataElementsConfirmed()
save data elements after confirming invalid objects
Definition GNENet.cpp:2429
void enableUpdateGeometry()
Definition GNENet.cpp:2790
void clearJunctionConnections(GNEJunction *junction, GNEUndoList *undoList)
clear junction's connections
Definition GNENet.cpp:2073
void saveMeanDatas()
save meanData elements of the network
Definition GNENet.cpp:2323
Boundary myZBoundary
the z boundary (stored in the x-coordinate), values of 0 are ignored
Definition GNENet.h:617
double getDataSetIntervalMinimumBegin() const
get minimum interval
Definition GNENet.cpp:2289
void computeDemandElements(GNEApplicationWindow *window)
compute demand elements param[in] window The window to inform about delay
Definition GNENet.cpp:1490
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