SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUITriggerBuilder.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // Builds trigger objects for guisim
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
12 // Copyright (C) 2001-2014 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
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, std::vector<MSEdge*>& edges,
101  SUMOReal prob, const std::string& file, bool off);
102 
103 
116  virtual void buildBusStop(MSNet& net, const std::string& id,
117  const std::vector<std::string>& lines, MSLane* lane,
118  SUMOReal frompos, SUMOReal topos);
119 
120 
132  virtual MSCalibrator* buildCalibrator(MSNet& net,
133  const std::string& id, MSEdge* edge, SUMOReal pos,
134  const std::string& file, const std::string& outfile,
135  const SUMOTime freq, const MSRouteProbe* probe);
137 
138 };
139 
140 
141 #endif
142 
143 /****************************************************************************/
144 
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:89
Changes the speed allowed on a set of lanes.
Builds trigger objects for guisim.
A road/street connecting two junctions.
Definition: MSEdge.h:73
GUITriggerBuilder()
Constructor.
An abstract device that changes the state of the micro simulation.
Definition: MSTrigger.h:48
Reroutes vehicles passing an edge.
Calibrates the flow on a segment to a specified one.
Definition: MSCalibrator.h:56
virtual MSTriggeredRerouter * buildRerouter(MSNet &net, const std::string &id, std::vector< MSEdge * > &edges, SUMOReal prob, const std::string &file, bool off)
builds an rerouter
#define SUMOReal
Definition: config.h:215
Builds trigger objects for microsim.
Representation of a lane in the micro simulation.
Definition: MSLane.h:77