![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <CommonXMLStructure.h>
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 | |
| SumoBaseObject * | getParentSumoBaseObject () 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 Position & | getPositionAttribute (const SumoXMLAttr attr) const |
| get Position attribute | |
| SUMOTime | getTimeAttribute (const SumoXMLAttr attr) const |
| get time attribute | |
| SUMOTime | getPeriodAttribute () const |
| get 'period' attribute | |
| const RGBColor & | getColorAttribute (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 PositionVector & | getPositionVectorAttribute (const SumoXMLAttr attr) const |
| get PositionVector attribute | |
| const std::string & | getParentID (const SumoXMLTag tag) const |
| get parent ID | |
| SUMOVehicleClass | getVClass () const |
| vehicle class | |
| const SUMOVTypeParameter & | getVehicleTypeParameter () const |
| get current vType | |
| const SUMOVehicleParameter & | getVehicleParameter () const |
| get vehicle parameters | |
| const SUMOVehicleParameter::Stop & | getStopParameter () const |
| get stop parameters | |
| const std::map< std::string, std::string > & | getParameters () const |
| get parameters | |
| const CommonXMLStructure::PlanParameters & | getPlanParameters () 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, RGBColor > | myColorAttributes |
| 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, Position > | myPositionAttributes |
| Position attributes. | |
| std::map< const SumoXMLAttr, PositionVector > | myPositionVectorAttributes |
| 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. | |
| SumoBaseObject * | mySumoBaseObjectParent |
| pointer to SumoBaseObject parent (If is null, then is the root) | |
| SumoXMLTag | myTag = SUMO_TAG_NOTHING |
| XML myTag. | |
| std::map< const SumoXMLAttr, SUMOTime > | myTimeAttributes |
| 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 | |
| SumoBaseObject & | operator= (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 | |
Definition at line 157 of file CommonXMLStructure.h.
| 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().
| CommonXMLStructure::SumoBaseObject::~SumoBaseObject | ( | ) |
destructor
Definition at line 1171 of file CommonXMLStructure.cpp.
References mySumoBaseObjectChildren, and mySumoBaseObjectParent.
|
privatedelete |
invalidate copy constructor
References SumoBaseObject().
| 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().
| 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().
| void CommonXMLStructure::SumoBaseObject::addDoubleAttribute | ( | const SumoXMLAttr | attr, |
| const double | value ) |
add double attribute into current SumoBaseObject node
Definition at line 1552 of file CommonXMLStructure.cpp.
References invalid_return< std::string >::value, and myDoubleAttributes.
Referenced by GNEEdgeDataFrame::addEdgeData(), GNETAZRelDataFrame::buildTAZRelationData(), GNEEdgeRelDataFrame::createPath(), GNEVehicleFrame::createPath(), GNERouteHandler::duplicatePlan(), GNEAttributesEditorType::fillStartEndAttributes(), GNEAttributesEditorRow::fillSumoBaseObject(), GNEPOI::getSumoBaseObject(), GNEPoly::getSumoBaseObject(), GNEViewNet::onCmdAttachPOI(), GNEViewNet::onCmdReleasePOI(), GNEViewNet::onCmdTransformPOI(), and GNEViewNet::onCmdTransformPOIGEO().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| void CommonXMLStructure::SumoBaseObject::addStringAttribute | ( | const SumoXMLAttr | attr, |
| const std::string & | value ) |
add string attribute into current SumoBaseObject node
Definition at line 1540 of file CommonXMLStructure.cpp.
References invalid_return< std::string >::value, and myStringAttributes.
Referenced by GNEEdgeDataFrame::addEdgeData(), GNETAZRelDataFrame::buildTAZRelationData(), GNEEdgeRelDataFrame::createPath(), GNERouteHandler::duplicatePlan(), GNEAttributesEditorRow::fillSumoBaseObject(), GNEPOI::getSumoBaseObject(), GNEPoly::getSumoBaseObject(), GNEViewNet::onCmdAttachPOI(), GNEViewNet::onCmdTriangulatePolygon(), setStopParameter(), setVehicleParameter(), and setVehicleTypeParameter().
| 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().
|
protected |
add SumoBaseObject child
Definition at line 1697 of file CommonXMLStructure.cpp.
References mySumoBaseObjectChildren, and SumoBaseObject().
| 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().
| void CommonXMLStructure::SumoBaseObject::clear | ( | ) |
clear SumoBaseObject
Definition at line 1184 of file CommonXMLStructure.cpp.
References myBoolAttributes, myColorAttributes, myDefinedStopParameter, myDefinedVehicleParameter, myDefinedVehicleTypeParameter, myDoubleAttributes, myDoubleListAttributes, myIntAttributes, myParameters, myParentIDs, myPositionAttributes, myPositionVectorAttributes, myStringAttributes, myStringListAttributes, mySumoBaseObjectChildren, myTag, myTimeAttributes, myVClass, SUMO_TAG_NOTHING, and SVC_IGNORING.
| std::map< std::string, std::string > CommonXMLStructure::SumoBaseObject::getAllAttributes | ( | ) | const |
get all attributes in string format
Definition at line 1245 of file CommonXMLStructure.cpp.
References myBoolAttributes, myColorAttributes, myDoubleAttributes, myDoubleListAttributes, myIntAttributes, myPositionAttributes, myPositionVectorAttributes, myStringAttributes, myStringListAttributes, myTimeAttributes, time2string(), and toString().
| bool CommonXMLStructure::SumoBaseObject::getBoolAttribute | ( | const SumoXMLAttr | attr | ) | const |
get bool attribute
Definition at line 1315 of file CommonXMLStructure.cpp.
References handleAttributeError(), hasBoolAttribute(), and myBoolAttributes.
Referenced by GNERouteHandler::buildContainerPlan(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEAdditionalHandler::buildLaneCalibrator(), GNERouteHandler::buildPersonPlan(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildVaporizer(), GNERouteHandler::duplicatePlan(), GNEAttributesEditorType::fillStartEndAttributes(), GNEStopFrame::getStopParameter(), AdditionalHandler::parseSumoBaseObject(), and MeanDataHandler::parseSumoBaseObject().
| 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().
| double CommonXMLStructure::SumoBaseObject::getDoubleAttribute | ( | const SumoXMLAttr | attr | ) | const |
get double attribute
Definition at line 1304 of file CommonXMLStructure.cpp.
References handleAttributeError(), hasDoubleAttribute(), and myDoubleAttributes.
Referenced by GNERouteHandler::buildContainerPlan(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNERouteHandler::buildPersonPlan(), GNEDataHandler::buildTAZRelationData(), GNERouteHandler::duplicatePlan(), GNEAttributesEditorType::fillStartEndAttributes(), GNEStopFrame::getStopParameter(), AdditionalHandler::parseSumoBaseObject(), DataHandler::parseSumoBaseObject(), MeanDataHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().
| 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.
| 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().
| 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().
| 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.
| 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().
| 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().
| const CommonXMLStructure::PlanParameters & CommonXMLStructure::SumoBaseObject::getPlanParameters | ( | ) | const |
get plan parameteres
Definition at line 1462 of file CommonXMLStructure.cpp.
References myPlanParameters.
Referenced by RouteHandler::parseSumoBaseObject().
| 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().
| 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().
| 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().
| const std::string & CommonXMLStructure::SumoBaseObject::getStringAttribute | ( | const SumoXMLAttr | attr | ) | const |
get string attribute
Definition at line 1282 of file CommonXMLStructure.cpp.
References handleAttributeError(), hasStringAttribute(), and myStringAttributes.
Referenced by GNEAdditionalHandler::buildCalibratorFlow(), GNERouteHandler::buildContainerPlan(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNERouteHandler::buildPersonPlan(), GNERouteHandler::buildRoute(), GNEDataHandler::buildTAZRelationData(), GNERouteHandler::buildVType(), CommonHandler::checkVehicleParents(), GNERouteHandler::duplicatePlan(), GNEAttributesEditorType::fillStartEndAttributes(), GNEAdditionalHandler::getAdditionalParent(), GNERouteHandler::getContainerParent(), GNERouteHandler::getDistributionElements(), GNERouteHandler::getPersonParent(), GNEAdditionalHandler::getRerouterIntervalParent(), GNERouteHandler::getRouteDistributionParent(), GNEStopFrame::getStopParameter(), GNERouteHandler::getVTypeDistributionParent(), RouteHandler::parseNestedCFM(), GNERouteHandler::parseStopEdge(), AdditionalHandler::parseSumoBaseObject(), DataHandler::parseSumoBaseObject(), MeanDataHandler::parseSumoBaseObject(), RouteHandler::parseSumoBaseObject(), CommonXMLStructure::PlanParameters::PlanParameters(), and CommonXMLStructure::PlanParameters::writeIgnoringMessage().
| const std::vector< std::string > & CommonXMLStructure::SumoBaseObject::getStringListAttribute | ( | const SumoXMLAttr | attr | ) | const |
get string list attribute
Definition at line 1376 of file CommonXMLStructure.cpp.
References handleAttributeError(), hasStringListAttribute(), and myStringListAttributes.
Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildFlow(), GNERouteHandler::buildPersonPlan(), GNERouteHandler::buildTrip(), GNERouteHandler::duplicatePlan(), GNEStopFrame::getStopParameter(), AdditionalHandler::parseSumoBaseObject(), MeanDataHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().
| const std::vector< CommonXMLStructure::SumoBaseObject * > & CommonXMLStructure::SumoBaseObject::getSumoBaseObjectChildren | ( | ) | const |
get SumoBaseObject children
Definition at line 1468 of file CommonXMLStructure.cpp.
References mySumoBaseObjectChildren.
Referenced by GNEAdditionalHandler::buildTAZ(), CommonHandler::getEmbeddedRoute(), CommonXMLStructure::PlanParameters::getPreviousPlanObj(), GNERouteHandler::parseEdge(), AdditionalHandler::parseSumoBaseObject(), DataHandler::parseSumoBaseObject(), MeanDataHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().
| SumoXMLTag CommonXMLStructure::SumoBaseObject::getTag | ( | ) | const |
get XML myTag
Definition at line 1227 of file CommonXMLStructure.cpp.
References myTag.
Referenced by GNEAdditionalHandler::buildCalibratorFlow(), GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNERouteHandler::buildRoute(), GNERouteHandler::buildVType(), CommonHandler::checkVehicleParents(), CommonHandler::checkWithinDistribution(), AdditionalHandler::endParseAttributes(), MeanDataHandler::endParseAttributes(), RouteHandler::endParseAttributes(), GNERouteHandler::getContainerParent(), GNERouteHandler::getDistributionElements(), GNERouteHandler::getPersonParent(), GNERouteHandler::getRouteDistributionParent(), GNERouteHandler::getVTypeDistributionParent(), AdditionalHandler::parseSumoBaseObject(), DataHandler::parseSumoBaseObject(), MeanDataHandler::parseSumoBaseObject(), RouteHandler::parseSumoBaseObject(), and CommonXMLStructure::PlanParameters::writeIgnoringMessage().
| SUMOTime CommonXMLStructure::SumoBaseObject::getTimeAttribute | ( | const SumoXMLAttr | attr | ) | const |
get time attribute
Definition at line 1337 of file CommonXMLStructure.cpp.
References handleAttributeError(), hasTimeAttribute(), and myTimeAttributes.
Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNERouteHandler::duplicatePlan(), GNEAdditionalHandler::getRerouterIntervalParent(), GNEStopFrame::getStopParameter(), AdditionalHandler::parseSumoBaseObject(), MeanDataHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().
| SUMOVehicleClass CommonXMLStructure::SumoBaseObject::getVClass | ( | ) | const |
vehicle class
Definition at line 1419 of file CommonXMLStructure.cpp.
References myVClass.
Referenced by RouteHandler::parseSumoBaseObject().
| 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().
| 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().
|
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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| bool CommonXMLStructure::SumoBaseObject::hasStringAttribute | ( | const SumoXMLAttr | attr | ) | const |
has function
check if current SumoBaseObject has the given string attribute
Definition at line 1474 of file CommonXMLStructure.cpp.
References myStringAttributes.
Referenced by GNEAdditionalHandler::buildAccess(), GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), CommonHandler::checkVehicleParents(), GNERouteHandler::duplicatePlan(), GNEAttributesEditorType::fillStartEndAttributes(), GNEAdditionalHandler::getAdditionalParent(), GNEAdditionalHandler::getRerouterIntervalParent(), GNEStopFrame::getStopParameter(), getStringAttribute(), RouteHandler::isOverFromToEdges(), RouteHandler::isOverFromToJunctions(), RouteHandler::isOverFromToTAZs(), GNERouteHandler::parseStopEdge(), AdditionalHandler::parseSumoBaseObject(), RouteHandler::parseSumoBaseObject(), and CommonXMLStructure::PlanParameters::PlanParameters().
| 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().
| 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().
| 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().
|
privatedelete |
invalidate assignment operator
References SumoBaseObject().
|
protected |
remove SumoBaseObject child
Definition at line 1704 of file CommonXMLStructure.cpp.
References mySumoBaseObjectChildren, and SumoBaseObject().
| void CommonXMLStructure::SumoBaseObject::setPlanParameters | ( | const CommonXMLStructure::PlanParameters & | planParameters | ) |
set plan parmeter
Definition at line 1692 of file CommonXMLStructure.cpp.
References myPlanParameters.
| 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().
| 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().
| void CommonXMLStructure::SumoBaseObject::setVClass | ( | SUMOVehicleClass | vClass | ) |
| void CommonXMLStructure::SumoBaseObject::setVehicleParameter | ( | const SUMOVehicleParameter * | vehicleParameter | ) |
set vehicle parameters
Definition at line 1646 of file CommonXMLStructure.cpp.
References addStringAttribute(), myDefinedVehicleParameter, myVehicleParameter, SUMOVehicleParameter::routeid, SUMO_ATTR_ID, and SUMO_ATTR_ROUTE.
| 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().
| 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.
|
protected |
bool attributes
Definition at line 366 of file CommonXMLStructure.h.
Referenced by addBoolAttribute(), clear(), getAllAttributes(), getBoolAttribute(), and hasBoolAttribute().
|
protected |
RGBColor attributes.
Definition at line 375 of file CommonXMLStructure.h.
Referenced by addColorAttribute(), clear(), getAllAttributes(), getColorAttribute(), and hasColorAttribute().
|
private |
flag for defined stop parameter
Definition at line 424 of file CommonXMLStructure.h.
Referenced by addParameter(), clear(), getStopParameter(), and setStopParameter().
|
private |
flag for defined vehicle parameter
Definition at line 421 of file CommonXMLStructure.h.
Referenced by addParameter(), clear(), getVehicleParameter(), and setVehicleParameter().
|
private |
flag for defined vehicle type parameter
Definition at line 418 of file CommonXMLStructure.h.
Referenced by addParameter(), clear(), getVehicleTypeParameter(), and setVehicleTypeParameter().
|
protected |
double attributes
Definition at line 363 of file CommonXMLStructure.h.
Referenced by addDoubleAttribute(), clear(), getAllAttributes(), getDoubleAttribute(), and hasDoubleAttribute().
|
protected |
stringList attributes
Definition at line 381 of file CommonXMLStructure.h.
Referenced by addDoubleListAttribute(), clear(), getAllAttributes(), getDoubleListAttribute(), and hasDoubleListAttribute().
|
protected |
int attributes
Definition at line 360 of file CommonXMLStructure.h.
Referenced by addIntAttribute(), clear(), getAllAttributes(), getIntAttribute(), and hasIntAttribute().
|
protected |
myParameters
Definition at line 387 of file CommonXMLStructure.h.
Referenced by addParameter(), clear(), and getParameters().
|
protected |
parent IDs
Definition at line 390 of file CommonXMLStructure.h.
Referenced by addParentID(), clear(), getParentID(), and hasParentID().
|
protected |
plan parameters
Definition at line 408 of file CommonXMLStructure.h.
Referenced by getPlanParameters(), and setPlanParameters().
|
protected |
Position attributes.
Definition at line 369 of file CommonXMLStructure.h.
Referenced by addPositionAttribute(), clear(), getAllAttributes(), getPositionAttribute(), and hasPositionAttribute().
|
protected |
PositionVector attributes.
Definition at line 384 of file CommonXMLStructure.h.
Referenced by addPositionVectorAttribute(), clear(), getAllAttributes(), getPositionVectorAttribute(), and hasPositionVectorAttribute().
|
protected |
stop parameter
Definition at line 405 of file CommonXMLStructure.h.
Referenced by addParameter(), getStopParameter(), and setStopParameter().
|
protected |
string attributes
Definition at line 357 of file CommonXMLStructure.h.
Referenced by addStringAttribute(), clear(), getAllAttributes(), getStringAttribute(), and hasStringAttribute().
|
protected |
stringList attributes
Definition at line 378 of file CommonXMLStructure.h.
Referenced by addStringListAttribute(), clear(), getAllAttributes(), getStringListAttribute(), and hasStringListAttribute().
|
protected |
SumoBaseObject children.
Definition at line 393 of file CommonXMLStructure.h.
Referenced by addSumoBaseObjectChild(), clear(), getSumoBaseObjectChildren(), removeSumoBaseObjectChild(), and ~SumoBaseObject().
|
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().
|
protected |
XML myTag.
Definition at line 351 of file CommonXMLStructure.h.
Referenced by clear(), getParentID(), getTag(), handleAttributeError(), and setTag().
|
protected |
SUMOTime attributes.
Definition at line 372 of file CommonXMLStructure.h.
Referenced by addTimeAttribute(), clear(), getAllAttributes(), getPeriodAttribute(), getTimeAttribute(), and hasTimeAttribute().
|
protected |
vehicle class
Definition at line 396 of file CommonXMLStructure.h.
Referenced by clear(), getVClass(), and setVClass().
|
protected |
vehicle parameter
Definition at line 402 of file CommonXMLStructure.h.
Referenced by addParameter(), getVehicleParameter(), and setVehicleParameter().
|
protected |
vehicle type parameter
Definition at line 399 of file CommonXMLStructure.h.
Referenced by addParameter(), getVehicleTypeParameter(), setVehicleTypeParameter(), and SumoBaseObject().
|
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().