22 #ifndef MSRouteHandler_h
23 #define MSRouteHandler_h
65 bool addVehiclesDirectly);
123 void closeRoute(
const bool mayBeDisconnected =
false);
void addStop(const SUMOSAXAttributes &attrs)
Processing of a stop.
MSRouteHandler(const std::string &file, bool addVehiclesDirectly)
standard constructor
ConstMSEdgeVector myActiveRoute
The current route.
void parseFromViaTo(std::string element, const SUMOSAXAttributes &attrs)
Called for parsing from and to and the corresponding taz attributes.
RandomDistributor< const MSRoute * > * myCurrentRouteDistribution
The currently parsed distribution of routes (probability->route)
MSPerson::MSPersonPlan * myActivePlan
The plan of the current person.
void closeVehicle()
Ends the processing of a vehicle.
static MTRand myParsingRNG
A random number generator used to choose from vtype/route distributions and computing the speed facto...
bool myAddVehiclesDirectly
Information whether vehicles shall be directly added to the network or kept within the buffer...
static MTRand * getParsingRNG()
void closePerson()
Ends the processing of a person.
void openRoute(const SUMOSAXAttributes &attrs)
std::vector< const MSEdge * > ConstMSEdgeVector
The car-following model and parameter.
A road/street connecting two junctions.
RandomDistributor< MSVehicleType * > * myCurrentVTypeDistribution
The currently parsed distribution of vehicle types (probability->vehicle type)
void closeRouteDistribution()
Encapsulated SAX-Attributes.
void closeContainer()
Ends the processing of a container.
void closeVehicleTypeDistribution()
MSContainer::MSContainerPlan * myActiveContainerPlan
The plan of the current container.
virtual void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
std::vector< MSContainerStage * > MSContainerPlan
the structure holding the plan of a container
Parser for routes during their loading.
std::string myCurrentRouteDistributionID
The id of the currently parsed route distribution.
void openRouteDistribution(const SUMOSAXAttributes &attrs)
virtual void myEndElement(int element)
Called when a closing tag occurs.
std::string myCurrentVTypeDistributionID
The id of the currently parsed vehicle type distribution.
MSRouteHandler & operator=(const MSRouteHandler &s)
Invalidated assignment operator.
virtual ~MSRouteHandler()
standard destructor
void openVehicleTypeDistribution(const SUMOSAXAttributes &attrs)
std::vector< MSPersonStage * > MSPersonPlan
the structure holding the plan of a person
void closeRoute(const bool mayBeDisconnected=false)
Parser and container for routes during their loading.
void closeFlow()
Ends the processing of a flow.