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

SumoBaseObject. More...

#include <CommonXMLStructure.h>

Collaboration diagram for CommonXMLStructure::SumoBaseObject:
[legend]

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

std::map< const SumoXMLAttr, bool > myBoolAttributes
 bool attributes
std::map< const SumoXMLAttr, RGBColormyColorAttributes
 RGBColor attributes.
std::map< const SumoXMLAttr, double > myDoubleAttributes
 double attributes
std::map< const SumoXMLAttr, std::vector< double > > myDoubleListAttributes
 stringList attributes
std::map< const SumoXMLAttr, int > myIntAttributes
 int attributes
std::map< std::string, std::string > myParameters
 myParameters
std::map< const SumoXMLTag, std::string > myParentIDs
 parent IDs
CommonXMLStructure::PlanParameters myPlanParameters
 plan parameters
std::map< const SumoXMLAttr, PositionmyPositionAttributes
 Position attributes.
std::map< const SumoXMLAttr, PositionVectormyPositionVectorAttributes
 PositionVector attributes.
SUMOVehicleParameter::Stop myStopParameter
 stop parameter
std::map< const SumoXMLAttr, std::string > myStringAttributes
 string attributes
std::map< const SumoXMLAttr, std::vector< std::string > > myStringListAttributes
 stringList attributes
std::vector< SumoBaseObject * > mySumoBaseObjectChildren
 SumoBaseObject children.
SumoBaseObjectmySumoBaseObjectParent
 pointer to SumoBaseObject parent (If is null, then is the root)
SumoXMLTag myTag = SUMO_TAG_NOTHING
 XML myTag.
std::map< const SumoXMLAttr, SUMOTimemyTimeAttributes
 SUMOTime attributes.
SUMOVehicleClass myVClass = SVC_IGNORING
 vehicle class
SUMOVehicleParameter myVehicleParameter
 vehicle parameter
SUMOVTypeParameter myVehicleTypeParameter
 vehicle type parameter
bool myWasCreated = false
 flag to check if object was created in build<..> function (by default false)

Private Member Functions

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

Private Attributes

bool myDefinedStopParameter = false
 flag for defined stop parameter
bool myDefinedVehicleParameter = false
 flag for defined vehicle parameter
bool myDefinedVehicleTypeParameter = false
 flag for defined vehicle type parameter

Detailed Description

SumoBaseObject.

Definition at line 157 of file CommonXMLStructure.h.

Constructor & Destructor Documentation

◆ SumoBaseObject() [1/2]

CommonXMLStructure::SumoBaseObject::SumoBaseObject ( SumoBaseObject * sumoBaseObjectParent)

constructor

Definition at line 1161 of file CommonXMLStructure.cpp.

References mySumoBaseObjectParent, myVehicleTypeParameter, and SumoBaseObject().

Referenced by addSumoBaseObjectChild(), operator=(), removeSumoBaseObjectChild(), SumoBaseObject(), and SumoBaseObject().

Here is the caller graph for this function:

◆ ~SumoBaseObject()

CommonXMLStructure::SumoBaseObject::~SumoBaseObject ( )

destructor

Definition at line 1171 of file CommonXMLStructure.cpp.

References mySumoBaseObjectChildren, and mySumoBaseObjectParent.

◆ SumoBaseObject() [2/2]

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

invalidate copy constructor

References SumoBaseObject().

Member Function Documentation

◆ addBoolAttribute()

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

add bool attribute into current SumoBaseObject node

Definition at line 1558 of file CommonXMLStructure.cpp.

References invalid_return< std::string >::value, and myBoolAttributes.

Referenced by GNERouteHandler::duplicatePlan(), GNEAttributesEditorRow::fillSumoBaseObject(), GNEPoly::getSumoBaseObject(), and GNEViewNet::onCmdAttachPOI().

Here is the caller graph for this function:

◆ addColorAttribute()

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

add color attribute into current SumoBaseObject node

Definition at line 1576 of file CommonXMLStructure.cpp.

References invalid_return< std::string >::value, and myColorAttributes.

Referenced by GNEVehicleFrame::createPath(), GNEAttributesEditorRow::fillSumoBaseObject(), GNEPOI::getSumoBaseObject(), and GNEPoly::getSumoBaseObject().

Here is the caller graph for this function:

◆ addDoubleAttribute()

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

◆ addDoubleListAttribute()

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

add double list attribute into current SumoBaseObject node

Definition at line 1588 of file CommonXMLStructure.cpp.

References invalid_return< std::string >::value, and myDoubleListAttributes.

Referenced by GNEAttributesEditorRow::fillSumoBaseObject().

Here is the caller graph for this function:

◆ addIntAttribute()

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

add int attribute into current SumoBaseObject node

Definition at line 1546 of file CommonXMLStructure.cpp.

References invalid_return< std::string >::value, and myIntAttributes.

Referenced by GNEVehicleFrame::createPath(), and GNEAttributesEditorRow::fillSumoBaseObject().

Here is the caller graph for this function:

◆ addParameter()

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

add parameter into current SumoBaseObject node

Definition at line 1616 of file CommonXMLStructure.cpp.

References invalid_return< std::string >::value, myDefinedStopParameter, myDefinedVehicleParameter, myDefinedVehicleTypeParameter, myParameters, myStopParameter, myVehicleParameter, and myVehicleTypeParameter.

Referenced by addParameters().

Here is the caller graph for this function:

◆ addParameters()

void CommonXMLStructure::SumoBaseObject::addParameters ( const std::string & value)

add parameters into current SumoBaseObject node (format: key=value1|key2=value2|....)

Definition at line 1606 of file CommonXMLStructure.cpp.

References addParameter(), StringTokenizer::getVector(), and invalid_return< std::string >::value.

Referenced by GNEAttributesEditorRow::fillSumoBaseObject().

Here is the caller graph for this function:

◆ addParentID()

void CommonXMLStructure::SumoBaseObject::addParentID ( const SumoXMLTag tag,
const std::string & ID )

add parent (string) attribute into current SumoBaseObject node

Definition at line 1600 of file CommonXMLStructure.cpp.

References myParentIDs.

Referenced by GNEViewNetHelper::ViewObjectsSelector::fillSumoBaseObject().

Here is the caller graph for this function:

◆ addPositionAttribute()

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

add Position attribute into current SumoBaseObject node

Definition at line 1564 of file CommonXMLStructure.cpp.

References invalid_return< std::string >::value, and myPositionAttributes.

Referenced by GNEAttributesEditorRow::fillSumoBaseObject().

Here is the caller graph for this function:

◆ addPositionVectorAttribute()

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

add PositionVector attribute into current SumoBaseObject node

Definition at line 1594 of file CommonXMLStructure.cpp.

References invalid_return< std::string >::value, and myPositionVectorAttributes.

Referenced by GNEAttributesEditorRow::fillSumoBaseObject(), and GNEPoly::getSumoBaseObject().

Here is the caller graph for this function:

◆ addStringAttribute()

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

◆ 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 1582 of file CommonXMLStructure.cpp.

References invalid_return< std::string >::value, and myStringListAttributes.

Referenced by GNEVehicleFrame::createPath(), GNERouteHandler::duplicatePlan(), GNEAttributesEditorRow::fillSumoBaseObject(), and GNEViewObjectSelector::fillSumoBaseObject().

Here is the caller graph for this function:

◆ addSumoBaseObjectChild()

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

add SumoBaseObject child

Definition at line 1697 of file CommonXMLStructure.cpp.

References mySumoBaseObjectChildren, and SumoBaseObject().

◆ addTimeAttribute()

void CommonXMLStructure::SumoBaseObject::addTimeAttribute ( const SumoXMLAttr attr,
const SUMOTime value )

add time attribute into current SumoBaseObject node

Definition at line 1570 of file CommonXMLStructure.cpp.

References invalid_return< std::string >::value, and myTimeAttributes.

Referenced by GNEVehicleFrame::createPath(), GNERouteHandler::duplicatePlan(), and GNEAttributesEditorRow::fillSumoBaseObject().

Here is the caller graph for this function:

◆ clear()

◆ getAllAttributes()

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

◆ getBoolAttribute()

◆ getColorAttribute()

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

get color attribute

Definition at line 1365 of file CommonXMLStructure.cpp.

References handleAttributeError(), hasColorAttribute(), and myColorAttributes.

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

Here is the caller graph for this function:

◆ getDoubleAttribute()

◆ getDoubleListAttribute()

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

get double list attribute

Definition at line 1387 of file CommonXMLStructure.cpp.

References handleAttributeError(), hasDoubleListAttribute(), and myDoubleListAttributes.

◆ getIntAttribute()

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

get int attribute

Definition at line 1293 of file CommonXMLStructure.cpp.

References handleAttributeError(), hasIntAttribute(), and myIntAttributes.

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 1456 of file CommonXMLStructure.cpp.

References myParameters.

Referenced by GNEEdgeDataFrame::addEdgeData(), GNETAZRelDataFrame::buildTAZRelationData(), GNEEdgeRelDataFrame::createPath(), AdditionalHandler::parseSumoBaseObject(), DataHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ getParentID()

const std::string & CommonXMLStructure::SumoBaseObject::getParentID ( const SumoXMLTag tag) const

get parent ID

Definition at line 1408 of file CommonXMLStructure.cpp.

References hasParentID(), myParentIDs, myTag, TL, toString(), and WRITE_ERRORF.

◆ getParentSumoBaseObject()

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

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

Definition at line 1239 of file CommonXMLStructure.cpp.

References mySumoBaseObjectParent.

Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildCalibratorFlow(), GNERouteHandler::buildContainerPlan(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNEAdditionalHandler::buildParkingSpace(), GNERouteHandler::buildPersonPlan(), GNEAdditionalHandler::buildRerouterInterval(), GNERouteHandler::buildRoute(), GNERouteHandler::buildStop(), GNEDataHandler::buildTAZRelationData(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNERouteHandler::buildVType(), CommonHandler::checkContainerPlanParents(), CommonHandler::checkPersonPlanParents(), CommonHandler::checkStopParents(), CommonHandler::checkWithinDistribution(), RouteHandler::endParseAttributes(), GNEAdditionalHandler::getAdditionalParent(), GNERouteHandler::getContainerParent(), GNERouteHandler::getPersonParent(), CommonXMLStructure::PlanParameters::getPreviousPlanObj(), GNEAdditionalHandler::getRerouterIntervalParent(), GNERouteHandler::getRouteDistributionParent(), GNERouteHandler::getVTypeDistributionParent(), AdditionalHandler::parseSumoBaseObject(), CommonXMLStructure::PlanParameters::PlanParameters(), and CommonXMLStructure::PlanParameters::writeIgnoringMessage().

Here is the caller graph for this function:

◆ getPeriodAttribute()

SUMOTime CommonXMLStructure::SumoBaseObject::getPeriodAttribute ( ) const

get 'period' attribute

Definition at line 1348 of file CommonXMLStructure.cpp.

References handleAttributeError(), hasTimeAttribute(), myTimeAttributes, SUMO_ATTR_FREQUENCY, and SUMO_ATTR_PERIOD.

Referenced by AdditionalHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ getPlanParameters()

const CommonXMLStructure::PlanParameters & CommonXMLStructure::SumoBaseObject::getPlanParameters ( ) const

get plan parameteres

Definition at line 1462 of file CommonXMLStructure.cpp.

References myPlanParameters.

Referenced by RouteHandler::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 1326 of file CommonXMLStructure.cpp.

References handleAttributeError(), hasPositionAttribute(), and myPositionAttributes.

Referenced by AdditionalHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ getPositionVectorAttribute()

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

get PositionVector attribute

Definition at line 1398 of file CommonXMLStructure.cpp.

References handleAttributeError(), hasPositionVectorAttribute(), and myPositionVectorAttributes.

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 1445 of file CommonXMLStructure.cpp.

References myDefinedStopParameter, myStopParameter, and 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

◆ getStringListAttribute()

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

◆ getSumoBaseObjectChildren()

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

◆ getTag()

◆ getTimeAttribute()

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

◆ getVClass()

SUMOVehicleClass CommonXMLStructure::SumoBaseObject::getVClass ( ) const

vehicle class

Definition at line 1419 of file CommonXMLStructure.cpp.

References myVClass.

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 1435 of file CommonXMLStructure.cpp.

References myDefinedVehicleParameter, myVehicleParameter, and TL.

Referenced by 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 1425 of file CommonXMLStructure.cpp.

References myDefinedVehicleTypeParameter, myVehicleTypeParameter, and TL.

Referenced by RouteHandler::parseNestedCFM(), and 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 1715 of file CommonXMLStructure.cpp.

References myTag, TL, toString(), and WRITE_ERRORF.

Referenced by getBoolAttribute(), getColorAttribute(), getDoubleAttribute(), getDoubleListAttribute(), getIntAttribute(), getPeriodAttribute(), getPositionAttribute(), getPositionVectorAttribute(), getStringAttribute(), getStringListAttribute(), and getTimeAttribute().

Here is the caller graph for this function:

◆ hasBoolAttribute()

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

check if current SumoBaseObject has the given bool attribute

Definition at line 1492 of file CommonXMLStructure.cpp.

References myBoolAttributes.

Referenced by GNERouteHandler::buildContainerPlan(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEAdditionalHandler::buildLaneCalibrator(), GNERouteHandler::buildPersonPlan(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildVaporizer(), GNEAttributesEditorType::fillStartEndAttributes(), getBoolAttribute(), and GNEStopFrame::getStopParameter().

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 1510 of file CommonXMLStructure.cpp.

References myColorAttributes.

Referenced by getColorAttribute().

Here is the caller graph for this function:

◆ hasDoubleAttribute()

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

check if current SumoBaseObject has the given double attribute

Definition at line 1486 of file CommonXMLStructure.cpp.

References myDoubleAttributes.

Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNEAttributesEditorType::fillStartEndAttributes(), getDoubleAttribute(), 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 1522 of file CommonXMLStructure.cpp.

References myDoubleListAttributes.

Referenced by getDoubleListAttribute().

Here is the caller graph for this function:

◆ hasIntAttribute()

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

check if current SumoBaseObject has the given int attribute

Definition at line 1480 of file CommonXMLStructure.cpp.

References myIntAttributes.

Referenced by getIntAttribute().

Here is the caller graph for this function:

◆ hasParentID()

bool CommonXMLStructure::SumoBaseObject::hasParentID ( const SumoXMLTag tag) const

check if current SumoBaseObject has the given parent ID

Definition at line 1534 of file CommonXMLStructure.cpp.

References myParentIDs.

Referenced by getParentID().

Here is the caller graph for this function:

◆ hasPositionAttribute()

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

check if current SumoBaseObject has the given bool attribute

Definition at line 1498 of file CommonXMLStructure.cpp.

References myPositionAttributes.

Referenced by getPositionAttribute().

Here is the caller graph for this function:

◆ hasPositionVectorAttribute()

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

check if current SumoBaseObject has the given positionVector attribute

Definition at line 1528 of file CommonXMLStructure.cpp.

References myPositionVectorAttributes.

Referenced by getPositionVectorAttribute().

Here is the caller graph for this function:

◆ hasStringAttribute()

◆ hasStringListAttribute()

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

check if current SumoBaseObject has the given string list attribute

Definition at line 1516 of file CommonXMLStructure.cpp.

References myStringListAttributes.

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

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 1504 of file CommonXMLStructure.cpp.

References myTimeAttributes.

Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNERouteHandler::duplicatePlan(), getPeriodAttribute(), GNEAdditionalHandler::getRerouterIntervalParent(), GNEStopFrame::getStopParameter(), and getTimeAttribute().

Here is the caller graph for this function:

◆ markAsCreated()

void CommonXMLStructure::SumoBaseObject::markAsCreated ( )

mark as successfully created

Definition at line 1221 of file CommonXMLStructure.cpp.

References myWasCreated.

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

Here is the caller graph for this function:

◆ operator=()

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

invalidate assignment operator

References SumoBaseObject().

◆ removeSumoBaseObjectChild()

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

remove SumoBaseObject child

Definition at line 1704 of file CommonXMLStructure.cpp.

References mySumoBaseObjectChildren, and SumoBaseObject().

◆ setPlanParameters()

void CommonXMLStructure::SumoBaseObject::setPlanParameters ( const CommonXMLStructure::PlanParameters & planParameters)

set plan parmeter

Definition at line 1692 of file CommonXMLStructure.cpp.

References myPlanParameters.

◆ setStopParameter()

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

add stop parameters

Definition at line 1661 of file CommonXMLStructure.cpp.

References addStringAttribute(), myDefinedStopParameter, myStopParameter, 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().

Here is the caller graph for this function:

◆ setTag()

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

set SumoBaseObject tag

Definition at line 1215 of file CommonXMLStructure.cpp.

References myTag.

Referenced by GNEVehicleFrame::createPath(), GNERouteHandler::duplicatePlan(), GNEStopFrame::getStopParameter(), GNEPOI::getSumoBaseObject(), and GNEPoly::getSumoBaseObject().

Here is the caller graph for this function:

◆ setVClass()

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

set vehicle class

Definition at line 1631 of file CommonXMLStructure.cpp.

References myVClass.

◆ setVehicleParameter()

void CommonXMLStructure::SumoBaseObject::setVehicleParameter ( const SUMOVehicleParameter * vehicleParameter)

◆ setVehicleTypeParameter()

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

set vehicle type parameters

Definition at line 1637 of file CommonXMLStructure.cpp.

References addStringAttribute(), myDefinedVehicleTypeParameter, myVehicleTypeParameter, and SUMO_ATTR_ID.

Referenced by RouteHandler::parseNestedCFM().

Here is the caller graph for this function:

◆ wasCreated()

bool CommonXMLStructure::SumoBaseObject::wasCreated ( ) const

check if the object was successfully created in build<...> function

Definition at line 1233 of file CommonXMLStructure.cpp.

References myWasCreated.

Field Documentation

◆ myBoolAttributes

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

bool attributes

Definition at line 366 of file CommonXMLStructure.h.

Referenced by addBoolAttribute(), clear(), getAllAttributes(), getBoolAttribute(), and hasBoolAttribute().

◆ myColorAttributes

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

◆ myDefinedStopParameter

bool CommonXMLStructure::SumoBaseObject::myDefinedStopParameter = false
private

flag for defined stop parameter

Definition at line 424 of file CommonXMLStructure.h.

Referenced by addParameter(), clear(), getStopParameter(), and setStopParameter().

◆ myDefinedVehicleParameter

bool CommonXMLStructure::SumoBaseObject::myDefinedVehicleParameter = false
private

flag for defined vehicle parameter

Definition at line 421 of file CommonXMLStructure.h.

Referenced by addParameter(), clear(), getVehicleParameter(), and setVehicleParameter().

◆ myDefinedVehicleTypeParameter

bool CommonXMLStructure::SumoBaseObject::myDefinedVehicleTypeParameter = false
private

flag for defined vehicle type parameter

Definition at line 418 of file CommonXMLStructure.h.

Referenced by addParameter(), clear(), getVehicleTypeParameter(), and setVehicleTypeParameter().

◆ myDoubleAttributes

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

double attributes

Definition at line 363 of file CommonXMLStructure.h.

Referenced by addDoubleAttribute(), clear(), getAllAttributes(), getDoubleAttribute(), and hasDoubleAttribute().

◆ myDoubleListAttributes

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

stringList attributes

Definition at line 381 of file CommonXMLStructure.h.

Referenced by addDoubleListAttribute(), clear(), getAllAttributes(), getDoubleListAttribute(), and hasDoubleListAttribute().

◆ myIntAttributes

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

int attributes

Definition at line 360 of file CommonXMLStructure.h.

Referenced by addIntAttribute(), clear(), getAllAttributes(), getIntAttribute(), and hasIntAttribute().

◆ myParameters

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

myParameters

Definition at line 387 of file CommonXMLStructure.h.

Referenced by addParameter(), clear(), and getParameters().

◆ myParentIDs

std::map<const SumoXMLTag, std::string> CommonXMLStructure::SumoBaseObject::myParentIDs
protected

parent IDs

Definition at line 390 of file CommonXMLStructure.h.

Referenced by addParentID(), clear(), getParentID(), and hasParentID().

◆ myPlanParameters

CommonXMLStructure::PlanParameters CommonXMLStructure::SumoBaseObject::myPlanParameters
protected

plan parameters

Definition at line 408 of file CommonXMLStructure.h.

Referenced by getPlanParameters(), and setPlanParameters().

◆ myPositionAttributes

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

◆ myPositionVectorAttributes

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

◆ myStopParameter

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

stop parameter

Definition at line 405 of file CommonXMLStructure.h.

Referenced by addParameter(), getStopParameter(), and setStopParameter().

◆ myStringAttributes

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

string attributes

Definition at line 357 of file CommonXMLStructure.h.

Referenced by addStringAttribute(), clear(), getAllAttributes(), getStringAttribute(), and hasStringAttribute().

◆ myStringListAttributes

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

stringList attributes

Definition at line 378 of file CommonXMLStructure.h.

Referenced by addStringListAttribute(), clear(), getAllAttributes(), getStringListAttribute(), and hasStringListAttribute().

◆ mySumoBaseObjectChildren

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

◆ mySumoBaseObjectParent

SumoBaseObject* CommonXMLStructure::SumoBaseObject::mySumoBaseObjectParent
protected

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

Definition at line 348 of file CommonXMLStructure.h.

Referenced by getParentSumoBaseObject(), SumoBaseObject(), and ~SumoBaseObject().

◆ myTag

SumoXMLTag CommonXMLStructure::SumoBaseObject::myTag = SUMO_TAG_NOTHING
protected

XML myTag.

Definition at line 351 of file CommonXMLStructure.h.

Referenced by clear(), getParentID(), getTag(), handleAttributeError(), and setTag().

◆ myTimeAttributes

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

◆ myVClass

SUMOVehicleClass CommonXMLStructure::SumoBaseObject::myVClass = SVC_IGNORING
protected

vehicle class

Definition at line 396 of file CommonXMLStructure.h.

Referenced by clear(), getVClass(), and setVClass().

◆ myVehicleParameter

SUMOVehicleParameter CommonXMLStructure::SumoBaseObject::myVehicleParameter
protected

vehicle parameter

Definition at line 402 of file CommonXMLStructure.h.

Referenced by addParameter(), getVehicleParameter(), and setVehicleParameter().

◆ myVehicleTypeParameter

SUMOVTypeParameter CommonXMLStructure::SumoBaseObject::myVehicleTypeParameter
protected

vehicle type parameter

Definition at line 399 of file CommonXMLStructure.h.

Referenced by addParameter(), getVehicleTypeParameter(), setVehicleTypeParameter(), and SumoBaseObject().

◆ myWasCreated

bool CommonXMLStructure::SumoBaseObject::myWasCreated = false
protected

flag to check if object was created in build<..> function (by default false)

Definition at line 354 of file CommonXMLStructure.h.

Referenced by markAsCreated(), and wasCreated().


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