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 /****************************************************************************/
17 // Builds trigger objects for guisim
18 /****************************************************************************/
19 #ifndef GUITriggerBuilder_h
20 #define GUITriggerBuilder_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <string>
30 
31 
32 // ===========================================================================
33 // class declarations
34 // ===========================================================================
35 class MSTrigger;
36 class MSNet;
37 class MSLaneSpeedTrigger;
38 class MSCalibrator;
39 class MSTriggerControl;
40 
41 
42 // ===========================================================================
43 // class definitions
44 // ===========================================================================
50 public:
53 
54 
57 
58 
59 protected:
64 
65 
78  const std::string& id, const std::vector<MSLane*>& destLanes,
79  const std::string& file);
80 
81 
93  const std::string& id, MSEdgeVector& edges,
94  double prob, const std::string& file, bool off,
95  SUMOTime timeThreshold,
96  const std::string& vTypes);
97 
98 
112  virtual void buildStoppingPlace(MSNet& net, std::string id, std::vector<std::string> lines, MSLane* lane,
113  double frompos, double topos, const SumoXMLTag element, std::string string, int personCapacity);
114 
115 
132  virtual void beginParkingArea(MSNet& net, const std::string& id,
133  const std::vector<std::string>& lines, MSLane* lane,
134  double frompos, double topos,
135  unsigned int capacity,
136  double width, double length, double angle, const std::string& name,
137  bool onRoad);
138 
139 
155  virtual void buildChargingStation(MSNet& net, const std::string& id, MSLane* lane,
156  double frompos, double topos, const std::string& name,
157  double chargingPower, double efficiency,
158  bool chargeInTransit, double chargeDelay);
159 
171  virtual MSCalibrator* buildCalibrator(MSNet& net,
172  const std::string& id, MSEdge* edge, MSLane* lane, double pos,
173  const std::string& file, const std::string& outfile,
174  const SUMOTime freq, const MSRouteProbe* probe,
175  const std::string& vTypes);
177 
178 
182  virtual void endParkingArea();
183 
188  virtual void endStoppingPlace();
189 };
190 
191 
192 #endif
193 
194 /****************************************************************************/
195 
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:134
GUITriggerBuilder::endStoppingPlace
virtual void endStoppingPlace()
End a stopping place.
Definition: GUITriggerBuilder.cpp:145
MSLane
Representation of a lane in the micro simulation.
Definition: MSLane.h:82
MSRouteProbe
Writes routes of vehicles passing a certain edge.
Definition: MSRouteProbe.h:60
MSNet
The simulated network and simulation perfomer.
Definition: MSNet.h:91
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:34
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:71
MSLaneSpeedTrigger
Changes the speed allowed on a set of lanes.
Definition: MSLaneSpeedTrigger.h:53
NLTriggerBuilder
Builds trigger objects for microsim.
Definition: NLTriggerBuilder.h:61
MSTriggeredRerouter
Reroutes vehicles passing an edge.
Definition: MSTriggeredRerouter.h:61
SumoXMLTag
SumoXMLTag
Numbers representing SUMO-XML - element names.
Definition: SUMOXMLDefinitions.h:41
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:49
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:59
GUITriggerBuilder
Builds trigger objects for guisim.
Definition: GUITriggerBuilder.h:49
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:88
MSEdge
A road/street connecting two junctions.
Definition: MSEdge.h:78
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:107
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:120
NLTriggerBuilder.h
MSTrigger
An abstract device that changes the state of the micro simulation.
Definition: MSTrigger.h:40
MSEdgeVector
std::vector< MSEdge * > MSEdgeVector
Definition: MSEdge.h:74
GUITriggerBuilder::~GUITriggerBuilder
~GUITriggerBuilder()
Destructor.
Definition: GUITriggerBuilder.cpp:45
config.h
MSCalibrator
Calibrates the flow on a segment to a specified one.
Definition: MSCalibrator.h:50
GUITriggerBuilder::GUITriggerBuilder
GUITriggerBuilder()
Constructor.
Definition: GUITriggerBuilder.cpp:42