Eclipse SUMO - Simulation of Urban MObility
|
#include <RouteHandler.h>
Public Member Functions | |
bool | beginParseAttributes (SumoXMLTag tag, const SUMOSAXAttributes &attrs) |
begin parse attributes | |
void | endParseAttributes () |
end parse attributes | |
bool | isErrorCreatingElement () const |
get flag for mark if a element wasn't created | |
void | parseSumoBaseObject (CommonXMLStructure::SumoBaseObject *obj) |
parse SumoBaseObject (it's called recursivelly) | |
virtual bool | postParserTasks ()=0 |
run post parser tasks | |
RouteHandler (const std::string &filename, const bool hardFail) | |
Constructor. | |
virtual | ~RouteHandler () |
Destructor. | |
build functions | |
virtual bool | buildVType (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVTypeParameter &vTypeParameter)=0 |
build vType | |
virtual bool | buildVTypeDistribution (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const int deterministic, const std::vector< std::string > &vTypeIDs, const std::vector< double > &probabilities)=0 |
build vType distribution | |
virtual bool | buildRoute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, SUMOVehicleClass vClass, const std::vector< std::string > &edgeIDs, const RGBColor &color, const int repeat, const SUMOTime cycleTime, const double probability, const Parameterised::Map &routeParameters)=0 |
build route | |
virtual bool | buildEmbeddedRoute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::vector< std::string > &edgeIDs, const RGBColor &color, const int repeat, const SUMOTime cycleTime, const Parameterised::Map &routeParameters)=0 |
build embedded route | |
virtual bool | buildRouteDistribution (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::vector< std::string > &vTypeIDs, const std::vector< double > &probabilities)=0 |
build route distribution | |
virtual bool | buildVehicleOverRoute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters)=0 |
build a vehicle over an existent route | |
virtual bool | buildFlowOverRoute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters)=0 |
build a flow over an existent route | |
virtual bool | buildTrip (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromEdgeID, const std::string &toEdgeID)=0 |
build trip (from-to edges) | |
virtual bool | buildTripJunctions (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromJunctionID, const std::string &toJunctionID)=0 |
build trip (from-to junctions) | |
virtual bool | buildTripTAZs (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromTazID, const std::string &toTazID)=0 |
build trip (from-to TAZs) | |
virtual bool | buildFlow (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromEdgeID, const std::string &toEdgeID)=0 |
build flow (from-to edges) | |
virtual bool | buildFlowJunctions (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromJunctionID, const std::string &toJunctionID)=0 |
build flow (from-to junctions) | |
virtual bool | buildFlowTAZs (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromTAZID, const std::string &toTAZID)=0 |
build flow (from-to TAZs) | |
virtual bool | buildPerson (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &personParameters)=0 |
build person | |
virtual bool | buildPersonFlow (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &personFlowParameters)=0 |
build person flow | |
virtual bool | buildPersonTrip (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPos, const std::vector< std::string > &types, const std::vector< std::string > &modes, const std::vector< std::string > &lines, const double walkFactor, const std::string &group)=0 |
build person trip | |
virtual bool | buildWalk (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPos, const double speed, const SUMOTime duration)=0 |
build walk | |
virtual bool | buildRide (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPos, const std::vector< std::string > &lines, const std::string &group)=0 |
build ride | |
virtual bool | buildContainer (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &containerParameters)=0 |
build container | |
virtual bool | buildContainerFlow (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &containerFlowParameters)=0 |
build container flow | |
virtual bool | buildTransport (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPos, const std::vector< std::string > &lines, const std::string &group)=0 |
build transport | |
virtual bool | buildTranship (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPosition, const double departPosition, const double speed, const SUMOTime duration)=0 |
build tranship | |
virtual bool | buildStop (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const SUMOVehicleParameter::Stop &stopParameters)=0 |
build stop | |
Protected Member Functions | |
void | parseParameters (const SUMOSAXAttributes &attrs) |
parse generic parameters | |
bool | writeError (const std::string &error) |
write error and enable error creating element | |
bool | writeErrorDuplicated (const SumoXMLTag tag, const std::string &id, const SumoXMLTag checkedTag) |
write error "duplicated additional" | |
bool | writeErrorInvalidDistribution (const SumoXMLTag tag, const std::string &id) |
write error "invalid distribution" | |
bool | writeErrorInvalidLanes (const SumoXMLTag tag, const std::string &id) |
write error "invalid list of lanes" | |
bool | writeErrorInvalidParent (const SumoXMLTag tag, const std::string &id, const SumoXMLTag parentTag, const std::string &parentID) |
write error "invalid parent element" giving ids of current and parent element | |
bool | writeErrorInvalidParent (const SumoXMLTag tag, const SumoXMLTag parentTag) |
write error "invalid parent element" without giving IDs | |
bool | writeErrorInvalidParent (const SumoXMLTag tag, const SumoXMLTag parentTag, const std::string &parentID) |
write error "invalid parent element" giving only the id of parent element | |
bool | writeErrorInvalidPosition (const SumoXMLTag tag, const std::string &id) |
write error "invalid position" | |
check functions | |
check parsed parents | |
void | checkParsedParent (const SumoXMLTag currentTag, const std::vector< SumoXMLTag > &parentTags, bool &ok) |
bool | checkListOfVehicleTypes (const SumoXMLTag tag, const std::string &id, const std::vector< std::string > &vTypeIDs) |
check list of IDs | |
bool | checkNegative (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute, const int value, const bool canBeZero) |
check if the given int value is NOT negative | |
bool | checkNegative (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute, const double value, const bool canBeZero) |
check if the given double value is NOT negative | |
bool | checkNegative (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute, const SUMOTime value, const bool canBeZero) |
check if the given SUMOTime value is NOT negative | |
bool | checkFileName (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute, const std::string &value) |
check if the given filename is valid | |
bool | checkValidAdditionalID (const SumoXMLTag tag, const std::string &value) |
check if the given additional ID is valid | |
bool | checkValidDetectorID (const SumoXMLTag tag, const std::string &value) |
check if the given detector ID is valid | |
bool | checkValidDemandElementID (const SumoXMLTag tag, const std::string &value) |
check if the given demand elmement ID is valid | |
Protected Attributes | |
CommonXMLStructure | myCommonXMLStructure |
common XML Structure | |
bool | myErrorCreatingElement = false |
flag for mark if a element wasn't created | |
Private Member Functions | |
bool | isEmbeddedRoute (const SUMOSAXAttributes &attrs) const |
check embedded route | |
RouteHandler & | operator= (const RouteHandler &s)=delete |
invalidate assignment operator | |
RouteHandler (const RouteHandler &s)=delete | |
invalidate copy constructor | |
parse route element attributes | |
parse vType | |
void | parseVType (const SUMOSAXAttributes &attrs) |
void | parseVTypeDistribution (const SUMOSAXAttributes &attrs) |
parse vType distribution | |
void | parseRoute (const SUMOSAXAttributes &attrs) |
parse route | |
void | parseRouteDistribution (const SUMOSAXAttributes &attrs) |
parse route distribution | |
void | parseTrip (const SUMOSAXAttributes &attrs) |
parse trip | |
void | parseVehicle (const SUMOSAXAttributes &attrs) |
parse vehicle (including vehicles over routes and vehicles with embedded routes) | |
void | parseFlow (const SUMOSAXAttributes &attrs) |
parse flow (including flows, flows over routes and flows with embedded routes) | |
void | parseStop (const SUMOSAXAttributes &attrs) |
parse stop | |
void | parsePerson (const SUMOSAXAttributes &attrs) |
parse person | |
void | parsePersonFlow (const SUMOSAXAttributes &attrs) |
parse person flow | |
void | parsePersonTrip (const SUMOSAXAttributes &attrs) |
parse person trip | |
void | parseWalk (const SUMOSAXAttributes &attrs) |
parse walk | |
void | parseRide (const SUMOSAXAttributes &attrs) |
parse ride | |
void | parseContainer (const SUMOSAXAttributes &attrs) |
parse container | |
void | parseContainerFlow (const SUMOSAXAttributes &attrs) |
parse container flow | |
void | parseTransport (const SUMOSAXAttributes &attrs) |
parse transport | |
void | parseTranship (const SUMOSAXAttributes &attrs) |
parse tranship | |
void | parseInterval (const SUMOSAXAttributes &attrs) |
parse interval | |
bool | parseNestedCFM (const SumoXMLTag tag, const SUMOSAXAttributes &attrs, CommonXMLStructure::SumoBaseObject *vTypeObject) |
parse nested CarFollowingModel | |
bool | parseStopParameters (SUMOVehicleParameter::Stop &stop, const SUMOSAXAttributes &attrs) |
parse stop parameters | |
Private Attributes | |
const std::string | myFilename |
filename (needed for parsing vTypes) | |
SUMOTime | myFlowBeginDefault |
The default value for flow begins. | |
SUMOTime | myFlowEndDefault |
The default value for flow ends. | |
const bool | myHardFail |
enable or disable hardFail (stop parsing if parameter aren't correct) | |
Definition at line 29 of file RouteHandler.h.
RouteHandler::RouteHandler | ( | const std::string & | filename, |
const bool | hardFail | ||
) |
Constructor.
[in] | filename | Name of the parsed file |
[in] | hardFail | enable or disable hardFails (continue handling demand elements if there is an error) |
Definition at line 39 of file RouteHandler.cpp.
|
virtual |
Destructor.
Definition at line 47 of file RouteHandler.cpp.
|
privatedelete |
invalidate copy constructor
bool RouteHandler::beginParseAttributes | ( | SumoXMLTag | tag, |
const SUMOSAXAttributes & | attrs | ||
) |
begin parse attributes
Definition at line 51 of file RouteHandler.cpp.
References CommonXMLStructure::abortSUMOBaseOBject(), CommonXMLStructure::getCurrentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonHandler::myCommonXMLStructure, CommonXMLStructure::openSUMOBaseOBject(), parseContainer(), parseContainerFlow(), parseFlow(), parseInterval(), parseNestedCFM(), CommonHandler::parseParameters(), parsePerson(), parsePersonFlow(), parsePersonTrip(), parseRide(), parseRoute(), parseRouteDistribution(), parseStop(), parseTranship(), parseTransport(), parseTrip(), parseVehicle(), parseVType(), parseVTypeDistribution(), parseWalk(), SUMO_TAG_CONTAINER, SUMO_TAG_CONTAINERFLOW, SUMO_TAG_FLOW, SUMO_TAG_INTERVAL, SUMO_TAG_PARAM, SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, SUMO_TAG_PERSONTRIP, SUMO_TAG_RIDE, SUMO_TAG_ROUTE, SUMO_TAG_ROUTE_DISTRIBUTION, SUMO_TAG_STOP, SUMO_TAG_TRANSHIP, SUMO_TAG_TRANSPORT, SUMO_TAG_TRIP, SUMO_TAG_VEHICLE, SUMO_TAG_VTYPE, SUMO_TAG_VTYPE_DISTRIBUTION, SUMO_TAG_WALK, and WRITE_ERROR.
Referenced by GNEGeneralHandler::beginTag().
|
pure virtual |
build container
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build container flow
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build embedded route
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build flow (from-to edges)
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build flow (from-to junctions)
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build a flow over an existent route
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build flow (from-to TAZs)
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build person
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build person flow
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build person trip
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build ride
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build route
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build route distribution
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build stop
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build tranship
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build transport
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build trip (from-to edges)
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build trip (from-to junctions)
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build trip (from-to TAZs)
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build a vehicle over an existent route
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build vType
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build vType distribution
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
pure virtual |
build walk
Implemented in GNERouteHandler.
Referenced by parseSumoBaseObject().
|
protectedinherited |
check if the given filename is valid
Definition at line 175 of file CommonHandler.cpp.
References SUMOXMLDefinitions::isValidFilename(), TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildPOI(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildRouteProbe(), and GNEAdditionalHandler::buildSingleLaneDetectorE2().
|
protectedinherited |
check list of IDs
Definition at line 110 of file CommonHandler.cpp.
References SUMOXMLDefinitions::isValidTypeID(), TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), and GNEAdditionalHandler::buildVariableSpeedSign().
|
protectedinherited |
check if the given double value is NOT negative
Definition at line 139 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
|
protectedinherited |
check if the given int value is NOT negative
Definition at line 121 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEAdditionalHandler::buildLaneCalibrator(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNEAdditionalHandler::buildPOI(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildPolygon(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRerouterInterval(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNEAdditionalHandler::buildTractionSubstation(), GNEAdditionalHandler::buildTrainStop(), GNERouteHandler::buildTranship(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNERouteHandler::buildWalk(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseRerouterAttributes(), parseRoute(), and AdditionalHandler::parseRouteProbRerouteAttributes().
|
protectedinherited |
check if the given SUMOTime value is NOT negative
Definition at line 157 of file CommonHandler.cpp.
References time2string(), TLF, toString(), and CommonHandler::writeError().
|
protectedinherited |
Definition at line 79 of file CommonHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getTag(), CommonXMLStructure::SumoBaseObject::hasStringAttribute(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_ID, SUMO_TAG_NOTHING, TLF, toString(), and CommonHandler::writeError().
Referenced by AdditionalHandler::parseAccessAttributes(), AdditionalHandler::parseClosingLaneRerouteAttributes(), AdditionalHandler::parseClosingRerouteAttributes(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseEntryAttributes(), AdditionalHandler::parseExitAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseParkingSpaceAttributes(), parsePersonTrip(), AdditionalHandler::parseRerouterIntervalAttributes(), parseRide(), AdditionalHandler::parseRouteProbRerouteAttributes(), parseStop(), AdditionalHandler::parseTAZSinkAttributes(), AdditionalHandler::parseTAZSourceAttributes(), parseTranship(), parseTransport(), AdditionalHandler::parseVariableSpeedSignStepAttributes(), and parseWalk().
|
protectedinherited |
check if the given additional ID is valid
Definition at line 185 of file CommonHandler.cpp.
References SUMOXMLDefinitions::isValidVehicleID(), TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEDataHandler::buildDataSet(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEMeanDataHandler::buildEdgeMeanData(), GNEAdditionalHandler::buildJpsObstacle(), GNEAdditionalHandler::buildJpsWalkableArea(), GNEAdditionalHandler::buildLaneCalibrator(), GNEMeanDataHandler::buildLaneMeanData(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildPOI(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildPolygon(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTractionSubstation(), GNEAdditionalHandler::buildTrainStop(), GNEAdditionalHandler::buildVaporizer(), and GNEAdditionalHandler::buildVariableSpeedSign().
|
protectedinherited |
check if the given demand elmement ID is valid
Definition at line 209 of file CommonHandler.cpp.
References SUMOXMLDefinitions::isValidVehicleID(), TLF, toString(), and CommonHandler::writeError().
Referenced by GNERouteHandler::buildContainer(), GNERouteHandler::buildContainerFlow(), GNERouteHandler::buildEmbeddedRoute(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowJunctions(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowTAZs(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildRoute(), GNERouteHandler::buildRouteDistribution(), GNERouteHandler::buildTrip(), GNERouteHandler::buildTripJunctions(), GNERouteHandler::buildTripTAZs(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVType(), and GNERouteHandler::buildVTypeDistribution().
|
protectedinherited |
check if the given detector ID is valid
Definition at line 197 of file CommonHandler.cpp.
References SUMOXMLDefinitions::isValidDetectorID(), TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), and GNEAdditionalHandler::buildSingleLaneDetectorE2().
void RouteHandler::endParseAttributes | ( | ) |
end parse attributes
Definition at line 147 of file RouteHandler.cpp.
References CommonXMLStructure::closeSUMOBaseOBject(), CommonXMLStructure::getCurrentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getTag(), CommonHandler::myCommonXMLStructure, parseSumoBaseObject(), SUMO_ATTR_ID, SUMO_TAG_CONTAINER, SUMO_TAG_CONTAINERFLOW, SUMO_TAG_FLOW, SUMO_TAG_NOTHING, SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, SUMO_TAG_ROUTE, SUMO_TAG_ROUTE_DISTRIBUTION, SUMO_TAG_TRIP, SUMO_TAG_VEHICLE, SUMO_TAG_VTYPE, and SUMO_TAG_VTYPE_DISTRIBUTION.
Referenced by GNEGeneralHandler::endTag().
|
private |
check embedded route
Definition at line 1189 of file RouteHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getTag(), SUMOSAXAttributes::hasAttribute(), CommonXMLStructure::SumoBaseObject::hasStringAttribute(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_ID, SUMO_ATTR_ROUTE, SUMO_TAG_FLOW, and SUMO_TAG_VEHICLE.
Referenced by parseRoute().
|
inherited |
get flag for mark if a element wasn't created
Definition at line 41 of file CommonHandler.cpp.
References CommonHandler::myErrorCreatingElement.
Referenced by GNEGeneralHandler::isErrorCreatingElement(), GNEApplicationWindow::loadDataElements(), and GNEApplicationWindow::onCmdOpenDataElements().
|
privatedelete |
invalidate assignment operator
|
private |
parse container
Definition at line 870 of file RouteHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), CommonHandler::myCommonXMLStructure, myHardFail, SUMOVehicleParserHelper::parseVehicleAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), SUMO_TAG_CONTAINER, and SUMO_TAG_NOTHING.
Referenced by beginParseAttributes().
|
private |
parse container flow
Definition at line 887 of file RouteHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), CommonHandler::myCommonXMLStructure, myFlowBeginDefault, myFlowEndDefault, myHardFail, SUMOVehicleParserHelper::parseFlowAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), SUMO_TAG_CONTAINERFLOW, and SUMO_TAG_NOTHING.
Referenced by beginParseAttributes().
|
private |
parse flow (including flows, flows over routes and flows with embedded routes)
Definition at line 625 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::hasAttribute(), SUMOVehicleParameter::id, CommonHandler::myCommonXMLStructure, myFlowBeginDefault, myFlowEndDefault, myHardFail, SUMOVehicleParserHelper::parseFlowAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), SUMO_ATTR_FROM, SUMO_ATTR_FROM_JUNCTION, SUMO_ATTR_FROM_TAZ, SUMO_ATTR_ROUTE, SUMO_ATTR_TO, SUMO_ATTR_TO_JUNCTION, SUMO_ATTR_TO_TAZ, SUMO_ATTR_VIA, SUMO_TAG_FLOW, SUMO_TAG_NOTHING, TL, and CommonHandler::writeError().
Referenced by beginParseAttributes().
|
private |
parse interval
Definition at line 963 of file RouteHandler.cpp.
References SUMOSAXAttributes::getSUMOTimeReporting(), myFlowBeginDefault, myFlowEndDefault, SUMO_ATTR_BEGIN, and SUMO_ATTR_END.
Referenced by beginParseAttributes().
|
private |
parse nested CarFollowingModel
Definition at line 973 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getVehicleTypeParameter(), myHardFail, SUMOVehicleParserHelper::parseCFMParams(), CommonXMLStructure::SumoBaseObject::setVehicleTypeParameter(), SUMO_ATTR_ID, TL, WRITE_WARNINGF, and CommonHandler::writeError().
Referenced by beginParseAttributes().
|
protectedinherited |
parse generic parameters
Definition at line 47 of file CommonHandler.cpp.
References SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), SUMOSAXAttributes::getString(), SUMOSAXAttributes::hasAttribute(), SUMOXMLDefinitions::isValidParameterKey(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_NOTHING, SUMO_TAG_PARAM, SUMO_TAG_ROOTFILE, TL, TLF, toString(), WRITE_DEBUG, and CommonHandler::writeError().
Referenced by AdditionalHandler::beginParseAttributes(), and beginParseAttributes().
|
private |
parse person
Definition at line 735 of file RouteHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), CommonHandler::myCommonXMLStructure, myHardFail, SUMOVehicleParserHelper::parseVehicleAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), SUMO_TAG_NOTHING, and SUMO_TAG_PERSON.
Referenced by beginParseAttributes().
|
private |
parse person flow
Definition at line 752 of file RouteHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), CommonHandler::myCommonXMLStructure, myFlowBeginDefault, myFlowEndDefault, myHardFail, SUMOVehicleParserHelper::parseFlowAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), SUMO_TAG_NOTHING, and SUMO_TAG_PERSONFLOW.
Referenced by beginParseAttributes().
|
private |
parse person trip
Definition at line 769 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), CommonHandler::checkParsedParent(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, SUMOVehicleParameter::parsePersonModes(), NamespaceIDs::persons, CommonXMLStructure::SumoBaseObject::setPlanParameters(), CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_GROUP, SUMO_ATTR_LINES, SUMO_ATTR_MODES, SUMO_ATTR_VIA, SUMO_ATTR_VTYPES, SUMO_ATTR_WALKFACTOR, SUMO_TAG_NOTHING, SUMO_TAG_PERSONTRIP, toString(), and WRITE_WARNING.
Referenced by beginParseAttributes().
|
private |
parse ride
Definition at line 844 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), CommonHandler::checkParsedParent(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, NamespaceIDs::persons, CommonXMLStructure::SumoBaseObject::setPlanParameters(), CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_GROUP, SUMO_ATTR_LINES, SUMO_TAG_NOTHING, and SUMO_TAG_RIDE.
Referenced by beginParseAttributes().
|
private |
parse route
Definition at line 469 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addColorAttribute(), CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addIntAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), CommonXMLStructure::SumoBaseObject::addTimeAttribute(), CommonHandler::checkNegative(), SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::getOptSUMOTimeReporting(), SUMOSAXAttributes::hasAttribute(), RGBColor::INVISIBLE, isEmbeddedRoute(), CommonHandler::myCommonXMLStructure, SUMOVehicleParserHelper::parseVehicleClass(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVClass(), SUMO_ATTR_COLOR, SUMO_ATTR_CYCLETIME, SUMO_ATTR_EDGES, SUMO_ATTR_ID, SUMO_ATTR_PROB, SUMO_ATTR_REPEAT, SUMO_TAG_NOTHING, SUMO_TAG_ROUTE, TL, and CommonHandler::writeError().
Referenced by beginParseAttributes().
|
private |
parse route distribution
Definition at line 511 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleListAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_ID, SUMO_ATTR_PROBS, SUMO_ATTR_ROUTES, SUMO_TAG_NOTHING, SUMO_TAG_ROUTE_DISTRIBUTION, and CommonHandler::writeErrorInvalidDistribution().
Referenced by beginParseAttributes().
|
private |
parse stop
Definition at line 706 of file RouteHandler.cpp.
References CommonHandler::checkParsedParent(), NamespaceIDs::containers, CommonXMLStructure::getCurrentSumoBaseObject(), CommonHandler::myCommonXMLStructure, parseStopParameters(), NamespaceIDs::persons, NamespaceIDs::routes, CommonXMLStructure::SumoBaseObject::setPlanParameters(), CommonXMLStructure::SumoBaseObject::setStopParameter(), CommonXMLStructure::SumoBaseObject::setTag(), SUMO_TAG_NOTHING, SUMO_TAG_STOP, and NamespaceIDs::vehicles.
Referenced by beginParseAttributes().
|
private |
parse stop parameters
Definition at line 992 of file RouteHandler.cpp.
References SUMOVehicleParameter::Stop::actType, SUMOVehicleParameter::Stop::arrival, SUMOVehicleParameter::Stop::awaitedContainers, SUMOVehicleParameter::Stop::awaitedPersons, SUMOVehicleParameter::Stop::busstop, SUMOVehicleParameter::Stop::chargingStation, SUMOVehicleParameter::Stop::containerstop, SUMOVehicleParameter::Stop::containerTriggered, SUMOVehicleParameter::Stop::duration, SUMOVehicleParameter::Stop::edge, SUMOVehicleParameter::Stop::ended, SUMOVehicleParameter::Stop::endPos, SUMOVehicleParameter::Stop::extension, SUMOVehicleParameter::Stop::friendlyPos, SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::getOptSUMOTimeReporting(), SUMOSAXAttributes::hasAttribute(), SUMOVehicleParameter::Stop::index, INVALID_DOUBLE, SUMOVehicleParameter::Stop::join, SUMOVehicleParameter::Stop::jump, SUMOVehicleParameter::Stop::lane, SUMOVehicleParameter::Stop::line, OFFROAD, SUMOVehicleParameter::Stop::onDemand, ONROAD, SUMOVehicleParameter::Stop::overheadWireSegment, SUMOVehicleParameter::Stop::parametersSet, SUMOVehicleParameter::Stop::parking, SUMOVehicleParameter::Stop::parkingarea, SUMOVehicleParameter::parseStopTriggers(), SUMOVehicleParameter::Stop::permitted, SUMOVehicleParameter::Stop::posLat, SUMOVehicleParameter::Stop::speed, SUMOVehicleParameter::Stop::split, SUMOVehicleParameter::Stop::started, SUMOVehicleParameter::Stop::startPos, STOP_ARRIVAL_SET, STOP_CONTAINER_TRIGGER_SET, STOP_DURATION_SET, STOP_END_SET, STOP_ENDED_SET, STOP_EXPECTED_CONTAINERS_SET, STOP_EXPECTED_SET, STOP_EXTENSION_SET, STOP_INDEX_END, STOP_INDEX_FIT, STOP_JOIN_SET, STOP_JUMP_SET, STOP_LINE_SET, STOP_ONDEMAND_SET, STOP_PARKING_SET, STOP_PERMITTED_SET, STOP_POSLAT_SET, STOP_SPEED_SET, STOP_SPLIT_SET, STOP_START_SET, STOP_STARTED_SET, STOP_TRIGGER_SET, STOP_TRIP_ID_SET, STOP_UNTIL_SET, SUMO_ATTR_ACTTYPE, SUMO_ATTR_ARRIVAL, SUMO_ATTR_BUS_STOP, SUMO_ATTR_CHARGING_STATION, SUMO_ATTR_CONTAINER_STOP, SUMO_ATTR_CONTAINER_TRIGGERED, SUMO_ATTR_DURATION, SUMO_ATTR_EDGE, SUMO_ATTR_ENDED, SUMO_ATTR_ENDPOS, SUMO_ATTR_EXPECTED, SUMO_ATTR_EXPECTED_CONTAINERS, SUMO_ATTR_EXTENSION, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_INDEX, SUMO_ATTR_JOIN, SUMO_ATTR_JUMP, SUMO_ATTR_LANE, SUMO_ATTR_LINE, SUMO_ATTR_ONDEMAND, SUMO_ATTR_OVERHEAD_WIRE_SEGMENT, SUMO_ATTR_PARKING, SUMO_ATTR_PARKING_AREA, SUMO_ATTR_PERMITTED, SUMO_ATTR_POSITION_LAT, SUMO_ATTR_SPEED, SUMO_ATTR_SPLIT, SUMO_ATTR_STARTED, SUMO_ATTR_STARTPOS, SUMO_ATTR_TRAIN_STOP, SUMO_ATTR_TRIGGERED, SUMO_ATTR_TRIP_ID, SUMO_ATTR_UNTIL, SUMO_TAG_CONTAINER, TL, toString(), SUMOVehicleParameter::Stop::triggered, SUMOVehicleParameter::Stop::tripId, SUMOVehicleParameter::Stop::until, WRITE_WARNING, and CommonHandler::writeError().
Referenced by parseStop().
void RouteHandler::parseSumoBaseObject | ( | CommonXMLStructure::SumoBaseObject * | obj | ) |
parse SumoBaseObject (it's called recursivelly)
Definition at line 200 of file RouteHandler.cpp.
References buildContainer(), buildContainerFlow(), buildEmbeddedRoute(), buildFlow(), buildFlowJunctions(), buildFlowOverRoute(), buildFlowTAZs(), buildPerson(), buildPersonFlow(), buildPersonTrip(), buildRide(), buildRoute(), buildRouteDistribution(), buildStop(), buildTranship(), buildTransport(), buildTrip(), buildTripJunctions(), buildTripTAZs(), buildVehicleOverRoute(), buildVType(), buildVTypeDistribution(), buildWalk(), CommonXMLStructure::SumoBaseObject::getColorAttribute(), CommonXMLStructure::SumoBaseObject::getDoubleAttribute(), CommonXMLStructure::SumoBaseObject::getDoubleListAttribute(), CommonXMLStructure::SumoBaseObject::getIntAttribute(), CommonXMLStructure::SumoBaseObject::getParameters(), CommonXMLStructure::SumoBaseObject::getPlanParameters(), CommonXMLStructure::SumoBaseObject::getStopParameter(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getStringListAttribute(), CommonXMLStructure::SumoBaseObject::getSumoBaseObjectChildren(), CommonXMLStructure::SumoBaseObject::getTag(), CommonXMLStructure::SumoBaseObject::getTimeAttribute(), CommonXMLStructure::SumoBaseObject::getVClass(), CommonXMLStructure::SumoBaseObject::getVehicleParameter(), CommonXMLStructure::SumoBaseObject::getVehicleTypeParameter(), CommonXMLStructure::SumoBaseObject::hasStringAttribute(), CommonXMLStructure::SumoBaseObject::markAsCreated(), parseSumoBaseObject(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_COLOR, SUMO_ATTR_CYCLETIME, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_DETERMINISTIC, SUMO_ATTR_DURATION, SUMO_ATTR_EDGES, SUMO_ATTR_FROM, SUMO_ATTR_FROM_JUNCTION, SUMO_ATTR_FROM_TAZ, SUMO_ATTR_GROUP, SUMO_ATTR_ID, SUMO_ATTR_LINES, SUMO_ATTR_MODES, SUMO_ATTR_PROB, SUMO_ATTR_PROBS, SUMO_ATTR_REPEAT, SUMO_ATTR_ROUTE, SUMO_ATTR_ROUTES, SUMO_ATTR_SPEED, SUMO_ATTR_TO, SUMO_ATTR_TO_JUNCTION, SUMO_ATTR_TO_TAZ, SUMO_ATTR_VTYPES, SUMO_ATTR_WALKFACTOR, SUMO_TAG_CONTAINER, SUMO_TAG_CONTAINERFLOW, SUMO_TAG_FLOW, SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, SUMO_TAG_PERSONTRIP, SUMO_TAG_RIDE, SUMO_TAG_ROUTE, SUMO_TAG_ROUTE_DISTRIBUTION, SUMO_TAG_STOP, SUMO_TAG_TRANSHIP, SUMO_TAG_TRANSPORT, SUMO_TAG_TRIP, SUMO_TAG_VEHICLE, SUMO_TAG_VTYPE, SUMO_TAG_VTYPE_DISTRIBUTION, and SUMO_TAG_WALK.
Referenced by GNEContainerFrame::buildContainer(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::buildVehicleOverRoute(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), endParseAttributes(), and parseSumoBaseObject().
|
private |
parse tranship
Definition at line 930 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addTimeAttribute(), CommonHandler::checkParsedParent(), NamespaceIDs::containers, CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::getOptSUMOTimeReporting(), SUMOSAXAttributes::hasAttribute(), CommonHandler::myCommonXMLStructure, CommonXMLStructure::SumoBaseObject::setPlanParameters(), CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_DURATION, SUMO_ATTR_SPEED, SUMO_TAG_NOTHING, SUMO_TAG_TRANSHIP, TL, and CommonHandler::writeError().
Referenced by beginParseAttributes().
|
private |
parse transport
Definition at line 904 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), CommonHandler::checkParsedParent(), NamespaceIDs::containers, CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, CommonXMLStructure::SumoBaseObject::setPlanParameters(), CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_GROUP, SUMO_ATTR_LINES, SUMO_TAG_NOTHING, and SUMO_TAG_TRANSPORT.
Referenced by beginParseAttributes().
|
private |
parse trip
Definition at line 537 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::hasAttribute(), SUMOVehicleParameter::id, CommonHandler::myCommonXMLStructure, myHardFail, SUMOVehicleParserHelper::parseVehicleAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), SUMO_ATTR_FROM, SUMO_ATTR_FROM_JUNCTION, SUMO_ATTR_FROM_TAZ, SUMO_ATTR_TO, SUMO_ATTR_TO_JUNCTION, SUMO_ATTR_TO_TAZ, SUMO_ATTR_VIA, SUMO_TAG_NOTHING, SUMO_TAG_TRIP, TL, and CommonHandler::writeError().
Referenced by beginParseAttributes().
|
private |
parse vehicle (including vehicles over routes and vehicles with embedded routes)
Definition at line 608 of file RouteHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), CommonHandler::myCommonXMLStructure, myHardFail, SUMOVehicleParserHelper::parseVehicleAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), SUMO_TAG_NOTHING, and SUMO_TAG_VEHICLE.
Referenced by beginParseAttributes().
|
private |
Definition at line 424 of file RouteHandler.cpp.
References SUMOVehicleParserHelper::beginVTypeParsing(), CommonXMLStructure::getCurrentSumoBaseObject(), CommonHandler::myCommonXMLStructure, myFilename, myHardFail, CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleTypeParameter(), SUMO_TAG_NOTHING, and SUMO_TAG_VTYPE.
Referenced by beginParseAttributes().
|
private |
parse vType distribution
Definition at line 441 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleListAttribute(), CommonXMLStructure::SumoBaseObject::addIntAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_DETERMINISTIC, SUMO_ATTR_ID, SUMO_ATTR_PROBS, SUMO_ATTR_VTYPES, SUMO_TAG_NOTHING, SUMO_TAG_VTYPE_DISTRIBUTION, and CommonHandler::writeErrorInvalidDistribution().
Referenced by beginParseAttributes().
|
private |
parse walk
Definition at line 811 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addTimeAttribute(), CommonHandler::checkParsedParent(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::getOptSUMOTimeReporting(), SUMOSAXAttributes::hasAttribute(), CommonHandler::myCommonXMLStructure, NamespaceIDs::persons, CommonXMLStructure::SumoBaseObject::setPlanParameters(), CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_DURATION, SUMO_ATTR_SPEED, SUMO_TAG_NOTHING, SUMO_TAG_WALK, TL, and CommonHandler::writeError().
Referenced by beginParseAttributes().
|
pure virtual |
run post parser tasks
Implemented in GNERouteHandler.
|
protectedinherited |
write error and enable error creating element
Definition at line 221 of file CommonHandler.cpp.
References CommonHandler::myErrorCreatingElement, and WRITE_ERROR.
Referenced by AdditionalHandler::beginParseAttributes(), MeanDataHandler::beginParseAttributes(), GNEAdditionalHandler::buildAccess(), GNERouteHandler::buildContainer(), GNERouteHandler::buildContainerFlow(), GNERouteHandler::buildContainerStop(), GNEDataHandler::buildEdgeRelationData(), GNERouteHandler::buildEmbeddedRoute(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowJunctions(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowTAZs(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNERouteHandler::buildPersonStop(), GNERouteHandler::buildPersonTrip(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildRerouterInterval(), GNERouteHandler::buildRide(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEAdditionalHandler::buildTAZ(), GNEDataHandler::buildTAZRelationData(), GNERouteHandler::buildTranship(), GNERouteHandler::buildTransport(), GNERouteHandler::buildTrip(), GNERouteHandler::buildTripJunctions(), GNERouteHandler::buildTripTAZs(), GNEAdditionalHandler::buildVaporizer(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildWalk(), AdditionalHandler::checkCalibratorFlowParents(), AdditionalHandler::checkDetectPersons(), CommonHandler::checkFileName(), CommonHandler::checkListOfVehicleTypes(), CommonHandler::checkNegative(), CommonHandler::checkNegative(), CommonHandler::checkNegative(), DataHandler::checkParent(), CommonHandler::checkParsedParent(), CommonHandler::checkValidAdditionalID(), CommonHandler::checkValidDemandElementID(), CommonHandler::checkValidDetectorID(), GNERouteHandler::checkViaAttribute(), GNERouteHandler::getDistributionElements(), DataHandler::myStartElement(), GNEMeanDataHandler::parseAttributes(), AdditionalHandler::parseCalibratorAttributes(), AdditionalHandler::parseCalibratorFlowAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseE2Attributes(), GNEAdditionalHandler::parseEdges(), GNERouteHandler::parseEdges(), GNEMeanDataHandler::parseEdges(), parseFlow(), GNEAdditionalHandler::parseLanes(), parseNestedCFM(), CommonHandler::parseParameters(), AdditionalHandler::parsePOIAttributes(), parseRoute(), parseStopParameters(), parseTranship(), parseTrip(), parseWalk(), CommonHandler::writeErrorDuplicated(), CommonHandler::writeErrorInvalidDistribution(), CommonHandler::writeErrorInvalidLanes(), CommonHandler::writeErrorInvalidParent(), CommonHandler::writeErrorInvalidParent(), CommonHandler::writeErrorInvalidParent(), and CommonHandler::writeErrorInvalidPosition().
|
protectedinherited |
write error "duplicated additional"
Definition at line 235 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::checkDuplicatedAdditional(), GNEDataHandler::checkDuplicatedDataSet(), GNERouteHandler::checkDuplicatedDemandElement(), and GNEMeanDataHandler::checkDuplicatedMeanDataElement().
|
protectedinherited |
write error "invalid distribution"
Definition at line 247 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
Referenced by parseRouteDistribution(), and parseVTypeDistribution().
|
protectedinherited |
write error "invalid list of lanes"
Definition at line 241 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
|
protectedinherited |
write error "invalid parent element" giving ids of current and parent element
Definition at line 253 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildClosingReroute(), GNERouteHandler::buildContainerStop(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDestProbReroute(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNERouteHandler::buildEmbeddedRoute(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowJunctions(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowTAZs(), GNEAdditionalHandler::buildLaneCalibrator(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingAreaReroute(), GNEAdditionalHandler::buildParkingSpace(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildPersonStop(), GNERouteHandler::buildPersonTrip(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildRerouterInterval(), GNERouteHandler::buildRide(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildRouteProbReroute(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEDataHandler::buildTAZRelationData(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNEAdditionalHandler::buildTrainStop(), GNERouteHandler::buildTranship(), GNERouteHandler::buildTransport(), GNERouteHandler::buildTrip(), GNERouteHandler::buildTripJunctions(), GNERouteHandler::buildTripTAZs(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildWalk(), GNERouteHandler::parseEdge(), GNERouteHandler::parseJunction(), and GNERouteHandler::parseTAZ().
|
protectedinherited |
write error "invalid parent element" without giving IDs
Definition at line 265 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
|
protectedinherited |
write error "invalid parent element" giving only the id of parent element
Definition at line 259 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
|
protectedinherited |
write error "invalid position"
Definition at line 229 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEAdditionalHandler::buildLaneCalibrator(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), and GNEAdditionalHandler::buildTrainStop().
|
protectedinherited |
common XML Structure
Definition at line 51 of file CommonHandler.h.
Referenced by AdditionalHandler::beginParseAttributes(), MeanDataHandler::beginParseAttributes(), beginParseAttributes(), AdditionalHandler::checkCalibratorFlowParents(), DataHandler::checkParent(), CommonHandler::checkParsedParent(), AdditionalHandler::endParseAttributes(), MeanDataHandler::endParseAttributes(), endParseAttributes(), DataHandler::getAttributes(), isEmbeddedRoute(), DataHandler::myEndElement(), DataHandler::myStartElement(), AdditionalHandler::parseAccessAttributes(), AdditionalHandler::parseBusStopAttributes(), AdditionalHandler::parseCalibratorAttributes(), AdditionalHandler::parseCalibratorFlowAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseClosingLaneRerouteAttributes(), AdditionalHandler::parseClosingRerouteAttributes(), parseContainer(), parseContainerFlow(), AdditionalHandler::parseContainerStopAttributes(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseE1Attributes(), AdditionalHandler::parseE1InstantAttributes(), AdditionalHandler::parseE2Attributes(), AdditionalHandler::parseE3Attributes(), DataHandler::parseEdgeData(), MeanDataHandler::parseEdgeMeanData(), DataHandler::parseEdgeRelationData(), AdditionalHandler::parseEntryAttributes(), AdditionalHandler::parseExitAttributes(), parseFlow(), DataHandler::parseInterval(), AdditionalHandler::parseJpsObstacleAttributes(), AdditionalHandler::parseJpsWalkableAreaAttributes(), MeanDataHandler::parseLaneMeanData(), AdditionalHandler::parseOverheadWire(), AdditionalHandler::parseOverheadWireClamp(), CommonHandler::parseParameters(), AdditionalHandler::parseParkingAreaAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseParkingSpaceAttributes(), parsePerson(), parsePersonFlow(), parsePersonTrip(), AdditionalHandler::parsePOIAttributes(), AdditionalHandler::parsePolyAttributes(), AdditionalHandler::parseRerouterAttributes(), AdditionalHandler::parseRerouterIntervalAttributes(), parseRide(), parseRoute(), parseRouteDistribution(), AdditionalHandler::parseRouteProbeAttributes(), AdditionalHandler::parseRouteProbRerouteAttributes(), parseStop(), AdditionalHandler::parseTAZAttributes(), DataHandler::parseTAZRelationData(), AdditionalHandler::parseTAZSinkAttributes(), AdditionalHandler::parseTAZSourceAttributes(), AdditionalHandler::parseTractionSubstation(), AdditionalHandler::parseTrainStopAttributes(), parseTranship(), parseTransport(), parseTrip(), AdditionalHandler::parseVaporizerAttributes(), AdditionalHandler::parseVariableSpeedSignAttributes(), AdditionalHandler::parseVariableSpeedSignStepAttributes(), parseVehicle(), parseVType(), parseVTypeDistribution(), and parseWalk().
|
protectedinherited |
flag for mark if a element wasn't created
Definition at line 54 of file CommonHandler.h.
Referenced by CommonHandler::isErrorCreatingElement(), and CommonHandler::writeError().
|
private |
filename (needed for parsing vTypes)
Definition at line 148 of file RouteHandler.h.
Referenced by parseVType().
|
private |
The default value for flow begins.
Definition at line 154 of file RouteHandler.h.
Referenced by parseContainerFlow(), parseFlow(), parseInterval(), and parsePersonFlow().
|
private |
The default value for flow ends.
Definition at line 157 of file RouteHandler.h.
Referenced by parseContainerFlow(), parseFlow(), parseInterval(), and parsePersonFlow().
|
private |
enable or disable hardFail (stop parsing if parameter aren't correct)
Definition at line 151 of file RouteHandler.h.
Referenced by parseContainer(), parseContainerFlow(), parseFlow(), parseNestedCFM(), parsePerson(), parsePersonFlow(), parseTrip(), parseVehicle(), and parseVType().