Eclipse SUMO - Simulation of Urban MObility
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 More...
 
int getNumberOfDefinedParameters () const
 get number of defined plans More...
 
bool isSingleEdgePlan () const
 check if this is a single-edge plan More...
 
 PlanParameters ()
 
 PlanParameters (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOSAXAttributes &attrs, bool &parsedOk)
 constructor for parsing the parameters from SUMOSAXAttributes More...
 

Data Fields

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

Private Member Functions

const CommonXMLStructure::SumoBaseObjectgetPreviousPlanObj (const CommonXMLStructure::SumoBaseObject *sumoBaseObject) const
 get previous plan obj More...
 
void resetPreviousFromAttributes (const CommonXMLStructure::SumoBaseObject *previousPlanObj, const std::string &newType, const std::string &newId) const
 reste all previous from attributes More...
 
void updateFromAttributes (const CommonXMLStructure::SumoBaseObject *sumoBaseObject)
 update the from attributes More...
 
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 More...
 

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 82 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 116 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 106 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 218 of file CommonXMLStructure.cpp.

◆ updateFromAttributes()

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

update the from attributes

Definition at line 166 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: