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
 
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 isContainerIdDuplicated (const std::string &id)
 check if there is already a container (Container or ContainerFlow) with the given ID
 
bool isErrorCreatingElement () const
 get flag for check if a element wasn't created
 
bool isPersonIdDuplicated (const std::string &id)
 check if there is already a person (Person or PersonFlow) with the given ID
 
bool isVehicleIdDuplicated (const std::string &id)
 check if there is already a vehicle (Vehicle, Trip, Flow or Flow) with the given ID
 
bool isViaAttributeValid (const std::vector< std::string > &via)
 check if via attribute is valid
 
void parseSumoBaseObject (CommonXMLStructure::SumoBaseObject *obj)
 parse SumoBaseObject (it's called recursivelly)
 
virtual ~GNERouteHandler ()
 Destructor.
 
build functions
void buildVType (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVTypeParameter &vTypeParameter)
 build vType
 
void 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
 
void 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
 
void 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
 
void buildRouteDistribution (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::vector< std::string > &routeIDs, const std::vector< double > &probabilities)
 build route distribution
 
void buildVehicleOverRoute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters)
 build a vehicle over an existent route
 
void buildFlowOverRoute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters)
 build a flow over an existent route
 
void buildTrip (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromEdgeID, const std::string &toEdgeID)
 build trip
 
void buildTripJunctions (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromJunctionID, const std::string &toJunctionID)
 build trip over junctions
 
void buildTripTAZs (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromTAZID, const std::string &toTAZID)
 build trip over TAZs
 
void buildFlow (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromEdgeID, const std::string &toEdgeIDs)
 build flow
 
void buildFlowJunctions (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromJunctionID, const std::string &toJunctionID)
 build flow over junctions
 
void buildFlowTAZs (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromTAZID, const std::string &toTAZID)
 build flow over junctions
 
void buildPerson (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &personParameters)
 build person
 
void buildPersonFlow (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &personFlowParameters)
 build person flow
 
void 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
 
void buildWalk (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPos, const double speed, const SUMOTime duration)
 build walk
 
void buildRide (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPos, const std::vector< std::string > &lines, const std::string &group)
 build ride
 
void buildContainer (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &containerParameters)
 build container
 
void buildContainerFlow (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &containerFlowParameters)
 build container flow
 
void buildTransport (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPos, const std::vector< std::string > &lines, const std::string &group)
 build transport
 
void buildTranship (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPosition, const double departPosition, const double speed, const SUMOTime duration)
 build tranship
 
void 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
 
void 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
 
void 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::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)
 
void overwriteDemandElement ()
 remove overwritten demand element
 
GNEEdgeparseEdge (const SumoXMLTag tag, 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::vector< std::string > &edgeIDs)
 parse edges
 
GNEJunctionparseJunction (const SumoXMLTag tag, const std::string &junctionID)
 parse junction
 
GNEEdgeparseStopEdge (const CommonXMLStructure::SumoBaseObject *sumoBaseObject) const
 parse stop edge
 
GNEAdditionalparseTAZ (const SumoXMLTag tag, const std::string &TAZID)
 parse TAZ
 
void writeError (const std::string &error)
 write error and enable error creating element
 
void writeErrorInvalidNegativeValue (const SumoXMLTag tag, const SumoXMLAttr attribute)
 write error "invalid negative element"
 

Private Member Functions

void checkParent (const SumoXMLTag currentTag, const std::vector< SumoXMLTag > &parentTags, bool &ok)
 check parents
 
bool isEmbeddedRoute (const SUMOSAXAttributes &attrs) const
 check embedded route
 
bool parseStopParameters (SUMOVehicleParameter::Stop &stop, const SUMOSAXAttributes &attrs)
 parse stop parameters
 
void writeErrorInvalidDistribution (const SumoXMLTag tag, const std::string &id)
 write error "invalid distribution"
 
void writeErrorInvalidID (const SumoXMLTag tag, const std::string &id)
 write error "invalid id"
 
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
 
void parseParameters (const SUMOSAXAttributes &attrs)
 parse generic parameters
 
bool parseNestedCFM (const SumoXMLTag tag, const SUMOSAXAttributes &attrs)
 parse nested CarFollowingModel
 

Private Attributes

const bool myAllowUndoRedo
 allow undo/redo
 
CommonXMLStructure myCommonXMLStructure
 common XML Structure
 
GNEDemandElementmyDemandToOverwrite = nullptr
 demand to overwrite (using undo-redo
 
bool myErrorCreatingElement = false
 flag for check if a element wasn't created
 
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
 
CommonXMLStructure::SumoBaseObjectmyPlanObject
 pointer for person and container plans
 

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 50 of file GNERouteHandler.cpp.

◆ ~GNERouteHandler()

GNERouteHandler::~GNERouteHandler ( )
virtual

Destructor.

Definition at line 59 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 2222 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()

◆ buildContainer()

◆ buildContainerFlow()

◆ buildContainerPlan()

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

build container plan

Definition at line 1143 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()

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

void 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 171 of file GNERouteHandler.cpp.

References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), 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(), isVehicleIdDuplicated(), myAllowUndoRedo, myNet, overwriteDemandElement(), parseEdges(), SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_MAXSPEED, SUMO_TAG_FLOW, SUMO_TAG_ROUTE, SUMO_TAG_VEHICLE, SUMOVehicleParameter::tag, TL, TLF, toString(), VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTSPEED_SET, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), and RouteHandler::writeError().

Referenced by transformToRouteFlow(), and transformToVehicle().

Here is the caller graph for this function:

◆ buildFlow()

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

◆ buildFlowJunctions()

◆ buildFlowOverRoute()

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

◆ buildFlowTAZs()

◆ buildPerson()

◆ buildPersonFlow()

◆ buildPersonPlan()

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

build person plan

Definition at line 1066 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()

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

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

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

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

build stop

Implements RouteHandler.

Definition at line 903 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, overwriteDemandElement(), 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_TRAIN_STOP, SUMO_TAG_VEHICLE, TL, SUMOVehicleParameter::Stop::until, WRITE_ERROR, and RouteHandler::writeError().

Referenced by GNEStopFrame::addStop().

Here is the caller graph for this function:

◆ buildTranship()

void GNERouteHandler::buildTranship ( const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const CommonXMLStructure::PlanParameters planParameters,
const double  arrivalPosition,
const double  departPosition,
const double  speed,
const SUMOTime  duration 
)
virtual

◆ buildTransport()

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

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

◆ buildTripJunctions()

◆ buildTripTAZs()

◆ buildVehicleOverRoute()

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

◆ buildVType()

◆ buildVTypeDistribution()

◆ 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 2149 of file GNERouteHandler.cpp.

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

◆ checkDuplicatedDemandElement()

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

check if given ID correspond to a duplicated demand element

Definition at line 2463 of file GNERouteHandler.cpp.

References GNENet::getAttributeCarriers(), myAllowUndoRedo, myDemandToOverwrite, myNet, myOverwrite, and GNENetHelper::AttributeCarriers::retrieveDemandElement().

Referenced by buildRoute(), buildRouteDistribution(), buildVType(), buildVTypeDistribution(), isContainerIdDuplicated(), isPersonIdDuplicated(), and isVehicleIdDuplicated().

Here is the caller graph for this function:

◆ checkParent()

void RouteHandler::checkParent ( const SumoXMLTag  currentTag,
const std::vector< SumoXMLTag > &  parentTags,
bool &  ok 
)
privateinherited

◆ duplicatePlan()

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

duplicate given plan in new parent

Definition at line 1216 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 2407 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 2428 of file GNERouteHandler.cpp.

References GNENet::getAttributeCarriers(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getTag(), myNet, GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMO_ATTR_ID, TLF, toString(), and RouteHandler::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 2375 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:

◆ isContainerIdDuplicated()

bool GNERouteHandler::isContainerIdDuplicated ( const std::string &  id)

check if there is already a container (Container or ContainerFlow) with the given ID

Definition at line 1428 of file GNERouteHandler.cpp.

References checkDuplicatedDemandElement(), SUMO_TAG_CONTAINER, SUMO_TAG_CONTAINERFLOW, TLF, toString(), and RouteHandler::writeError().

Referenced by buildContainer(), and buildContainerFlow().

Here is the caller graph for this function:

◆ isEmbeddedRoute()

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

◆ isErrorCreatingElement()

bool RouteHandler::isErrorCreatingElement ( ) const
inherited

get flag for check if a element wasn't created

Definition at line 368 of file RouteHandler.cpp.

References RouteHandler::myErrorCreatingElement.

Referenced by GNEGeneralHandler::isErrorCreatingElement().

Here is the caller graph for this function:

◆ isPersonIdDuplicated()

bool GNERouteHandler::isPersonIdDuplicated ( const std::string &  id)

check if there is already a person (Person or PersonFlow) with the given ID

Definition at line 1415 of file GNERouteHandler.cpp.

References checkDuplicatedDemandElement(), SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, TLF, toString(), and RouteHandler::writeError().

Referenced by buildPerson(), and buildPersonFlow().

Here is the caller graph for this function:

◆ isVehicleIdDuplicated()

bool GNERouteHandler::isVehicleIdDuplicated ( const std::string &  id)

check if there is already a vehicle (Vehicle, Trip, Flow or Flow) with the given ID

Definition at line 1382 of file GNERouteHandler.cpp.

References checkDuplicatedDemandElement(), GNE_TAG_FLOW_JUNCTIONS, GNE_TAG_FLOW_ROUTE, GNE_TAG_FLOW_TAZS, GNE_TAG_FLOW_WITHROUTE, GNE_TAG_TRIP_JUNCTIONS, GNE_TAG_TRIP_TAZS, GNE_TAG_VEHICLE_WITHROUTE, SUMO_TAG_FLOW, SUMO_TAG_TRIP, SUMO_TAG_VEHICLE, TLF, toString(), and RouteHandler::writeError().

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

Here is the caller graph for this function:

◆ isViaAttributeValid()

bool GNERouteHandler::isViaAttributeValid ( const std::vector< std::string > &  via)

check if via attribute is valid

Definition at line 1403 of file GNERouteHandler.cpp.

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

Referenced by buildFlow(), and buildTrip().

Here is the caller graph for this function:

◆ overwriteDemandElement()

void GNERouteHandler::overwriteDemandElement ( )
protected

◆ parseContainer()

void RouteHandler::parseContainer ( const SUMOSAXAttributes attrs)
privateinherited

parse container

Definition at line 796 of file RouteHandler.cpp.

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

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 &  edgeID,
const CommonXMLStructure::SumoBaseObject sumoBaseObject,
const bool  firstEdge 
)
protected

parse edge

Definition at line 2262 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, TLF, toString(), and RouteHandler::writeError().

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 2347 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::vector< std::string > &  edgeIDs 
)
protected

parse edges

Definition at line 2357 of file GNERouteHandler.cpp.

References GNENet::getAttributeCarriers(), myNet, GNENetHelper::AttributeCarriers::retrieveEdge(), SUMO_TAG_EDGE, TLF, toString(), and RouteHandler::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 876 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 &  junctionID 
)
protected

parse junction

Definition at line 2240 of file GNERouteHandler.cpp.

References GNENet::getAttributeCarriers(), myNet, GNENetHelper::AttributeCarriers::retrieveJunction(), SUMO_TAG_JUNCTION, TLF, toString(), and RouteHandler::writeError().

Referenced by buildFlowJunctions(), and buildTripJunctions().

Here is the caller graph for this function:

◆ parseNestedCFM()

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

parse nested CarFollowingModel

Definition at line 920 of file RouteHandler.cpp.

References CommonXMLStructure::getCurrentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), RouteHandler::myCommonXMLStructure, RouteHandler::myHardFail, SUMOVehicleParserHelper::parseCFMParams(), SUMO_ATTR_ID, SUMO_TAG_VTYPE, TL, WRITE_WARNINGF, and RouteHandler::writeError().

Referenced by RouteHandler::beginParseAttributes().

Here is the caller graph for this function:

◆ parseParameters()

void RouteHandler::parseParameters ( const SUMOSAXAttributes attrs)
privateinherited

◆ parsePerson()

void RouteHandler::parsePerson ( const SUMOSAXAttributes attrs)
privateinherited

parse person

Definition at line 678 of file RouteHandler.cpp.

References CommonXMLStructure::getCurrentSumoBaseObject(), RouteHandler::myCommonXMLStructure, RouteHandler::myHardFail, SUMOVehicleParserHelper::parseVehicleAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), 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 943 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 RouteHandler::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 191 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(), 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 &  TAZID 
)
protected

parse TAZ

Definition at line 2251 of file GNERouteHandler.cpp.

References GNENet::getAttributeCarriers(), myNet, GNENetHelper::AttributeCarriers::retrieveAdditional(), SUMO_TAG_TAZ, TAZ, TLF, toString(), and RouteHandler::writeError().

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 567 of file RouteHandler.cpp.

References CommonXMLStructure::getCurrentSumoBaseObject(), RouteHandler::myCommonXMLStructure, RouteHandler::myHardFail, SUMOVehicleParserHelper::parseVehicleAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), 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()

◆ reverse()

◆ transformToContainer()

◆ transformToContainerFlow()

◆ transformToFlow()

void GNERouteHandler::transformToFlow ( GNEVehicle originalVehicle)
static

transform to flow

Definition at line 1700 of file GNERouteHandler.cpp.

References GNEUndoList::begin(), buildFlow(), GNENet::deleteDemandElement(), SUMOVehicleParameter::depart, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEHierarchicalElement::getChildDemandElements(), 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::inspectSingleElement(), GNEViewNet::isAttributeCarrierInspected(), GNETagProperties::isFlow(), 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()

◆ transformToFlowTAZs()

◆ transformToPerson()

◆ transformToPersonFlow()

◆ transformToRouteFlow()

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

transform routeFlow over an existent route

Definition at line 1532 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(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEPathManager::getPathCalculator(), GNENet::getPathManager(), 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::inspectSingleElement(), RGBColor::INVISIBLE, GNEViewNet::isAttributeCarrierInspected(), GNETagProperties::isFlow(), 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 1441 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(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEPathManager::getPathCalculator(), GNENet::getPathManager(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNEVehicle::getVClass(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNE_TAG_VEHICLE_WITHROUTE, SUMOVehicleParameter::id, GNEInspectorFrame::inspectSingleElement(), RGBColor::INVISIBLE, GNEViewNet::isAttributeCarrierInspected(), 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()

◆ writeErrorInvalidDistribution()

void RouteHandler::writeErrorInvalidDistribution ( const SumoXMLTag  tag,
const std::string &  id 
)
privateinherited

write error "invalid distribution"

Definition at line 388 of file RouteHandler.cpp.

References RouteHandler::myErrorCreatingElement, TL, toString(), and WRITE_ERRORF.

Referenced by RouteHandler::parseRouteDistribution(), and RouteHandler::parseVTypeDistribution().

Here is the caller graph for this function:

◆ writeErrorInvalidID()

void RouteHandler::writeErrorInvalidID ( const SumoXMLTag  tag,
const std::string &  id 
)
privateinherited

write error "invalid id"

Definition at line 381 of file RouteHandler.cpp.

References RouteHandler::myErrorCreatingElement, TL, toString(), and WRITE_ERRORF.

Referenced by RouteHandler::parseRoute(), RouteHandler::parseRouteDistribution(), and RouteHandler::parseVTypeDistribution().

Here is the caller graph for this function:

◆ writeErrorInvalidNegativeValue()

void GNERouteHandler::writeErrorInvalidNegativeValue ( const SumoXMLTag  tag,
const SumoXMLAttr  attribute 
)
protected

write error "invalid negative element"

Definition at line 2498 of file GNERouteHandler.cpp.

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

Referenced by buildTranship(), and buildWalk().

Here is the caller graph for this function:

Field Documentation

◆ myAllowUndoRedo

◆ myCommonXMLStructure

◆ myDemandToOverwrite

GNEDemandElement* GNERouteHandler::myDemandToOverwrite = nullptr
private

demand to overwrite (using undo-redo

Definition at line 316 of file GNERouteHandler.h.

Referenced by checkDuplicatedDemandElement(), and overwriteDemandElement().

◆ myErrorCreatingElement

bool RouteHandler::myErrorCreatingElement = false
privateinherited

◆ myFilename

const std::string RouteHandler::myFilename
privateinherited

filename (needed for parsing vTypes)

Definition at line 153 of file RouteHandler.h.

Referenced by RouteHandler::parseVType().

◆ myFlowBeginDefault

SUMOTime RouteHandler::myFlowBeginDefault
privateinherited

The default value for flow begins.

Definition at line 159 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 313 of file GNERouteHandler.h.

Referenced by checkDuplicatedDemandElement().

◆ myPlanObject

CommonXMLStructure::SumoBaseObject* GNERouteHandler::myPlanObject
private

pointer for person and container plans

Definition at line 307 of file GNERouteHandler.h.

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


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