Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNERouteHandler Class Reference

Builds trigger objects for GNENet (busStops, chargingStations, detectors, etc..) More...

#include <GNERouteHandler.h>

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

Public Member Functions

bool beginParseAttributes (SumoXMLTag tag, const SUMOSAXAttributes &attrs)
 begin parse attributes
 
bool checkViaAttribute (const SumoXMLTag tag, const std::string &id, const std::vector< std::string > &via)
 check if via attribute is valid
 
void duplicatePlan (const GNEDemandElement *originalPlan, GNEDemandElement *newParent)
 duplicate given plan in new parent
 
void endParseAttributes ()
 end parse attributes
 
 GNERouteHandler (const std::string &file, GNENet *net, const bool allowUndoRedo, const bool overwrite)
 Constructor.
 
bool isErrorCreatingElement () const
 get flag for mark if a element wasn't created
 
void parseSumoBaseObject (CommonXMLStructure::SumoBaseObject *obj)
 parse SumoBaseObject (it's called recursivelly)
 
bool postParserTasks ()
 run post parser tasks
 
virtual ~GNERouteHandler ()
 Destructor.
 
build functions
bool buildVType (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVTypeParameter &vTypeParameter)
 build vType
 
bool buildVTypeDistribution (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const int deterministic, const std::vector< std::string > &vTypeIDs, const std::vector< double > &probabilities)
 build vType distribution
 
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)
 build route
 
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)
 build embedded route
 
bool buildRouteDistribution (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::vector< std::string > &routeIDs, const std::vector< double > &probabilities)
 build route distribution
 
bool buildVehicleOverRoute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters)
 build a vehicle over an existent route
 
bool buildFlowOverRoute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters)
 build a flow over an existent route
 
bool buildTrip (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromEdgeID, const std::string &toEdgeID)
 build trip
 
bool buildTripJunctions (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromJunctionID, const std::string &toJunctionID)
 build trip over junctions
 
bool buildTripTAZs (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromTAZID, const std::string &toTAZID)
 build trip over TAZs
 
bool buildFlow (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromEdgeID, const std::string &toEdgeIDs)
 build flow
 
bool buildFlowJunctions (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromJunctionID, const std::string &toJunctionID)
 build flow over junctions
 
bool buildFlowTAZs (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromTAZID, const std::string &toTAZID)
 build flow over junctions
 
bool buildPerson (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &personParameters)
 build person
 
bool buildPersonFlow (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &personFlowParameters)
 build person flow
 
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)
 build person trip
 
bool buildWalk (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPos, const double speed, const SUMOTime duration)
 build walk
 
bool buildRide (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPos, const std::vector< std::string > &lines, const std::string &group)
 build ride
 
bool buildContainer (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &containerParameters)
 build container
 
bool buildContainerFlow (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &containerFlowParameters)
 build container flow
 
bool buildTransport (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPos, const std::vector< std::string > &lines, const std::string &group)
 build transport
 
bool buildTranship (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPosition, const double departPosition, const double speed, const SUMOTime duration)
 build tranship
 
bool buildPersonStop (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double endPos, const SUMOTime duration, const SUMOTime until, const std::string &actType, const bool friendlyPos, const int parameterSet)
 build person stop
 
bool buildContainerStop (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double endPos, const SUMOTime duration, const SUMOTime until, const std::string &actType, const bool friendlyPos, const int parameterSet)
 build container stop
 
bool buildStop (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const SUMOVehicleParameter::Stop &stopParameters)
 build stop
 
bool buildPersonPlan (const GNEDemandElement *planTemplate, GNEDemandElement *personParent, GNEAttributesCreator *personPlanAttributes, GNEPlanCreator *planCreator, const bool centerAfterCreation)
 build person plan
 
bool buildContainerPlan (const GNEDemandElement *planTemplate, GNEDemandElement *containerParent, GNEAttributesCreator *containerPlanAttributes, GNEPlanCreator *planCreator, const bool centerAfterCreation)
 build container plan
 

Static Public Member Functions

static void transformToVehicle (GNEVehicle *originalVehicle, bool createEmbeddedRoute)
 transform vehicle functions
 
static void transformToRouteFlow (GNEVehicle *originalVehicle, bool createEmbeddedRoute)
 transform routeFlow over an existent route
 
static void transformToTrip (GNEVehicle *originalVehicle)
 transform to trip
 
static void transformToFlow (GNEVehicle *originalVehicle)
 transform to flow
 
static void transformToTripJunctions (GNEVehicle *originalVehicle)
 transform to trip over junctions
 
static void transformToFlowJunctions (GNEVehicle *originalVehicle)
 transform to flow over junctions
 
static void transformToTripTAZs (GNEVehicle *originalVehicle)
 transform to trip over TAZs
 
static void transformToFlowTAZs (GNEVehicle *originalVehicle)
 transform to flow over TAZs
 
static void transformToPerson (GNEPerson *originalPerson)
 transform person functions
 
static void transformToPersonFlow (GNEPerson *originalPerson)
 transform routeFlow over an existent route
 
static void transformToContainer (GNEContainer *originalContainer)
 transform container functions
 
static void transformToContainerFlow (GNEContainer *originalContainer)
 transform routeFlow over an existent route
 
static bool canReverse (const GNEDemandElement *element)
 reverse functions
 
static bool canReverse (GNENet *net, SUMOVehicleClass vClass, const std::vector< GNEEdge * > &edges)
 check if the given list of edges can be reversed
 
static void reverse (GNEDemandElement *element)
 reverse given demand element
 
static void addReverse (GNEDemandElement *element)
 add reverse for given demand element
 

Protected Member Functions

bool checkDuplicatedDemandElement (const SumoXMLTag tag, const std::vector< SumoXMLTag > tags, const std::string &id)
 check if given ID correspond to a duplicated demand element
 
GNEDemandElementgetContainerParent (const CommonXMLStructure::SumoBaseObject *sumoBaseObject) const
 get container parent
 
bool getDistributionElements (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, SumoXMLTag distributionElementTag, const std::vector< std::string > &distributionElementIDs, const std::vector< double > &probabilities, std::vector< const GNEDemandElement * > &elements)
 get distribution elements
 
GNEDemandElementgetPersonParent (const CommonXMLStructure::SumoBaseObject *sumoBaseObject) const
 get person parent
 
GNEDemandElementgetType (const std::string &id) const
 get type (Either type o typeDistribution)
 
GNEEdgeparseEdge (const SumoXMLTag tag, const std::string &id, const std::string &edgeID, const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const bool firstEdge)
 parse edge
 
GNEEdgeparseEdgeFromLaneID (const std::string &laneID) const
 parse edge from lane ID
 
std::vector< GNEEdge * > parseEdges (const SumoXMLTag tag, const std::string &id, const std::vector< std::string > &edgeIDs)
 parse edges
 
GNEJunctionparseJunction (const SumoXMLTag tag, const std::string &id, const std::string &junctionID)
 parse junction
 
void parseParameters (const SUMOSAXAttributes &attrs)
 parse generic parameters
 
GNEEdgeparseStopEdge (const CommonXMLStructure::SumoBaseObject *sumoBaseObject) const
 parse stop edge
 
GNEAdditionalparseTAZ (const SumoXMLTag tag, const std::string &id, const std::string &TAZID)
 parse TAZ
 
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
 
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 bool myAllowUndoRedo
 allow undo/redo
 
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)
 
GNENetmyNet
 pointer to GNENet
 
const bool myOverwrite
 check if overwrite
 
std::set< GNEDemandElement * > myParentPlanElements
 demand element parentplans (person and containers, used in postParserTasks)
 
CommonXMLStructure::SumoBaseObjectmyPlanObject
 pointer for person and container plans
 

Static Private Attributes

static const std::vector< SumoXMLTagmyContainerTags
 container tags
 
static const std::vector< SumoXMLTagmyPersonTags
 person tags
 
static const std::vector< SumoXMLTagmyVehicleTags
 vehicle tags
 

Detailed Description

Builds trigger objects for GNENet (busStops, chargingStations, detectors, etc..)

Definition at line 55 of file GNERouteHandler.h.

Constructor & Destructor Documentation

◆ GNERouteHandler()

GNERouteHandler::GNERouteHandler ( const std::string &  file,
GNENet net,
const bool  allowUndoRedo,
const bool  overwrite 
)

Constructor.

Definition at line 73 of file GNERouteHandler.cpp.

◆ ~GNERouteHandler()

GNERouteHandler::~GNERouteHandler ( )
virtual

Destructor.

Definition at line 82 of file GNERouteHandler.cpp.

References myPlanObject.

Member Function Documentation

◆ addReverse()

void GNERouteHandler::addReverse ( GNEDemandElement element)
static

add reverse for given demand element

Definition at line 2335 of file GNERouteHandler.cpp.

References GNERoute::copyRoute(), GNEVehicle::copyVehicle(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNETagProperties::isVehicle(), reverse(), and SUMO_TAG_ROUTE.

Referenced by GNEViewNet::onCmdAddReverse().

Here is the caller graph for this function:

◆ beginParseAttributes()

bool RouteHandler::beginParseAttributes ( SumoXMLTag  tag,
const SUMOSAXAttributes attrs 
)
inherited

begin parse attributes

Definition at line 51 of file RouteHandler.cpp.

References CommonXMLStructure::abortSUMOBaseOBject(), CommonXMLStructure::getCurrentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonHandler::myCommonXMLStructure, CommonXMLStructure::openSUMOBaseOBject(), RouteHandler::parseContainer(), RouteHandler::parseContainerFlow(), RouteHandler::parseFlow(), RouteHandler::parseInterval(), RouteHandler::parseNestedCFM(), CommonHandler::parseParameters(), RouteHandler::parsePerson(), RouteHandler::parsePersonFlow(), RouteHandler::parsePersonTrip(), RouteHandler::parseRide(), RouteHandler::parseRoute(), RouteHandler::parseRouteDistribution(), RouteHandler::parseStop(), RouteHandler::parseTranship(), RouteHandler::parseTransport(), RouteHandler::parseTrip(), RouteHandler::parseVehicle(), RouteHandler::parseVType(), RouteHandler::parseVTypeDistribution(), RouteHandler::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().

Here is the caller graph for this function:

◆ buildContainer()

◆ buildContainerFlow()

◆ buildContainerPlan()

bool GNERouteHandler::buildContainerPlan ( const GNEDemandElement planTemplate,
GNEDemandElement containerParent,
GNEAttributesCreator containerPlanAttributes,
GNEPlanCreator planCreator,
const bool  centerAfterCreation 
)

build container plan

Definition at line 1304 of file GNERouteHandler.cpp.

References CommonXMLStructure::SumoBaseObject::addStringAttribute(), Boundary::around(), buildContainerStop(), buildTranship(), buildTransport(), GUISUMOAbstractView::centerTo(), CommonXMLStructure::SumoBaseObject::clear(), GNENet::getAttributeCarriers(), GNEAttributesCreator::getAttributesAndValues(), CommonXMLStructure::SumoBaseObject::getBoolAttribute(), GNEPlanCreator::getClickedPositionOverLane(), CommonXMLStructure::SumoBaseObject::getDoubleAttribute(), GNEAttributeCarrier::getID(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), GNEPlanCreator::getPlanParameteres(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getStringListAttribute(), GNETagProperties::getTag(), CommonXMLStructure::SumoBaseObject::getTag(), GNEAttributeCarrier::getTagProperty(), CommonXMLStructure::SumoBaseObject::getTimeAttribute(), GNENet::getViewNet(), GUISUMOAbstractView::getVisibleBoundary(), CommonXMLStructure::SumoBaseObject::hasBoolAttribute(), CommonXMLStructure::SumoBaseObject::hasDoubleAttribute(), CommonXMLStructure::SumoBaseObject::hasStringAttribute(), CommonXMLStructure::SumoBaseObject::hasStringListAttribute(), CommonXMLStructure::SumoBaseObject::hasTimeAttribute(), GNETagProperties::isPlanStopContainer(), GNETagProperties::isPlanTranship(), GNETagProperties::isPlanTransport(), myNet, myPlanObject, GNENetHelper::AttributeCarriers::retrieveDemandElement(), CommonXMLStructure::SumoBaseObject::setTag(), STOP_DURATION_SET, STOP_UNTIL_SET, SUMO_ATTR_ACTTYPE, SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_DURATION, SUMO_ATTR_ENDPOS, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_GROUP, SUMO_ATTR_ID, SUMO_ATTR_LINES, SUMO_ATTR_SPEED, and SUMO_ATTR_UNTIL.

Referenced by GNEContainerFrame::createPath(), and GNEContainerPlanFrame::createPath().

Here is the caller graph for this function:

◆ buildContainerStop()

bool GNERouteHandler::buildContainerStop ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const CommonXMLStructure::PlanParameters planParameters,
const double  endPos,
const SUMOTime  duration,
const SUMOTime  until,
const std::string &  actType,
const bool  friendlyPos,
const int  parameterSet 
)

◆ buildEmbeddedRoute()

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

build embedded route

Implements RouteHandler.

Definition at line 225 of file GNERouteHandler.cpp.

References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedDemandElement(), CommonHandler::checkValidDemandElementID(), SUMOVehicleParameter::departLane, SUMOVehicleParameter::departLaneProcedure, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEDemandElement::getAttributeDouble(), GNEAttributeCarrier::getID(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getTag(), GNEAttributeCarrier::getTagStr(), getType(), GNEViewNet::getUndoList(), CommonXMLStructure::SumoBaseObject::getVehicleParameter(), GNENet::getViewNet(), GIVEN, GNE_TAG_FLOW_WITHROUTE, GNE_TAG_VEHICLE_WITHROUTE, SUMOVehicleParameter::id, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, myVehicleTags, parseEdges(), SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_MAXSPEED, SUMO_TAG_FLOW, SUMO_TAG_ROUTE, SUMO_TAG_VEHICLE, SUMO_TAG_VTYPE, SUMOVehicleParameter::tag, TL, TLF, toString(), VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTSPEED_SET, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), CommonHandler::writeError(), and CommonHandler::writeErrorInvalidParent().

Referenced by transformToRouteFlow(), and transformToVehicle().

Here is the caller graph for this function:

◆ buildFlow()

bool GNERouteHandler::buildFlow ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const SUMOVehicleParameter vehicleParameters,
const std::string &  fromEdgeID,
const std::string &  toEdgeIDs 
)
virtual

◆ buildFlowJunctions()

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

◆ buildFlowOverRoute()

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

◆ buildFlowTAZs()

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

◆ buildPerson()

◆ buildPersonFlow()

◆ buildPersonPlan()

bool GNERouteHandler::buildPersonPlan ( const GNEDemandElement planTemplate,
GNEDemandElement personParent,
GNEAttributesCreator personPlanAttributes,
GNEPlanCreator planCreator,
const bool  centerAfterCreation 
)

build person plan

Definition at line 1227 of file GNERouteHandler.cpp.

References CommonXMLStructure::SumoBaseObject::addStringAttribute(), Boundary::around(), buildPersonStop(), buildPersonTrip(), buildRide(), buildWalk(), GUISUMOAbstractView::centerTo(), CommonXMLStructure::SumoBaseObject::clear(), GNENet::getAttributeCarriers(), GNEAttributesCreator::getAttributesAndValues(), CommonXMLStructure::SumoBaseObject::getBoolAttribute(), GNEPlanCreator::getClickedPositionOverLane(), CommonXMLStructure::SumoBaseObject::getDoubleAttribute(), GNEAttributeCarrier::getID(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), GNEPlanCreator::getPlanParameteres(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getStringListAttribute(), GNETagProperties::getTag(), CommonXMLStructure::SumoBaseObject::getTag(), GNEAttributeCarrier::getTagProperty(), CommonXMLStructure::SumoBaseObject::getTimeAttribute(), GNENet::getViewNet(), GUISUMOAbstractView::getVisibleBoundary(), CommonXMLStructure::SumoBaseObject::hasBoolAttribute(), CommonXMLStructure::SumoBaseObject::hasDoubleAttribute(), CommonXMLStructure::SumoBaseObject::hasStringAttribute(), CommonXMLStructure::SumoBaseObject::hasStringListAttribute(), CommonXMLStructure::SumoBaseObject::hasTimeAttribute(), GNETagProperties::isPlanPersonTrip(), GNETagProperties::isPlanRide(), GNETagProperties::isPlanStopPerson(), GNETagProperties::isPlanWalk(), myNet, myPlanObject, GNENetHelper::AttributeCarriers::retrieveDemandElement(), CommonXMLStructure::SumoBaseObject::setTag(), STOP_DURATION_SET, STOP_UNTIL_SET, SUMO_ATTR_ACTTYPE, SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DURATION, SUMO_ATTR_ENDPOS, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_GROUP, SUMO_ATTR_ID, SUMO_ATTR_LINES, SUMO_ATTR_MODES, SUMO_ATTR_SPEED, SUMO_ATTR_UNTIL, SUMO_ATTR_VTYPES, and SUMO_ATTR_WALKFACTOR.

Referenced by GNEPersonFrame::createPath(), and GNEPersonPlanFrame::createPath().

Here is the caller graph for this function:

◆ buildPersonStop()

bool GNERouteHandler::buildPersonStop ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const CommonXMLStructure::PlanParameters planParameters,
const double  endPos,
const SUMOTime  duration,
const SUMOTime  until,
const std::string &  actType,
const bool  friendlyPos,
const int  parameterSet 
)

◆ buildPersonTrip()

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

◆ buildRide()

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

◆ buildRoute()

◆ buildRouteDistribution()

◆ buildStop()

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

build stop

Implements RouteHandler.

Definition at line 1071 of file GNERouteHandler.cpp.

References SUMOVehicleParameter::Stop::actType, GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), buildContainerStop(), buildPersonStop(), SUMOVehicleParameter::Stop::busstop, SUMOVehicleParameter::Stop::chargingStation, SUMOVehicleParameter::Stop::containerstop, SUMOVehicleParameter::Stop::duration, SUMOVehicleParameter::Stop::edge, GNEUndoList::end(), SUMOVehicleParameter::Stop::endPos, SUMOVehicleParameter::Stop::friendlyPos, GNENet::getAttributeCarriers(), GNEAttributeCarrier::getID(), GNELane::getParentEdge(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getStopParameter(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNE_TAG_FLOW_ROUTE, GNE_TAG_FLOW_WITHROUTE, GNE_TAG_STOP_BUSSTOP, GNE_TAG_STOP_CHARGINGSTATION, GNE_TAG_STOP_CONTAINERSTOP, GNE_TAG_STOP_LANE, GNE_TAG_STOP_PARKINGAREA, GNE_TAG_STOP_TRAINSTOP, GNE_TAG_STOPCONTAINER_CONTAINERSTOP, GNE_TAG_STOPPERSON_BUSSTOP, GNE_TAG_STOPPERSON_TRAINSTOP, GNE_TAG_VEHICLE_WITHROUTE, GNE_TAG_WAYPOINT_BUSSTOP, GNE_TAG_WAYPOINT_CHARGINGSTATION, GNE_TAG_WAYPOINT_CONTAINERSTOP, GNE_TAG_WAYPOINT_LANE, GNE_TAG_WAYPOINT_PARKINGAREA, GNE_TAG_WAYPOINT_TRAINSTOP, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), GNETagProperties::isContainer(), GNETagProperties::isPerson(), GNETagProperties::isVehicle(), SUMOVehicleParameter::Stop::lane, myAllowUndoRedo, myNet, SUMOVehicleParameter::Stop::parametersSet, SUMOVehicleParameter::Stop::parkingarea, GNENetHelper::AttributeCarriers::retrieveAdditional(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), GNENetHelper::AttributeCarriers::retrieveEdge(), GNENetHelper::AttributeCarriers::retrieveLane(), SUMOVehicleParameter::Stop::speed, STOP_SPEED_SET, SUMO_ATTR_FROM, SUMO_ATTR_ID, SUMO_ATTR_ROUTE, SUMO_ATTR_TO, SUMO_TAG_BUS_STOP, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CONTAINER, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_CONTAINERFLOW, SUMO_TAG_FLOW, SUMO_TAG_NOTHING, SUMO_TAG_PARKING_AREA, SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, SUMO_TAG_STOP, SUMO_TAG_TRAIN_STOP, SUMO_TAG_VEHICLE, TL, SUMOVehicleParameter::Stop::until, CommonHandler::writeError(), and CommonHandler::writeErrorInvalidParent().

Referenced by GNEStopFrame::addStop().

Here is the caller graph for this function:

◆ buildTranship()

◆ buildTransport()

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

◆ buildTrip()

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

◆ buildTripJunctions()

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

◆ buildTripTAZs()

bool GNERouteHandler::buildTripTAZs ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const SUMOVehicleParameter vehicleParameters,
const std::string &  fromTAZID,
const std::string &  toTAZID 
)
virtual

◆ buildVehicleOverRoute()

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

◆ buildVType()

◆ buildVTypeDistribution()

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

◆ buildWalk()

◆ canReverse() [1/2]

◆ canReverse() [2/2]

bool GNERouteHandler::canReverse ( GNENet net,
SUMOVehicleClass  vClass,
const std::vector< GNEEdge * > &  edges 
)
static

check if the given list of edges can be reversed

Definition at line 2262 of file GNERouteHandler.cpp.

References GNEPathManager::PathCalculator::calculateDijkstraPath(), GNENet::getDemandPathManager(), and GNEPathManager::getPathCalculator().

◆ checkDuplicatedDemandElement()

bool GNERouteHandler::checkDuplicatedDemandElement ( const SumoXMLTag  tag,
const std::vector< SumoXMLTag tags,
const std::string &  id 
)
protected

◆ 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(), buildTranship(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSignStep(), buildWalk(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseRerouterAttributes(), RouteHandler::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()

bool CommonHandler::checkValidDemandElementID ( const SumoXMLTag  tag,
const std::string &  value 
)
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 buildContainer(), buildContainerFlow(), buildEmbeddedRoute(), buildFlow(), buildFlowJunctions(), buildFlowOverRoute(), buildFlowTAZs(), buildPerson(), buildPersonFlow(), buildRoute(), buildRouteDistribution(), buildTrip(), buildTripJunctions(), buildTripTAZs(), buildVehicleOverRoute(), buildVType(), and buildVTypeDistribution().

Here is the caller graph for this function:

◆ 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:

◆ checkViaAttribute()

bool GNERouteHandler::checkViaAttribute ( const SumoXMLTag  tag,
const std::string &  id,
const std::vector< std::string > &  via 
)

check if via attribute is valid

Definition at line 1543 of file GNERouteHandler.cpp.

References GNENet::getAttributeCarriers(), myNet, GNENetHelper::AttributeCarriers::retrieveEdge(), SUMO_TAG_EDGE, TLF, toString(), and CommonHandler::writeError().

Referenced by buildFlow(), and buildTrip().

Here is the caller graph for this function:

◆ duplicatePlan()

void GNERouteHandler::duplicatePlan ( const GNEDemandElement originalPlan,
GNEDemandElement newParent 
)

duplicate given plan in new parent

Definition at line 1377 of file GNERouteHandler.cpp.

References CommonXMLStructure::SumoBaseObject::addBoolAttribute(), CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), CommonXMLStructure::SumoBaseObject::addTimeAttribute(), buildContainerStop(), buildPersonStop(), buildPersonTrip(), buildRide(), buildTranship(), buildTransport(), buildWalk(), CommonXMLStructure::SumoBaseObject::clear(), CommonXMLStructure::PlanParameters::consecutiveEdges, CommonXMLStructure::PlanParameters::fromBusStop, CommonXMLStructure::PlanParameters::fromContainerStop, CommonXMLStructure::PlanParameters::fromEdge, CommonXMLStructure::PlanParameters::fromJunction, CommonXMLStructure::PlanParameters::fromTAZ, CommonXMLStructure::PlanParameters::fromTrainStop, GNEDemandElement::getAttribute(), GNEDemandElement::getAttributeDouble(), CommonXMLStructure::SumoBaseObject::getBoolAttribute(), CommonXMLStructure::SumoBaseObject::getDoubleAttribute(), GNEAttributeCarrier::getID(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getStringListAttribute(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), CommonXMLStructure::SumoBaseObject::getTimeAttribute(), GNE_ATTR_FROM_BUSSTOP, GNE_ATTR_FROM_CONTAINERSTOP, GNE_ATTR_FROM_TRAINSTOP, CommonXMLStructure::SumoBaseObject::hasStringAttribute(), CommonXMLStructure::SumoBaseObject::hasTimeAttribute(), myPlanObject, CommonXMLStructure::SumoBaseObject::setTag(), STOP_DURATION_SET, STOP_UNTIL_SET, SUMO_ATTR_ACTTYPE, SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_BUS_STOP, SUMO_ATTR_CONTAINER_STOP, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_DURATION, SUMO_ATTR_EDGE, SUMO_ATTR_EDGES, SUMO_ATTR_ENDPOS, SUMO_ATTR_FRIENDLY_POS, 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_ROUTE, SUMO_ATTR_SPEED, SUMO_ATTR_TO, SUMO_ATTR_TO_JUNCTION, SUMO_ATTR_TO_TAZ, SUMO_ATTR_TRAIN_STOP, SUMO_ATTR_UNTIL, SUMO_ATTR_VTYPES, SUMO_ATTR_WALKFACTOR, CommonXMLStructure::PlanParameters::toBusStop, CommonXMLStructure::PlanParameters::toContainerStop, CommonXMLStructure::PlanParameters::toEdge, CommonXMLStructure::PlanParameters::toJunction, CommonXMLStructure::PlanParameters::toRoute, CommonXMLStructure::PlanParameters::toTAZ, and CommonXMLStructure::PlanParameters::toTrainStop.

Referenced by transformToPerson(), and transformToPersonFlow().

Here is the caller graph for this function:

◆ endParseAttributes()

◆ getContainerParent()

GNEDemandElement * GNERouteHandler::getContainerParent ( const CommonXMLStructure::SumoBaseObject sumoBaseObject) const
protected

get container parent

Definition at line 2520 of file GNERouteHandler.cpp.

References GNENet::getAttributeCarriers(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getTag(), myNet, GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMO_ATTR_ID, SUMO_TAG_CONTAINER, and SUMO_TAG_CONTAINERFLOW.

Referenced by buildContainerStop(), buildTranship(), and buildTransport().

Here is the caller graph for this function:

◆ getDistributionElements()

bool GNERouteHandler::getDistributionElements ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
SumoXMLTag  distributionElementTag,
const std::vector< std::string > &  distributionElementIDs,
const std::vector< double > &  probabilities,
std::vector< const GNEDemandElement * > &  elements 
)
protected

get distribution elements

Definition at line 2541 of file GNERouteHandler.cpp.

References GNENet::getAttributeCarriers(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getTag(), myNet, GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMO_ATTR_ID, TLF, toString(), and CommonHandler::writeError().

Referenced by buildRouteDistribution(), and buildVTypeDistribution().

Here is the caller graph for this function:

◆ getPersonParent()

GNEDemandElement * GNERouteHandler::getPersonParent ( const CommonXMLStructure::SumoBaseObject sumoBaseObject) const
protected

◆ getType()

GNEDemandElement * GNERouteHandler::getType ( const std::string &  id) const
protected

get type (Either type o typeDistribution)

Definition at line 2488 of file GNERouteHandler.cpp.

References GNENet::getAttributeCarriers(), myNet, GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMO_TAG_VTYPE, and SUMO_TAG_VTYPE_DISTRIBUTION.

Referenced by buildContainer(), buildContainerFlow(), buildEmbeddedRoute(), buildFlow(), buildFlowJunctions(), buildFlowOverRoute(), buildFlowTAZs(), buildPerson(), buildPersonFlow(), buildTrip(), buildTripJunctions(), buildTripTAZs(), and buildVehicleOverRoute().

Here is the caller graph for this function:

◆ isEmbeddedRoute()

bool RouteHandler::isEmbeddedRoute ( const SUMOSAXAttributes attrs) const
privateinherited

◆ 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:

◆ parseContainer()

void RouteHandler::parseContainer ( const SUMOSAXAttributes attrs)
privateinherited

parse container

Definition at line 870 of file RouteHandler.cpp.

References CommonXMLStructure::getCurrentSumoBaseObject(), CommonHandler::myCommonXMLStructure, RouteHandler::myHardFail, SUMOVehicleParserHelper::parseVehicleAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), SUMO_TAG_CONTAINER, and SUMO_TAG_NOTHING.

Referenced by RouteHandler::beginParseAttributes().

Here is the caller graph for this function:

◆ parseContainerFlow()

void RouteHandler::parseContainerFlow ( const SUMOSAXAttributes attrs)
privateinherited

◆ parseEdge()

GNEEdge * GNERouteHandler::parseEdge ( const SumoXMLTag  tag,
const std::string &  id,
const std::string &  edgeID,
const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const bool  firstEdge 
)
protected

parse edge

Definition at line 2375 of file GNERouteHandler.cpp.

References GNENet::getAttributeCarriers(), CommonXMLStructure::SumoBaseObject::getSumoBaseObjectChildren(), myNet, parseStopEdge(), GNENetHelper::AttributeCarriers::retrieveEdge(), SUMO_TAG_CHARGING_STATION, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_EDGE, SUMO_TAG_PARKING_AREA, SUMO_TAG_STOP, SUMO_TAG_TRAIN_STOP, and CommonHandler::writeErrorInvalidParent().

Referenced by buildFlow(), and buildTrip().

Here is the caller graph for this function:

◆ parseEdgeFromLaneID()

GNEEdge * GNERouteHandler::parseEdgeFromLaneID ( const std::string &  laneID) const
protected

parse edge from lane ID

Definition at line 2460 of file GNERouteHandler.cpp.

References GNENet::getAttributeCarriers(), myNet, and GNENetHelper::AttributeCarriers::retrieveEdge().

Referenced by parseStopEdge().

Here is the caller graph for this function:

◆ parseEdges()

std::vector< GNEEdge * > GNERouteHandler::parseEdges ( const SumoXMLTag  tag,
const std::string &  id,
const std::vector< std::string > &  edgeIDs 
)
protected

parse edges

Definition at line 2470 of file GNERouteHandler.cpp.

References GNENet::getAttributeCarriers(), myNet, GNENetHelper::AttributeCarriers::retrieveEdge(), SUMO_TAG_EDGE, TLF, toString(), and CommonHandler::writeError().

Referenced by buildEmbeddedRoute(), and buildRoute().

Here is the caller graph for this function:

◆ parseFlow()

◆ parseInterval()

void RouteHandler::parseInterval ( const SUMOSAXAttributes attrs)
privateinherited

parse interval

Definition at line 963 of file RouteHandler.cpp.

References SUMOSAXAttributes::getSUMOTimeReporting(), RouteHandler::myFlowBeginDefault, RouteHandler::myFlowEndDefault, SUMO_ATTR_BEGIN, and SUMO_ATTR_END.

Referenced by RouteHandler::beginParseAttributes().

Here is the caller graph for this function:

◆ parseJunction()

GNEJunction * GNERouteHandler::parseJunction ( const SumoXMLTag  tag,
const std::string &  id,
const std::string &  junctionID 
)
protected

parse junction

Definition at line 2353 of file GNERouteHandler.cpp.

References GNENet::getAttributeCarriers(), myNet, GNENetHelper::AttributeCarriers::retrieveJunction(), SUMO_TAG_JUNCTION, and CommonHandler::writeErrorInvalidParent().

Referenced by buildFlowJunctions(), and buildTripJunctions().

Here is the caller graph for this function:

◆ parseNestedCFM()

bool RouteHandler::parseNestedCFM ( const SumoXMLTag  tag,
const SUMOSAXAttributes attrs,
CommonXMLStructure::SumoBaseObject vTypeObject 
)
privateinherited

parse nested CarFollowingModel

Definition at line 973 of file RouteHandler.cpp.

References CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getVehicleTypeParameter(), RouteHandler::myHardFail, SUMOVehicleParserHelper::parseCFMParams(), CommonXMLStructure::SumoBaseObject::setVehicleTypeParameter(), SUMO_ATTR_ID, TL, WRITE_WARNINGF, and CommonHandler::writeError().

Referenced by RouteHandler::beginParseAttributes().

Here is the caller graph for this function:

◆ parseParameters()

void CommonHandler::parseParameters ( const SUMOSAXAttributes attrs)
protectedinherited

◆ parsePerson()

void RouteHandler::parsePerson ( const SUMOSAXAttributes attrs)
privateinherited

parse person

Definition at line 735 of file RouteHandler.cpp.

References CommonXMLStructure::getCurrentSumoBaseObject(), CommonHandler::myCommonXMLStructure, RouteHandler::myHardFail, SUMOVehicleParserHelper::parseVehicleAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), SUMO_TAG_NOTHING, and SUMO_TAG_PERSON.

Referenced by RouteHandler::beginParseAttributes().

Here is the caller graph for this function:

◆ parsePersonFlow()

void RouteHandler::parsePersonFlow ( const SUMOSAXAttributes attrs)
privateinherited

◆ parsePersonTrip()

◆ parseRide()

◆ parseRoute()

◆ parseRouteDistribution()

◆ parseStop()

◆ parseStopEdge()

◆ parseStopParameters()

bool RouteHandler::parseStopParameters ( SUMOVehicleParameter::Stop stop,
const SUMOSAXAttributes attrs 
)
privateinherited

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 RouteHandler::parseStop().

Here is the caller graph for this function:

◆ parseSumoBaseObject()

void RouteHandler::parseSumoBaseObject ( CommonXMLStructure::SumoBaseObject obj)
inherited

parse SumoBaseObject (it's called recursivelly)

Definition at line 200 of file RouteHandler.cpp.

References RouteHandler::buildContainer(), RouteHandler::buildContainerFlow(), RouteHandler::buildEmbeddedRoute(), RouteHandler::buildFlow(), RouteHandler::buildFlowJunctions(), RouteHandler::buildFlowOverRoute(), RouteHandler::buildFlowTAZs(), RouteHandler::buildPerson(), RouteHandler::buildPersonFlow(), RouteHandler::buildPersonTrip(), RouteHandler::buildRide(), RouteHandler::buildRoute(), RouteHandler::buildRouteDistribution(), RouteHandler::buildStop(), RouteHandler::buildTranship(), RouteHandler::buildTransport(), RouteHandler::buildTrip(), RouteHandler::buildTripJunctions(), RouteHandler::buildTripTAZs(), RouteHandler::buildVehicleOverRoute(), RouteHandler::buildVType(), RouteHandler::buildVTypeDistribution(), RouteHandler::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(), RouteHandler::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(), RouteHandler::endParseAttributes(), and RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ parseTAZ()

GNEAdditional * GNERouteHandler::parseTAZ ( const SumoXMLTag  tag,
const std::string &  id,
const std::string &  TAZID 
)
protected

parse TAZ

Definition at line 2364 of file GNERouteHandler.cpp.

References GNENet::getAttributeCarriers(), myNet, GNENetHelper::AttributeCarriers::retrieveAdditional(), SUMO_TAG_TAZ, TAZ, and CommonHandler::writeErrorInvalidParent().

Referenced by buildFlowTAZs(), and buildTripTAZs().

Here is the caller graph for this function:

◆ parseTranship()

◆ parseTransport()

◆ parseTrip()

◆ parseVehicle()

void RouteHandler::parseVehicle ( const SUMOSAXAttributes attrs)
privateinherited

parse vehicle (including vehicles over routes and vehicles with embedded routes)

Definition at line 608 of file RouteHandler.cpp.

References CommonXMLStructure::getCurrentSumoBaseObject(), CommonHandler::myCommonXMLStructure, RouteHandler::myHardFail, SUMOVehicleParserHelper::parseVehicleAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), SUMO_TAG_NOTHING, and SUMO_TAG_VEHICLE.

Referenced by RouteHandler::beginParseAttributes().

Here is the caller graph for this function:

◆ parseVType()

void RouteHandler::parseVType ( const SUMOSAXAttributes attrs)
privateinherited

◆ parseVTypeDistribution()

◆ parseWalk()

◆ postParserTasks()

bool GNERouteHandler::postParserTasks ( )
virtual

run post parser tasks

Implements RouteHandler.

Definition at line 88 of file GNERouteHandler.cpp.

References GNEUndoList::add(), GNEUndoList::begin(), GNENetHelper::AttributeCarriers::deleteDemandElement(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), myAllowUndoRedo, myNet, myParentPlanElements, and TLF.

Referenced by GNEGeneralHandler::postParserTasks().

Here is the caller graph for this function:

◆ reverse()

◆ transformToContainer()

◆ transformToContainerFlow()

◆ transformToFlow()

void GNERouteHandler::transformToFlow ( GNEVehicle originalVehicle)
static

transform to flow

Definition at line 1813 of file GNERouteHandler.cpp.

References GNEUndoList::begin(), buildFlow(), GNENet::deleteDemandElement(), SUMOVehicleParameter::depart, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEHierarchicalElement::getChildDemandElements(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getInspectedElements(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNETagSelector::getTemplateAC(), GNEViewNet::getUndoList(), GNEViewParent::getVehicleFrame(), GNEVehicleFrame::getVehicleTagSelector(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNE_ATTR_FLOWPARAMETERS, GNE_TAG_FLOW_ROUTE, SUMOVehicleParameter::id, GNEInspectorFrame::inspectElement(), GNEViewNetHelper::InspectedElements::isACInspected(), GNETagProperties::isFlow(), GNEApplicationWindow::isUndoRedoAllowed(), SUMOVehicleParameter::parametersSet, SUMOVehicleParameter::repetitionEnd, SUMOVehicleParameter::repetitionNumber, SUMOVehicleParameter::repetitionOffset, SUMOVehicleParameter::repetitionProbability, GNENetHelper::AttributeCarriers::retrieveDemandElement(), string2time(), SUMO_ATTR_NUMBER, SUMO_ATTR_PERIOD, SUMO_ATTR_PROB, SUMO_TAG_FLOW, SUMO_TAG_VEHICLE, SUMOVehicleParameter::tag, toString(), GNETagProperties::vehicleEdges(), GNETagProperties::vehicleRoute(), GNETagProperties::vehicleRouteEmbedded(), and WRITE_DEBUG.

Referenced by GNEVehicle::GNESingleVehiclePopupMenu::onCmdTransform(), and GNEVehicle::GNESelectedVehiclesPopupMenu::onCmdTransform().

Here is the caller graph for this function:

◆ transformToFlowJunctions()

void GNERouteHandler::transformToFlowJunctions ( GNEVehicle originalVehicle)
static

transform to flow over junctions

Definition at line 1934 of file GNERouteHandler.cpp.

References GNEUndoList::begin(), buildFlowJunctions(), GNENet::deleteDemandElement(), SUMOVehicleParameter::depart, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getInspectedElements(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentJunctions(), GNEAttributeCarrier::getTagStr(), GNETagSelector::getTemplateAC(), GNEViewNet::getUndoList(), GNEViewParent::getVehicleFrame(), GNEVehicleFrame::getVehicleTagSelector(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNE_ATTR_FLOWPARAMETERS, GNE_TAG_FLOW_JUNCTIONS, SUMOVehicleParameter::id, GNEInspectorFrame::inspectElement(), GNEViewNetHelper::InspectedElements::isACInspected(), GNEApplicationWindow::isUndoRedoAllowed(), SUMOVehicleParameter::parametersSet, SUMOVehicleParameter::repetitionEnd, SUMOVehicleParameter::repetitionNumber, SUMOVehicleParameter::repetitionOffset, SUMOVehicleParameter::repetitionProbability, GNENetHelper::AttributeCarriers::retrieveDemandElement(), string2time(), SUMO_ATTR_NUMBER, SUMO_ATTR_PERIOD, SUMO_ATTR_PROB, SUMOVehicleParameter::tag, toString(), and WRITE_DEBUG.

Referenced by GNEVehicle::GNESingleVehiclePopupMenu::onCmdTransform(), and GNEVehicle::GNESelectedVehiclesPopupMenu::onCmdTransform().

Here is the caller graph for this function:

◆ transformToFlowTAZs()

void GNERouteHandler::transformToFlowTAZs ( GNEVehicle originalVehicle)
static

transform to flow over TAZs

Definition at line 2031 of file GNERouteHandler.cpp.

References GNEUndoList::begin(), buildFlowTAZs(), GNENet::deleteDemandElement(), SUMOVehicleParameter::depart, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getInspectedElements(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentAdditionals(), GNEAttributeCarrier::getTagStr(), GNETagSelector::getTemplateAC(), GNEViewNet::getUndoList(), GNEViewParent::getVehicleFrame(), GNEVehicleFrame::getVehicleTagSelector(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNE_ATTR_FLOWPARAMETERS, GNE_TAG_FLOW_TAZS, SUMOVehicleParameter::id, GNEInspectorFrame::inspectElement(), GNEViewNetHelper::InspectedElements::isACInspected(), GNEApplicationWindow::isUndoRedoAllowed(), SUMOVehicleParameter::parametersSet, SUMOVehicleParameter::repetitionEnd, SUMOVehicleParameter::repetitionNumber, SUMOVehicleParameter::repetitionOffset, SUMOVehicleParameter::repetitionProbability, GNENetHelper::AttributeCarriers::retrieveDemandElement(), string2time(), SUMO_ATTR_NUMBER, SUMO_ATTR_PERIOD, SUMO_ATTR_PROB, SUMOVehicleParameter::tag, toString(), and WRITE_DEBUG.

Referenced by GNEVehicle::GNESingleVehiclePopupMenu::onCmdTransform(), and GNEVehicle::GNESelectedVehiclesPopupMenu::onCmdTransform().

Here is the caller graph for this function:

◆ transformToPerson()

◆ transformToPersonFlow()

◆ transformToRouteFlow()

void GNERouteHandler::transformToRouteFlow ( GNEVehicle originalVehicle,
bool  createEmbeddedRoute 
)
static

transform routeFlow over an existent route

Definition at line 1645 of file GNERouteHandler.cpp.

References CommonXMLStructure::SumoBaseObject::addStringAttribute(), GNEUndoList::begin(), buildEmbeddedRoute(), buildFlowOverRoute(), buildRoute(), GNEPathManager::PathCalculator::calculateDijkstraPath(), GNENet::deleteDemandElement(), SUMOVehicleParameter::depart, GNEUndoList::end(), GNENetHelper::AttributeCarriers::generateDemandElementID(), GNENet::getAttributeCarriers(), GNEHierarchicalElement::getChildDemandElements(), GNENet::getDemandPathManager(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getInspectedElements(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEPathManager::getPathCalculator(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNETagSelector::getTemplateAC(), GNEViewNet::getUndoList(), GNEVehicle::getVClass(), GNEViewParent::getVehicleFrame(), GNEVehicleFrame::getVehicleTagSelector(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNE_ATTR_FLOWPARAMETERS, GNE_TAG_FLOW_ROUTE, GNE_TAG_FLOW_WITHROUTE, SUMOVehicleParameter::id, GNEInspectorFrame::inspectElement(), RGBColor::INVISIBLE, GNEViewNetHelper::InspectedElements::isACInspected(), GNETagProperties::isFlow(), GNEApplicationWindow::isUndoRedoAllowed(), SUMOVehicleParameter::parametersSet, SUMOVehicleParameter::repetitionEnd, SUMOVehicleParameter::repetitionNumber, SUMOVehicleParameter::repetitionOffset, SUMOVehicleParameter::repetitionProbability, GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMOVehicleParameter::routeid, CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), string2time(), SUMO_ATTR_ID, SUMO_ATTR_NUMBER, SUMO_ATTR_PERIOD, SUMO_ATTR_PROB, SUMO_TAG_FLOW, SUMO_TAG_ROUTE, SUMO_TAG_VEHICLE, SUMOVehicleParameter::tag, toString(), GNETagProperties::vehicleEdges(), GNETagProperties::vehicleRoute(), GNETagProperties::vehicleRouteEmbedded(), WRITE_DEBUG, and RGBColor::YELLOW.

Referenced by GNEVehicle::GNESingleVehiclePopupMenu::onCmdTransform(), and GNEVehicle::GNESelectedVehiclesPopupMenu::onCmdTransform().

Here is the caller graph for this function:

◆ transformToTrip()

◆ transformToTripJunctions()

◆ transformToTripTAZs()

◆ transformToVehicle()

void GNERouteHandler::transformToVehicle ( GNEVehicle originalVehicle,
bool  createEmbeddedRoute 
)
static

transform vehicle functions

transform to vehicle over an existent route

Definition at line 1554 of file GNERouteHandler.cpp.

References CommonXMLStructure::SumoBaseObject::addStringAttribute(), GNEUndoList::begin(), buildEmbeddedRoute(), buildRoute(), buildVehicleOverRoute(), GNEPathManager::PathCalculator::calculateDijkstraPath(), GNENet::deleteDemandElement(), GNEUndoList::end(), GNENetHelper::AttributeCarriers::generateDemandElementID(), GNENet::getAttributeCarriers(), GNEHierarchicalElement::getChildDemandElements(), GNENet::getDemandPathManager(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getInspectedElements(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEPathManager::getPathCalculator(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNEVehicle::getVClass(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNE_TAG_VEHICLE_WITHROUTE, SUMOVehicleParameter::id, GNEInspectorFrame::inspectElement(), RGBColor::INVISIBLE, GNEViewNetHelper::InspectedElements::isACInspected(), GNEApplicationWindow::isUndoRedoAllowed(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMOVehicleParameter::routeid, CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), SUMO_ATTR_ID, SUMO_TAG_ROUTE, SUMO_TAG_VEHICLE, SUMOVehicleParameter::tag, toString(), GNETagProperties::vehicleEdges(), GNETagProperties::vehicleRoute(), GNETagProperties::vehicleRouteEmbedded(), WRITE_DEBUG, and RGBColor::YELLOW.

Referenced by GNEVehicle::GNESingleVehiclePopupMenu::onCmdTransform(), and GNEVehicle::GNESelectedVehiclesPopupMenu::onCmdTransform().

Here is the caller graph for this function:

◆ 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(), buildContainer(), buildContainerFlow(), buildContainerStop(), GNEDataHandler::buildEdgeRelationData(), buildEmbeddedRoute(), buildFlow(), buildFlowJunctions(), buildFlowOverRoute(), buildFlowTAZs(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), buildPersonStop(), buildPersonTrip(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildRerouterInterval(), buildRide(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), buildStop(), GNEAdditionalHandler::buildTAZ(), GNEDataHandler::buildTAZRelationData(), buildTranship(), buildTransport(), buildTrip(), buildTripJunctions(), buildTripTAZs(), GNEAdditionalHandler::buildVaporizer(), buildVehicleOverRoute(), 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(), checkViaAttribute(), getDistributionElements(), DataHandler::myStartElement(), GNEMeanDataHandler::parseAttributes(), AdditionalHandler::parseCalibratorAttributes(), AdditionalHandler::parseCalibratorFlowAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseE2Attributes(), GNEAdditionalHandler::parseEdges(), parseEdges(), GNEMeanDataHandler::parseEdges(), RouteHandler::parseFlow(), GNEAdditionalHandler::parseLanes(), RouteHandler::parseNestedCFM(), CommonHandler::parseParameters(), AdditionalHandler::parsePOIAttributes(), RouteHandler::parseRoute(), RouteHandler::parseStopParameters(), RouteHandler::parseTranship(), RouteHandler::parseTrip(), RouteHandler::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(), 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 RouteHandler::parseRouteDistribution(), and RouteHandler::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(), buildContainerStop(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDestProbReroute(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), buildEmbeddedRoute(), buildFlow(), buildFlowJunctions(), buildFlowOverRoute(), buildFlowTAZs(), GNEAdditionalHandler::buildLaneCalibrator(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingAreaReroute(), GNEAdditionalHandler::buildParkingSpace(), buildPerson(), buildPersonFlow(), buildPersonStop(), buildPersonTrip(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildRerouterInterval(), buildRide(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildRouteProbReroute(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), buildStop(), GNEDataHandler::buildTAZRelationData(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNEAdditionalHandler::buildTrainStop(), buildTranship(), buildTransport(), buildTrip(), buildTripJunctions(), buildTripTAZs(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSignStep(), buildVehicleOverRoute(), buildWalk(), parseEdge(), parseJunction(), and 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

◆ myAllowUndoRedo

◆ myCommonXMLStructure

CommonXMLStructure CommonHandler::myCommonXMLStructure
protectedinherited

common XML Structure

Definition at line 51 of file CommonHandler.h.

Referenced by AdditionalHandler::beginParseAttributes(), MeanDataHandler::beginParseAttributes(), RouteHandler::beginParseAttributes(), AdditionalHandler::checkCalibratorFlowParents(), DataHandler::checkParent(), CommonHandler::checkParsedParent(), AdditionalHandler::endParseAttributes(), MeanDataHandler::endParseAttributes(), RouteHandler::endParseAttributes(), DataHandler::getAttributes(), RouteHandler::isEmbeddedRoute(), DataHandler::myEndElement(), DataHandler::myStartElement(), AdditionalHandler::parseAccessAttributes(), AdditionalHandler::parseBusStopAttributes(), AdditionalHandler::parseCalibratorAttributes(), AdditionalHandler::parseCalibratorFlowAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseClosingLaneRerouteAttributes(), AdditionalHandler::parseClosingRerouteAttributes(), RouteHandler::parseContainer(), RouteHandler::parseContainerFlow(), AdditionalHandler::parseContainerStopAttributes(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseE1Attributes(), AdditionalHandler::parseE1InstantAttributes(), AdditionalHandler::parseE2Attributes(), AdditionalHandler::parseE3Attributes(), DataHandler::parseEdgeData(), MeanDataHandler::parseEdgeMeanData(), DataHandler::parseEdgeRelationData(), AdditionalHandler::parseEntryAttributes(), AdditionalHandler::parseExitAttributes(), RouteHandler::parseFlow(), DataHandler::parseInterval(), AdditionalHandler::parseJpsObstacleAttributes(), AdditionalHandler::parseJpsWalkableAreaAttributes(), MeanDataHandler::parseLaneMeanData(), AdditionalHandler::parseOverheadWire(), AdditionalHandler::parseOverheadWireClamp(), CommonHandler::parseParameters(), AdditionalHandler::parseParkingAreaAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseParkingSpaceAttributes(), RouteHandler::parsePerson(), RouteHandler::parsePersonFlow(), RouteHandler::parsePersonTrip(), AdditionalHandler::parsePOIAttributes(), AdditionalHandler::parsePolyAttributes(), AdditionalHandler::parseRerouterAttributes(), AdditionalHandler::parseRerouterIntervalAttributes(), RouteHandler::parseRide(), RouteHandler::parseRoute(), RouteHandler::parseRouteDistribution(), AdditionalHandler::parseRouteProbeAttributes(), AdditionalHandler::parseRouteProbRerouteAttributes(), RouteHandler::parseStop(), AdditionalHandler::parseTAZAttributes(), DataHandler::parseTAZRelationData(), AdditionalHandler::parseTAZSinkAttributes(), AdditionalHandler::parseTAZSourceAttributes(), AdditionalHandler::parseTractionSubstation(), AdditionalHandler::parseTrainStopAttributes(), RouteHandler::parseTranship(), RouteHandler::parseTransport(), RouteHandler::parseTrip(), AdditionalHandler::parseVaporizerAttributes(), AdditionalHandler::parseVariableSpeedSignAttributes(), AdditionalHandler::parseVariableSpeedSignStepAttributes(), RouteHandler::parseVehicle(), RouteHandler::parseVType(), RouteHandler::parseVTypeDistribution(), and RouteHandler::parseWalk().

◆ myContainerTags

const std::vector< SumoXMLTag > GNERouteHandler::myContainerTags
staticprivate
Initial value:

container tags

Definition at line 64 of file GNERouteHandler.h.

Referenced by buildContainer(), and buildContainerFlow().

◆ 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
privateinherited

filename (needed for parsing vTypes)

Definition at line 148 of file RouteHandler.h.

Referenced by RouteHandler::parseVType().

◆ myFlowBeginDefault

SUMOTime RouteHandler::myFlowBeginDefault
privateinherited

The default value for flow begins.

Definition at line 154 of file RouteHandler.h.

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

◆ myFlowEndDefault

SUMOTime RouteHandler::myFlowEndDefault
privateinherited

◆ myHardFail

const bool RouteHandler::myHardFail
privateinherited

◆ myNet

◆ myOverwrite

const bool GNERouteHandler::myOverwrite
private

check if overwrite

Definition at line 304 of file GNERouteHandler.h.

Referenced by checkDuplicatedDemandElement().

◆ myParentPlanElements

std::set<GNEDemandElement*> GNERouteHandler::myParentPlanElements
private

demand element parentplans (person and containers, used in postParserTasks)

Definition at line 298 of file GNERouteHandler.h.

Referenced by buildContainer(), buildContainerFlow(), buildPerson(), buildPersonFlow(), and postParserTasks().

◆ myPersonTags

const std::vector< SumoXMLTag > GNERouteHandler::myPersonTags
staticprivate
Initial value:

person tags

Definition at line 59 of file GNERouteHandler.h.

Referenced by buildPerson(), and buildPersonFlow().

◆ myPlanObject

CommonXMLStructure::SumoBaseObject* GNERouteHandler::myPlanObject
private

pointer for person and container plans

Definition at line 295 of file GNERouteHandler.h.

Referenced by buildContainerPlan(), buildPersonPlan(), duplicatePlan(), and ~GNERouteHandler().

◆ myVehicleTags

const std::vector< SumoXMLTag > GNERouteHandler::myVehicleTags
staticprivate
Initial value:
= {
}
@ GNE_TAG_TRIP_JUNCTIONS
a trip between junctions
@ GNE_TAG_TRIP_TAZS
a single trip definition that uses TAZs
@ SUMO_TAG_VEHICLE
description of a vehicle
@ GNE_TAG_FLOW_ROUTE
a flow definition using a route instead of a from-to edges route
@ GNE_TAG_FLOW_JUNCTIONS
a flow between junctions
@ GNE_TAG_FLOW_WITHROUTE
description of a vehicle with an embedded route
@ SUMO_TAG_FLOW
a flow definition using from and to edges or a route
@ GNE_TAG_FLOW_TAZS
a flow between TAZs
@ GNE_TAG_VEHICLE_WITHROUTE
description of a vehicle with an embedded route
@ SUMO_TAG_TRIP
a single trip definition (used by router)

vehicle tags

Definition at line 51 of file GNERouteHandler.h.

Referenced by buildEmbeddedRoute(), buildFlow(), buildFlowJunctions(), buildFlowOverRoute(), buildFlowTAZs(), buildTrip(), buildTripJunctions(), buildTripTAZs(), and buildVehicleOverRoute().


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