SUMO - Simulation of Urban MObility
MSNet.h
Go to the documentation of this file.
1 /****************************************************************************/
13 // The simulated network and simulation perfomer
14 /****************************************************************************/
15 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
16 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
17 /****************************************************************************/
18 //
19 // This file is part of SUMO.
20 // SUMO is free software: you can redistribute it and/or modify
21 // it under the terms of the GNU General Public License as published by
22 // the Free Software Foundation, either version 3 of the License, or
23 // (at your option) any later version.
24 //
25 /****************************************************************************/
26 #ifndef MSNet_h
27 #define MSNet_h
28 
29 
30 // ===========================================================================
31 // included modules
32 // ===========================================================================
33 #ifdef _MSC_VER
34 #include <windows_config.h>
35 #else
36 #include <config.h>
37 #endif
38 
39 #include <typeinfo>
40 #include <vector>
41 #include <map>
42 #include <string>
43 #include <fstream>
44 #include <iostream>
45 #include <cmath>
46 #include <iomanip>
47 #include "MSVehicleControl.h"
48 #include "MSEventControl.h"
49 #include <utils/geom/Boundary.h>
50 #include <utils/geom/Position.h>
51 #include <utils/common/SUMOTime.h>
54 #include <microsim/MSParkingArea.h>
63 
64 
65 // ===========================================================================
66 // class declarations
67 // ===========================================================================
68 class MSEdge;
69 class MSJunction;
70 class MSEdgeControl;
71 class MSJunctionControl;
72 class MSInsertionControl;
75 class MSVehicle;
76 class MSRoute;
77 class MSLane;
78 class MSTLLogicControl;
79 class MSDetectorControl;
80 class ShapeContainer;
81 class BinaryInputDevice;
84 
85 typedef std::vector<MSEdge*> MSEdgeVector;
86 
87 // ===========================================================================
88 // class definitions
89 // ===========================================================================
94 class MSNet {
95 public:
112  };
113 
114  //typedef PedestrianRouterDijkstra<MSEdge, MSLane> MSPedestrianRouterDijkstra;
116 
117 
118 
119 public:
124  static MSNet* getInstance();
125 
126 
141  MSNet(MSVehicleControl* vc, MSEventControl* beginOfTimestepEvents,
142  MSEventControl* endOfTimestepEvents, MSEventControl* insertionEvents,
143  ShapeContainer* shapeCont = 0);
144 
145 
147  virtual ~MSNet();
148 
149 
165  void closeBuilding(const OptionsCont& oc, MSEdgeControl* edges, MSJunctionControl* junctions,
166  SUMORouteLoaderControl* routeLoaders, MSTLLogicControl* tlc,
167  std::vector<SUMOTime> stateDumpTimes, std::vector<std::string> stateDumpFiles,
168  bool hasInternalLinks, bool hasNeighs, bool lefthand,
169  SUMOReal version);
170 
171 
175  bool hasPermissions() const {
176  return myHavePermissions;
177  }
178 
179 
182  myHavePermissions = true;
183  }
184 
185 
191  void addRestriction(const std::string& id, const SUMOVehicleClass svc, const SUMOReal speed);
192 
193 
199  const std::map<SUMOVehicleClass, SUMOReal>* getRestrictions(const std::string& id) const;
200 
201 
205  static void clearAll();
206 
207 
215  int simulate(SUMOTime start, SUMOTime stop);
216 
217 
221  void simulationStep();
222 
223 
225  void loadRoutes();
226 
227 
235  void closeSimulation(SUMOTime start);
236 
237 
243  SimulationState simulationState(SUMOTime stopTime) const;
244 
245 
249  static std::string getStateMessage(SimulationState state);
250 
251 
255  inline SUMOTime getCurrentTimeStep() const {
256  return myStep;
257  }
258 
259 
263  inline void setCurrentTimeStep(const SUMOTime step) {
264  myStep = step;
265  }
266 
267 
271  void writeOutput();
272 
273 
277  bool logSimulationDuration() const;
278 
279 
280 
282 
283 
288  void preSimStepOutput() const;
289 
290 
295  void postSimStepOutput() const;
296  //}
297 
298 
299 
302 
309  return *myVehicleControl;
310  }
311 
312 
322 
325  bool hasPersons() const {
326  return myPersonControl != 0;
327  }
328 
338 
341  bool hasContainers() const {
342  return myContainerControl != 0;
343  }
344 
345 
352  return *myEdges;
353  }
354 
355 
362  return *myInserter;
363  }
364 
365 
372  return *myDetectorControl;
373  }
374 
375 
382  return *myLogics;
383  }
384 
385 
392  return *myJunctions;
393  }
394 
395 
403  }
404 
405 
412  return myEndOfTimestepEvents;
413  }
414 
415 
422  return myInsertionEvents;
423  }
424 
425 
432  return *myShapeContainer;
433  }
434 
442 
445 
457  bool addBusStop(MSStoppingPlace* busStop);
458 
459 
464  MSStoppingPlace* getBusStop(const std::string& id) const;
465 
466 
472  std::string getBusStopID(const MSLane* lane, const SUMOReal pos) const;
474 
475 
478 
490  bool addContainerStop(MSStoppingPlace* containerStop);
491 
496  MSStoppingPlace* getContainerStop(const std::string& id) const;
497 
503  std::string getContainerStopID(const MSLane* lane, const SUMOReal pos) const;
505 
508 
520  bool addParkingArea(MSParkingArea* parkingArea);
521 
526  MSParkingArea* getParkingArea(const std::string& id) const;
527 
533  std::string getParkingAreaID(const MSLane* lane, const SUMOReal pos) const;
535 
547  bool addChargingStation(MSChargingStation* chargingStation);
548 
553  MSChargingStation* getChargingStation(const std::string& id) const;
554 
560  std::string getChargingStationID(const MSLane* lane, const SUMOReal pos) const;
562 
563 
566 
589  };
590 
591 
596  public:
599 
601  virtual ~VehicleStateListener() { }
602 
607  virtual void vehicleStateChanged(const SUMOVehicle* const vehicle, VehicleState to) = 0;
608 
609  };
610 
611 
616 
617 
622 
623 
629  void informVehicleStateListener(const SUMOVehicle* const vehicle, VehicleState to);
631 
632 
633 
641  static SUMOReal getTravelTime(const MSEdge* const e, const SUMOVehicle* const v, SUMOReal t);
642 
643 
651  static SUMOReal getEffort(const MSEdge* const e, const SUMOVehicle* const v, SUMOReal t);
652 
653 
654  /* @brief get the router, initialize on first use
655  * @param[in] prohibited The vector of forbidden edges (optional)
656  */
658  const MSEdgeVector& prohibited = MSEdgeVector()) const;
660  const MSEdgeVector& prohibited = MSEdgeVector()) const;
661  MSPedestrianRouterDijkstra& getPedestrianRouter(const MSEdgeVector& prohibited = MSEdgeVector()) const;
662 
663 
667  const NamedRTree& getLanesRTree() const;
668 
670  bool hasInternalLinks() const {
671  return myHasInternalLinks;
672  }
673 
675  bool hasNeighs() const {
676  return myHasNeighs;
677  }
678 
680  bool hasElevation() const {
681  return myHasElevation;
682  }
683 
685  bool lefthand() const {
686  return myLefthand;
687  }
688 
690  SUMOReal version() const {
691  return myVersion;
692  }
693 
694 protected:
696  bool checkElevation();
697 
698 protected:
700  static MSNet* myInstance;
701 
704 
707 
708 
709 
712 
740 
741 
742 
745 
748 
751 
754 
757 
759  long long int myVehiclesMoved;
760  //}
761 
762 
763 
766 
768  std::vector<SUMOTime> myStateDumpTimes;
770  std::vector<std::string> myStateDumpFiles;
774  std::string myStateDumpPrefix;
775  std::string myStateDumpSuffix;
777 
778 
779 
782 
784  std::map<std::string, std::map<SUMOVehicleClass, SUMOReal> > myRestrictions;
785 
788 
791 
794 
797 
800 
803 
806 
809 
812 
814  std::vector<VehicleStateListener*> myVehicleStateListeners;
815 
816 
817  /* @brief The router instance for routing by trigger and by traci
818  * @note MSDevice_Routing has its own instance since it uses a different weight function
819  * @note we provide one member for every switchable router type
820  * because the class structure makes it inconvenient to use a superclass*/
821  mutable bool myRouterTTInitialized;
825  mutable MSPedestrianRouterDijkstra* myPedestrianRouter;
826 
827 
829  mutable std::pair<bool, NamedRTree> myLanesRTree;
830 
831 
833  static const std::string STAGE_EVENTS;
834  static const std::string STAGE_MOVEMENTS;
835  static const std::string STAGE_LANECHANGE;
836  static const std::string STAGE_INSERTIONS;
837 
838 private:
840  MSNet(const MSNet&);
841 
843  MSNet& operator=(const MSNet&);
844 
845 
846 };
847 
848 
849 #endif
850 
851 /****************************************************************************/
852 
std::string myStateDumpSuffix
Definition: MSNet.h:775
The vehicle has departed (was inserted into the network)
Definition: MSNet.h:572
A lane area vehicles can halt at.
Definition: MSParkingArea.h:66
AStarRouter< MSEdge, SUMOVehicle, prohibited_withPermissions< MSEdge, SUMOVehicle > > * myRouterTTAStar
Definition: MSNet.h:823
Computes the shortest path through a network using the Dijkstra algorithm.
bool lefthand() const
return whether the network was built for lefthand traffic
Definition: MSNet.h:685
void postSimStepOutput() const
Prints the statistics of the step at its end.
Definition: MSNet.cpp:742
Representation of a vehicle in the micro simulation.
Definition: MSVehicle.h:83
long long int SUMOTime
Definition: SUMOTime.h:43
Interface for objects listening to vehicle state changes.
Definition: MSNet.h:595
void removeVehicleStateListener(VehicleStateListener *listener)
Removes a vehicle states listener.
Definition: MSNet.cpp:782
MSEventControl * myEndOfTimestepEvents
Controls events executed at the end of a time step;.
Definition: MSNet.h:732
static SUMOReal getEffort(const MSEdge *const e, const SUMOVehicle *const v, SUMOReal t)
Returns the effort to pass an edge.
Definition: MSNet.cpp:127
NamedObjectCont< MSParkingArea * > myParkingAreaDict
Dictionary of parking areas.
Definition: MSNet.h:808
MSParkingArea * getParkingArea(const std::string &id) const
Returns the named parking area.
Definition: MSNet.cpp:854
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
A lane area vehicles can halt at.
The simulation contains too many vehicles (.
Definition: MSNet.h:111
const std::map< SUMOVehicleClass, SUMOReal > * getRestrictions(const std::string &id) const
Returns the restrictions for an edge type If no restrictions are present, 0 is returned.
Definition: MSNet.cpp:296
MSVehicleControl * myVehicleControl
Controls vehicle building and deletion;.
Definition: MSNet.h:714
std::vector< MSEdge * > MSEdgeVector
Definition: MSNet.h:83
bool hasPersons() const
Returns whether persons are simulated.
Definition: MSNet.h:325
std::vector< SUMOTime > myStateDumpTimes
Times at which a state shall be written.
Definition: MSNet.h:768
The base class for an intersection.
Definition: MSJunction.h:64
DijkstraRouterEffort< MSEdge, SUMOVehicle, prohibited_withPermissions< MSEdge, SUMOVehicle > > * myRouterEffort
Definition: MSNet.h:824
bool hasInternalLinks() const
return whether the network contains internal links
Definition: MSNet.h:670
std::string getContainerStopID(const MSLane *lane, const SUMOReal pos) const
Returns the container stop close to the given position.
Definition: MSNet.cpp:836
int simulate(SUMOTime start, SUMOTime stop)
Simulates from timestep start to stop.
Definition: MSNet.cpp:306
virtual void vehicleStateChanged(const SUMOVehicle *const vehicle, VehicleState to)=0
Called if a vehicle changes its state.
A RT-tree for efficient storing of SUMO&#39;s Named objects.
Definition: NamedRTree.h:72
Computes the shortest path through a network using the A* algorithm.
Definition: AStarRouter.h:71
MSPedestrianRouterDijkstra & getPedestrianRouter(const MSEdgeVector &prohibited=MSEdgeVector()) const
Definition: MSNet.cpp:934
MSChargingStation * getChargingStation(const std::string &id) const
Returns the named charging station.
Definition: MSNet.cpp:877
bool addBusStop(MSStoppingPlace *busStop)
Adds a bus stop.
Definition: MSNet.cpp:801
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
Definition: MSNet.cpp:159
bool myHavePermissions
Whether the network contains edges which not all vehicles may pass.
Definition: MSNet.h:781
MSEdgeControl * myEdges
Controls edges, performs vehicle movement;.
Definition: MSNet.h:720
void setCurrentTimeStep(const SUMOTime step)
Sets the current simulation step (used by state loading)
Definition: MSNet.h:263
The final simulation step has been performed.
Definition: MSNet.h:103
std::vector< std::string > myStateDumpFiles
The names for the state files.
Definition: MSNet.h:770
bool myLogExecutionTime
Information whether the simulation duration shall be logged.
Definition: MSNet.h:747
Storage for geometrical objects.
bool addParkingArea(MSParkingArea *parkingArea)
Adds a parking area.
Definition: MSNet.cpp:849
static const std::string STAGE_LANECHANGE
Definition: MSNet.h:835
NamedObjectCont< MSStoppingPlace * > myContainerStopDict
Dictionary of container stops.
Definition: MSNet.h:805
Detectors container; responsible for string and output generation.
bool myLefthand
Whether the network was built for left-hand traffic.
Definition: MSNet.h:796
A storage for edge travel times and efforts.
SUMOTime getCurrentTimeStep() const
Returns the current simulation step.
Definition: MSNet.h:255
std::string getBusStopID(const MSLane *lane, const SUMOReal pos) const
Returns the bus stop close to the given position.
Definition: MSNet.cpp:813
void addVehicleStateListener(VehicleStateListener *listener)
Adds a vehicle states listener.
Definition: MSNet.cpp:774
SimulationState
Possible states of a simulation - running or stopped with different reasons.
Definition: MSNet.h:99
MSPedestrianRouterDijkstra * myPedestrianRouter
Definition: MSNet.h:825
The simulated network and simulation perfomer.
Definition: MSNet.h:94
Computes the shortest path through a network using the Dijkstra algorithm.
ShapeContainer * myShapeContainer
A container for geometrical shapes;.
Definition: MSNet.h:736
std::pair< bool, NamedRTree > myLanesRTree
An RTree structure holding lane IDs.
Definition: MSNet.h:829
Container for junctions; performs operations on all stored junctions.
DijkstraRouterTT< MSEdge, SUMOVehicle, prohibited_withPermissions< MSEdge, SUMOVehicle > > * myRouterTTDijkstra
Definition: MSNet.h:822
virtual MSTransportableControl & getContainerControl()
Returns the container control.
Definition: MSNet.cpp:718
The vehicles starts to stop.
Definition: MSNet.h:586
A class that stores and controls tls and switching of their programs.
A road/street connecting two junctions.
Definition: MSEdge.h:80
long long int myVehiclesMoved
The overall number of vehicle movements.
Definition: MSNet.h:759
The simulation does not contain further vehicles.
Definition: MSNet.h:105
An error occured during the simulation step.
Definition: MSNet.h:109
void writeOutput()
Write netstate, summary and detector output.
Definition: MSNet.cpp:602
The vehicle got a new route.
Definition: MSNet.h:580
The vehicle arrived at his destination (is deleted)
Definition: MSNet.h:578
MSStoppingPlace * getBusStop(const std::string &id) const
Returns the named bus stop.
Definition: MSNet.cpp:807
The vehicles starts to park.
Definition: MSNet.h:582
MSInsertionControl * myInserter
Controls vehicle insertion;.
Definition: MSNet.h:726
Representation of a vehicle.
Definition: SUMOVehicle.h:67
bool myHasNeighs
Whether the network contains explicit neighbor lanes.
Definition: MSNet.h:790
void closeBuilding(const OptionsCont &oc, MSEdgeControl *edges, MSJunctionControl *junctions, SUMORouteLoaderControl *routeLoaders, MSTLLogicControl *tlc, std::vector< SUMOTime > stateDumpTimes, std::vector< std::string > stateDumpFiles, bool hasInternalLinks, bool hasNeighs, bool lefthand, SUMOReal version)
Closes the network&#39;s building process.
Definition: MSNet.cpp:213
SUMORouteLoaderControl * myRouteLoaders
Route loader for dynamic loading of routes.
Definition: MSNet.h:703
virtual MSTransportableControl & getPersonControl()
Returns the person control.
Definition: MSNet.cpp:710
ShapeContainer & getShapeContainer()
Returns the shapes container.
Definition: MSNet.h:431
void closeSimulation(SUMOTime start)
Closes the simulation (all files, connections, etc.)
Definition: MSNet.cpp:357
bool myLogStepNumber
Information whether the number of the simulation step shall be logged.
Definition: MSNet.h:750
MSTLLogicControl & getTLSControl()
Returns the tls logics control.
Definition: MSNet.h:381
MSVehicleControl & getVehicleControl()
Returns the vehicle control.
Definition: MSNet.h:308
MSEventControl * getBeginOfTimestepEvents()
Returns the event control for events executed at the begin of a time step.
Definition: MSNet.h:401
static SUMOReal getTravelTime(const MSEdge *const e, const SUMOVehicle *const v, SUMOReal t)
Returns the travel time to pass an edge.
Definition: MSNet.cpp:141
MSDetectorControl * myDetectorControl
Controls detectors;.
Definition: MSNet.h:728
void setPermissionsFound()
Labels the network to contain vehicle class permissions.
Definition: MSNet.h:181
Stores edges and lanes, performs moving of vehicle.
Definition: MSEdgeControl.h:74
MSTLLogicControl * myLogics
Controls tls logics, realizes waiting on tls rules;.
Definition: MSNet.h:724
The connection to a client was closed by the client.
Definition: MSNet.h:107
The simulation is running.
Definition: MSNet.h:101
bool hasNeighs() const
return whether the network contains explicit neighbor lanes
Definition: MSNet.h:675
MSNet & operator=(const MSNet &)
Invalidated assignment operator.
The vehicle started to teleport.
Definition: MSNet.h:574
void preSimStepOutput() const
Prints the current step number.
Definition: MSNet.cpp:736
std::map< std::string, std::map< SUMOVehicleClass, SUMOReal > > myRestrictions
The vehicle class specific speed restrictions.
Definition: MSNet.h:784
bool hasContainers() const
Returns whether containers are simulated.
Definition: MSNet.h:341
PedestrianRouterDijkstra< MSEdge, MSLane, MSJunction, MSVehicle > MSPedestrianRouterDijkstra
Definition: MSNet.h:115
The vehicle ends to park.
Definition: MSNet.h:584
SUMOReal myVersion
the network version
Definition: MSNet.h:799
MSDetectorControl & getDetectorControl()
Returns the detector control.
Definition: MSNet.h:371
SUMOTime myStateDumpPeriod
The period for writing state.
Definition: MSNet.h:772
Inserts vehicles into the network when their departure time is reached.
long myTraCIStepDuration
The last simulation step duration.
Definition: MSNet.h:753
VehicleState
Definition of a vehicle state.
Definition: MSNet.h:568
SUMOAbstractRouter< MSEdge, SUMOVehicle > & getRouterTT(const MSEdgeVector &prohibited=MSEdgeVector()) const
Definition: MSNet.cpp:896
MSEventControl * getEndOfTimestepEvents()
Returns the event control for events executed at the end of a time step.
Definition: MSNet.h:411
static const std::string STAGE_MOVEMENTS
Definition: MSNet.h:834
VehicleStateListener()
Constructor.
Definition: MSNet.h:598
The vehicle was built, but has not yet departed.
Definition: MSNet.h:570
std::vector< VehicleStateListener * > myVehicleStateListeners
Container for vehicle state listener.
Definition: MSNet.h:814
static MSNet * myInstance
Unique instance of MSNet.
Definition: MSNet.h:700
static void clearAll()
Clears all dictionaries.
Definition: MSNet.cpp:586
bool myRouterTTInitialized
Definition: MSNet.h:821
bool addContainerStop(MSStoppingPlace *containerStop)
Adds a container stop.
Definition: MSNet.cpp:826
bool addChargingStation(MSChargingStation *chargingStation)
Adds a chargingg station.
Definition: MSNet.cpp:871
SimulationState simulationState(SUMOTime stopTime) const
Called after a simulation step, this method returns the current simulation state. ...
Definition: MSNet.cpp:533
MSTransportableControl * myContainerControl
Controls container building and deletion;.
Definition: MSNet.h:718
MSJunctionControl * myJunctions
Controls junctions, realizes right-of-way rules;.
Definition: MSNet.h:722
MSInsertionControl & getInsertionControl()
Returns the insertion control.
Definition: MSNet.h:361
MSTransportableControl * myPersonControl
Controls person building and deletion;.
Definition: MSNet.h:716
bool checkElevation()
check all lanes for elevation data
Definition: MSNet.cpp:954
MSEventControl * myBeginOfTimestepEvents
Controls events executed at the begin of a time step;.
Definition: MSNet.h:730
A storage for options typed value containers)
Definition: OptionsCont.h:99
virtual ~VehicleStateListener()
Destructor.
Definition: MSNet.h:601
MSEdgeWeightsStorage * myEdgeWeights
The net&#39;s knowledge about edge efforts/travel times;.
Definition: MSNet.h:738
MSStoppingPlace * getContainerStop(const std::string &id) const
Returns the named container stop.
Definition: MSNet.cpp:831
MSNet(MSVehicleControl *vc, MSEventControl *beginOfTimestepEvents, MSEventControl *endOfTimestepEvents, MSEventControl *insertionEvents, ShapeContainer *shapeCont=0)
Constructor.
Definition: MSNet.cpp:167
void addRestriction(const std::string &id, const SUMOVehicleClass svc, const SUMOReal speed)
Adds a restriction for an edge type.
Definition: MSNet.cpp:290
The vehicle ends to stop.
Definition: MSNet.h:588
MSEventControl * getInsertionEvents()
Returns the event control for insertion events.
Definition: MSNet.h:421
void informVehicleStateListener(const SUMOVehicle *const vehicle, VehicleState to)
Informs all added listeners about a vehicle&#39;s state change.
Definition: MSNet.cpp:791
const NamedRTree & getLanesRTree() const
Returns an RTree that contains lane IDs.
Definition: MSNet.cpp:944
SUMOReal version() const
return the network version
Definition: MSNet.h:690
long mySimBeginMillis
The overall simulation duration.
Definition: MSNet.h:756
virtual ~MSNet()
Destructor.
Definition: MSNet.cpp:248
bool myHasElevation
Whether the network contains elevation data.
Definition: MSNet.h:793
std::string myStateDumpPrefix
name components for periodic state
Definition: MSNet.h:774
#define SUMOReal
Definition: config.h:208
static std::string getStateMessage(SimulationState state)
Returns the message to show if a certain state occurs.
Definition: MSNet.cpp:565
MSEdgeControl & getEdgeControl()
Returns the edge control.
Definition: MSNet.h:351
NamedObjectCont< MSChargingStation * > myChargingStationDict
Dictionary of charging Stations.
Definition: MSNet.h:811
bool logSimulationDuration() const
Returns whether duration shall be logged.
Definition: MSNet.cpp:704
MSJunctionControl & getJunctionControl()
Returns the junctions control.
Definition: MSNet.h:391
SUMOTime myStep
Current time step.
Definition: MSNet.h:706
std::string getChargingStationID(const MSLane *lane, const SUMOReal pos) const
Returns the charging station close to the given position.
Definition: MSNet.cpp:883
The class responsible for building and deletion of vehicles.
std::vector< MSEdge * > MSEdgeVector
Definition: MSEdge.h:77
void simulationStep()
Performs a single simulation step.
Definition: MSNet.cpp:424
bool hasPermissions() const
Returns whether the network has specific vehicle class permissions.
Definition: MSNet.h:175
void loadRoutes()
loads routes for the next few steps
Definition: MSNet.cpp:351
SUMOAbstractRouter< MSEdge, SUMOVehicle > & getRouterEffort(const MSEdgeVector &prohibited=MSEdgeVector()) const
Definition: MSNet.cpp:923
static const std::string STAGE_INSERTIONS
Definition: MSNet.h:836
MSEventControl * myInsertionEvents
Controls insertion events;.
Definition: MSNet.h:734
Representation of a lane in the micro simulation.
Definition: MSLane.h:79
long mySimStepDuration
Definition: MSNet.h:753
NamedObjectCont< MSStoppingPlace * > myBusStopDict
Dictionary of bus stops.
Definition: MSNet.h:802
Encapsulates binary reading operations on a file.
Stores time-dependant events and executes them at the proper time.
The vehicle ended being teleported.
Definition: MSNet.h:576
bool hasElevation() const
return whether the network contains elevation data
Definition: MSNet.h:680
bool myHasInternalLinks
Whether the network contains internal links/lanes/edges.
Definition: MSNet.h:787
MSEdgeWeightsStorage & getWeightsStorage()
Returns the net&#39;s internal edge travel times/efforts container.
Definition: MSNet.cpp:727
static const std::string STAGE_EVENTS
string constants for simstep stages
Definition: MSNet.h:833
std::string getParkingAreaID(const MSLane *lane, const SUMOReal pos) const
Returns the parking area close to the given position.
Definition: MSNet.cpp:859