Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
RouteHandler Class Referenceabstract

#include <RouteHandler.h>

Inheritance diagram for RouteHandler:
[legend]
Collaboration diagram for RouteHandler:
[legend]

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
 
RouteHandleroperator= (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)
 

Detailed Description

Definition at line 29 of file RouteHandler.h.

Constructor & Destructor Documentation

◆ RouteHandler() [1/2]

RouteHandler::RouteHandler ( const std::string &  filename,
const bool  hardFail 
)

Constructor.

Parameters
[in]filenameName of the parsed file
[in]hardFailenable or disable hardFails (continue handling demand elements if there is an error)

Definition at line 39 of file RouteHandler.cpp.

◆ ~RouteHandler()

RouteHandler::~RouteHandler ( )
virtual

Destructor.

Definition at line 47 of file RouteHandler.cpp.

◆ RouteHandler() [2/2]

RouteHandler::RouteHandler ( const RouteHandler s)
privatedelete

invalidate copy constructor

Member Function Documentation

◆ beginParseAttributes()

◆ buildContainer()

virtual bool RouteHandler::buildContainer ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const SUMOVehicleParameter containerParameters 
)
pure virtual

build container

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildContainerFlow()

virtual bool RouteHandler::buildContainerFlow ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const SUMOVehicleParameter containerFlowParameters 
)
pure virtual

build container flow

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildEmbeddedRoute()

virtual bool RouteHandler::buildEmbeddedRoute ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const std::vector< std::string > &  edgeIDs,
const RGBColor color,
const int  repeat,
const SUMOTime  cycleTime,
const Parameterised::Map routeParameters 
)
pure virtual

build embedded route

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildFlow()

virtual bool RouteHandler::buildFlow ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const SUMOVehicleParameter vehicleParameters,
const std::string &  fromEdgeID,
const std::string &  toEdgeID 
)
pure virtual

build flow (from-to edges)

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildFlowJunctions()

virtual bool RouteHandler::buildFlowJunctions ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const SUMOVehicleParameter vehicleParameters,
const std::string &  fromJunctionID,
const std::string &  toJunctionID 
)
pure virtual

build flow (from-to junctions)

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildFlowOverRoute()

virtual bool RouteHandler::buildFlowOverRoute ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const SUMOVehicleParameter vehicleParameters 
)
pure virtual

build a flow over an existent route

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildFlowTAZs()

virtual bool RouteHandler::buildFlowTAZs ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const SUMOVehicleParameter vehicleParameters,
const std::string &  fromTAZID,
const std::string &  toTAZID 
)
pure virtual

build flow (from-to TAZs)

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildPerson()

virtual bool RouteHandler::buildPerson ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const SUMOVehicleParameter personParameters 
)
pure virtual

build person

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildPersonFlow()

virtual bool RouteHandler::buildPersonFlow ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const SUMOVehicleParameter personFlowParameters 
)
pure virtual

build person flow

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildPersonTrip()

virtual bool RouteHandler::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 
)
pure virtual

build person trip

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildRide()

virtual bool RouteHandler::buildRide ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const CommonXMLStructure::PlanParameters planParameters,
const double  arrivalPos,
const std::vector< std::string > &  lines,
const std::string &  group 
)
pure virtual

build ride

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildRoute()

virtual bool RouteHandler::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 
)
pure virtual

build route

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildRouteDistribution()

virtual bool RouteHandler::buildRouteDistribution ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const std::string &  id,
const std::vector< std::string > &  vTypeIDs,
const std::vector< double > &  probabilities 
)
pure virtual

build route distribution

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildStop()

virtual bool RouteHandler::buildStop ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const CommonXMLStructure::PlanParameters planParameters,
const SUMOVehicleParameter::Stop stopParameters 
)
pure virtual

build stop

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildTranship()

virtual bool RouteHandler::buildTranship ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const CommonXMLStructure::PlanParameters planParameters,
const double  arrivalPosition,
const double  departPosition,
const double  speed,
const SUMOTime  duration 
)
pure virtual

build tranship

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildTransport()

virtual bool RouteHandler::buildTransport ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const CommonXMLStructure::PlanParameters planParameters,
const double  arrivalPos,
const std::vector< std::string > &  lines,
const std::string &  group 
)
pure virtual

build transport

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildTrip()

virtual bool RouteHandler::buildTrip ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const SUMOVehicleParameter vehicleParameters,
const std::string &  fromEdgeID,
const std::string &  toEdgeID 
)
pure virtual

build trip (from-to edges)

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildTripJunctions()

virtual bool RouteHandler::buildTripJunctions ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const SUMOVehicleParameter vehicleParameters,
const std::string &  fromJunctionID,
const std::string &  toJunctionID 
)
pure virtual

build trip (from-to junctions)

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildTripTAZs()

virtual bool RouteHandler::buildTripTAZs ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const SUMOVehicleParameter vehicleParameters,
const std::string &  fromTazID,
const std::string &  toTazID 
)
pure virtual

build trip (from-to TAZs)

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildVehicleOverRoute()

virtual bool RouteHandler::buildVehicleOverRoute ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const SUMOVehicleParameter vehicleParameters 
)
pure virtual

build a vehicle over an existent route

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildVType()

virtual bool RouteHandler::buildVType ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const SUMOVTypeParameter vTypeParameter 
)
pure virtual

build vType

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildVTypeDistribution()

virtual bool RouteHandler::buildVTypeDistribution ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const std::string &  id,
const int  deterministic,
const std::vector< std::string > &  vTypeIDs,
const std::vector< double > &  probabilities 
)
pure virtual

build vType distribution

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildWalk()

virtual bool RouteHandler::buildWalk ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const CommonXMLStructure::PlanParameters planParameters,
const double  arrivalPos,
const double  speed,
const SUMOTime  duration 
)
pure virtual

build walk

Implemented in GNERouteHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ checkFileName()

bool CommonHandler::checkFileName ( const SumoXMLTag  tag,
const std::string &  id,
const SumoXMLAttr  attribute,
const std::string &  value 
)
protectedinherited

◆ checkListOfVehicleTypes()

bool CommonHandler::checkListOfVehicleTypes ( const SumoXMLTag  tag,
const std::string &  id,
const std::vector< std::string > &  vTypeIDs 
)
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().

Here is the caller graph for this function:

◆ checkNegative() [1/3]

bool CommonHandler::checkNegative ( const SumoXMLTag  tag,
const std::string &  id,
const SumoXMLAttr  attribute,
const double  value,
const bool  canBeZero 
)
protectedinherited

check if the given double value is NOT negative

Definition at line 139 of file CommonHandler.cpp.

References TLF, toString(), and CommonHandler::writeError().

◆ checkNegative() [2/3]

bool CommonHandler::checkNegative ( const SumoXMLTag  tag,
const std::string &  id,
const SumoXMLAttr  attribute,
const int  value,
const bool  canBeZero 
)
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().

Here is the caller graph for this function:

◆ checkNegative() [3/3]

bool CommonHandler::checkNegative ( const SumoXMLTag  tag,
const std::string &  id,
const SumoXMLAttr  attribute,
const SUMOTime  value,
const bool  canBeZero 
)
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().

◆ checkParsedParent()

void CommonHandler::checkParsedParent ( const SumoXMLTag  currentTag,
const std::vector< SumoXMLTag > &  parentTags,
bool &  ok 
)
protectedinherited

◆ checkValidAdditionalID()

◆ checkValidDemandElementID()

◆ checkValidDetectorID()

bool CommonHandler::checkValidDetectorID ( const SumoXMLTag  tag,
const std::string &  value 
)
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().

Here is the caller graph for this function:

◆ endParseAttributes()

◆ isEmbeddedRoute()

bool RouteHandler::isEmbeddedRoute ( const SUMOSAXAttributes attrs) const
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().

Here is the caller graph for this function:

◆ isErrorCreatingElement()

bool CommonHandler::isErrorCreatingElement ( ) const
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().

Here is the caller graph for this function:

◆ operator=()

RouteHandler & RouteHandler::operator= ( const RouteHandler s)
privatedelete

invalidate assignment operator

◆ parseContainer()

void RouteHandler::parseContainer ( const SUMOSAXAttributes attrs)
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().

Here is the caller graph for this function:

◆ parseContainerFlow()

void RouteHandler::parseContainerFlow ( const SUMOSAXAttributes attrs)
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().

Here is the caller graph for this function:

◆ parseFlow()

◆ parseInterval()

void RouteHandler::parseInterval ( const SUMOSAXAttributes attrs)
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().

Here is the caller graph for this function:

◆ parseNestedCFM()

bool RouteHandler::parseNestedCFM ( const SumoXMLTag  tag,
const SUMOSAXAttributes attrs,
CommonXMLStructure::SumoBaseObject vTypeObject 
)
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().

Here is the caller graph for this function:

◆ parseParameters()

void CommonHandler::parseParameters ( const SUMOSAXAttributes attrs)
protectedinherited

◆ parsePerson()

void RouteHandler::parsePerson ( const SUMOSAXAttributes attrs)
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().

Here is the caller graph for this function:

◆ parsePersonFlow()

void RouteHandler::parsePersonFlow ( const SUMOSAXAttributes attrs)
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().

Here is the caller graph for this function:

◆ parsePersonTrip()

◆ parseRide()

◆ parseRoute()

◆ parseRouteDistribution()

◆ parseStop()

◆ parseStopParameters()

bool RouteHandler::parseStopParameters ( SUMOVehicleParameter::Stop stop,
const SUMOSAXAttributes attrs 
)
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().

Here is the caller graph for this function:

◆ parseSumoBaseObject()

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().

Here is the caller graph for this function:

◆ parseTranship()

◆ parseTransport()

◆ parseTrip()

◆ parseVehicle()

void RouteHandler::parseVehicle ( const SUMOSAXAttributes attrs)
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().

Here is the caller graph for this function:

◆ parseVType()

void RouteHandler::parseVType ( const SUMOSAXAttributes attrs)
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().

Here is the caller graph for this function:

◆ parseVTypeDistribution()

◆ parseWalk()

◆ postParserTasks()

virtual bool RouteHandler::postParserTasks ( )
pure virtual

run post parser tasks

Implemented in GNERouteHandler.

◆ writeError()

bool CommonHandler::writeError ( const std::string &  error)
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().

◆ writeErrorDuplicated()

bool CommonHandler::writeErrorDuplicated ( const SumoXMLTag  tag,
const std::string &  id,
const SumoXMLTag  checkedTag 
)
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().

Here is the caller graph for this function:

◆ writeErrorInvalidDistribution()

bool CommonHandler::writeErrorInvalidDistribution ( const SumoXMLTag  tag,
const std::string &  id 
)
protectedinherited

write error "invalid distribution"

Definition at line 247 of file CommonHandler.cpp.

References TLF, toString(), and CommonHandler::writeError().

Referenced by parseRouteDistribution(), and parseVTypeDistribution().

Here is the caller graph for this function:

◆ writeErrorInvalidLanes()

bool CommonHandler::writeErrorInvalidLanes ( const SumoXMLTag  tag,
const std::string &  id 
)
protectedinherited

write error "invalid list of lanes"

Definition at line 241 of file CommonHandler.cpp.

References TLF, toString(), and CommonHandler::writeError().

◆ writeErrorInvalidParent() [1/3]

bool CommonHandler::writeErrorInvalidParent ( const SumoXMLTag  tag,
const std::string &  id,
const SumoXMLTag  parentTag,
const std::string &  parentID 
)
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().

◆ writeErrorInvalidParent() [2/3]

bool CommonHandler::writeErrorInvalidParent ( const SumoXMLTag  tag,
const SumoXMLTag  parentTag 
)
protectedinherited

write error "invalid parent element" without giving IDs

Definition at line 265 of file CommonHandler.cpp.

References TLF, toString(), and CommonHandler::writeError().

◆ writeErrorInvalidParent() [3/3]

bool CommonHandler::writeErrorInvalidParent ( const SumoXMLTag  tag,
const SumoXMLTag  parentTag,
const std::string &  parentID 
)
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().

◆ writeErrorInvalidPosition()

Field Documentation

◆ myCommonXMLStructure

CommonXMLStructure CommonHandler::myCommonXMLStructure
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().

◆ myErrorCreatingElement

bool CommonHandler::myErrorCreatingElement = false
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().

◆ myFilename

const std::string RouteHandler::myFilename
private

filename (needed for parsing vTypes)

Definition at line 148 of file RouteHandler.h.

Referenced by parseVType().

◆ myFlowBeginDefault

SUMOTime RouteHandler::myFlowBeginDefault
private

The default value for flow begins.

Definition at line 154 of file RouteHandler.h.

Referenced by parseContainerFlow(), parseFlow(), parseInterval(), and parsePersonFlow().

◆ myFlowEndDefault

SUMOTime RouteHandler::myFlowEndDefault
private

The default value for flow ends.

Definition at line 157 of file RouteHandler.h.

Referenced by parseContainerFlow(), parseFlow(), parseInterval(), and parsePersonFlow().

◆ myHardFail

const bool RouteHandler::myHardFail
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().


The documentation for this class was generated from the following files: