 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
18 #ifndef MSRouteHandler_h
19 #define MSRouteHandler_h
111 void closeRoute(
const bool mayBeDisconnected =
false);
The car-following model and parameter.
A lane area vehicles can halt at.
MSTransportable::MSTransportablePlan * myActivePlan
The plan of the current person.
void closeContainer()
Ends the processing of a container.
bool myAmLoadingState
whether a state file is being loaded
std::string myCurrentVTypeDistributionID
The id of the currently parsed vehicle type distribution.
void closeTrip()
Ends the processing of a trip.
MSTransportable::MSTransportablePlan * myActiveContainerPlan
The plan of the current container.
void addPerson(const SUMOSAXAttributes &attrs)
Processing of a person.
virtual ~MSRouteHandler()
standard destructor
void openVehicleTypeDistribution(const SUMOSAXAttributes &attrs)
opens a type distribution for reading
void openRoute(const SUMOSAXAttributes &attrs)
opens a route for reading
void parseFromViaTo(std::string element, const SUMOSAXAttributes &attrs)
Called for parsing from and to and the corresponding taz attributes.
void addRide(const SUMOSAXAttributes &attrs)
Processing of a ride.
std::vector< const MSEdge * > ConstMSEdgeVector
MSRouteHandler & operator=(const MSRouteHandler &s)=delete
Invalidated assignment operator.
void openTrip(const SUMOSAXAttributes &attrs)
opens a trip for reading
void closeVType()
Ends the processing of a vehicle type.
void closeRoute(const bool mayBeDisconnected=false)
closes (ends) the building of a route.
void openRouteDistribution(const SUMOSAXAttributes &attrs)
opens a route distribution for reading
void addContainer(const SUMOSAXAttributes &attrs)
Processing of a container.
void closePersonFlow()
Ends the processing of a personFlow.
static std::mt19937 myParsingRNG
A random number generator used to choose from vtype/route distributions and computing the speed facto...
ConstMSEdgeVector myActiveRoute
The current route.
void deleteActivePlans()
delete already created MSTransportablePlans if error occurs before handing over responsibility to a M...
void addTranship(const SUMOSAXAttributes &attrs)
Processing of a tranship.
virtual void closeVehicle()
Ends the processing of a vehicle (note: is virtual because is reimplemented in MSStateHandler)
RandomDistributor< const MSRoute * > * myCurrentRouteDistribution
The currently parsed distribution of routes (probability->route)
void closeRouteDistribution()
closes (ends) the building of a distribution
void closeVehicleTypeDistribution()
closes (ends) the building of a distribution
RandomDistributor< MSVehicleType * > * myCurrentVTypeDistribution
The currently parsed distribution of vehicle types (probability->vehicle type)
A road/street connecting two junctions.
std::string myCurrentRouteDistributionID
The id of the currently parsed route distribution.
MSRouteHandler(const std::string &file, bool addVehiclesDirectly)
standard constructor
virtual void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
void closePerson()
Ends the processing of a person.
std::vector< MSTransportable::Stage * > MSTransportablePlan
the structure holding the plan of a transportable
static std::mt19937 * getParsingRNG()
get parsing RNG
Parser and container for routes during their loading.
void addFlowPerson(SUMOTime depart, MSVehicleType *type, const std::string &baseID, int i)
delete already created MSTransportablePlans if error occurs before handing over responsibility to a M...
void addPersonTrip(const SUMOSAXAttributes &attrs)
add a routing request for a walking or intermodal person
bool myAddVehiclesDirectly
Information whether vehicles shall be directly added to the network or kept within the buffer.
Parser for routes during their loading.
void addWalk(const SUMOSAXAttributes &attrs)
add a fully specified walk
void closeFlow()
Ends the processing of a flow.
void addTransport(const SUMOSAXAttributes &attrs)
Processing of a transport.
void openFlow(const SUMOSAXAttributes &attrs)
opens a flow for reading
Encapsulated SAX-Attributes.
void addStop(const SUMOSAXAttributes &attrs)
Processing of a stop.
void parseWalkPositions(const SUMOSAXAttributes &attrs, const std::string &personID, const MSEdge *fromEdge, const MSEdge *&toEdge, double &departPos, double &arrivalPos, MSStoppingPlace *&bs, const MSTransportable::Stage *const lastStage, bool &ok)
@ brief parse depart- and arrival positions of a walk