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 addChildElements (GNEDemandElement *element)
 add the given 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 54 of file GNEPlanParents.h.

Constructor & Destructor Documentation

◆ GNEPlanParents() [1/2]

GNEPlanParents::GNEPlanParents ( )

default constructor

Definition at line 50 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 53 of file GNEPlanParents.cpp.

References consecutiveEdges, CommonXMLStructure::PlanParameters::consecutiveEdges, CommonXMLStructure::PlanParameters::fromBusStop, CommonXMLStructure::PlanParameters::fromChargingStation, CommonXMLStructure::PlanParameters::fromContainerStop, fromEdge, CommonXMLStructure::PlanParameters::fromEdge, fromJunction, CommonXMLStructure::PlanParameters::fromJunction, CommonXMLStructure::PlanParameters::fromParkingArea, fromRoute, CommonXMLStructure::PlanParameters::fromRoute, fromStoppingPlace, fromTAZ, CommonXMLStructure::PlanParameters::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, toEdge, CommonXMLStructure::PlanParameters::toEdge, toJunction, CommonXMLStructure::PlanParameters::toJunction, CommonXMLStructure::PlanParameters::toParkingArea, toRoute, CommonXMLStructure::PlanParameters::toRoute, toStoppingPlace, toTAZ, CommonXMLStructure::PlanParameters::toTAZ, and CommonXMLStructure::PlanParameters::toTrainStop.

Member Function Documentation

◆ addChildElements()

void GNEPlanParents::addChildElements ( GNEDemandElement element)

add the given element in the element as child

Definition at line 174 of file GNEPlanParents.cpp.

References GNEHierarchicalElement::addChildElement(), 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 113 of file GNEPlanParents.cpp.

References CommonXMLStructure::PlanParameters::fromBusStop, CommonXMLStructure::PlanParameters::fromChargingStation, CommonXMLStructure::PlanParameters::fromContainerStop, fromEdge, CommonXMLStructure::PlanParameters::fromEdge, fromJunction, CommonXMLStructure::PlanParameters::fromJunction, CommonXMLStructure::PlanParameters::fromParkingArea, fromRoute, CommonXMLStructure::PlanParameters::fromRoute, fromStoppingPlace, fromTAZ, CommonXMLStructure::PlanParameters::fromTAZ, CommonXMLStructure::PlanParameters::fromTrainStop, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), TLF, CommonXMLStructure::PlanParameters::toBusStop, CommonXMLStructure::PlanParameters::toChargingStation, CommonXMLStructure::PlanParameters::toContainerStop, toEdge, CommonXMLStructure::PlanParameters::toEdge, toJunction, CommonXMLStructure::PlanParameters::toJunction, CommonXMLStructure::PlanParameters::toParkingArea, toRoute, CommonXMLStructure::PlanParameters::toRoute, toStoppingPlace, toString(), toTAZ, CommonXMLStructure::PlanParameters::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 358 of file GNEPlanParents.cpp.

References fromStoppingPlace, fromTAZ, toStoppingPlace, and toTAZ.

◆ getDemandElements()

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

get demand elements (used in plan constructors)

Definition at line 377 of file GNEPlanParents.cpp.

References fromRoute, and toRoute.

◆ getEdges()

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

get edges (used in plan constructors)

Definition at line 341 of file GNEPlanParents.cpp.

References consecutiveEdges, fromEdge, and toEdge.

◆ getFromBusStop()

bool GNEPlanParents::getFromBusStop ( ) const

◆ getFromChargingStation()

bool GNEPlanParents::getFromChargingStation ( ) const

◆ getFromContainerStop()

bool GNEPlanParents::getFromContainerStop ( ) const

◆ getFromParkingArea()

bool GNEPlanParents::getFromParkingArea ( ) const

◆ getFromTrainStop()

bool GNEPlanParents::getFromTrainStop ( ) const

◆ getJunctions()

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

get junctions (used in plan constructors)

Definition at line 328 of file GNEPlanParents.cpp.

References fromJunction, and toJunction.

◆ getToBusStop()

bool GNEPlanParents::getToBusStop ( ) const

◆ getToChargingStation()

bool GNEPlanParents::getToChargingStation ( ) const

◆ getToContainerStop()

bool GNEPlanParents::getToContainerStop ( ) const

◆ getToParkingArea()

bool GNEPlanParents::getToParkingArea ( ) const

◆ getToTrainStop()

bool GNEPlanParents::getToTrainStop ( ) const

Field Documentation

◆ consecutiveEdges

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

edges

Definition at line 127 of file GNEPlanParents.h.

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

◆ fromEdge

GNEEdge* GNEPlanParents::fromEdge = nullptr

from edge

Definition at line 121 of file GNEPlanParents.h.

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

◆ fromJunction

GNEJunction* GNEPlanParents::fromJunction = nullptr

from junction

Definition at line 130 of file GNEPlanParents.h.

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

◆ fromRoute

GNEDemandElement* GNEPlanParents::fromRoute = nullptr

from route (currently only used by walks)

Definition at line 148 of file GNEPlanParents.h.

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

◆ fromStoppingPlace

◆ fromTAZ

GNEAdditional* GNEPlanParents::fromTAZ = nullptr

from TAZ

Definition at line 136 of file GNEPlanParents.h.

Referenced by addChildElements(), checkIntegrity(), clear(), getAdditionalElements(), and GNEPlanParents().

◆ toEdge

GNEEdge* GNEPlanParents::toEdge = nullptr

to edge

Definition at line 124 of file GNEPlanParents.h.

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

◆ toJunction

GNEJunction* GNEPlanParents::toJunction = nullptr

to junction

Definition at line 133 of file GNEPlanParents.h.

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

◆ toRoute

GNEDemandElement* GNEPlanParents::toRoute = nullptr

to route (currently only used by walks)

Definition at line 151 of file GNEPlanParents.h.

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

◆ toStoppingPlace

◆ toTAZ

GNEAdditional* GNEPlanParents::toTAZ = nullptr

to TAZ

Definition at line 139 of file GNEPlanParents.h.

Referenced by addChildElements(), checkIntegrity(), clear(), getAdditionalElements(), and GNEPlanParents().


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