SUMO - Simulation of Urban MObility
GUITriggerBuilder.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2004-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
20 // Builds trigger objects for guisim
21 /****************************************************************************/
22 #ifndef GUITriggerBuilder_h
23 #define GUITriggerBuilder_h
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 #include <string>
37 
38 
39 // ===========================================================================
40 // class declarations
41 // ===========================================================================
42 class MSTrigger;
43 class MSNet;
44 class MSLaneSpeedTrigger;
45 class MSCalibrator;
46 class MSTriggerControl;
47 
48 
49 // ===========================================================================
50 // class definitions
51 // ===========================================================================
57 public:
60 
61 
64 
65 
66 protected:
71 
72 
85  const std::string& id, const std::vector<MSLane*>& destLanes,
86  const std::string& file);
87 
88 
100  const std::string& id, MSEdgeVector& edges,
101  double prob, const std::string& file, bool off,
102  SUMOTime timeThreshold);
103 
104 
118  virtual void buildStoppingPlace(MSNet& net, std::string id, std::vector<std::string> lines, MSLane* lane,
119  double frompos, double topos, const SumoXMLTag element, std::string string);
120 
121 
138  virtual void beginParkingArea(MSNet& net, const std::string& id,
139  const std::vector<std::string>& lines, MSLane* lane,
140  double frompos, double topos,
141  unsigned int capacity,
142  double width, double length, double angle);
143 
144 
160  virtual void buildChargingStation(MSNet& net, const std::string& id, MSLane* lane,
161  double frompos, double topos, double chargingPower, double efficiency,
162  bool chargeInTransit, int chargeDelay);
163 
175  virtual MSCalibrator* buildCalibrator(MSNet& net,
176  const std::string& id, MSEdge* edge, MSLane* lane, double pos,
177  const std::string& file, const std::string& outfile,
178  const SUMOTime freq, const MSRouteProbe* probe);
180 
181 
185  virtual void endParkingArea();
186 };
187 
188 
189 #endif
190 
191 /****************************************************************************/
192 
SumoXMLTag
Numbers representing SUMO-XML - element names.
virtual void buildStoppingPlace(MSNet &net, std::string id, std::vector< std::string > lines, MSLane *lane, double frompos, double topos, const SumoXMLTag element, std::string string)
Builds a bus stop.
Writes routes of vehicles passing a certain edge.
Definition: MSRouteProbe.h:67
virtual void beginParkingArea(MSNet &net, const std::string &id, const std::vector< std::string > &lines, MSLane *lane, double frompos, double topos, unsigned int capacity, double width, double length, double angle)
Builds a parking area.
virtual void buildChargingStation(MSNet &net, const std::string &id, MSLane *lane, double frompos, double topos, double chargingPower, double efficiency, bool chargeInTransit, int chargeDelay)
Builds a charging station.
~GUITriggerBuilder()
Destructor.
The simulated network and simulation perfomer.
Definition: MSNet.h:90
virtual void endParkingArea()
End a parking area (it must be added to the SUMORTree after all parking spaces are loaded...
Changes the speed allowed on a set of lanes.
Builds trigger objects for guisim.
A road/street connecting two junctions.
Definition: MSEdge.h:80
GUITriggerBuilder()
Constructor.
An abstract device that changes the state of the micro simulation.
Definition: MSTrigger.h:47
virtual MSLaneSpeedTrigger * buildLaneSpeedTrigger(MSNet &net, const std::string &id, const std::vector< MSLane *> &destLanes, const std::string &file)
Builds a lane speed trigger.
virtual MSCalibrator * buildCalibrator(MSNet &net, const std::string &id, MSEdge *edge, MSLane *lane, double pos, const std::string &file, const std::string &outfile, const SUMOTime freq, const MSRouteProbe *probe)
builds a microscopic calibrator
Reroutes vehicles passing an edge.
virtual MSTriggeredRerouter * buildRerouter(MSNet &net, const std::string &id, MSEdgeVector &edges, double prob, const std::string &file, bool off, SUMOTime timeThreshold)
builds an rerouter
Calibrates the flow on a segment to a specified one.
Definition: MSCalibrator.h:56
long long int SUMOTime
Definition: TraCIDefs.h:51
std::vector< MSEdge * > MSEdgeVector
Definition: MSEdge.h:77
Builds trigger objects for microsim.
Representation of a lane in the micro simulation.
Definition: MSLane.h:77