23 #ifndef NLTriggerBuilder_h
24 #define NLTriggerBuilder_h
55 class METriggeredCalibrator;
120 const std::string& base);
131 const std::string& base);
151 const std::string& base);
178 const std::string&
id,
const std::vector<MSLane*>& destLanes,
179 const std::string& file);
195 const std::string&
id,
const std::vector<std::string>& lines,
212 const std::string& file,
const std::string& outfile,
226 virtual METriggeredCalibrator* buildMECalibrator(
MSNet& net,
228 const std::string& file,
const std::string& outfile,
244 const std::string&
id, std::vector<MSEdge*>& edges,
245 SUMOReal prob,
const std::string& file,
bool off);
265 const std::string& base,
266 const bool allowEmpty =
false);
281 const std::string& tt,
const std::string& tid);
298 MSLane* lane,
const std::string& tt,
const std::string& tid);
void setHandler(NLHandler *handler)
Sets the parent handler to use for nested parsing.
void parseAndBuildCalibrator(MSNet &net, const SUMOSAXAttributes &attrs, const std::string &base)
Parses his values and builds a mesoscopic or microscopic calibrator.
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.
virtual MSCalibrator * buildCalibrator(MSNet &net, const std::string &id, MSEdge *edge, SUMOReal pos, const std::string &file, const std::string &outfile, const SUMOTime freq, MSRouteProbe *probe)
builds a microscopic calibrator
Writes routes of vehicles passing a certain edge.
void parseAndBuildRerouter(MSNet &net, const SUMOSAXAttributes &attrs, const std::string &base)
Parses his values and builds a rerouter.
void parseAndBuildBusStop(MSNet &net, const SUMOSAXAttributes &attrs)
Parses his values and builds a bus stop.
NLTriggerBuilder()
Constructor.
virtual ~NLTriggerBuilder()
Destructor.
The simulated network and simulation perfomer.
Changes the speed allowed on a set of lanes.
A road/street connecting two junctions.
virtual MSTriggeredRerouter * buildRerouter(MSNet &net, const std::string &id, std::vector< MSEdge * > &edges, SUMOReal prob, const std::string &file, bool off)
builds an rerouter
SUMOReal getPosition(const SUMOSAXAttributes &attrs, MSLane *lane, const std::string &tt, const std::string &tid)
returns the position on the lane checking it
An abstract device that changes the state of the micro simulation.
Encapsulated SAX-Attributes.
NLHandler * myHandler
The parent handler to set for subhandlers.
A lane area vehicles can halt at.
void parseAndBuildLaneSpeedTrigger(MSNet &net, const SUMOSAXAttributes &attrs, const std::string &base)
Parses his values and builds a lane speed trigger.
std::string getFileName(const SUMOSAXAttributes &attrs, const std::string &base, const bool allowEmpty=false)
Helper method to obtain the filename.
The XML-Handler for network loading.
Reroutes vehicles passing an edge.
Calibrates the flow on a segment to a specified one.
virtual MSLaneSpeedTrigger * buildLaneSpeedTrigger(MSNet &net, const std::string &id, const std::vector< MSLane * > &destLanes, const std::string &file)
Builds a lane speed trigger.
Builds trigger objects for microsim.
Representation of a lane in the micro simulation.
void buildVaporizer(const SUMOSAXAttributes &attrs)
Builds a vaporization.
MSLane * getLane(const SUMOSAXAttributes &attrs, const std::string &tt, const std::string &tid)
Returns the lane defined by attribute "lane".