Eclipse SUMO - Simulation of Urban MObility
CommonXMLStructure::SumoBaseObject Class Reference

SumoBaseObject. More...

#include <CommonXMLStructure.h>

Collaboration diagram for CommonXMLStructure::SumoBaseObject:
[legend]

Public Member Functions

void clear ()
 clear SumoBaseObject More...
 
void setTag (const SumoXMLTag tag)
 set SumoBaseObject tag More...
 
 SumoBaseObject (SumoBaseObject *sumoBaseObjectParent)
 constructor More...
 
 ~SumoBaseObject ()
 destructor More...
 
get functions
SumoXMLTag getTag () const
 get XML myTag More...
 
SumoBaseObjectgetParentSumoBaseObject () const
 get pointer to mySumoBaseObjectParent SumoBaseObject (if is null, then is the root) More...
 
std::map< std::string, std::string > getAllAttributes () const
 get all attributes in string format More...
 
const std::string & getStringAttribute (const SumoXMLAttr attr) const
 get string attribute More...
 
int getIntAttribute (const SumoXMLAttr attr) const
 get int attribute More...
 
double getDoubleAttribute (const SumoXMLAttr attr) const
 get double attribute More...
 
bool getBoolAttribute (const SumoXMLAttr attr) const
 get bool attribute More...
 
const PositiongetPositionAttribute (const SumoXMLAttr attr) const
 get Position attribute More...
 
SUMOTime getTimeAttribute (const SumoXMLAttr attr) const
 get time attribute More...
 
SUMOTime getPeriodAttribute () const
 get 'period' attribute More...
 
const RGBColorgetColorAttribute (const SumoXMLAttr attr) const
 get color attribute More...
 
const std::vector< std::string > & getStringListAttribute (const SumoXMLAttr attr) const
 get string list attribute More...
 
const std::vector< double > & getDoubleListAttribute (const SumoXMLAttr attr) const
 get double list attribute More...
 
const PositionVectorgetPositionVectorAttribute (const SumoXMLAttr attr) const
 get PositionVector attribute More...
 
SUMOVehicleClass getVClass () const
 vehicle class More...
 
const SUMOVTypeParametergetVehicleTypeParameter () const
 get current vType More...
 
const SUMOVehicleParametergetVehicleParameter () const
 get vehicle parameters More...
 
const SUMOVehicleParameter::StopgetStopParameter () const
 get stop parameters More...
 
const std::map< std::string, std::string > & getParameters () const
 get parameters More...
 
const std::vector< SumoBaseObject * > & getSumoBaseObjectChildren () const
 get SumoBaseObject children More...
 
bool hasStringAttribute (const SumoXMLAttr attr) const
 has function More...
 
bool hasIntAttribute (const SumoXMLAttr attr) const
 check if current SumoBaseObject has the given int attribute More...
 
bool hasDoubleAttribute (const SumoXMLAttr attr) const
 check if current SumoBaseObject has the given double attribute More...
 
bool hasBoolAttribute (const SumoXMLAttr attr) const
 check if current SumoBaseObject has the given bool attribute More...
 
bool hasPositionAttribute (const SumoXMLAttr attr) const
 check if current SumoBaseObject has the given bool attribute More...
 
bool hasTimeAttribute (const SumoXMLAttr attr) const
 check if current SumoBaseObject has the given time attribute More...
 
bool hasColorAttribute (const SumoXMLAttr attr) const
 check if current SumoBaseObject has the given color attribute More...
 
bool hasStringListAttribute (const SumoXMLAttr attr) const
 check if current SumoBaseObject has the given string list attribute More...
 
bool hasDoubleListAttribute (const SumoXMLAttr attr) const
 check if current SumoBaseObject has the given double list attribute More...
 
bool hasPositionVectorAttribute (const SumoXMLAttr attr) const
 check if current SumoBaseObject has the given positionVector attribute More...
 
add functions
void addStringAttribute (const SumoXMLAttr attr, const std::string &value)
 add string attribute into current SumoBaseObject node More...
 
void addIntAttribute (const SumoXMLAttr attr, const int value)
 add int attribute into current SumoBaseObject node More...
 
void addDoubleAttribute (const SumoXMLAttr attr, const double value)
 add double attribute into current SumoBaseObject node More...
 
void addBoolAttribute (const SumoXMLAttr attr, const bool value)
 add bool attribute into current SumoBaseObject node More...
 
void addPositionAttribute (const SumoXMLAttr attr, const Position &value)
 add Position attribute into current SumoBaseObject node More...
 
void addTimeAttribute (const SumoXMLAttr attr, const SUMOTime value)
 add time attribute into current SumoBaseObject node More...
 
void addColorAttribute (const SumoXMLAttr attr, const RGBColor &value)
 add color attribute into current SumoBaseObject node More...
 
void addStringListAttribute (const SumoXMLAttr attr, const std::vector< std::string > &value)
 add string list attribute into current SumoBaseObject node More...
 
void addDoubleListAttribute (const SumoXMLAttr attr, const std::vector< double > &value)
 add double list attribute into current SumoBaseObject node More...
 
void addPositionVectorAttribute (const SumoXMLAttr attr, const PositionVector &value)
 add PositionVector attribute into current SumoBaseObject node More...
 
void setVClass (SUMOVehicleClass vClass)
 set vehicle class More...
 
void setVehicleTypeParameter (const SUMOVTypeParameter *vehicleTypeParameter)
 set vehicle type parameters More...
 
void setVehicleParameter (const SUMOVehicleParameter *vehicleParameter)
 set vehicle parameters More...
 
void setStopParameter (const SUMOVehicleParameter::Stop &stopParameter)
 add stop parameters More...
 
void addParameter (const std::string &key, const std::string &value)
 add parameter into current SumoBaseObject node More...
 

Protected Member Functions

void addSumoBaseObjectChild (SumoBaseObject *sumoBaseObject)
 add SumoBaseObject child More...
 
void removeSumoBaseObjectChild (SumoBaseObject *sumoBaseObject)
 remove SumoBaseObject child More...
 

Protected Attributes

std::map< const SumoXMLAttr, bool > myBoolAttributes
 bool attributes More...
 
std::map< const SumoXMLAttr, RGBColormyColorAttributes
 RGBColor attributes. More...
 
std::map< const SumoXMLAttr, double > myDoubleAttributes
 double attributes More...
 
std::map< const SumoXMLAttr, std::vector< double > > myDoubleListAttributes
 stringList attributes More...
 
std::map< const SumoXMLAttr, int > myIntAttributes
 int attributes More...
 
std::map< std::string, std::string > myParameters
 myParameters More...
 
std::map< const SumoXMLAttr, PositionmyPositionAttributes
 Position attributes. More...
 
std::map< const SumoXMLAttr, PositionVectormyPositionVectorAttributes
 PositionVector attributes. More...
 
SUMOVehicleParameter::Stop myStopParameter
 stop parameter More...
 
std::map< const SumoXMLAttr, std::string > myStringAttributes
 string attributes More...
 
std::map< const SumoXMLAttr, std::vector< std::string > > myStringListAttributes
 stringList attributes More...
 
std::vector< SumoBaseObject * > mySumoBaseObjectChildren
 SumoBaseObject children. More...
 
SumoBaseObjectmySumoBaseObjectParent
 pointer to SumoBaseObject parent (If is null, then is the root) More...
 
SumoXMLTag myTag
 XML myTag. More...
 
std::map< const SumoXMLAttr, SUMOTimemyTimeAttributes
 SUMOTime attributes. More...
 
SUMOVehicleClass myVClass
 vehicle class More...
 
SUMOVehicleParameter myVehicleParameter
 vehicle parameter More...
 
SUMOVTypeParameter myVehicleTypeParameter
 vehicle type parameter More...
 

Private Member Functions

void handleAttributeError (const SumoXMLAttr attr, const std::string &type) const
 handle attribute error More...
 
SumoBaseObjectoperator= (const SumoBaseObject &s)=delete
 invalidate assignment operator More...
 
 SumoBaseObject (const SumoBaseObject &s)=delete
 invalidate copy constructor More...
 

Private Attributes

bool myDefinedStopParameter
 flag for defined stop parameter More...
 
bool myDefinedVehicleParameter
 flag for defined vehicle parameter More...
 
bool myDefinedVehicleTypeParameter
 flag for defined vehicle type parameter More...
 

Detailed Description

SumoBaseObject.

Definition at line 39 of file CommonXMLStructure.h.

Constructor & Destructor Documentation

◆ SumoBaseObject() [1/2]

CommonXMLStructure::SumoBaseObject::SumoBaseObject ( SumoBaseObject sumoBaseObjectParent)

constructor

Definition at line 36 of file CommonXMLStructure.cpp.

References addSumoBaseObjectChild(), and mySumoBaseObjectParent.

◆ ~SumoBaseObject()

CommonXMLStructure::SumoBaseObject::~SumoBaseObject ( )

destructor

Definition at line 51 of file CommonXMLStructure.cpp.

◆ SumoBaseObject() [2/2]

CommonXMLStructure::SumoBaseObject::SumoBaseObject ( const SumoBaseObject s)
privatedelete

invalidate copy constructor

Member Function Documentation

◆ addBoolAttribute()

void CommonXMLStructure::SumoBaseObject::addBoolAttribute ( const SumoXMLAttr  attr,
const bool  value 
)

◆ addColorAttribute()

void CommonXMLStructure::SumoBaseObject::addColorAttribute ( const SumoXMLAttr  attr,
const RGBColor value 
)

◆ addDoubleAttribute()

void CommonXMLStructure::SumoBaseObject::addDoubleAttribute ( const SumoXMLAttr  attr,
const double  value 
)

add double attribute into current SumoBaseObject node

Definition at line 397 of file CommonXMLStructure.cpp.

Referenced by GNEEdgeDataFrame::addEdgeData(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNETAZRelDataFrame::buildTAZRelationData(), GNEWireFrame::buildWireOverView(), GNEEdgeRelDataFrame::createPath(), GNERouteFrame::createPath(), GNEAdditionalFrame::createPath(), GNEWireFrame::createPath(), GNEAttributesCreator::getAttributesAndValues(), GNEFlowEditor::getFlowAttributes(), GNENeteditAttributes::getNeteditAttributesAndValues(), GNEPOI::getSumoBaseObject(), GNEViewNet::onCmdTransformPOI(), AdditionalHandler::parseAccessAttributes(), AdditionalHandler::parseBusStopAttributes(), AdditionalHandler::parseCalibratorAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseContainerStopAttributes(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseE1Attributes(), AdditionalHandler::parseE1InstantAttributes(), AdditionalHandler::parseE2Attributes(), AdditionalHandler::parseE3Attributes(), MeanDataHandler::parseEdgeMeanData(), AdditionalHandler::parseEntryAttributes(), AdditionalHandler::parseExitAttributes(), DataHandler::parseInterval(), MeanDataHandler::parseLaneMeanData(), AdditionalHandler::parseOverheadWire(), AdditionalHandler::parseParkingAreaAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseParkingSpaceAttributes(), RouteHandler::parsePersonTrip(), AdditionalHandler::parsePOIAttributes(), AdditionalHandler::parsePolyAttributes(), AdditionalHandler::parseRerouterAttributes(), RouteHandler::parseRide(), RouteHandler::parseRoute(), AdditionalHandler::parseRouteProbRerouteAttributes(), AdditionalHandler::parseTAZSinkAttributes(), AdditionalHandler::parseTAZSourceAttributes(), AdditionalHandler::parseTractionSubstation(), AdditionalHandler::parseTrainStopAttributes(), RouteHandler::parseTranship(), RouteHandler::parseTransport(), RouteHandler::parseWalk(), GNEShapeFrame::processClickPOI(), GNEShapeFrame::processClickPOIGeo(), and GNEShapeFrame::processClickPOILanes().

◆ addDoubleListAttribute()

void CommonXMLStructure::SumoBaseObject::addDoubleListAttribute ( const SumoXMLAttr  attr,
const std::vector< double > &  value 
)

add double list attribute into current SumoBaseObject node

Definition at line 433 of file CommonXMLStructure.cpp.

Referenced by RouteHandler::parseRouteDistribution(), and RouteHandler::parseVTypeDistribution().

Here is the caller graph for this function:

◆ addIntAttribute()

void CommonXMLStructure::SumoBaseObject::addIntAttribute ( const SumoXMLAttr  attr,
const int  value 
)

◆ addParameter()

void CommonXMLStructure::SumoBaseObject::addParameter ( const std::string &  key,
const std::string &  value 
)

add parameter into current SumoBaseObject node

Definition at line 506 of file CommonXMLStructure.cpp.

Referenced by DataHandler::getAttributes().

Here is the caller graph for this function:

◆ addPositionAttribute()

void CommonXMLStructure::SumoBaseObject::addPositionAttribute ( const SumoXMLAttr  attr,
const Position value 
)

◆ addPositionVectorAttribute()

void CommonXMLStructure::SumoBaseObject::addPositionVectorAttribute ( const SumoXMLAttr  attr,
const PositionVector value 
)

add PositionVector attribute into current SumoBaseObject node

Definition at line 439 of file CommonXMLStructure.cpp.

Referenced by GNEAttributesCreator::getAttributesAndValues(), AdditionalHandler::parseJpsObstacleAttributes(), AdditionalHandler::parseJpsWalkableAreaAttributes(), AdditionalHandler::parsePolyAttributes(), AdditionalHandler::parseTAZAttributes(), GNEShapeFrame::shapeDrawed(), and GNETAZFrame::shapeDrawed().

Here is the caller graph for this function:

◆ addStringAttribute()

void CommonXMLStructure::SumoBaseObject::addStringAttribute ( const SumoXMLAttr  attr,
const std::string &  value 
)

add string attribute into current SumoBaseObject node

Definition at line 385 of file CommonXMLStructure.cpp.

Referenced by GNEEdgeDataFrame::addEdgeData(), GNEVehicleFrame::addVehicle(), GNEAdditionalFrame::buildAdditionalCommonAttributes(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEContainerFrame::buildContainer(), GNERouteHandler::buildContainerPlan(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPersonPlan(), GNETAZRelDataFrame::buildTAZRelationData(), GNEVehicleFrame::buildVehicleOverRoute(), GNEWireFrame::buildWireOverView(), GNEAdditionalFrame::createBaseAdditionalObject(), GNEWireFrame::createBaseWireObject(), GNEEdgeRelDataFrame::createPath(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNEAdditionalFrame::createPath(), GNEWireFrame::createPath(), GNEAttributesCreator::getAttributesAndValues(), GNEStopFrame::getStopParameter(), GNEPOI::getSumoBaseObject(), GNEViewNet::onCmdTransformPOI(), AdditionalHandler::parseAccessAttributes(), AdditionalHandler::parseBusStopAttributes(), AdditionalHandler::parseCalibratorAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseClosingLaneRerouteAttributes(), AdditionalHandler::parseClosingRerouteAttributes(), AdditionalHandler::parseContainerStopAttributes(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseE1Attributes(), AdditionalHandler::parseE1InstantAttributes(), AdditionalHandler::parseE2Attributes(), AdditionalHandler::parseE3Attributes(), DataHandler::parseEdgeData(), MeanDataHandler::parseEdgeMeanData(), DataHandler::parseEdgeRelationData(), AdditionalHandler::parseEntryAttributes(), AdditionalHandler::parseExitAttributes(), RouteHandler::parseFlow(), DataHandler::parseInterval(), AdditionalHandler::parseJpsObstacleAttributes(), AdditionalHandler::parseJpsWalkableAreaAttributes(), MeanDataHandler::parseLaneMeanData(), AdditionalHandler::parseOverheadWire(), AdditionalHandler::parseOverheadWireClamp(), AdditionalHandler::parseParkingAreaAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseParkingSpaceAttributes(), RouteHandler::parsePersonTrip(), AdditionalHandler::parsePOIAttributes(), AdditionalHandler::parsePolyAttributes(), AdditionalHandler::parseRerouterAttributes(), RouteHandler::parseRide(), RouteHandler::parseRoute(), RouteHandler::parseRouteDistribution(), AdditionalHandler::parseRouteProbeAttributes(), AdditionalHandler::parseRouteProbRerouteAttributes(), AdditionalHandler::parseTAZAttributes(), DataHandler::parseTAZRelationData(), AdditionalHandler::parseTAZSinkAttributes(), AdditionalHandler::parseTAZSourceAttributes(), AdditionalHandler::parseTractionSubstation(), AdditionalHandler::parseTrainStopAttributes(), RouteHandler::parseTranship(), RouteHandler::parseTransport(), RouteHandler::parseTrip(), AdditionalHandler::parseVaporizerAttributes(), AdditionalHandler::parseVariableSpeedSignAttributes(), AdditionalHandler::parseVariableSpeedSignStepAttributes(), RouteHandler::parseVTypeDistribution(), RouteHandler::parseWalk(), GNEShapeFrame::processClickPOI(), GNEShapeFrame::processClickPOIGeo(), GNEShapeFrame::processClickPOILanes(), GNEShapeFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNERouteHandler::transformToRouteFlow(), and GNERouteHandler::transformToVehicle().

◆ addStringListAttribute()

void CommonXMLStructure::SumoBaseObject::addStringListAttribute ( const SumoXMLAttr  attr,
const std::vector< std::string > &  value 
)

add string list attribute into current SumoBaseObject node

Definition at line 427 of file CommonXMLStructure.cpp.

Referenced by GNEAdditionalFrame::buildAdditionalCommonAttributes(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNEAdditionalFrame::createPath(), GNEWireFrame::createPath(), GNEAttributesCreator::getAttributesAndValues(), AdditionalHandler::parseBusStopAttributes(), AdditionalHandler::parseCalibratorAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseContainerStopAttributes(), AdditionalHandler::parseE1Attributes(), AdditionalHandler::parseE1InstantAttributes(), AdditionalHandler::parseE2Attributes(), AdditionalHandler::parseE3Attributes(), MeanDataHandler::parseEdgeMeanData(), RouteHandler::parseFlow(), MeanDataHandler::parseLaneMeanData(), AdditionalHandler::parseOverheadWire(), AdditionalHandler::parseParkingAreaAttributes(), RouteHandler::parsePersonTrip(), AdditionalHandler::parseRerouterAttributes(), RouteHandler::parseRide(), RouteHandler::parseRoute(), RouteHandler::parseRouteDistribution(), AdditionalHandler::parseTAZAttributes(), AdditionalHandler::parseTrainStopAttributes(), RouteHandler::parseTranship(), RouteHandler::parseTransport(), RouteHandler::parseTrip(), AdditionalHandler::parseVariableSpeedSignAttributes(), RouteHandler::parseVTypeDistribution(), RouteHandler::parseWalk(), and GNETAZFrame::shapeDrawed().

Here is the caller graph for this function:

◆ addSumoBaseObjectChild()

void CommonXMLStructure::SumoBaseObject::addSumoBaseObjectChild ( SumoBaseObject sumoBaseObject)
protected

add SumoBaseObject child

Definition at line 521 of file CommonXMLStructure.cpp.

Referenced by SumoBaseObject().

Here is the caller graph for this function:

◆ addTimeAttribute()

◆ clear()

void CommonXMLStructure::SumoBaseObject::clear ( )

clear SumoBaseObject

Definition at line 64 of file CommonXMLStructure.cpp.

References SUMO_TAG_NOTHING, and SVC_IGNORING.

Referenced by GNEVehicleFrame::addVehicle(), GNEContainerFrame::buildContainer(), GNERouteHandler::buildContainerPlan(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPersonPlan(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), and GNEStopFrame::getStopParameter().

Here is the caller graph for this function:

◆ getAllAttributes()

std::map< std::string, std::string > CommonXMLStructure::SumoBaseObject::getAllAttributes ( ) const

get all attributes in string format

Definition at line 112 of file CommonXMLStructure.cpp.

References time2string(), and toString().

Referenced by GNEContainerFrame::buildContainer(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::buildVehicleOverRoute(), and GNEVehicleFrame::createPath().

Here is the caller graph for this function:

◆ getBoolAttribute()

bool CommonXMLStructure::SumoBaseObject::getBoolAttribute ( const SumoXMLAttr  attr) const

get bool attribute

Definition at line 182 of file CommonXMLStructure.cpp.

Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNEStopFrame::getStopParameter(), AdditionalHandler::parseSumoBaseObject(), MeanDataHandler::parseSumoBaseObject(), and GNEShapeFrame::shapeDrawed().

Here is the caller graph for this function:

◆ getColorAttribute()

const RGBColor & CommonXMLStructure::SumoBaseObject::getColorAttribute ( const SumoXMLAttr  attr) const

get color attribute

Definition at line 232 of file CommonXMLStructure.cpp.

Referenced by AdditionalHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ getDoubleAttribute()

double CommonXMLStructure::SumoBaseObject::getDoubleAttribute ( const SumoXMLAttr  attr) const

◆ getDoubleListAttribute()

const std::vector< double > & CommonXMLStructure::SumoBaseObject::getDoubleListAttribute ( const SumoXMLAttr  attr) const

get double list attribute

Definition at line 254 of file CommonXMLStructure.cpp.

Referenced by RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ getIntAttribute()

int CommonXMLStructure::SumoBaseObject::getIntAttribute ( const SumoXMLAttr  attr) const

get int attribute

Definition at line 160 of file CommonXMLStructure.cpp.

Referenced by AdditionalHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ getParameters()

const std::map< std::string, std::string > & CommonXMLStructure::SumoBaseObject::getParameters ( ) const

get parameters

Definition at line 313 of file CommonXMLStructure.cpp.

Referenced by AdditionalHandler::parseSumoBaseObject(), DataHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ getParentSumoBaseObject()

CommonXMLStructure::SumoBaseObject * CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject ( ) const

get pointer to mySumoBaseObjectParent SumoBaseObject (if is null, then is the root)

Definition at line 106 of file CommonXMLStructure.cpp.

Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalFrame::buildAdditionalOverView(), GNEAdditionalHandler::buildCalibratorFlow(), GNERouteHandler::buildContainerPlan(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNERouteHandler::buildEmbeddedRoute(), GNEAdditionalHandler::buildParkingSpace(), GNERouteHandler::buildPersonPlan(), GNEAdditionalHandler::buildRerouterInterval(), GNERouteHandler::buildRoute(), GNERouteHandler::buildStop(), GNEDataHandler::buildTAZRelationData(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNERouteHandler::buildVType(), AdditionalHandler::checkParent(), RouteHandler::checkParent(), DataHandler::checkParent(), CommonXMLStructure::closeSUMOBaseOBject(), GNEAdditionalFrame::createBaseAdditionalObject(), GNEWireFrame::createBaseWireObject(), RouteHandler::endParseAttributes(), GNEAdditionalHandler::getAdditionalParent(), GNERouteHandler::getContainerParent(), GNERouteHandler::getPersonParent(), GNERouteHandler::getPreviousPlanObj(), GNEAdditionalHandler::getRerouterIntervalParent(), RouteHandler::isEmbeddedRoute(), AdditionalHandler::parseCalibratorFlowAttributes(), RouteHandler::parseNestedCFM(), AdditionalHandler::parseParameters(), RouteHandler::parseParameters(), and AdditionalHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ getPeriodAttribute()

SUMOTime CommonXMLStructure::SumoBaseObject::getPeriodAttribute ( ) const

get 'period' attribute

Definition at line 215 of file CommonXMLStructure.cpp.

References SUMO_ATTR_FREQUENCY, and SUMO_ATTR_PERIOD.

Referenced by AdditionalHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ getPositionAttribute()

const Position & CommonXMLStructure::SumoBaseObject::getPositionAttribute ( const SumoXMLAttr  attr) const

get Position attribute

Definition at line 193 of file CommonXMLStructure.cpp.

Referenced by AdditionalHandler::parseSumoBaseObject(), and GNETAZFrame::shapeDrawed().

Here is the caller graph for this function:

◆ getPositionVectorAttribute()

const PositionVector & CommonXMLStructure::SumoBaseObject::getPositionVectorAttribute ( const SumoXMLAttr  attr) const

get PositionVector attribute

Definition at line 265 of file CommonXMLStructure.cpp.

Referenced by AdditionalHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ getStopParameter()

const SUMOVehicleParameter::Stop & CommonXMLStructure::SumoBaseObject::getStopParameter ( ) const

get stop parameters

Definition at line 302 of file CommonXMLStructure.cpp.

References TL.

Referenced by GNERouteHandler::buildStop(), and RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ getStringAttribute()

const std::string & CommonXMLStructure::SumoBaseObject::getStringAttribute ( const SumoXMLAttr  attr) const

get string attribute

Definition at line 149 of file CommonXMLStructure.cpp.

Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalFrame::buildAdditionalCommonAttributes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEAdditionalHandler::buildCalibratorFlow(), GNEContainerFrame::buildContainer(), GNERouteHandler::buildContainerPlan(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNEAdditionalHandler::buildParkingSpace(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPersonPlan(), GNEAdditionalHandler::buildRerouterInterval(), GNERouteHandler::buildRoute(), GNEDataHandler::buildTAZRelationData(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNEVehicleFrame::buildVehicleOverRoute(), GNERouteHandler::buildVType(), AdditionalHandler::checkParent(), RouteHandler::checkParent(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), RouteHandler::endParseAttributes(), GNEAdditionalHandler::getAdditionalParent(), GNERouteHandler::getContainerParent(), GNERouteHandler::getDistributionElements(), GNERouteHandler::getPersonParent(), GNEAdditionalHandler::getRerouterIntervalParent(), GNEStopFrame::getStopParameter(), AdditionalHandler::parseSumoBaseObject(), DataHandler::parseSumoBaseObject(), MeanDataHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ getStringListAttribute()

const std::vector< std::string > & CommonXMLStructure::SumoBaseObject::getStringListAttribute ( const SumoXMLAttr  attr) const

get string list attribute

Definition at line 243 of file CommonXMLStructure.cpp.

Referenced by GNEAdditionalFrame::buildAdditionalCommonAttributes(), GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildFlow(), GNERouteHandler::buildPersonPlan(), GNERouteHandler::buildTrip(), GNEStopFrame::getStopParameter(), AdditionalHandler::parseSumoBaseObject(), MeanDataHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ getSumoBaseObjectChildren()

const std::vector< CommonXMLStructure::SumoBaseObject * > & CommonXMLStructure::SumoBaseObject::getSumoBaseObjectChildren ( ) const

get SumoBaseObject children

Definition at line 319 of file CommonXMLStructure.cpp.

Referenced by GNEStopFrame::addStop(), GNEAdditionalHandler::buildTAZ(), GNERouteHandler::getPreviousPlanObj(), AdditionalHandler::parseSumoBaseObject(), DataHandler::parseSumoBaseObject(), MeanDataHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ getTag()

◆ getTimeAttribute()

SUMOTime CommonXMLStructure::SumoBaseObject::getTimeAttribute ( const SumoXMLAttr  attr) const

◆ getVClass()

SUMOVehicleClass CommonXMLStructure::SumoBaseObject::getVClass ( ) const

vehicle class

Definition at line 276 of file CommonXMLStructure.cpp.

Referenced by RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ getVehicleParameter()

const SUMOVehicleParameter & CommonXMLStructure::SumoBaseObject::getVehicleParameter ( ) const

get vehicle parameters

Definition at line 292 of file CommonXMLStructure.cpp.

References TL.

Referenced by GNERouteHandler::buildEmbeddedRoute(), AdditionalHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ getVehicleTypeParameter()

const SUMOVTypeParameter & CommonXMLStructure::SumoBaseObject::getVehicleTypeParameter ( ) const

get current vType

Definition at line 282 of file CommonXMLStructure.cpp.

References TL.

Referenced by RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ handleAttributeError()

void CommonXMLStructure::SumoBaseObject::handleAttributeError ( const SumoXMLAttr  attr,
const std::string &  type 
) const
private

handle attribute error

Definition at line 539 of file CommonXMLStructure.cpp.

References TL, toString(), and WRITE_ERRORF.

◆ hasBoolAttribute()

bool CommonXMLStructure::SumoBaseObject::hasBoolAttribute ( const SumoXMLAttr  attr) const

check if current SumoBaseObject has the given bool attribute

Definition at line 343 of file CommonXMLStructure.cpp.

Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNEStopFrame::getStopParameter(), and GNEShapeFrame::shapeDrawed().

Here is the caller graph for this function:

◆ hasColorAttribute()

bool CommonXMLStructure::SumoBaseObject::hasColorAttribute ( const SumoXMLAttr  attr) const

check if current SumoBaseObject has the given color attribute

Definition at line 361 of file CommonXMLStructure.cpp.

◆ hasDoubleAttribute()

bool CommonXMLStructure::SumoBaseObject::hasDoubleAttribute ( const SumoXMLAttr  attr) const

check if current SumoBaseObject has the given double attribute

Definition at line 337 of file CommonXMLStructure.cpp.

Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNEStopFrame::getStopParameter(), and AdditionalHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ hasDoubleListAttribute()

bool CommonXMLStructure::SumoBaseObject::hasDoubleListAttribute ( const SumoXMLAttr  attr) const

check if current SumoBaseObject has the given double list attribute

Definition at line 373 of file CommonXMLStructure.cpp.

◆ hasIntAttribute()

bool CommonXMLStructure::SumoBaseObject::hasIntAttribute ( const SumoXMLAttr  attr) const

check if current SumoBaseObject has the given int attribute

Definition at line 331 of file CommonXMLStructure.cpp.

◆ hasPositionAttribute()

bool CommonXMLStructure::SumoBaseObject::hasPositionAttribute ( const SumoXMLAttr  attr) const

check if current SumoBaseObject has the given bool attribute

Definition at line 349 of file CommonXMLStructure.cpp.

◆ hasPositionVectorAttribute()

bool CommonXMLStructure::SumoBaseObject::hasPositionVectorAttribute ( const SumoXMLAttr  attr) const

check if current SumoBaseObject has the given positionVector attribute

Definition at line 379 of file CommonXMLStructure.cpp.

◆ hasStringAttribute()

◆ hasStringListAttribute()

bool CommonXMLStructure::SumoBaseObject::hasStringListAttribute ( const SumoXMLAttr  attr) const

check if current SumoBaseObject has the given string list attribute

Definition at line 367 of file CommonXMLStructure.cpp.

Referenced by GNEAdditionalFrame::buildAdditionalCommonAttributes(), GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildFlow(), GNERouteHandler::buildPersonPlan(), GNERouteHandler::buildTrip(), and GNEStopFrame::getStopParameter().

Here is the caller graph for this function:

◆ hasTimeAttribute()

bool CommonXMLStructure::SumoBaseObject::hasTimeAttribute ( const SumoXMLAttr  attr) const

check if current SumoBaseObject has the given time attribute

Definition at line 355 of file CommonXMLStructure.cpp.

Referenced by GNEContainerFrame::buildContainer(), GNERouteHandler::buildContainerPlan(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPersonPlan(), GNEVehicleFrame::buildVehicleOverRoute(), GNEVehicleFrame::createPath(), GNEAdditionalHandler::getRerouterIntervalParent(), and GNEStopFrame::getStopParameter().

Here is the caller graph for this function:

◆ operator=()

SumoBaseObject& CommonXMLStructure::SumoBaseObject::operator= ( const SumoBaseObject s)
privatedelete

invalidate assignment operator

◆ removeSumoBaseObjectChild()

void CommonXMLStructure::SumoBaseObject::removeSumoBaseObjectChild ( SumoBaseObject sumoBaseObject)
protected

remove SumoBaseObject child

Definition at line 528 of file CommonXMLStructure.cpp.

◆ setStopParameter()

void CommonXMLStructure::SumoBaseObject::setStopParameter ( const SUMOVehicleParameter::Stop stopParameter)

add stop parameters

Definition at line 475 of file CommonXMLStructure.cpp.

References SUMO_ATTR_BUS_STOP, SUMO_ATTR_CHARGING_STATION, SUMO_ATTR_CONTAINER_STOP, SUMO_ATTR_EDGE, SUMO_ATTR_LANE, and SUMO_ATTR_PARKING_AREA.

Referenced by GNEStopFrame::getStopParameter(), and RouteHandler::parseStop().

Here is the caller graph for this function:

◆ setTag()

void CommonXMLStructure::SumoBaseObject::setTag ( const SumoXMLTag  tag)

set SumoBaseObject tag

Definition at line 94 of file CommonXMLStructure.cpp.

Referenced by GNEContainerFrame::buildContainer(), GNERouteHandler::buildContainerPlan(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPersonPlan(), GNEVehicleFrame::buildVehicleOverRoute(), GNEAdditionalFrame::createBaseAdditionalObject(), GNEShapeFrame::createBaseShapeObject(), GNEWireFrame::createBaseWireObject(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNEStopFrame::getStopParameter(), GNEPOI::getSumoBaseObject(), CommonXMLStructure::openSUMOBaseOBject(), AdditionalHandler::parseAccessAttributes(), AdditionalHandler::parseBusStopAttributes(), AdditionalHandler::parseCalibratorAttributes(), AdditionalHandler::parseCalibratorFlowAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseClosingLaneRerouteAttributes(), AdditionalHandler::parseClosingRerouteAttributes(), RouteHandler::parseContainer(), RouteHandler::parseContainerFlow(), AdditionalHandler::parseContainerStopAttributes(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseE1Attributes(), AdditionalHandler::parseE1InstantAttributes(), AdditionalHandler::parseE2Attributes(), AdditionalHandler::parseE3Attributes(), DataHandler::parseEdgeData(), MeanDataHandler::parseEdgeMeanData(), DataHandler::parseEdgeRelationData(), AdditionalHandler::parseEntryAttributes(), AdditionalHandler::parseExitAttributes(), RouteHandler::parseFlow(), DataHandler::parseInterval(), AdditionalHandler::parseJpsObstacleAttributes(), AdditionalHandler::parseJpsWalkableAreaAttributes(), MeanDataHandler::parseLaneMeanData(), AdditionalHandler::parseOverheadWire(), AdditionalHandler::parseOverheadWireClamp(), AdditionalHandler::parseParkingAreaAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseParkingSpaceAttributes(), RouteHandler::parsePerson(), RouteHandler::parsePersonFlow(), RouteHandler::parsePersonTrip(), AdditionalHandler::parsePOIAttributes(), AdditionalHandler::parsePolyAttributes(), AdditionalHandler::parseRerouterAttributes(), AdditionalHandler::parseRerouterIntervalAttributes(), RouteHandler::parseRide(), RouteHandler::parseRoute(), RouteHandler::parseRouteDistribution(), AdditionalHandler::parseRouteProbeAttributes(), AdditionalHandler::parseRouteProbRerouteAttributes(), RouteHandler::parseStop(), AdditionalHandler::parseTAZAttributes(), DataHandler::parseTAZRelationData(), AdditionalHandler::parseTAZSinkAttributes(), AdditionalHandler::parseTAZSourceAttributes(), AdditionalHandler::parseTractionSubstation(), AdditionalHandler::parseTrainStopAttributes(), RouteHandler::parseTranship(), RouteHandler::parseTransport(), RouteHandler::parseTrip(), AdditionalHandler::parseVaporizerAttributes(), AdditionalHandler::parseVariableSpeedSignAttributes(), AdditionalHandler::parseVariableSpeedSignStepAttributes(), RouteHandler::parseVehicle(), RouteHandler::parseVType(), RouteHandler::parseVTypeDistribution(), RouteHandler::parseWalk(), GNERouteHandler::transformToRouteFlow(), and GNERouteHandler::transformToVehicle().

◆ setVClass()

void CommonXMLStructure::SumoBaseObject::setVClass ( SUMOVehicleClass  vClass)

set vehicle class

Definition at line 445 of file CommonXMLStructure.cpp.

Referenced by RouteHandler::parseRoute().

Here is the caller graph for this function:

◆ setVehicleParameter()

◆ setVehicleTypeParameter()

void CommonXMLStructure::SumoBaseObject::setVehicleTypeParameter ( const SUMOVTypeParameter vehicleTypeParameter)

set vehicle type parameters

Definition at line 451 of file CommonXMLStructure.cpp.

References SUMO_ATTR_ID.

Referenced by RouteHandler::parseVType().

Here is the caller graph for this function:

Field Documentation

◆ myBoolAttributes

std::map<const SumoXMLAttr, bool> CommonXMLStructure::SumoBaseObject::myBoolAttributes
protected

bool attributes

Definition at line 221 of file CommonXMLStructure.h.

◆ myColorAttributes

std::map<const SumoXMLAttr, RGBColor> CommonXMLStructure::SumoBaseObject::myColorAttributes
protected

RGBColor attributes.

Definition at line 230 of file CommonXMLStructure.h.

◆ myDefinedStopParameter

bool CommonXMLStructure::SumoBaseObject::myDefinedStopParameter
private

flag for defined stop parameter

Definition at line 273 of file CommonXMLStructure.h.

◆ myDefinedVehicleParameter

bool CommonXMLStructure::SumoBaseObject::myDefinedVehicleParameter
private

flag for defined vehicle parameter

Definition at line 270 of file CommonXMLStructure.h.

◆ myDefinedVehicleTypeParameter

bool CommonXMLStructure::SumoBaseObject::myDefinedVehicleTypeParameter
private

flag for defined vehicle type parameter

Definition at line 267 of file CommonXMLStructure.h.

◆ myDoubleAttributes

std::map<const SumoXMLAttr, double> CommonXMLStructure::SumoBaseObject::myDoubleAttributes
protected

double attributes

Definition at line 218 of file CommonXMLStructure.h.

◆ myDoubleListAttributes

std::map<const SumoXMLAttr, std::vector<double> > CommonXMLStructure::SumoBaseObject::myDoubleListAttributes
protected

stringList attributes

Definition at line 236 of file CommonXMLStructure.h.

◆ myIntAttributes

std::map<const SumoXMLAttr, int> CommonXMLStructure::SumoBaseObject::myIntAttributes
protected

int attributes

Definition at line 215 of file CommonXMLStructure.h.

◆ myParameters

std::map<std::string, std::string> CommonXMLStructure::SumoBaseObject::myParameters
protected

myParameters

Definition at line 242 of file CommonXMLStructure.h.

◆ myPositionAttributes

std::map<const SumoXMLAttr, Position> CommonXMLStructure::SumoBaseObject::myPositionAttributes
protected

Position attributes.

Definition at line 224 of file CommonXMLStructure.h.

◆ myPositionVectorAttributes

std::map<const SumoXMLAttr, PositionVector> CommonXMLStructure::SumoBaseObject::myPositionVectorAttributes
protected

PositionVector attributes.

Definition at line 239 of file CommonXMLStructure.h.

◆ myStopParameter

SUMOVehicleParameter::Stop CommonXMLStructure::SumoBaseObject::myStopParameter
protected

stop parameter

Definition at line 257 of file CommonXMLStructure.h.

◆ myStringAttributes

std::map<const SumoXMLAttr, std::string> CommonXMLStructure::SumoBaseObject::myStringAttributes
protected

string attributes

Definition at line 212 of file CommonXMLStructure.h.

◆ myStringListAttributes

std::map<const SumoXMLAttr, std::vector<std::string> > CommonXMLStructure::SumoBaseObject::myStringListAttributes
protected

stringList attributes

Definition at line 233 of file CommonXMLStructure.h.

◆ mySumoBaseObjectChildren

std::vector<SumoBaseObject*> CommonXMLStructure::SumoBaseObject::mySumoBaseObjectChildren
protected

SumoBaseObject children.

Definition at line 245 of file CommonXMLStructure.h.

◆ mySumoBaseObjectParent

SumoBaseObject* CommonXMLStructure::SumoBaseObject::mySumoBaseObjectParent
protected

pointer to SumoBaseObject parent (If is null, then is the root)

Definition at line 206 of file CommonXMLStructure.h.

Referenced by SumoBaseObject().

◆ myTag

SumoXMLTag CommonXMLStructure::SumoBaseObject::myTag
protected

XML myTag.

Definition at line 209 of file CommonXMLStructure.h.

◆ myTimeAttributes

std::map<const SumoXMLAttr, SUMOTime> CommonXMLStructure::SumoBaseObject::myTimeAttributes
protected

SUMOTime attributes.

Definition at line 227 of file CommonXMLStructure.h.

◆ myVClass

SUMOVehicleClass CommonXMLStructure::SumoBaseObject::myVClass
protected

vehicle class

Definition at line 248 of file CommonXMLStructure.h.

◆ myVehicleParameter

SUMOVehicleParameter CommonXMLStructure::SumoBaseObject::myVehicleParameter
protected

vehicle parameter

Definition at line 254 of file CommonXMLStructure.h.

◆ myVehicleTypeParameter

SUMOVTypeParameter CommonXMLStructure::SumoBaseObject::myVehicleTypeParameter
protected

vehicle type parameter

Definition at line 251 of file CommonXMLStructure.h.


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