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,
74 int personCapacity,
double parkingLength,
RGBColor& color) {
75 myCurrentStop =
new GUIBusStop(
id, element, lines, *lane, frompos, topos, name, personCapacity, parkingLength, color);
86 const std::vector<std::string>& lines,
88 double frompos,
double topos,
89 unsigned int capacity,
90 double width,
double length,
double angle,
const std::string& name,
92 const std::string& departPos) {
94 GUIParkingArea* stop =
new GUIParkingArea(
id, lines, *lane, frompos, topos, capacity, width, length, angle, name, onRoad, departPos);
97 throw InvalidArgument(
"Could not build parking area '" +
id +
"'; probably declared twice.");
106 double chargingPower,
double efficiency,
bool chargeInTransit,
SUMOTime chargeDelay) {
109 delete chargingStation;
110 throw InvalidArgument(
"Could not build charging station '" +
id +
"'; probably declared twice.");
113 static_cast<GUINet&
>(net).getVisualisationSpeedUp().addAdditionalGLObject(chargingStation);
119 bool voltageSource) {
123 throw InvalidArgument(
"Could not build overheadWireSegment '" +
id +
"'; probably declared twice.");
125 static_cast<GUINet&
>(net).getVisualisationSpeedUp().addAdditionalGLObject(overheadWire);
131 static_cast<GUINet&
>(net).getVisualisationSpeedUp().addAdditionalGLObject(overheadWireClamp);
141 throw InvalidArgument(
"Could not end a parking area that is not opened.");
152 throw InvalidArgument(
"Could not end a stopping place that is not opened.");
std::vector< MSEdge * > MSEdgeVector
SumoXMLTag
Numbers representing SUMO-XML - element names.
@ SUMO_TAG_CHARGING_STATION
A Charging Station.
@ SUMO_TAG_PARKING_AREA
A parking area.
@ SUMO_TAG_OVERHEAD_WIRE_SEGMENT
An overhead wire segment.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
A lane area vehicles can halt at (gui-version)
A lane area vehicles can halt at (gui-version)
Changes the speed allowed on a set of lanes (gui version)
A MSNet extended by some values for usage within the gui.
GUI for the overhead wire system.
A lane area vehicles can halt at (gui-version)
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.
Reroutes vehicles passing an edge One rerouter can be active on multiple edges. To reduce drawing loa...
Representation of a lane in the micro simulation.
Changes the speed allowed on a set of lanes.
The simulated network and simulation perfomer.
bool addStoppingPlace(const SumoXMLTag category, MSStoppingPlace *stop)
Adds a stopping place.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
Reroutes vehicles passing an edge.
MSParkingArea * myParkingArea
definition of the currently parsed parking area
MSStoppingPlace * myCurrentStop
The currently parsed stop to add access points to.