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

GNEPlanParents (used for group all plan parents). More...

#include <GNEPlanParents.h>

Collaboration diagram for GNEPlanParents:
[legend]

Public Member Functions

void addDemandElementChild (GNEDemandElement *element)
 add the given demand element in the element as child
bool checkIntegrity (SumoXMLTag planTag, const GNEDemandElement *parent, const CommonXMLStructure::PlanParameters &planParameters) const
 check integrity between planParameters and GNE elements
void clear ()
 clear elements
std::vector< GNEAdditional * > getAdditionalElements () const
 get additionalElements (used in plan constructors)
std::vector< GNEDemandElement * > getDemandElements (GNEDemandElement *parent) const
 get demand elements (used in plan constructors)
std::vector< GNEEdge * > getEdges () const
 get edges (used in plan constructors)
std::vector< GNEJunction * > getJunctions () const
 get junctions (used in plan constructors)
 GNEPlanParents ()
 default constructor
 GNEPlanParents (const CommonXMLStructure::PlanParameters &planParameters, const GNENetHelper::AttributeCarriers *ACs)
 constructor for parsing the parameters from SUMOSAXAttributes
functions for checking stopping places

get from busStop

bool getFromBusStop () const
bool getToBusStop () const
 get to busStop
bool getFromTrainStop () const
 get from trainStop
bool getToTrainStop () const
 get to trainStop
bool getFromContainerStop () const
 get from containerStop
bool getToContainerStop () const
 get to containerStop
bool getFromChargingStation () const
 get from chargingStation
bool getToChargingStation () const
 get to chargingStation
bool getFromParkingArea () const
 get from parkingArea
bool getToParkingArea () const
 get to parkingArea

Data Fields

std::vector< GNEEdge * > consecutiveEdges
 edges
GNEEdgefromEdge = nullptr
 from edge
GNEJunctionfromJunction = nullptr
 from junction
GNEDemandElementfromRoute = nullptr
 from route (currently only used by walks)
GNEAdditionalfromStoppingPlace = nullptr
 from stoppingPlace
GNEAdditionalfromTAZ = nullptr
 from TAZ
GNEEdgetoEdge = nullptr
 to edge
GNEJunctiontoJunction = nullptr
 to junction
GNEDemandElementtoRoute = nullptr
 to route (currently only used by walks)
GNEAdditionaltoStoppingPlace = nullptr
 to stoppingPlace
GNEAdditionaltoTAZ = nullptr
 to TAZ

Detailed Description

GNEPlanParents (used for group all plan parents).

Definition at line 51 of file GNEPlanParents.h.

Constructor & Destructor Documentation

◆ GNEPlanParents() [1/2]

GNEPlanParents::GNEPlanParents ( )

default constructor

Definition at line 29 of file GNEPlanParents.cpp.

◆ GNEPlanParents() [2/2]

GNEPlanParents::GNEPlanParents ( const CommonXMLStructure::PlanParameters & planParameters,
const GNENetHelper::AttributeCarriers * ACs )

constructor for parsing the parameters from SUMOSAXAttributes

Definition at line 32 of file GNEPlanParents.cpp.

References CommonXMLStructure::PlanParameters::consecutiveEdges, consecutiveEdges, CommonXMLStructure::PlanParameters::fromBusStop, CommonXMLStructure::PlanParameters::fromChargingStation, CommonXMLStructure::PlanParameters::fromContainerStop, CommonXMLStructure::PlanParameters::fromEdge, fromEdge, CommonXMLStructure::PlanParameters::fromJunction, fromJunction, CommonXMLStructure::PlanParameters::fromParkingArea, CommonXMLStructure::PlanParameters::fromRoute, fromRoute, fromStoppingPlace, CommonXMLStructure::PlanParameters::fromTAZ, fromTAZ, CommonXMLStructure::PlanParameters::fromTrainStop, GNENetHelper::AttributeCarriers::retrieveAdditional(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), GNENetHelper::AttributeCarriers::retrieveEdge(), GNENetHelper::AttributeCarriers::retrieveJunction(), SUMO_TAG_BUS_STOP, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_PARKING_AREA, SUMO_TAG_ROUTE, SUMO_TAG_TAZ, SUMO_TAG_TRAIN_STOP, CommonXMLStructure::PlanParameters::toBusStop, CommonXMLStructure::PlanParameters::toChargingStation, CommonXMLStructure::PlanParameters::toContainerStop, CommonXMLStructure::PlanParameters::toEdge, toEdge, CommonXMLStructure::PlanParameters::toJunction, toJunction, CommonXMLStructure::PlanParameters::toParkingArea, CommonXMLStructure::PlanParameters::toRoute, toRoute, toStoppingPlace, CommonXMLStructure::PlanParameters::toTAZ, toTAZ, and CommonXMLStructure::PlanParameters::toTrainStop.

Member Function Documentation

◆ addDemandElementChild()

void GNEPlanParents::addDemandElementChild ( GNEDemandElement * element)

add the given demand element in the element as child

Definition at line 153 of file GNEPlanParents.cpp.

References consecutiveEdges, fromEdge, fromJunction, fromRoute, fromStoppingPlace, fromTAZ, toEdge, toJunction, toRoute, toStoppingPlace, and toTAZ.

Referenced by GNERouteHandler::buildContainerStop(), GNERouteHandler::buildPersonStop(), GNERouteHandler::buildPersonTrip(), GNERouteHandler::buildRide(), GNERouteHandler::buildTranship(), GNERouteHandler::buildTransport(), and GNERouteHandler::buildWalk().

Here is the caller graph for this function:

◆ checkIntegrity()

bool GNEPlanParents::checkIntegrity ( SumoXMLTag planTag,
const GNEDemandElement * parent,
const CommonXMLStructure::PlanParameters & planParameters ) const

check integrity between planParameters and GNE elements

Definition at line 92 of file GNEPlanParents.cpp.

References CommonXMLStructure::PlanParameters::fromBusStop, CommonXMLStructure::PlanParameters::fromChargingStation, CommonXMLStructure::PlanParameters::fromContainerStop, CommonXMLStructure::PlanParameters::fromEdge, fromEdge, CommonXMLStructure::PlanParameters::fromJunction, fromJunction, CommonXMLStructure::PlanParameters::fromParkingArea, CommonXMLStructure::PlanParameters::fromRoute, fromRoute, fromStoppingPlace, CommonXMLStructure::PlanParameters::fromTAZ, fromTAZ, CommonXMLStructure::PlanParameters::fromTrainStop, TLF, CommonXMLStructure::PlanParameters::toBusStop, CommonXMLStructure::PlanParameters::toChargingStation, CommonXMLStructure::PlanParameters::toContainerStop, CommonXMLStructure::PlanParameters::toEdge, toEdge, CommonXMLStructure::PlanParameters::toJunction, toJunction, CommonXMLStructure::PlanParameters::toParkingArea, CommonXMLStructure::PlanParameters::toRoute, toRoute, toStoppingPlace, toString(), CommonXMLStructure::PlanParameters::toTAZ, toTAZ, CommonXMLStructure::PlanParameters::toTrainStop, and WRITE_WARNING.

Referenced by GNERouteHandler::buildContainerStop(), GNERouteHandler::buildPersonStop(), GNERouteHandler::buildPersonTrip(), GNERouteHandler::buildRide(), GNERouteHandler::buildTranship(), GNERouteHandler::buildTransport(), and GNERouteHandler::buildWalk().

Here is the caller graph for this function:

◆ clear()

void GNEPlanParents::clear ( )

◆ getAdditionalElements()

std::vector< GNEAdditional * > GNEPlanParents::getAdditionalElements ( ) const

get additionalElements (used in plan constructors)

Definition at line 337 of file GNEPlanParents.cpp.

References fromStoppingPlace, fromTAZ, toStoppingPlace, and toTAZ.

Referenced by GNEPersonTrip::GNEPersonTrip(), GNERide::GNERide(), GNEStopPlan::GNEStopPlan(), GNETranship::GNETranship(), GNETransport::GNETransport(), and GNEWalk::GNEWalk().

Here is the caller graph for this function:

◆ getDemandElements()

std::vector< GNEDemandElement * > GNEPlanParents::getDemandElements ( GNEDemandElement * parent) const

get demand elements (used in plan constructors)

Definition at line 356 of file GNEPlanParents.cpp.

References fromRoute, and toRoute.

Referenced by GNEPersonTrip::GNEPersonTrip(), GNERide::GNERide(), GNEStopPlan::GNEStopPlan(), GNETranship::GNETranship(), GNETransport::GNETransport(), and GNEWalk::GNEWalk().

Here is the caller graph for this function:

◆ getEdges()

std::vector< GNEEdge * > GNEPlanParents::getEdges ( ) const

get edges (used in plan constructors)

Definition at line 320 of file GNEPlanParents.cpp.

References consecutiveEdges, fromEdge, and toEdge.

Referenced by GNEPersonTrip::GNEPersonTrip(), GNERide::GNERide(), GNEStopPlan::GNEStopPlan(), GNETranship::GNETranship(), GNETransport::GNETransport(), and GNEWalk::GNEWalk().

Here is the caller graph for this function:

◆ getFromBusStop()

bool GNEPlanParents::getFromBusStop ( ) const

Definition at line 207 of file GNEPlanParents.cpp.

References fromStoppingPlace, and SUMO_TAG_BUS_STOP.

◆ getFromChargingStation()

bool GNEPlanParents::getFromChargingStation ( ) const

get from chargingStation

Definition at line 267 of file GNEPlanParents.cpp.

References fromStoppingPlace, and SUMO_TAG_CHARGING_STATION.

◆ getFromContainerStop()

bool GNEPlanParents::getFromContainerStop ( ) const

get from containerStop

Definition at line 247 of file GNEPlanParents.cpp.

References fromStoppingPlace, and SUMO_TAG_CONTAINER_STOP.

◆ getFromParkingArea()

bool GNEPlanParents::getFromParkingArea ( ) const

get from parkingArea

Definition at line 287 of file GNEPlanParents.cpp.

References fromStoppingPlace, and SUMO_TAG_PARKING_AREA.

◆ getFromTrainStop()

bool GNEPlanParents::getFromTrainStop ( ) const

get from trainStop

Definition at line 227 of file GNEPlanParents.cpp.

References fromStoppingPlace, and SUMO_TAG_TRAIN_STOP.

◆ getJunctions()

std::vector< GNEJunction * > GNEPlanParents::getJunctions ( ) const

get junctions (used in plan constructors)

Definition at line 307 of file GNEPlanParents.cpp.

References fromJunction, and toJunction.

Referenced by GNEPersonTrip::GNEPersonTrip(), GNERide::GNERide(), GNEStopPlan::GNEStopPlan(), GNETranship::GNETranship(), GNETransport::GNETransport(), and GNEWalk::GNEWalk().

Here is the caller graph for this function:

◆ getToBusStop()

bool GNEPlanParents::getToBusStop ( ) const

get to busStop

Definition at line 217 of file GNEPlanParents.cpp.

References SUMO_TAG_BUS_STOP, and toStoppingPlace.

◆ getToChargingStation()

bool GNEPlanParents::getToChargingStation ( ) const

get to chargingStation

Definition at line 277 of file GNEPlanParents.cpp.

References SUMO_TAG_CHARGING_STATION, and toStoppingPlace.

◆ getToContainerStop()

bool GNEPlanParents::getToContainerStop ( ) const

get to containerStop

Definition at line 257 of file GNEPlanParents.cpp.

References SUMO_TAG_CONTAINER_STOP, and toStoppingPlace.

◆ getToParkingArea()

bool GNEPlanParents::getToParkingArea ( ) const

get to parkingArea

Definition at line 297 of file GNEPlanParents.cpp.

References SUMO_TAG_PARKING_AREA, and toStoppingPlace.

◆ getToTrainStop()

bool GNEPlanParents::getToTrainStop ( ) const

get to trainStop

Definition at line 237 of file GNEPlanParents.cpp.

References SUMO_TAG_TRAIN_STOP, and toStoppingPlace.

Field Documentation

◆ consecutiveEdges

std::vector<GNEEdge*> GNEPlanParents::consecutiveEdges

edges

Definition at line 124 of file GNEPlanParents.h.

Referenced by addDemandElementChild(), clear(), getEdges(), and GNEPlanParents().

◆ fromEdge

GNEEdge* GNEPlanParents::fromEdge = nullptr

from edge

Definition at line 118 of file GNEPlanParents.h.

Referenced by addDemandElementChild(), checkIntegrity(), clear(), getEdges(), and GNEPlanParents().

◆ fromJunction

GNEJunction* GNEPlanParents::fromJunction = nullptr

from junction

Definition at line 127 of file GNEPlanParents.h.

Referenced by addDemandElementChild(), checkIntegrity(), clear(), getJunctions(), and GNEPlanParents().

◆ fromRoute

GNEDemandElement* GNEPlanParents::fromRoute = nullptr

from route (currently only used by walks)

Definition at line 145 of file GNEPlanParents.h.

Referenced by addDemandElementChild(), checkIntegrity(), clear(), getDemandElements(), and GNEPlanParents().

◆ fromStoppingPlace

◆ fromTAZ

GNEAdditional* GNEPlanParents::fromTAZ = nullptr

◆ toEdge

GNEEdge* GNEPlanParents::toEdge = nullptr

to edge

Definition at line 121 of file GNEPlanParents.h.

Referenced by addDemandElementChild(), checkIntegrity(), clear(), getEdges(), and GNEPlanParents().

◆ toJunction

GNEJunction* GNEPlanParents::toJunction = nullptr

to junction

Definition at line 130 of file GNEPlanParents.h.

Referenced by addDemandElementChild(), checkIntegrity(), clear(), getJunctions(), and GNEPlanParents().

◆ toRoute

GNEDemandElement* GNEPlanParents::toRoute = nullptr

to route (currently only used by walks)

Definition at line 148 of file GNEPlanParents.h.

Referenced by addDemandElementChild(), checkIntegrity(), clear(), getDemandElements(), and GNEPlanParents().

◆ toStoppingPlace

◆ toTAZ

GNEAdditional* GNEPlanParents::toTAZ = nullptr

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