 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
20 #ifndef NLTriggerBuilder_h
21 #define NLTriggerBuilder_h
111 const std::string& base);
122 const std::string& base);
152 const std::string&
id,
const std::vector<std::string>& lines,
153 MSLane* lane,
double frompos,
double topos,
154 unsigned int capacity,
155 double width,
double length,
double angle,
const std::string& name,
172 double width,
double length,
double angle);
230 const std::string& base);
260 const std::string&
id,
const std::vector<MSLane*>& destLanes,
261 const std::string& file);
278 double frompos,
double topos,
const SumoXMLTag element, std::string
string,
int personCapacity);
296 double chargingPower,
double efficiency,
bool chargeInTransit,
double chargeDelay);
310 const std::string&
id,
MSEdge* edge,
MSLane* lane,
double pos,
311 const std::string& file,
const std::string& outfile,
314 const std::string& vTypes);
328 const std::string&
id,
const MSEdge* edge,
double pos,
329 const std::string& file,
const std::string& outfile,
332 const std::string& vTypes);
347 double prob,
const std::string& file,
bool off,
349 const std::string& vTypes);
369 const std::string& base,
370 const bool allowEmpty =
false);
385 const std::string& tt,
const std::string& tid);
402 MSLane* lane,
const std::string& tt,
const std::string& tid,
MSEdge* edge = 0);
A lane area vehicles can halt at.
A lane area vehicles can halt at.
Representation of a lane in the micro simulation.
void parseAndBeginParkingArea(MSNet &net, const SUMOSAXAttributes &attrs)
Parses his values and builds a parking area.
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)
Begin a parking area.
virtual MSLaneSpeedTrigger * buildLaneSpeedTrigger(MSNet &net, const std::string &id, const std::vector< MSLane * > &destLanes, const std::string &file)
Builds a lane speed trigger.
Writes routes of vehicles passing a certain edge.
void addAccess(MSNet &net, const SUMOSAXAttributes &attrs)
Parses the values and adds an access point to the currently parsed stopping place.
The simulated network and simulation perfomer.
void setHandler(NLHandler *handler)
Sets the parent handler to use for nested parsing.
MSStoppingPlace * myCurrentStop
The currently parsed stop to add access points to.
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 stopping place.
Calibrates the flow on a segment to a specified one.
MSParkingArea * myParkingArea
definition of the currently parsed parking area
Changes the speed allowed on a set of lanes.
Builds trigger objects for microsim.
Reroutes vehicles passing an edge.
void parseAndAddLotEntry(const SUMOSAXAttributes &attrs)
Parses his values and adds a lot entry to current parking area.
SumoXMLTag
Numbers representing SUMO-XML - element names.
std::string getFileName(const SUMOSAXAttributes &attrs, const std::string &base, const bool allowEmpty=false)
Helper method to obtain the filename.
void parseAndBuildStoppingPlace(MSNet &net, const SUMOSAXAttributes &attrs, const SumoXMLTag element)
Parses the values and builds a stopping places for busses, trains or container vehicles.
void parseAndBuildLaneSpeedTrigger(MSNet &net, const SUMOSAXAttributes &attrs, const std::string &base)
Parses his values and builds a lane speed trigger.
MSLane * getLane(const SUMOSAXAttributes &attrs, const std::string &tt, const std::string &tid)
Returns the lane defined by attribute "lane".
virtual METriggeredCalibrator * buildMECalibrator(MSNet &net, const std::string &id, const MSEdge *edge, double pos, const std::string &file, const std::string &outfile, const SUMOTime freq, MSRouteProbe *probe, const std::string &vTypes)
builds a mesoscopic calibrator
A road/street connecting two junctions.
MSStoppingPlace * getCurrentStop()
virtual void endStoppingPlace()
End a stopping place.
An abstract device that changes the state of the micro simulation.
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
void addLotEntry(double x, double y, double z, double width, double length, double angle)
Add a lot entry to current parking area.
NLTriggerBuilder()
Constructor.
double getPosition(const SUMOSAXAttributes &attrs, MSLane *lane, const std::string &tt, const std::string &tid, MSEdge *edge=0)
returns the position on the lane checking it
std::vector< MSEdge * > MSEdgeVector
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
NLHandler * myHandler
The parent handler to set for subhandlers.
void parseAndBuildChargingStation(MSNet &net, const SUMOSAXAttributes &attrs)
Parses his values and builds a charging station.
The XML-Handler for network loading.
virtual void endParkingArea()
End a parking area.
void parseAndBuildRerouter(MSNet &net, const SUMOSAXAttributes &attrs, const std::string &base)
Parses his values and builds a rerouter.
virtual ~NLTriggerBuilder()
Destructor.
Calibrates the flow on a segment to a specified one.
void buildVaporizer(const SUMOSAXAttributes &attrs)
Builds a vaporization.
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.
Encapsulated SAX-Attributes.
void parseAndBuildCalibrator(MSNet &net, const SUMOSAXAttributes &attrs, const std::string &base)
Parses his values and builds a mesoscopic or microscopic calibrator.