57 const std::string&
id,
const std::vector<MSLane*>& destLanes,
58 const std::string& file) {
60 static_cast<GUINet&
>(net).getVisualisationSpeedUp().addAdditionalGLObject(lst);
68 double prob,
const std::string& file,
bool off,
71 dynamic_cast<GUINet&>(net).getVisualisationSpeedUp());
78 double frompos,
double topos,
const SumoXMLTag element, std::string name) {
90 static_cast<GUINet&
>(net).getVisualisationSpeedUp().addAdditionalGLObject(dynamic_cast<GUIGlObject*>(
myCurrentStop));
96 const std::vector<std::string>& lines,
98 double frompos,
double topos,
99 unsigned int capacity,
100 double width,
double length,
double angle) {
105 throw InvalidArgument(
"Could not build parking area '" +
id +
"'; probably declared twice.");
113 double chargingPower,
double efficiency,
bool chargeInTransit,
int chargeDelay) {
116 delete chargingStation;
117 throw InvalidArgument(
"Could not build charging station '" +
id +
"'; probably declared twice.");
119 static_cast<GUINet&
>(net).getVisualisationSpeedUp().addAdditionalGLObject(chargingStation);
125 const std::string& file,
126 const std::string& outfile,
130 static_cast<GUINet&
>(net).getVisualisationSpeedUp().addAdditionalGLObject(cali);
141 throw InvalidArgument(
"Could not end a parking area 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...
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)
Builds a bus stop.
Writes routes of vehicles passing a certain edge.
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)
Builds a parking area.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
virtual void buildChargingStation(MSNet &net, const std::string &id, MSLane *lane, double frompos, double topos, double chargingPower, double efficiency, bool chargeInTransit, int chargeDelay)
Builds a charging station.
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 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, MSLane *lane, double pos, const std::string &file, const std::string &outfile, const SUMOTime freq, const MSRouteProbe *probe)
builds a microscopic calibrator
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.
A lane area vehicles can halt at (gui-version)
A lane area vehicles can halt at (gui-version)
virtual MSTriggeredRerouter * buildRerouter(MSNet &net, const std::string &id, MSEdgeVector &edges, double prob, const std::string &file, bool off, SUMOTime timeThreshold)
builds an rerouter
Calibrates the flow on a segment to a specified one.
std::vector< MSEdge * > MSEdgeVector
Changes the speed allowed on a set of lanes (gui version)
Representation of a lane in the micro simulation.