Eclipse 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-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
18 // Builds trigger objects for guisim
19 /****************************************************************************/
20 #ifndef GUITriggerBuilder_h
21 #define GUITriggerBuilder_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #include <config.h>
28 
29 #include <string>
31 
32 
33 // ===========================================================================
34 // class declarations
35 // ===========================================================================
36 class MSTrigger;
37 class MSNet;
38 class MSLaneSpeedTrigger;
39 class MSCalibrator;
40 class MSTriggerControl;
41 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
51 public:
54 
55 
58 
59 
60 protected:
65 
66 
79  const std::string& id, const std::vector<MSLane*>& destLanes,
80  const std::string& file);
81 
82 
94  const std::string& id, MSEdgeVector& edges,
95  double prob, const std::string& file, bool off,
96  SUMOTime timeThreshold,
97  const std::string& vTypes);
98 
99 
113  virtual void buildStoppingPlace(MSNet& net, std::string id, std::vector<std::string> lines, MSLane* lane,
114  double frompos, double topos, const SumoXMLTag element, std::string string, int personCapacity);
115 
116 
133  virtual void beginParkingArea(MSNet& net, const std::string& id,
134  const std::vector<std::string>& lines, MSLane* lane,
135  double frompos, double topos,
136  unsigned int capacity,
137  double width, double length, double angle, const std::string& name,
138  bool onRoad);
139 
140 
156  virtual void buildChargingStation(MSNet& net, const std::string& id, MSLane* lane,
157  double frompos, double topos, const std::string& name,
158  double chargingPower, double efficiency,
159  bool chargeInTransit, double chargeDelay);
160 
172  virtual MSCalibrator* buildCalibrator(MSNet& net,
173  const std::string& id, MSEdge* edge, MSLane* lane, double pos,
174  const std::string& file, const std::string& outfile,
175  const SUMOTime freq, const MSRouteProbe* probe,
176  const std::string& vTypes);
178 
179 
183  virtual void endParkingArea();
184 
189  virtual void endStoppingPlace();
190 };
191 
192 
193 #endif
194 
195 /****************************************************************************/
196 
GUITriggerBuilder::endParkingArea
virtual void endParkingArea()
End a parking area (it must be added to the SUMORTree after all parking spaces are loaded.
Definition: GUITriggerBuilder.cpp:135
GUITriggerBuilder::endStoppingPlace
virtual void endStoppingPlace()
End a stopping place.
Definition: GUITriggerBuilder.cpp:146
MSLane
Representation of a lane in the micro simulation.
Definition: MSLane.h:83
MSRouteProbe
Writes routes of vehicles passing a certain edge.
Definition: MSRouteProbe.h:61
MSNet
The simulated network and simulation perfomer.
Definition: MSNet.h:92
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:35
GUITriggerBuilder::buildStoppingPlace
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, int personCapacity)
Builds a bus stop.
Definition: GUITriggerBuilder.cpp:72
MSLaneSpeedTrigger
Changes the speed allowed on a set of lanes.
Definition: MSLaneSpeedTrigger.h:54
NLTriggerBuilder
Builds trigger objects for microsim.
Definition: NLTriggerBuilder.h:62
MSTriggeredRerouter
Reroutes vehicles passing an edge.
Definition: MSTriggeredRerouter.h:62
SumoXMLTag
SumoXMLTag
Numbers representing SUMO-XML - element names.
Definition: SUMOXMLDefinitions.h:42
GUITriggerBuilder::buildLaneSpeedTrigger
virtual MSLaneSpeedTrigger * buildLaneSpeedTrigger(MSNet &net, const std::string &id, const std::vector< MSLane * > &destLanes, const std::string &file)
Builds a lane speed trigger.
Definition: GUITriggerBuilder.cpp:50
GUITriggerBuilder::buildRerouter
virtual MSTriggeredRerouter * buildRerouter(MSNet &net, const std::string &id, MSEdgeVector &edges, double prob, const std::string &file, bool off, SUMOTime timeThreshold, const std::string &vTypes)
builds an rerouter
Definition: GUITriggerBuilder.cpp:60
GUITriggerBuilder
Builds trigger objects for guisim.
Definition: GUITriggerBuilder.h:50
GUITriggerBuilder::beginParkingArea
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, const std::string &name, bool onRoad)
Builds a parking area.
Definition: GUITriggerBuilder.cpp:89
MSEdge
A road/street connecting two junctions.
Definition: MSEdge.h:76
GUITriggerBuilder::buildChargingStation
virtual void buildChargingStation(MSNet &net, const std::string &id, MSLane *lane, double frompos, double topos, const std::string &name, double chargingPower, double efficiency, bool chargeInTransit, double chargeDelay)
Builds a charging station.
Definition: GUITriggerBuilder.cpp:108
GUITriggerBuilder::buildCalibrator
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, const std::string &vTypes)
builds a microscopic calibrator
Definition: GUITriggerBuilder.cpp:121
NLTriggerBuilder.h
MSTrigger
An abstract device that changes the state of the micro simulation.
Definition: MSTrigger.h:41
MSEdgeVector
std::vector< MSEdge * > MSEdgeVector
Definition: MSEdge.h:72
GUITriggerBuilder::~GUITriggerBuilder
~GUITriggerBuilder()
Destructor.
Definition: GUITriggerBuilder.cpp:46
config.h
MSCalibrator
Calibrates the flow on a segment to a specified one.
Definition: MSCalibrator.h:51
GUITriggerBuilder::GUITriggerBuilder
GUITriggerBuilder()
Constructor.
Definition: GUITriggerBuilder.cpp:43