19 #ifndef RORouteHandler_h 20 #define RORouteHandler_h 65 const bool emptyDestinationsAllowed,
66 const bool ignoreErrors,
67 const bool checkSchema);
117 void closeRoute(
const bool mayBeDisconnected =
false);
169 const std::string& rid);
RORouteDef * myCurrentAlternatives
The currently parsed route alternatives.
void parseGeoEdges(const PositionVector &positions, bool geo, ConstROEdgeVector &into, const std::string &rid)
Parse edges from coordinates.
void addTransport(const SUMOSAXAttributes &attrs)
Processing of a transport.
void addContainer(const SUMOSAXAttributes &attrs)
Processing of a container.
NamedRTree * getLaneTree()
initialize lane-RTree
const bool myEmptyDestinationsAllowed
Information whether the "to" attribute is mandatory.
void closeVehicleTypeDistribution()
closes (ends) the building of a distribution
A single lane the router may use.
void closePerson()
Ends the processing of a person.
void openRouteDistribution(const SUMOSAXAttributes &attrs)
opens a route distribution for reading
Represents a generic random distribution.
ConstROEdgeVector myActiveRoute
The current route.
void addWalk(const SUMOSAXAttributes &attrs)
add a fully specified walk
A RT-tree for efficient storing of SUMO's Named objects.
virtual void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
RORouteHandler & operator=(const RORouteHandler &s)=delete
Invalidated assignment operator.
MsgHandler *const myErrorOutput
Depending on the "ignore-errors" option different outputs are used.
void closePersonFlow()
Ends the processing of a personFlow.
int myActiveContainerPlanSize
The number of stages in myActiveContainerPlan.
std::vector< const ROEdge * > ConstROEdgeVector
void openVehicleTypeDistribution(const SUMOSAXAttributes &attrs)
opens a type distribution for reading
const SUMOTime myBegin
The begin time.
void closeVehicle()
Ends the processing of a vehicle.
RandomDistributor< SUMOVTypeParameter * > * myCurrentVTypeDistribution
The currently parsed distribution of vehicle types (probability->vehicle type)
RONet & myNet
The current route.
ROPerson * myActivePerson
The plan of the current person.
Encapsulated SAX-Attributes.
void openFlow(const SUMOSAXAttributes &attrs)
opens a flow for reading
void parseEdges(const std::string &desc, ConstROEdgeVector &into, const std::string &rid)
Parse edges from strings.
A person as used by router.
void addStop(const SUMOSAXAttributes &attrs)
Processing of a stop.
void closeTrip()
Ends the processing of a trip.
void closeVType()
Ends the processing of a vehicle type.
A basic edge for routing applications.
void addPerson(const SUMOSAXAttributes &attrs)
Processing of a person.
Parser for routes during their loading.
void closeContainer()
Ends the processing of a container.
void addFlowPerson(SUMOTime depart, const std::string &baseID, int i)
Processing of a person from a personFlow.
The router's network representation.
void addRide(const SUMOSAXAttributes &attrs)
Processing of a ride.
void openRoute(const SUMOSAXAttributes &attrs)
opens a route for reading
void openTrip(const SUMOSAXAttributes &attrs)
opens a trip for reading
const bool myKeepVTypeDist
whether to keep the the vtype distribution in output
const bool myTryRepair
Information whether routes shall be repaired.
OutputDevice_String * myActiveContainerPlan
The plan of the current container.
void addTranship(const SUMOSAXAttributes &attrs)
Processing of a tranship.
Parser and container for routes during their loading.
Base class for a vehicle's route definition.
void closeRoute(const bool mayBeDisconnected=false)
closes (ends) the building of a route.
virtual ~RORouteHandler()
standard destructor
void addPersonTrip(const SUMOSAXAttributes &attrs)
add a routing request for a walking or intermodal person
NamedRTree * myLaneTree
RTree for finding lanes.
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()
closes (ends) the building of a distribution
std::string myCurrentVTypeDistributionID
The id of the currently parsed vehicle type distribution.
RORouteHandler(RONet &net, const std::string &file, const bool tryRepair, const bool emptyDestinationsAllowed, const bool ignoreErrors, const bool checkSchema)
standard constructor