Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
CommonXMLStructure::PlanParameters Class Reference

plan parameters (used for group all from-to parameters related with plans) More...

#include <CommonXMLStructure.h>

Public Member Functions

void clear ()
 clear parameters
 
int getNumberOfDefinedParameters () const
 get number of defined plans
 
bool isSingleEdgePlan () const
 check if this is a single-edge plan
 
 PlanParameters ()
 
 PlanParameters (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOSAXAttributes &attrs, bool &parsedOk)
 constructor for parsing the parameters from SUMOSAXAttributes
 

Data Fields

std::vector< std::string > consecutiveEdges
 consecutive edges
 
std::string fromBusStop
 from busStop
 
std::string fromChargingStation
 from chargingStation
 
std::string fromContainerStop
 from containerStop
 
std::string fromEdge
 from edge
 
std::string fromJunction
 from junction
 
std::string fromParkingArea
 from parkingArea
 
std::string fromRoute
 from route
 
std::string fromTAZ
 from TAZ
 
std::string fromTrainStop
 from trainStop
 
std::string toBusStop
 to busStop
 
std::string toChargingStation
 to chargingStation
 
std::string toContainerStop
 to containerStop
 
std::string toEdge
 to edge
 
std::string toJunction
 to junction
 
std::string toParkingArea
 to parkingArea
 
std::string toRoute
 to route
 
std::string toTAZ
 to TAZ
 
std::string toTrainStop
 to trainStop
 

Private Member Functions

const CommonXMLStructure::SumoBaseObjectgetPreviousPlanObj (const CommonXMLStructure::SumoBaseObject *sumoBaseObject) const
 get previous plan obj
 
void resetPreviousFromAttributes (const CommonXMLStructure::SumoBaseObject *previousPlanObj, const std::string &newType, const std::string &newId) const
 reste all previous from attributes
 
void updateFromAttributes (const CommonXMLStructure::SumoBaseObject *sumoBaseObject)
 update the from attributes
 
void writeIgnoringMessage (const CommonXMLStructure::SumoBaseObject *previousPlanObj, const std::string &oldType, const std::string &oldId, const std::string &newType, const std::string &newId) const
 write ignoring message
 

Detailed Description

plan parameters (used for group all from-to parameters related with plans)

Definition at line 44 of file CommonXMLStructure.h.

Constructor & Destructor Documentation

◆ PlanParameters() [1/2]

CommonXMLStructure::PlanParameters::PlanParameters ( )

Definition at line 37 of file CommonXMLStructure.cpp.

◆ PlanParameters() [2/2]

Member Function Documentation

◆ clear()

void CommonXMLStructure::PlanParameters::clear ( )

clear parameters

Definition at line 84 of file CommonXMLStructure.cpp.

Referenced by GNEPlanCreator::clearPath(), and GNEStopFrame::getStopParameter().

Here is the caller graph for this function:

◆ getNumberOfDefinedParameters()

int CommonXMLStructure::PlanParameters::getNumberOfDefinedParameters ( ) const

get number of defined plans

Definition at line 118 of file CommonXMLStructure.cpp.

Referenced by GNEPlanCreator::getNumberOfSelectedElements().

Here is the caller graph for this function:

◆ getPreviousPlanObj()

const CommonXMLStructure::SumoBaseObject * CommonXMLStructure::PlanParameters::getPreviousPlanObj ( const CommonXMLStructure::SumoBaseObject sumoBaseObject) const
private

◆ isSingleEdgePlan()

bool CommonXMLStructure::PlanParameters::isSingleEdgePlan ( ) const

check if this is a single-edge plan

Definition at line 108 of file CommonXMLStructure.cpp.

Referenced by GNEDemandElementPlan::getPersonTripTagIcon(), GNEDemandElementPlan::getRideTagIcon(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getTransportTagIcon(), and GNEDemandElementPlan::getWalkTagIcon().

Here is the caller graph for this function:

◆ resetPreviousFromAttributes()

void CommonXMLStructure::PlanParameters::resetPreviousFromAttributes ( const CommonXMLStructure::SumoBaseObject previousPlanObj,
const std::string &  newType,
const std::string &  newId 
) const
private

reste all previous from attributes

Definition at line 220 of file CommonXMLStructure.cpp.

◆ updateFromAttributes()

void CommonXMLStructure::PlanParameters::updateFromAttributes ( const CommonXMLStructure::SumoBaseObject sumoBaseObject)
private

update the from attributes

Definition at line 168 of file CommonXMLStructure.cpp.

◆ writeIgnoringMessage()

void CommonXMLStructure::PlanParameters::writeIgnoringMessage ( const CommonXMLStructure::SumoBaseObject previousPlanObj,
const std::string &  oldType,
const std::string &  oldId,
const std::string &  newType,
const std::string &  newId 
) const
private

Field Documentation

◆ consecutiveEdges

◆ fromBusStop

◆ fromChargingStation

◆ fromContainerStop

◆ fromEdge

◆ fromJunction

◆ fromParkingArea

◆ fromRoute

std::string CommonXMLStructure::PlanParameters::fromRoute

from route

Definition at line 115 of file CommonXMLStructure.h.

Referenced by GNEPlanParents::checkIntegrity(), and GNEPlanParents::GNEPlanParents().

◆ fromTAZ

◆ fromTrainStop

◆ toBusStop

◆ toChargingStation

◆ toContainerStop

◆ toEdge

◆ toJunction

◆ toParkingArea

◆ toRoute

std::string CommonXMLStructure::PlanParameters::toRoute

◆ toTAZ

◆ toTrainStop


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