22 #ifndef RORouteHandler_h 23 #define RORouteHandler_h 70 const bool emptyDestinationsAllowed,
71 const bool ignoreErrors);
125 void closeRoute(
const bool mayBeDisconnected =
false);
150 const std::string& rid);
RORouteDef * myCurrentAlternatives
The currently parsed route alternatives.
const bool myEmptyDestinationsAllowed
Information whether the "to" attribute is mandatory.
void closeVehicleTypeDistribution()
A single lane the router may use.
void closePerson()
Ends the processing of a person.
void openRouteDistribution(const SUMOSAXAttributes &attrs)
ROPedestrianRouterDijkstra * myPedestrianRouter
ConstROEdgeVector myActiveRoute
The current route.
virtual void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
MsgHandler *const myErrorOutput
Depending on the "ignore-errors" option different outputs are used.
virtual void myEndElement(int element)
Called when a closing tag occurs.
int myActiveContainerPlanSize
The number of stages in myActiveContainerPlan.
std::vector< const ROEdge * > ConstROEdgeVector
void openVehicleTypeDistribution(const SUMOSAXAttributes &attrs)
void closeVehicle()
Ends the processing of a vehicle.
RandomDistributor< SUMOVTypeParameter * > * myCurrentVTypeDistribution
The currently parsed distribution of vehicle types (probability->vehicle type)
RORouteHandler(RONet &net, const std::string &file, const bool tryRepair, const bool emptyDestinationsAllowed, const bool ignoreErrors)
standard constructor
RONet & myNet
The current route.
Encapsulated SAX-Attributes.
void parseEdges(const std::string &desc, ConstROEdgeVector &into, const std::string &rid)
Parse edges from strings.
void addStop(const SUMOSAXAttributes &attrs)
Processing of a stop.
int myActivePlanSize
The number of stages in myActivePlan.
RORouteHandler & operator=(const RORouteHandler &s)
Invalidated assignment operator.
PedestrianRouterDijkstra< ROEdge, ROLane, RONode > ROPedestrianRouterDijkstra
the router for pedestrians
A basic edge for routing applications.
Parser for routes during their loading.
void closeContainer()
Ends the processing of a container.
The router's network representation.
void openRoute(const SUMOSAXAttributes &attrs)
const bool myTryRepair
Information whether routes shall be repaired.
OutputDevice_String * myActiveContainerPlan
The plan of the current container.
Parser and container for routes during their loading.
Base class for a vehicle's route definition.
void closeRoute(const bool mayBeDisconnected=false)
OutputDevice_String * myActivePlan
The plan of the current person.
virtual ~RORouteHandler()
standard destructor
Static storage of an output device and its base (abstract) implementation.
bool routePedestrian(const SUMOSAXAttributes &attrs, OutputDevice &plan)
route a walking person and write the corresponding walk element (return whether sucessful) ...
void closeFlow()
Ends the processing of a flow.
void parseFromViaTo(std::string element, const SUMOSAXAttributes &attrs)
Called for parsing from and to and the corresponding taz attributes.
A complete router's route.
An output device that encapsulates an ofstream.
void closeRouteDistribution()
std::string myCurrentVTypeDistributionID
The id of the currently parsed vehicle type distribution.