51 const std::string&
id,
const std::vector<MSLane*>& destLanes,
52 const std::string& file) {
54 static_cast<GUINet&
>(net).getVisualisationSpeedUp().addAdditionalGLObject(lst);
62 double prob,
const std::string& file,
bool off,
64 const std::string& vTypes) {
66 dynamic_cast<GUINet&>(net).getVisualisationSpeedUp());
73 double frompos,
double topos,
const SumoXMLTag element, std::string name,
int personCapacity) {
90 const std::vector<std::string>& lines,
92 double frompos,
double topos,
93 unsigned int capacity,
94 double width,
double length,
double angle,
const std::string& name,
97 GUIParkingArea* stop =
new GUIParkingArea(
id, lines, *lane, frompos, topos, capacity, width, length, angle, name, onRoad);
100 throw InvalidArgument(
"Could not build parking area '" +
id +
"'; probably declared twice.");
109 double chargingPower,
double efficiency,
bool chargeInTransit,
double chargeDelay) {
112 delete chargingStation;
113 throw InvalidArgument(
"Could not build charging station '" +
id +
"'; probably declared twice.");
116 static_cast<GUINet&
>(net).getVisualisationSpeedUp().addAdditionalGLObject(chargingStation);
123 const std::string& file,
124 const std::string& outfile,
127 const std::string& vTypes) {
129 static_cast<GUINet&
>(net).getVisualisationSpeedUp().addAdditionalGLObject(cali);
140 throw InvalidArgument(
"Could not end a parking area that is not opened.");
151 throw InvalidArgument(
"Could not end a stopping place that is not opened.");
A lane area vehicles can halt at (gui-version)
SumoXMLTag
Numbers representing SUMO-XML - element names.
Changes the speed allowed on a set of lanes (gui version)
Reroutes vehicles passing an edge One rerouter can be active on multiple edges. To reduce drawing loa...
Writes routes of vehicles passing a certain edge.
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.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
MSParkingArea * myParkingArea
definition of the currently parsed parking area
~GUITriggerBuilder()
Destructor.
bool addStoppingPlace(const SumoXMLTag category, MSStoppingPlace *stop)
Adds a stopping place.
The simulated network and simulation perfomer.
virtual void endParkingArea()
End a parking area (it must be added to the SUMORTree after all parking spaces are loaded...
Changes the speed allowed on a set of lanes.
A road/street connecting two junctions.
GUITriggerBuilder()
Constructor.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
MSStoppingPlace * myCurrentStop
The currently parsed stop to add access points to.
virtual void endStoppingPlace()
End a stopping place.
virtual MSLaneSpeedTrigger * buildLaneSpeedTrigger(MSNet &net, const std::string &id, const std::vector< MSLane *> &destLanes, const std::string &file)
Builds a lane speed trigger.
Reroutes vehicles passing an edge.
A lane area vehicles can halt at (gui-version)
A MSNet extended by some values for usage within the gui.
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
A lane area vehicles can halt at (gui-version)
A lane area vehicles can halt at (gui-version)
Calibrates the flow on a segment to a specified one.
std::vector< MSEdge * > MSEdgeVector
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.
Changes the speed allowed on a set of lanes (gui version)
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
Representation of a lane in the micro simulation.
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.