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-2022 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 /****************************************************************************/
22 // Builds trigger objects for guisim
23 /****************************************************************************/
24 #pragma once
25 #include <config.h>
26 
27 #include <string>
29 #include <utils/common/RGBColor.h>
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) override;
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) override;
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,
114  int personCapacity, double parkingLength, RGBColor& color) override;
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  const std::string& departPos) override;
140 
141 
157  virtual void buildChargingStation(MSNet& net, const std::string& id, MSLane* lane,
158  double frompos, double topos, const std::string& name,
159  double chargingPower, double efficiency,
160  bool chargeInTransit, SUMOTime chargeDelay) override;
161 
174  virtual void buildOverheadWireSegment(MSNet& net, const std::string& id, MSLane* lane,
175  double frompos, double topos, bool voltageSource) override;
176 
186  virtual void buildOverheadWireClamp(MSNet& net, const std::string& id, MSLane* lane_start, MSLane* lane_end) override;
188 
189 
193  virtual void endParkingArea() override;
194 
199  virtual void endStoppingPlace() override;
200 };
std::vector< MSEdge * > MSEdgeVector
Definition: MSEdge.h:73
long long int SUMOTime
Definition: SUMOTime.h:32
SumoXMLTag
Numbers representing SUMO-XML - element names.
Builds trigger objects for guisim.
virtual void buildOverheadWireClamp(MSNet &net, const std::string &id, MSLane *lane_start, MSLane *lane_end) override
Builds an overhead wire clamp.
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) override
builds an rerouter
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, SUMOTime chargeDelay) override
Builds a charging station.
virtual void endParkingArea() override
End a parking area (it must be added to the SUMORTree after all parking spaces are loaded.
virtual MSLaneSpeedTrigger * buildLaneSpeedTrigger(MSNet &net, const std::string &id, const std::vector< MSLane * > &destLanes, const std::string &file) override
Builds a lane speed trigger.
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, double parkingLength, RGBColor &color) override
Builds a bus stop.
virtual void endStoppingPlace() override
End a stopping place.
GUITriggerBuilder()
Constructor.
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, const std::string &departPos) override
Builds a parking area.
~GUITriggerBuilder()
Destructor.
virtual void buildOverheadWireSegment(MSNet &net, const std::string &id, MSLane *lane, double frompos, double topos, bool voltageSource) override
Builds an overhead wire segment.
Calibrates the flow on a segment to a specified one.
Definition: MSCalibrator.h:48
Representation of a lane in the micro simulation.
Definition: MSLane.h:82
Changes the speed allowed on a set of lanes.
The simulated network and simulation perfomer.
Definition: MSNet.h:88
An abstract device that changes the state of the micro simulation.
Definition: MSTrigger.h:38
Reroutes vehicles passing an edge.
Builds trigger objects for microsim.