SUMO - Simulation of Urban MObility
GUITriggerBuilder.h
Go to the documentation of this file.
1 /****************************************************************************/
10 // Builds trigger objects for guisim
11 /****************************************************************************/
12 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
13 // Copyright (C) 2004-2015 DLR (http://www.dlr.de/) and contributors
14 /****************************************************************************/
15 //
16 // This file is part of SUMO.
17 // SUMO is free software: you can redistribute it and/or modify
18 // it under the terms of the GNU General Public License as published by
19 // the Free Software Foundation, either version 3 of the License, or
20 // (at your option) any later version.
21 //
22 /****************************************************************************/
23 #ifndef GUITriggerBuilder_h
24 #define GUITriggerBuilder_h
25 
26 
27 // ===========================================================================
28 // included modules
29 // ===========================================================================
30 #ifdef _MSC_VER
31 #include <windows_config.h>
32 #else
33 #include <config.h>
34 #endif
35 
36 #include <string>
38 
39 
40 // ===========================================================================
41 // class declarations
42 // ===========================================================================
43 class MSTrigger;
44 class MSNet;
45 class MSLaneSpeedTrigger;
46 class MSCalibrator;
47 class MSTriggerControl;
48 
49 
50 // ===========================================================================
51 // class definitions
52 // ===========================================================================
58 public:
61 
62 
65 
66 
67 protected:
72 
73 
86  const std::string& id, const std::vector<MSLane*>& destLanes,
87  const std::string& file);
88 
89 
101  const std::string& id, MSEdgeVector& edges,
102  SUMOReal prob, const std::string& file, bool off);
103 
104 
117  virtual void buildBusStop(MSNet& net, const std::string& id,
118  const std::vector<std::string>& lines, MSLane* lane,
119  SUMOReal frompos, SUMOReal topos);
120 
121 
134  virtual void buildContainerStop(MSNet& net, const std::string& id,
135  const std::vector<std::string>& lines, MSLane* lane,
136  SUMOReal frompos, SUMOReal topos);
137 
138 
150  virtual MSCalibrator* buildCalibrator(MSNet& net,
151  const std::string& id, MSEdge* edge, SUMOReal pos,
152  const std::string& file, const std::string& outfile,
153  const SUMOTime freq, const MSRouteProbe* probe);
155 
156 };
157 
158 
159 #endif
160 
161 /****************************************************************************/
162 
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, SUMOReal pos, const std::string &file, const std::string &outfile, const SUMOTime freq, const MSRouteProbe *probe)
builds a microscopic calibrator
Writes routes of vehicles passing a certain edge.
Definition: MSRouteProbe.h:68
~GUITriggerBuilder()
Destructor.
virtual void buildBusStop(MSNet &net, const std::string &id, const std::vector< std::string > &lines, MSLane *lane, SUMOReal frompos, SUMOReal topos)
Builds a bus stop.
The simulated network and simulation perfomer.
Definition: MSNet.h:94
Changes the speed allowed on a set of lanes.
virtual MSTriggeredRerouter * buildRerouter(MSNet &net, const std::string &id, MSEdgeVector &edges, SUMOReal prob, const std::string &file, bool off)
builds an rerouter
Builds trigger objects for guisim.
virtual void buildContainerStop(MSNet &net, const std::string &id, const std::vector< std::string > &lines, MSLane *lane, SUMOReal frompos, SUMOReal topos)
Builds a container stop.
A road/street connecting two junctions.
Definition: MSEdge.h:81
GUITriggerBuilder()
Constructor.
An abstract device that changes the state of the micro simulation.
Definition: MSTrigger.h:48
Reroutes vehicles passing an edge.
int SUMOTime
Definition: SUMOTime.h:43
Calibrates the flow on a segment to a specified one.
Definition: MSCalibrator.h:57
#define SUMOReal
Definition: config.h:218
std::vector< MSEdge * > MSEdgeVector
Definition: MSEdge.h:78
Builds trigger objects for microsim.
Representation of a lane in the micro simulation.
Definition: MSLane.h:77