|
SUMO - Simulation of Urban MObility
|
Parser and container for routes during their loading. More...
#include <MSRouteHandler.h>
Public Member Functions | |
| void | characters (const XMLCh *const chars, const XERCES3_SIZE_t length) |
| The inherited method called when characters occured. | |
| bool | checkStopPos (SUMOReal &startPos, SUMOReal &endPos, const SUMOReal laneLength, const SUMOReal minLength, const bool friendlyPos) |
| check start and end position of a stop | |
| void | endElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname) |
| The inherited method called when a tag is being closed. | |
| const std::string & | getFileName () const throw () |
| returns the current file name | |
| SUMOTime | getLastDepart () const |
| Returns the last loaded depart time. | |
| MSRouteHandler (const std::string &file, bool addVehiclesDirectly) | |
| standard constructor | |
| void | registerParent (const int tag, GenericSAXHandler *handler) |
| Assigning a parent handler which is enabled when the specified tag is closed. | |
| void | setFileName (const std::string &name) throw () |
| Sets the current file name. | |
| void | startElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const Attributes &attrs) |
| The inherited method called when a new tag opens. | |
| virtual | ~MSRouteHandler () throw () |
| standard destructor | |
SAX ErrorHandler callbacks | |
| void | warning (const SAXParseException &exception) throw () |
| Handler for XML-warnings. | |
| void | error (const SAXParseException &exception) throw (ProcessError) |
| Handler for XML-errors. | |
| void | fatalError (const SAXParseException &exception) throw (ProcessError) |
| Handler for XML-errors. | |
Protected Member Functions | |
| void | addStop (const SUMOSAXAttributes &attrs) throw (ProcessError) |
| Processing of a stop. | |
| std::string | buildErrorMessage (const SAXParseException &exception) throw () |
| Builds an error message. | |
| void | closeFlow () throw (ProcessError) |
| Ends the processing of a flow. | |
| void | closePerson () throw (ProcessError) |
| Ends the processing of a person. | |
| void | closeRoute () throw (ProcessError) |
| void | closeRouteDistribution () |
| void | closeVehicle () throw (ProcessError) |
| Ends the processing of a vehicle. | |
| void | closeVehicleTypeDistribution () |
| virtual void | myCharacters (int element, const std::string &chars) |
| Callback method for characters to implement by derived classes. | |
| void | openRoute (const SUMOSAXAttributes &attrs) |
| void | openRouteDistribution (const SUMOSAXAttributes &attrs) |
| void | openVehicleTypeDistribution (const SUMOSAXAttributes &attrs) |
inherited from GenericSAXHandler | |
| virtual void | myStartElement (int element, const SUMOSAXAttributes &attrs) throw (ProcessError) |
| Called on the opening of a tag;. | |
| virtual void | myEndElement (int element) throw (ProcessError) |
| Called when a closing tag occurs. | |
Protected Attributes | |
| MSPerson::MSPersonPlan * | myActivePlan |
| The plan of the current person. | |
| MSEdgeVector | myActiveRoute |
| The current route. | |
| RGBColor | myActiveRouteColor |
| The currently parsed route's color. | |
| std::string | myActiveRouteID |
| The id of the current route. | |
| SUMOReal | myActiveRouteProbability |
| The id of the current route. | |
| std::string | myActiveRouteRefID |
| The id of the route the current route references to. | |
| std::vector < SUMOVehicleParameter::Stop > | myActiveRouteStops |
| List of the stops on the parsed route. | |
| bool | myAddVehiclesDirectly |
| Information whether vehicles shall be directly added to the network or kept within the buffer. | |
| RandomDistributor< const MSRoute * > * | myCurrentRouteDistribution |
| The currently parsed distribution of routes (probability->route) | |
| std::string | myCurrentRouteDistributionID |
| The id of the currently parsed route distribution. | |
| SUMOVTypeParameter * | myCurrentVType |
| The currently parsed vehicle type. | |
| RandomDistributor < MSVehicleType * > * | myCurrentVTypeDistribution |
| The currently parsed distribution of vehicle types (probability->vehicle type) | |
| std::string | myCurrentVTypeDistributionID |
| The id of the currently parsed vehicle type distribution. | |
| bool | myHaveWarnedAboutDeprecatedBusStop |
| bool | myHaveWarnedAboutDeprecatedFriendlyPos |
| bool | myHaveWarnedAboutDeprecatedRefID |
| bool | myHaveWarnedAboutDeprecatedVType |
| bool | myHaveWarnedAboutDeprecatedVTypeDistribution |
| bool | myHaveWarnedAboutDeprecatedVTypes |
| SUMOTime | myLastDepart |
| The insertion time of the vehicle read last. | |
| SUMOReal | myScale |
| The scaling factor (especially for inc-dua) | |
| SUMOVehicleParameter * | myVehicleParameter |
Private Member Functions | |
| bool | checkLastDepart () |
| Checks whether the route file is sorted by departure time if needed. | |
| MSRouteHandler (const MSRouteHandler &s) | |
| Invalidated copy constructor. | |
| MSRouteHandler & | operator= (const MSRouteHandler &s) |
| Invalidated assignment operator. | |
Parser and container for routes during their loading.
MSRouteHandler is the container for routes while they are build until their transfering to the MSNet::RouteDict The result of the operations are single MSNet::Route-instances
Definition at line 57 of file MSRouteHandler.h.
| MSRouteHandler::MSRouteHandler | ( | const std::string & | file, |
| bool | addVehiclesDirectly | ||
| ) |
standard constructor
Definition at line 63 of file MSRouteHandler.cpp.
References OptionsCont::getFloat(), OptionsCont::getInt(), OptionsCont::getOptions(), OptionsCont::isSet(), myActiveRoute, myScale, and SUMOReal.
| MSRouteHandler::~MSRouteHandler | ( | ) | throw () [virtual] |
standard destructor
Definition at line 91 of file MSRouteHandler.cpp.
| MSRouteHandler::MSRouteHandler | ( | const MSRouteHandler & | s | ) | [private] |
Invalidated copy constructor.
| void MSRouteHandler::addStop | ( | const SUMOSAXAttributes & | attrs | ) | throw (ProcessError) [protected] |
Processing of a stop.
Definition at line 661 of file MSRouteHandler.cpp.
References SUMOVehicleParameter::Stop::busstop, MSLane::dictionary(), SUMOVehicleParameter::Stop::duration, SUMOVehicleParameter::Stop::endPos, MSBusStop::getBeginLanePosition(), MSNet::getBusStop(), MSBusStop::getEndLanePosition(), Named::getID(), MSNet::getInstance(), MSBusStop::getLane(), SUMOVehicleParameter::Stop::index, SUMOVehicleParameter::Stop::lane, SUMOVehicleParameter::Stop::parking, POSITION_EPS, SUMOVehicleParameter::Stop::startPos, STOP_INDEX_END, STOP_INDEX_FIT, SUMO_ATTR_BUS_STOP, SUMO_ATTR_BUS_STOP__DEPRECATED, SUMO_ATTR_DURATION, SUMO_ATTR_ENDPOS, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_FRIENDLY_POS__DEPRECATED, SUMO_ATTR_INDEX, SUMO_ATTR_LANE, SUMO_ATTR_PARKING, SUMO_ATTR_POSITION, SUMO_ATTR_STARTPOS, SUMO_ATTR_TRIGGERED, SUMO_ATTR_UNTIL, toString(), SUMOVehicleParameter::Stop::triggered, SUMOVehicleParameter::Stop::until, WRITE_ERROR, and WRITE_WARNING.
| std::string GenericSAXHandler::buildErrorMessage | ( | const SAXParseException & | exception | ) | throw () [protected, inherited] |
Builds an error message.
The error message includes the file name and the line/column information as supported by the given SAXParseException
| [in] | exception | The name of the currently processed file |
Definition at line 189 of file GenericSAXHandler.cpp.
| void GenericSAXHandler::characters | ( | const XMLCh *const | chars, |
| const XERCES3_SIZE_t | length | ||
| ) | [inherited] |
The inherited method called when characters occured.
The retrieved characters are converted into a string and appended into a private buffer. They are reported as soon as the element ends.
recheck/describe what happens with characters when a new element is opened
describe characters processing in the class' head
Definition at line 172 of file GenericSAXHandler.cpp.
References GenericSAXHandler::myCharactersVector.
| bool MSRouteHandler::checkLastDepart | ( | ) | [private] |
Checks whether the route file is sorted by departure time if needed.
Definition at line 102 of file MSRouteHandler.cpp.
References SUMOVehicleParameter::depart, DEPART_GIVEN, SUMOVehicleParameter::departProcedure, SUMOVehicleParameter::id, myAddVehiclesDirectly, myLastDepart, myVehicleParameter, and WRITE_WARNING.
Referenced by closeFlow(), closePerson(), and closeVehicle().
| bool MSRouteHandler::checkStopPos | ( | SUMOReal & | startPos, |
| SUMOReal & | endPos, | ||
| const SUMOReal | laneLength, | ||
| const SUMOReal | minLength, | ||
| const bool | friendlyPos | ||
| ) |
check start and end position of a stop
Definition at line 623 of file MSRouteHandler.cpp.
| void MSRouteHandler::closeFlow | ( | ) | throw (ProcessError) [protected] |
Ends the processing of a flow.
Definition at line 587 of file MSRouteHandler.cpp.
References MSInsertionControl::add(), checkLastDepart(), SUMOVehicleParameter::depart, MSRoute::dictionary(), MSNet::getInsertionControl(), MSNet::getInstance(), OptionsCont::getOptions(), SUMOVehicleParameter::id, myActiveRouteID, myVehicleParameter, SUMOVehicleParameter::repetitionNumber, SUMOVehicleParameter::repetitionOffset, SUMOVehicleParameter::repetitionsDone, SUMOVehicleParameter::routeid, string2time(), and SUMOVehicleParameter::vtypeid.
| void MSRouteHandler::closePerson | ( | ) | throw (ProcessError) [protected] |
Ends the processing of a person.
Definition at line 571 of file MSRouteHandler.cpp.
References checkLastDepart(), SUMOVehicleParameter::depart, MSNet::getInstance(), MSNet::getPersonControl(), SUMOVehicleParameter::id, myActivePlan, myVehicleParameter, and MSPersonControl::setArrival().
| void MSRouteHandler::closeRoute | ( | ) | throw (ProcessError) [protected] |
closes (ends) the building of a route. Afterwards no edges may be added to it; this method may throw exceptions when a) the route is empty or b) another route with the same id already exists
Definition at line 397 of file MSRouteHandler.cpp.
References RandomDistributor< T >::add(), MSRoute::dictionary(), MSNet::getInstance(), SUMOVehicleParameter::id, myActiveRoute, myActiveRouteColor, myActiveRouteID, myActiveRouteProbability, myActiveRouteRefID, myActiveRouteStops, myCurrentRouteDistribution, myVehicleParameter, and SUMOVehicleParameter::repetitionNumber.
| void MSRouteHandler::closeRouteDistribution | ( | ) | [protected] |
closes (ends) the building of a distribution
Definition at line 473 of file MSRouteHandler.cpp.
References MSRoute::dictionary(), RandomDistributor< T >::getOverallProb(), myCurrentRouteDistribution, myCurrentRouteDistributionID, and WRITE_ERROR.
| void MSRouteHandler::closeVehicle | ( | ) | throw (ProcessError) [protected] |
Ends the processing of a vehicle.
Definition at line 488 of file MSRouteHandler.cpp.
References MSInsertionControl::add(), MSRoute::addReference(), MSVehicleControl::addVehicle(), MSVehicleControl::addWaiting(), MSRoute::begin(), MSVehicleControl::buildVehicle(), checkLastDepart(), MSVehicleControl::deleteVehicle(), SUMOVehicleParameter::depart, DEPART_GIVEN, DEPART_TRIGGERED, SUMOVehicleParameter::departProcedure, MSRoute::dictionary(), MSNet::getInsertionControl(), MSNet::getInstance(), OptionsCont::getOptions(), SUMOVehicle::getParameter(), MSVehicleControl::getVehicle(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), SUMOVehicleParameter::id, MSVehicleControl::isInQuota(), myActiveRouteID, myScale, myVehicleParameter, MSVehicleControl::registerOneWaitingForPerson(), MSRoute::release(), SUMOVehicleParameter::routeid, string2time(), and SUMOVehicleParameter::vtypeid.
| void MSRouteHandler::closeVehicleTypeDistribution | ( | ) | [protected] |
closes (ends) the building of a distribution
Definition at line 277 of file MSRouteHandler.cpp.
References MSNet::getInstance(), RandomDistributor< T >::getOverallProb(), myCurrentVTypeDistribution, myCurrentVTypeDistributionID, and WRITE_ERROR.
| void GenericSAXHandler::endElement | ( | const XMLCh *const | uri, |
| const XMLCh *const | localname, | ||
| const XMLCh *const | qname | ||
| ) | [inherited] |
The inherited method called when a tag is being closed.
This method calls the user-implemented methods myCharacters with the previously collected and converted characters.
Then, myEndElement is called, supplying it the qname converted to its enum- and string-representations.
recheck/describe encoding of the string-representation
do not generate and report the string-representation
Definition at line 122 of file GenericSAXHandler.cpp.
References GenericSAXHandler::convertTag(), GenericSAXHandler::myCharacters(), GenericSAXHandler::myCharactersVector, GenericSAXHandler::myEndElement(), GenericSAXHandler::myParentHandler, GenericSAXHandler::myParentIndicator, XMLSubSys::setHandler(), SUMO_TAG_INCLUDE, and SUMO_TAG_NOTHING.
| void GenericSAXHandler::error | ( | const SAXParseException & | exception | ) | throw (ProcessError) [inherited] |
Handler for XML-errors.
The message is built using buildErrorMessage and thrown within a ProcessError.
| [in] | exception | The occured exception to process |
| ProcessError | On any call |
Definition at line 208 of file GenericSAXHandler.cpp.
Referenced by NLHandler::getLanesFromIndices().
| void GenericSAXHandler::fatalError | ( | const SAXParseException & | exception | ) | throw (ProcessError) [inherited] |
Handler for XML-errors.
The message is built using buildErrorMessage and thrown within a ProcessError.
| ProcessError | On any call |
| [in] | exception | The occured exception to process |
Definition at line 214 of file GenericSAXHandler.cpp.
| const std::string & GenericSAXHandler::getFileName | ( | ) | const throw () [inherited] |
returns the current file name
Definition at line 82 of file GenericSAXHandler.cpp.
References GenericSAXHandler::myFileName.
Referenced by NLHandler::addE1Detector(), NLHandler::addE2Detector(), NLHandler::addEdgeLaneMeanData(), NLHandler::addInstantE1Detector(), NLHandler::addRouteProbeDetector(), NLHandler::addVTypeProbeDetector(), NLHandler::beginE3Detector(), MSRouteLoader::init(), PCNetProjectionLoader::loadIfSet(), NILoader::loadXMLType(), MSTriggeredXMLReader::myInit(), RORDGenerator_ODAmounts::RORDGenerator_ODAmounts(), and GenericSAXHandler::startElement().
| SUMOTime MSRouteHandler::getLastDepart | ( | ) | const |
Returns the last loaded depart time.
Definition at line 96 of file MSRouteHandler.cpp.
References myLastDepart.
| void GenericSAXHandler::myCharacters | ( | int | element, |
| const std::string & | chars | ||
| ) | [protected, virtual, inherited] |
Callback method for characters to implement by derived classes.
Called by "endElement" (see there).
| [in] | element | The opened element, given as a int |
| [in] | chars | The complete embedded character string ProcessError These method may throw a ProcessError if something fails |
Reimplemented in ROJTRTurnDefLoader, NIImporter_ITSUMO::Handler, NIImporter_OpenDrive, NIImporter_SUMO, PCLoaderXML, PCNetProjectionLoader, and RORDLoader_SUMOBase.
Definition at line 224 of file GenericSAXHandler.cpp.
Referenced by GenericSAXHandler::endElement().
| void MSRouteHandler::myEndElement | ( | int | element | ) | throw (ProcessError) [protected, virtual] |
Called when a closing tag occurs.
| [in] | element | ID of the currently opened element |
| ProcessError | If something fails |
Reimplemented from GenericSAXHandler.
Reimplemented in NLHandler.
Definition at line 337 of file MSRouteHandler.cpp.
References MSVehicleType::build(), SUMOVehicleParserHelper::closeVTypeParsing(), MSVehicleType::getDefaultProbability(), MSVehicleType::getID(), MSNet::getInstance(), SUMO_TAG_FLOW, SUMO_TAG_PERSON, SUMO_TAG_ROUTE, SUMO_TAG_ROUTE_DISTRIBUTION, SUMO_TAG_VEHICLE, SUMO_TAG_VTYPE, SUMO_TAG_VTYPE__DEPRECATED, SUMO_TAG_VTYPE_DISTRIBUTION, and SUMO_TAG_VTYPE_DISTRIBUTION__DEPRECATED.
Referenced by NLHandler::myEndElement().
| void MSRouteHandler::myStartElement | ( | int | element, |
| const SUMOSAXAttributes & | attrs | ||
| ) | throw (ProcessError) [protected, virtual] |
Called on the opening of a tag;.
| [in] | element | ID of the currently opened element |
| [in] | attrs | Attributes within the currently opened element |
| ProcessError | If something fails |
Reimplemented from GenericSAXHandler.
Reimplemented in NLHandler.
Definition at line 115 of file MSRouteHandler.cpp.
References SUMOVehicleParserHelper::beginVTypeParsing(), MSEdge::dictionary(), MSEdge::getFollower(), MSEdge::getNoFollowing(), StringTokenizer::getVector(), MSEdge::parseEdgesList(), SUMOVehicleParserHelper::parseFlowAttributes(), SUMOVehicleParserHelper::parseVehicleAttributes(), SUMOVehicleParserHelper::parseVTypeEmbedded(), SUMO_ATTR_DURATION, SUMO_ATTR_EDGES, SUMO_ATTR_FROM, SUMO_ATTR_LINES, SUMO_ATTR_SPEED, SUMO_ATTR_TO, SUMO_TAG_FLOW, SUMO_TAG_PERSON, SUMO_TAG_RIDE, SUMO_TAG_ROUTE, SUMO_TAG_ROUTE_DISTRIBUTION, SUMO_TAG_STOP, SUMO_TAG_TRIP, SUMO_TAG_TRIP__DEPRECATED, SUMO_TAG_VEHICLE, SUMO_TAG_VTYPE, SUMO_TAG_VTYPE__DEPRECATED, SUMO_TAG_VTYPE_DISTRIBUTION, SUMO_TAG_VTYPE_DISTRIBUTION__DEPRECATED, SUMO_TAG_WALK, SUMOReal, toString(), VEHPARS_FORCE_REROUTE, VEHPARS_TAZ_SET, WRITE_ERROR, and WRITE_WARNING.
Referenced by NLHandler::myStartElement().
| void MSRouteHandler::openRoute | ( | const SUMOSAXAttributes & | attrs | ) | [protected] |
opens a route for reading
Definition at line 292 of file MSRouteHandler.cpp.
References DEFAULT_VEH_PROB, MSRoute::dictionary(), RGBColor::getDefaultColor(), SUMOSAXAttributes::getObjectType(), SUMOSAXAttributes::getOptStringReporting(), SUMOSAXAttributes::getOptSUMORealReporting(), RandomDistributor< T >::getProbs(), SUMOSAXAttributes::getString(), SUMOSAXAttributes::getStringReporting(), SUMOSAXAttributes::hasAttribute(), SUMOVehicleParameter::id, myActiveRoute, myActiveRouteColor, myActiveRouteID, myActiveRouteProbability, myActiveRouteRefID, myCurrentRouteDistribution, myCurrentRouteDistributionID, myHaveWarnedAboutDeprecatedRefID, myVehicleParameter, RGBColor::parseColorReporting(), MSEdge::parseEdgesList(), SUMO_ATTR_COLOR, SUMO_ATTR_EDGES, SUMO_ATTR_ID, SUMO_ATTR_PROB, SUMO_ATTR_REFID, SUMO_ATTR_REFID__DEPRECATED, toString(), WRITE_ERROR, and WRITE_WARNING.
| void MSRouteHandler::openRouteDistribution | ( | const SUMOSAXAttributes & | attrs | ) | [protected] |
opens a route distribution for reading
Definition at line 443 of file MSRouteHandler.cpp.
References RandomDistributor< T >::add(), MSRoute::dictionary(), SUMOSAXAttributes::getStringReporting(), SUMOSAXAttributes::hasAttribute(), StringTokenizer::hasNext(), SUMOVehicleParameter::id, myCurrentRouteDistribution, myCurrentRouteDistributionID, myVehicleParameter, StringTokenizer::next(), SUMO_ATTR_ID, and SUMO_ATTR_ROUTES.
| void MSRouteHandler::openVehicleTypeDistribution | ( | const SUMOSAXAttributes & | attrs | ) | [protected] |
opens a type distribution for reading
Definition at line 248 of file MSRouteHandler.cpp.
References RandomDistributor< T >::add(), MSVehicleType::getDefaultProbability(), MSNet::getInstance(), SUMOSAXAttributes::getStringReporting(), MSNet::getVehicleControl(), MSVehicleControl::getVType(), SUMOSAXAttributes::hasAttribute(), StringTokenizer::hasNext(), myCurrentVTypeDistribution, myCurrentVTypeDistributionID, myHaveWarnedAboutDeprecatedVTypes, StringTokenizer::next(), SUMO_ATTR_ID, SUMO_ATTR_VTYPES, SUMO_ATTR_VTYPES__DEPRECATED, toString(), and WRITE_WARNING.
| MSRouteHandler& MSRouteHandler::operator= | ( | const MSRouteHandler & | s | ) | [private] |
Invalidated assignment operator.
| void GenericSAXHandler::registerParent | ( | const int | tag, |
| GenericSAXHandler * | handler | ||
| ) | [inherited] |
Assigning a parent handler which is enabled when the specified tag is closed.
Definition at line 164 of file GenericSAXHandler.cpp.
References GenericSAXHandler::myParentHandler, GenericSAXHandler::myParentIndicator, and XMLSubSys::setHandler().
Referenced by NLTriggerBuilder::parseAndBuildLaneSpeedTrigger().
| void GenericSAXHandler::setFileName | ( | const std::string & | name | ) | throw () [inherited] |
Sets the current file name.
| [in] | name | The name of the currently processed file |
Definition at line 76 of file GenericSAXHandler.cpp.
Referenced by NIImporter_SUMO::_loadNetwork(), NIImporter_OpenStreetMap::_loadNetwork(), AGActivityGen::importInfoCity(), PCNetProjectionLoader::loadIfSet(), ROLoader::loadNet(), loadNet(), NIImporter_OpenDrive::loadNetwork(), NIImporter_MATSim::loadNetwork(), NIImporter_ITSUMO::loadNetwork(), and NILoader::loadXMLType().
| void GenericSAXHandler::startElement | ( | const XMLCh *const | uri, |
| const XMLCh *const | localname, | ||
| const XMLCh *const | qname, | ||
| const Attributes & | attrs | ||
| ) | [inherited] |
The inherited method called when a new tag opens.
The method parses the supplied XMLCh*-qname using the internal name/enum-map to obtain the enum representation of the attribute name.
Then, "myStartElement" is called supplying the enumeration value, the string-representation of the name and the attributes.
recheck/describe encoding of the string-representation
do not generate and report the string-representation
Definition at line 101 of file GenericSAXHandler.cpp.
References GenericSAXHandler::convertTag(), FileHelpers::getConfigurationRelative(), GenericSAXHandler::getFileName(), SUMOSAXAttributesImpl_Xerces::getString(), FileHelpers::isAbsolute(), GenericSAXHandler::myCharactersVector, GenericSAXHandler::myPredefinedTags, GenericSAXHandler::myPredefinedTagsMML, GenericSAXHandler::myStartElement(), XMLSubSys::runParser(), SUMO_ATTR_HREF, and SUMO_TAG_INCLUDE.
| void GenericSAXHandler::warning | ( | const SAXParseException & | exception | ) | throw () [inherited] |
Handler for XML-warnings.
The message is built using buildErrorMessage and reported to the warning-instance of the MsgHandler.
| [in] | exception | The occured exception to process |
Definition at line 202 of file GenericSAXHandler.cpp.
References WRITE_WARNING.
MSPerson::MSPersonPlan* MSRouteHandler::myActivePlan [protected] |
The plan of the current person.
Definition at line 157 of file MSRouteHandler.h.
Referenced by closePerson().
MSEdgeVector MSRouteHandler::myActiveRoute [protected] |
The current route.
Definition at line 139 of file MSRouteHandler.h.
Referenced by closeRoute(), MSRouteHandler(), and openRoute().
RGBColor MSRouteHandler::myActiveRouteColor [protected] |
The currently parsed route's color.
Definition at line 151 of file MSRouteHandler.h.
Referenced by closeRoute(), and openRoute().
std::string MSRouteHandler::myActiveRouteID [protected] |
The id of the current route.
Definition at line 142 of file MSRouteHandler.h.
Referenced by closeFlow(), closeRoute(), closeVehicle(), and openRoute().
SUMOReal MSRouteHandler::myActiveRouteProbability [protected] |
The id of the current route.
Definition at line 148 of file MSRouteHandler.h.
Referenced by closeRoute(), and openRoute().
std::string MSRouteHandler::myActiveRouteRefID [protected] |
The id of the route the current route references to.
Definition at line 145 of file MSRouteHandler.h.
Referenced by closeRoute(), and openRoute().
std::vector<SUMOVehicleParameter::Stop> MSRouteHandler::myActiveRouteStops [protected] |
List of the stops on the parsed route.
Definition at line 154 of file MSRouteHandler.h.
Referenced by closeRoute().
bool MSRouteHandler::myAddVehiclesDirectly [protected] |
Information whether vehicles shall be directly added to the network or kept within the buffer.
Definition at line 160 of file MSRouteHandler.h.
Referenced by checkLastDepart().
RandomDistributor<const MSRoute*>* MSRouteHandler::myCurrentRouteDistribution [protected] |
The currently parsed distribution of routes (probability->route)
Definition at line 169 of file MSRouteHandler.h.
Referenced by closeRoute(), closeRouteDistribution(), openRoute(), and openRouteDistribution().
std::string MSRouteHandler::myCurrentRouteDistributionID [protected] |
The id of the currently parsed route distribution.
Definition at line 172 of file MSRouteHandler.h.
Referenced by closeRouteDistribution(), openRoute(), and openRouteDistribution().
SUMOVTypeParameter* MSRouteHandler::myCurrentVType [protected] |
The currently parsed vehicle type.
Definition at line 178 of file MSRouteHandler.h.
The currently parsed distribution of vehicle types (probability->vehicle type)
Definition at line 163 of file MSRouteHandler.h.
Referenced by closeVehicleTypeDistribution(), and openVehicleTypeDistribution().
std::string MSRouteHandler::myCurrentVTypeDistributionID [protected] |
The id of the currently parsed vehicle type distribution.
Definition at line 166 of file MSRouteHandler.h.
Referenced by closeVehicleTypeDistribution(), and openVehicleTypeDistribution().
Definition at line 180 of file MSRouteHandler.h.
Definition at line 180 of file MSRouteHandler.h.
Referenced by NLHandler::addE1Detector(), NLHandler::addE2Detector(), NLHandler::addE3Entry(), NLHandler::addE3Exit(), and NLHandler::addInstantE1Detector().
bool MSRouteHandler::myHaveWarnedAboutDeprecatedRefID [protected] |
Definition at line 182 of file MSRouteHandler.h.
Referenced by openRoute().
bool MSRouteHandler::myHaveWarnedAboutDeprecatedVType [protected] |
Definition at line 181 of file MSRouteHandler.h.
Definition at line 181 of file MSRouteHandler.h.
Reimplemented in NLHandler.
Definition at line 182 of file MSRouteHandler.h.
Referenced by openVehicleTypeDistribution().
SUMOTime MSRouteHandler::myLastDepart [protected] |
The insertion time of the vehicle read last.
Definition at line 136 of file MSRouteHandler.h.
Referenced by checkLastDepart(), and getLastDepart().
SUMOReal MSRouteHandler::myScale [protected] |
The scaling factor (especially for inc-dua)
Definition at line 175 of file MSRouteHandler.h.
Referenced by closeVehicle(), and MSRouteHandler().
SUMOVehicleParameter* MSRouteHandler::myVehicleParameter [protected] |
Definition at line 133 of file MSRouteHandler.h.
Referenced by checkLastDepart(), closeFlow(), closePerson(), closeRoute(), closeVehicle(), openRoute(), and openRouteDistribution().