![]() |
Eclipse SUMO - Simulation of Urban MObility
|
GNEPlanParents (used for group all plan parents). More...
#include <GNEPlanParents.h>
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 | |
| GNEEdge * | fromEdge = nullptr |
| from edge | |
| GNEJunction * | fromJunction = nullptr |
| from junction | |
| GNEDemandElement * | fromRoute = nullptr |
| from route (currently only used by walks) | |
| GNEAdditional * | fromStoppingPlace = nullptr |
| from stoppingPlace | |
| GNEAdditional * | fromTAZ = nullptr |
| from TAZ | |
| GNEEdge * | toEdge = nullptr |
| to edge | |
| GNEJunction * | toJunction = nullptr |
| to junction | |
| GNEDemandElement * | toRoute = nullptr |
| to route (currently only used by walks) | |
| GNEAdditional * | toStoppingPlace = nullptr |
| to stoppingPlace | |
| GNEAdditional * | toTAZ = nullptr |
| to TAZ | |
GNEPlanParents (used for group all plan parents).
Definition at line 51 of file GNEPlanParents.h.
| GNEPlanParents::GNEPlanParents | ( | ) |
default constructor
Definition at line 29 of file GNEPlanParents.cpp.
| 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.
| 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().
| 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().
| void GNEPlanParents::clear | ( | ) |
clear elements
Definition at line 191 of file GNEPlanParents.cpp.
References consecutiveEdges, fromEdge, fromJunction, fromRoute, fromStoppingPlace, fromTAZ, toEdge, toJunction, toRoute, toStoppingPlace, and toTAZ.
| 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().
| 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().
| 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().
| bool GNEPlanParents::getFromBusStop | ( | ) | const |
Definition at line 207 of file GNEPlanParents.cpp.
References fromStoppingPlace, and SUMO_TAG_BUS_STOP.
| bool GNEPlanParents::getFromChargingStation | ( | ) | const |
get from chargingStation
Definition at line 267 of file GNEPlanParents.cpp.
References fromStoppingPlace, and SUMO_TAG_CHARGING_STATION.
| bool GNEPlanParents::getFromContainerStop | ( | ) | const |
get from containerStop
Definition at line 247 of file GNEPlanParents.cpp.
References fromStoppingPlace, and SUMO_TAG_CONTAINER_STOP.
| bool GNEPlanParents::getFromParkingArea | ( | ) | const |
get from parkingArea
Definition at line 287 of file GNEPlanParents.cpp.
References fromStoppingPlace, and SUMO_TAG_PARKING_AREA.
| bool GNEPlanParents::getFromTrainStop | ( | ) | const |
get from trainStop
Definition at line 227 of file GNEPlanParents.cpp.
References fromStoppingPlace, and SUMO_TAG_TRAIN_STOP.
| 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().
| bool GNEPlanParents::getToBusStop | ( | ) | const |
get to busStop
Definition at line 217 of file GNEPlanParents.cpp.
References SUMO_TAG_BUS_STOP, and toStoppingPlace.
| bool GNEPlanParents::getToChargingStation | ( | ) | const |
get to chargingStation
Definition at line 277 of file GNEPlanParents.cpp.
References SUMO_TAG_CHARGING_STATION, and toStoppingPlace.
| bool GNEPlanParents::getToContainerStop | ( | ) | const |
get to containerStop
Definition at line 257 of file GNEPlanParents.cpp.
References SUMO_TAG_CONTAINER_STOP, and toStoppingPlace.
| bool GNEPlanParents::getToParkingArea | ( | ) | const |
get to parkingArea
Definition at line 297 of file GNEPlanParents.cpp.
References SUMO_TAG_PARKING_AREA, and toStoppingPlace.
| bool GNEPlanParents::getToTrainStop | ( | ) | const |
get to trainStop
Definition at line 237 of file GNEPlanParents.cpp.
References SUMO_TAG_TRAIN_STOP, and toStoppingPlace.
| std::vector<GNEEdge*> GNEPlanParents::consecutiveEdges |
edges
Definition at line 124 of file GNEPlanParents.h.
Referenced by addDemandElementChild(), clear(), getEdges(), and GNEPlanParents().
| GNEEdge* GNEPlanParents::fromEdge = nullptr |
from edge
Definition at line 118 of file GNEPlanParents.h.
Referenced by addDemandElementChild(), checkIntegrity(), clear(), getEdges(), and GNEPlanParents().
| GNEJunction* GNEPlanParents::fromJunction = nullptr |
from junction
Definition at line 127 of file GNEPlanParents.h.
Referenced by addDemandElementChild(), checkIntegrity(), clear(), getJunctions(), and GNEPlanParents().
| 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().
| GNEAdditional* GNEPlanParents::fromStoppingPlace = nullptr |
from stoppingPlace
Definition at line 139 of file GNEPlanParents.h.
Referenced by addDemandElementChild(), checkIntegrity(), clear(), getAdditionalElements(), getFromBusStop(), getFromChargingStation(), getFromContainerStop(), getFromParkingArea(), getFromTrainStop(), and GNEPlanParents().
| GNEAdditional* GNEPlanParents::fromTAZ = nullptr |
from TAZ
Definition at line 133 of file GNEPlanParents.h.
Referenced by addDemandElementChild(), checkIntegrity(), clear(), getAdditionalElements(), and GNEPlanParents().
| GNEEdge* GNEPlanParents::toEdge = nullptr |
to edge
Definition at line 121 of file GNEPlanParents.h.
Referenced by addDemandElementChild(), checkIntegrity(), clear(), getEdges(), and GNEPlanParents().
| GNEJunction* GNEPlanParents::toJunction = nullptr |
to junction
Definition at line 130 of file GNEPlanParents.h.
Referenced by addDemandElementChild(), checkIntegrity(), clear(), getJunctions(), and GNEPlanParents().
| 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().
| GNEAdditional* GNEPlanParents::toStoppingPlace = nullptr |
to stoppingPlace
Definition at line 142 of file GNEPlanParents.h.
Referenced by addDemandElementChild(), checkIntegrity(), clear(), getAdditionalElements(), getToBusStop(), getToChargingStation(), getToContainerStop(), getToParkingArea(), getToTrainStop(), and GNEPlanParents().
| GNEAdditional* GNEPlanParents::toTAZ = nullptr |
to TAZ
Definition at line 136 of file GNEPlanParents.h.
Referenced by addDemandElementChild(), checkIntegrity(), clear(), getAdditionalElements(), and GNEPlanParents().