![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <CommonXMLStructure.h>
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 | |
get XML myTag | |
SumoXMLTag | getTag () const |
SumoBaseObject * | getParentSumoBaseObject () 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 Position & | getPositionAttribute (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 RGBColor & | getColorAttribute (const SumoXMLAttr attr) const |
get color attribute More... | |
const std::vector< std::string > & | getStringListAttribute (const SumoXMLAttr attr) const |
get string list attribute More... | |
const PositionVector & | getPositionVectorAttribute (const SumoXMLAttr attr) const |
get PositionVector attribute More... | |
SUMOVehicleClass | getVClass () const |
vehicle class More... | |
const SUMOVTypeParameter & | getVehicleTypeParameter () const |
get current vType More... | |
const SUMOVehicleParameter & | getVehicleParameter () const |
get vehicle parameters More... | |
const SUMOVehicleParameter::Stop & | getStopParameter () 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 | hasPositionVectorAttribute (const SumoXMLAttr attr) const |
check if current SumoBaseObject has the given positionVector attribute More... | |
add functions | |
add string attribute into current SumoBaseObject node | |
void | addStringAttribute (const SumoXMLAttr attr, const std::string &value) |
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 | 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... | |
Private Member Functions | |
void | handleAttributeError (const SumoXMLAttr attr, const std::string &type) const |
handle attribute error More... | |
SumoBaseObject & | operator= (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... | |
Definition at line 39 of file CommonXMLStructure.h.
CommonXMLStructure::SumoBaseObject::SumoBaseObject | ( | SumoBaseObject * | sumoBaseObjectParent | ) |
constructor
Definition at line 36 of file CommonXMLStructure.cpp.
References addSumoBaseObjectChild(), and mySumoBaseObjectParent.
CommonXMLStructure::SumoBaseObject::~SumoBaseObject | ( | ) |
destructor
Definition at line 51 of file CommonXMLStructure.cpp.
|
privatedelete |
invalidate copy constructor
void CommonXMLStructure::SumoBaseObject::addBoolAttribute | ( | const SumoXMLAttr | attr, |
const bool | value | ||
) |
add bool attribute into current SumoBaseObject node
Definition at line 382 of file CommonXMLStructure.cpp.
Referenced by GNEAttributesCreator::getAttributesAndValues(), GNENeteditAttributes::getNeteditAttributesAndValues(), GNEPOI::getSumoBaseObject(), GNEViewNet::onCmdTransformPOI(), AdditionalHandler::parseAccessAttributes(), AdditionalHandler::parseBusStopAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseContainerStopAttributes(), AdditionalHandler::parseE1Attributes(), AdditionalHandler::parseE1InstantAttributes(), AdditionalHandler::parseE2Attributes(), AdditionalHandler::parseEntryAttributes(), AdditionalHandler::parseExitAttributes(), AdditionalHandler::parseOverheadWire(), AdditionalHandler::parseParkingAreaAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parsePOIAttributes(), AdditionalHandler::parsePolyAttributes(), AdditionalHandler::parseRerouterAttributes(), AdditionalHandler::parseTAZAttributes(), AdditionalHandler::parseTrainStopAttributes(), GNEShapeFrame::processClick(), and GNEShapeFrame::shapeDrawed().
void CommonXMLStructure::SumoBaseObject::addColorAttribute | ( | const SumoXMLAttr | attr, |
const RGBColor & | value | ||
) |
add color attribute into current SumoBaseObject node
Definition at line 400 of file CommonXMLStructure.cpp.
Referenced by GNEVehicleFrame::createPath(), GNEAttributesCreator::getAttributesAndValues(), GNEPOI::getSumoBaseObject(), AdditionalHandler::parseBusStopAttributes(), AdditionalHandler::parseContainerStopAttributes(), AdditionalHandler::parsePOIAttributes(), AdditionalHandler::parsePolyAttributes(), RouteHandler::parseRoute(), AdditionalHandler::parseTAZAttributes(), and AdditionalHandler::parseTrainStopAttributes().
void CommonXMLStructure::SumoBaseObject::addDoubleAttribute | ( | const SumoXMLAttr | attr, |
const double | value | ||
) |
add double attribute into current SumoBaseObject node
Definition at line 376 of file CommonXMLStructure.cpp.
Referenced by GNEEdgeDataFrame::addEdgeData(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNETAZRelDataFrame::buildTAZRelationData(), GNEWireFrame::buildWireOverView(), GNEEdgeRelDataFrame::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(), AdditionalHandler::parseEntryAttributes(), AdditionalHandler::parseExitAttributes(), DataHandler::parseInterval(), AdditionalHandler::parseOverheadWire(), AdditionalHandler::parseParkingAreaAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseParkingSpaceAttributes(), RouteHandler::parsePersonTrip(), AdditionalHandler::parsePOIAttributes(), AdditionalHandler::parsePolyAttributes(), AdditionalHandler::parseRerouterAttributes(), RouteHandler::parseRide(), AdditionalHandler::parseRouteProbRerouteAttributes(), AdditionalHandler::parseTAZSinkAttributes(), AdditionalHandler::parseTAZSourceAttributes(), AdditionalHandler::parseTractionSubstation(), AdditionalHandler::parseTrainStopAttributes(), RouteHandler::parseTranship(), RouteHandler::parseTransport(), RouteHandler::parseWalk(), and GNEShapeFrame::processClick().
void CommonXMLStructure::SumoBaseObject::addIntAttribute | ( | const SumoXMLAttr | attr, |
const int | value | ||
) |
add int attribute into current SumoBaseObject node
Definition at line 370 of file CommonXMLStructure.cpp.
Referenced by GNEVehicleFrame::createPath(), GNEAttributesCreator::getAttributesAndValues(), GNEFlowEditor::getFlowAttributes(), AdditionalHandler::parseBusStopAttributes(), AdditionalHandler::parseContainerStopAttributes(), AdditionalHandler::parseParkingAreaAttributes(), RouteHandler::parseRoute(), AdditionalHandler::parseTrainStopAttributes(), and RouteHandler::parseVTypeDistribution().
void CommonXMLStructure::SumoBaseObject::addParameter | ( | const std::string & | key, |
const std::string & | value | ||
) |
add parameter into current SumoBaseObject node
Definition at line 479 of file CommonXMLStructure.cpp.
Referenced by DataHandler::getAttributes().
void CommonXMLStructure::SumoBaseObject::addPositionAttribute | ( | const SumoXMLAttr | attr, |
const Position & | value | ||
) |
add Position attribute into current SumoBaseObject node
Definition at line 388 of file CommonXMLStructure.cpp.
Referenced by GNEAdditionalFrame::buildAdditionalOverView(), GNEWireFrame::buildWireOverView(), GNEAttributesCreator::getAttributesAndValues(), AdditionalHandler::parseE3Attributes(), AdditionalHandler::parseRerouterAttributes(), AdditionalHandler::parseTAZAttributes(), AdditionalHandler::parseTractionSubstation(), AdditionalHandler::parseVariableSpeedSignAttributes(), and GNETAZFrame::shapeDrawed().
void CommonXMLStructure::SumoBaseObject::addPositionVectorAttribute | ( | const SumoXMLAttr | attr, |
const PositionVector & | value | ||
) |
add PositionVector attribute into current SumoBaseObject node
Definition at line 412 of file CommonXMLStructure.cpp.
Referenced by GNEAttributesCreator::getAttributesAndValues(), AdditionalHandler::parsePolyAttributes(), AdditionalHandler::parseTAZAttributes(), GNEShapeFrame::shapeDrawed(), and GNETAZFrame::shapeDrawed().
void CommonXMLStructure::SumoBaseObject::addStringAttribute | ( | const SumoXMLAttr | attr, |
const std::string & | value | ||
) |
Definition at line 364 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(), ConfigHandler::parseAdditionalFiles(), AdditionalHandler::parseBusStopAttributes(), AdditionalHandler::parseCalibratorAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseClosingLaneRerouteAttributes(), AdditionalHandler::parseClosingRerouteAttributes(), ConfigHandler::parseConfigFile(), AdditionalHandler::parseContainerStopAttributes(), ConfigHandler::parseDataFiles(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseE1Attributes(), AdditionalHandler::parseE1InstantAttributes(), AdditionalHandler::parseE2Attributes(), AdditionalHandler::parseE3Attributes(), DataHandler::parseEdgeData(), DataHandler::parseEdgeRelationData(), AdditionalHandler::parseEntryAttributes(), AdditionalHandler::parseExitAttributes(), RouteHandler::parseFlow(), DataHandler::parseInterval(), ConfigHandler::parseNetFile(), AdditionalHandler::parseOverheadWire(), AdditionalHandler::parseOverheadWireClamp(), AdditionalHandler::parseParkingAreaAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseParkingSpaceAttributes(), RouteHandler::parsePersonTrip(), AdditionalHandler::parsePOIAttributes(), AdditionalHandler::parsePolyAttributes(), AdditionalHandler::parseRerouterAttributes(), RouteHandler::parseRide(), RouteHandler::parseRoute(), RouteHandler::parseRouteDistribution(), ConfigHandler::parseRouteFiles(), 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::processClick(), GNEShapeFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNERouteHandler::transformToRouteFlow(), and GNERouteHandler::transformToVehicle().
void CommonXMLStructure::SumoBaseObject::addStringListAttribute | ( | const SumoXMLAttr | attr, |
const std::vector< std::string > & | value | ||
) |
add string list attribute into current SumoBaseObject node
Definition at line 406 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(), RouteHandler::parseFlow(), AdditionalHandler::parseOverheadWire(), RouteHandler::parsePersonTrip(), AdditionalHandler::parseRerouterAttributes(), RouteHandler::parseRide(), RouteHandler::parseRoute(), AdditionalHandler::parseTAZAttributes(), AdditionalHandler::parseTrainStopAttributes(), RouteHandler::parseTranship(), RouteHandler::parseTransport(), RouteHandler::parseTrip(), AdditionalHandler::parseVariableSpeedSignAttributes(), RouteHandler::parseVTypeDistribution(), RouteHandler::parseWalk(), and GNETAZFrame::shapeDrawed().
|
protected |
add SumoBaseObject child
Definition at line 494 of file CommonXMLStructure.cpp.
Referenced by SumoBaseObject().
void CommonXMLStructure::SumoBaseObject::addTimeAttribute | ( | const SumoXMLAttr | attr, |
const SUMOTime | value | ||
) |
add time attribute into current SumoBaseObject node
Definition at line 394 of file CommonXMLStructure.cpp.
Referenced by GNEAdditionalFrame::buildAdditionalOverView(), GNEVehicleFrame::createPath(), GNEAttributesCreator::getAttributesAndValues(), AdditionalHandler::parseCalibratorAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseE1Attributes(), AdditionalHandler::parseE2Attributes(), AdditionalHandler::parseE3Attributes(), AdditionalHandler::parseRerouterAttributes(), AdditionalHandler::parseRerouterIntervalAttributes(), RouteHandler::parseRoute(), AdditionalHandler::parseRouteProbeAttributes(), AdditionalHandler::parseVaporizerAttributes(), and AdditionalHandler::parseVariableSpeedSignStepAttributes().
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().
std::map< std::string, std::string > CommonXMLStructure::SumoBaseObject::getAllAttributes | ( | ) | const |
get all attributes in string format
Definition at line 111 of file CommonXMLStructure.cpp.
References time2string(), and toString().
Referenced by GNEContainerFrame::buildContainer(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::buildVehicleOverRoute(), and GNEVehicleFrame::createPath().
bool CommonXMLStructure::SumoBaseObject::getBoolAttribute | ( | const SumoXMLAttr | attr | ) | const |
get bool attribute
Definition at line 178 of file CommonXMLStructure.cpp.
Referenced by GNEStopFrame::getStopParameter(), AdditionalHandler::parseSumoBaseObject(), and GNEShapeFrame::shapeDrawed().
const RGBColor & CommonXMLStructure::SumoBaseObject::getColorAttribute | ( | const SumoXMLAttr | attr | ) | const |
get color attribute
Definition at line 228 of file CommonXMLStructure.cpp.
Referenced by AdditionalHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().
double CommonXMLStructure::SumoBaseObject::getDoubleAttribute | ( | const SumoXMLAttr | attr | ) | const |
get double attribute
Definition at line 167 of file CommonXMLStructure.cpp.
Referenced by GNEAdditionalFrame::buildAdditionalCommonAttributes(), GNEContainerFrame::buildContainer(), GNERouteHandler::buildContainerPlan(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPersonPlan(), GNEDataHandler::buildTAZRelationData(), GNEVehicleFrame::buildVehicleOverRoute(), GNEVehicleFrame::createPath(), GNEStopFrame::getStopParameter(), AdditionalHandler::parseSumoBaseObject(), DataHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().
int CommonXMLStructure::SumoBaseObject::getIntAttribute | ( | const SumoXMLAttr | attr | ) | const |
get int attribute
Definition at line 156 of file CommonXMLStructure.cpp.
Referenced by AdditionalHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().
const std::map< std::string, std::string > & CommonXMLStructure::SumoBaseObject::getParameters | ( | ) | const |
get parameters
Definition at line 298 of file CommonXMLStructure.cpp.
Referenced by AdditionalHandler::parseSumoBaseObject(), DataHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().
CommonXMLStructure::SumoBaseObject * CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject | ( | ) | const |
get pointer to mySumoBaseObjectParent SumoBaseObject (if is null, then is the root)
Definition at line 105 of file CommonXMLStructure.cpp.
Referenced by GNEAdditionalFrame::buildAdditionalOverView(), GNEAdditionalHandler::buildCalibratorFlow(), GNERouteHandler::buildContainerPlan(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNERouteHandler::buildEmbeddedRoute(), GNERouteHandler::buildPersonPlan(), GNERouteHandler::buildStop(), GNEDataHandler::buildTAZRelationData(), GNERouteHandler::buildVType(), AdditionalHandler::checkParent(), RouteHandler::checkParent(), DataHandler::checkParent(), CommonXMLStructure::closeSUMOBaseOBject(), GNEAdditionalFrame::createBaseAdditionalObject(), GNEWireFrame::createBaseWireObject(), RouteHandler::endParseAttributes(), GNEAdditionalHandler::getAdditionalParent(), GNERouteHandler::getContainerParent(), GNERouteHandler::getPersonParent(), GNERouteHandler::getPreviousPlanEdge(), GNERouteHandler::getPreviousPlanJunction(), GNEAdditionalHandler::getRerouterIntervalParent(), RouteHandler::isEmbeddedRoute(), AdditionalHandler::parseCalibratorFlowAttributes(), RouteHandler::parseNestedCFM(), AdditionalHandler::parseParameters(), RouteHandler::parseParameters(), and AdditionalHandler::parseSumoBaseObject().
SUMOTime CommonXMLStructure::SumoBaseObject::getPeriodAttribute | ( | ) | const |
get 'period' attribute
Definition at line 211 of file CommonXMLStructure.cpp.
References SUMO_ATTR_FREQUENCY, and SUMO_ATTR_PERIOD.
Referenced by AdditionalHandler::parseSumoBaseObject().
const Position & CommonXMLStructure::SumoBaseObject::getPositionAttribute | ( | const SumoXMLAttr | attr | ) | const |
get Position attribute
Definition at line 189 of file CommonXMLStructure.cpp.
Referenced by AdditionalHandler::parseSumoBaseObject(), and GNETAZFrame::shapeDrawed().
const PositionVector & CommonXMLStructure::SumoBaseObject::getPositionVectorAttribute | ( | const SumoXMLAttr | attr | ) | const |
get PositionVector attribute
Definition at line 250 of file CommonXMLStructure.cpp.
Referenced by AdditionalHandler::parseSumoBaseObject().
const SUMOVehicleParameter::Stop & CommonXMLStructure::SumoBaseObject::getStopParameter | ( | ) | const |
get stop parameters
Definition at line 287 of file CommonXMLStructure.cpp.
Referenced by GNERouteHandler::buildStop(), and RouteHandler::parseSumoBaseObject().
const std::string & CommonXMLStructure::SumoBaseObject::getStringAttribute | ( | const SumoXMLAttr | attr | ) | const |
get string attribute
Definition at line 145 of file CommonXMLStructure.cpp.
Referenced by GNEAdditionalFrame::buildAdditionalCommonAttributes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEAdditionalHandler::buildCalibratorFlow(), GNEContainerFrame::buildContainer(), GNERouteHandler::buildContainerPlan(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPersonPlan(), GNEDataHandler::buildTAZRelationData(), GNEVehicleFrame::buildVehicleOverRoute(), GNERouteHandler::buildVType(), AdditionalHandler::checkParent(), RouteHandler::checkParent(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), RouteHandler::endParseAttributes(), GNEAdditionalHandler::getAdditionalParent(), GNERouteHandler::getContainerParent(), GNERouteHandler::getPersonParent(), GNERouteHandler::getPreviousPlanEdge(), GNERouteHandler::getPreviousPlanJunction(), GNEAdditionalHandler::getRerouterIntervalParent(), GNEStopFrame::getStopParameter(), GNEApplicationWindowHelper::GNEConfigHandler::loadConfig(), AdditionalHandler::parseSumoBaseObject(), DataHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().
const std::vector< std::string > & CommonXMLStructure::SumoBaseObject::getStringListAttribute | ( | const SumoXMLAttr | attr | ) | const |
get string list attribute
Definition at line 239 of file CommonXMLStructure.cpp.
Referenced by GNEAdditionalFrame::buildAdditionalCommonAttributes(), GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNERouteHandler::getPreviousPlanEdge(), GNEStopFrame::getStopParameter(), AdditionalHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().
const std::vector< CommonXMLStructure::SumoBaseObject * > & CommonXMLStructure::SumoBaseObject::getSumoBaseObjectChildren | ( | ) | const |
get SumoBaseObject children
Definition at line 304 of file CommonXMLStructure.cpp.
Referenced by GNEStopFrame::addStop(), GNEAdditionalHandler::buildTAZ(), GNERouteHandler::buildVTypeDistribution(), GNERouteHandler::getPreviousPlanEdge(), GNERouteHandler::getPreviousPlanJunction(), AdditionalHandler::parseSumoBaseObject(), DataHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().
SumoXMLTag CommonXMLStructure::SumoBaseObject::getTag | ( | ) | const |
Definition at line 99 of file CommonXMLStructure.cpp.
Referenced by GNEStopFrame::addStop(), GNEAdditionalFrame::buildAdditionalOverView(), GNEAdditionalHandler::buildCalibratorFlow(), GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildEmbeddedRoute(), GNERouteHandler::buildPersonPlan(), GNERouteHandler::buildStop(), GNEVehicleFrame::buildVehicleOverRoute(), GNERouteHandler::buildVType(), AdditionalHandler::checkParent(), RouteHandler::checkParent(), DataHandler::checkParent(), AdditionalHandler::endParseAttributes(), RouteHandler::endParseAttributes(), GNERouteHandler::getContainerParent(), GNERouteHandler::getPersonParent(), GNERouteHandler::getPreviousPlanEdge(), RouteHandler::isEmbeddedRoute(), AdditionalHandler::parseCalibratorFlowAttributes(), AdditionalHandler::parseSumoBaseObject(), DataHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().
SUMOTime CommonXMLStructure::SumoBaseObject::getTimeAttribute | ( | const SumoXMLAttr | attr | ) | const |
get time attribute
Definition at line 200 of file CommonXMLStructure.cpp.
Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNEAdditionalHandler::getRerouterIntervalParent(), GNEStopFrame::getStopParameter(), AdditionalHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().
SUMOVehicleClass CommonXMLStructure::SumoBaseObject::getVClass | ( | ) | const |
vehicle class
Definition at line 261 of file CommonXMLStructure.cpp.
Referenced by RouteHandler::parseSumoBaseObject().
const SUMOVehicleParameter & CommonXMLStructure::SumoBaseObject::getVehicleParameter | ( | ) | const |
get vehicle parameters
Definition at line 277 of file CommonXMLStructure.cpp.
Referenced by GNERouteHandler::buildEmbeddedRoute(), AdditionalHandler::parseSumoBaseObject(), and RouteHandler::parseSumoBaseObject().
const SUMOVTypeParameter & CommonXMLStructure::SumoBaseObject::getVehicleTypeParameter | ( | ) | const |
get current vType
Definition at line 267 of file CommonXMLStructure.cpp.
Referenced by RouteHandler::parseSumoBaseObject().
|
private |
handle attribute error
Definition at line 512 of file CommonXMLStructure.cpp.
References toString(), and WRITE_ERROR.
bool CommonXMLStructure::SumoBaseObject::hasBoolAttribute | ( | const SumoXMLAttr | attr | ) | const |
check if current SumoBaseObject has the given bool attribute
Definition at line 328 of file CommonXMLStructure.cpp.
Referenced by GNEStopFrame::getStopParameter().
bool CommonXMLStructure::SumoBaseObject::hasColorAttribute | ( | const SumoXMLAttr | attr | ) | const |
check if current SumoBaseObject has the given color attribute
Definition at line 346 of file CommonXMLStructure.cpp.
bool CommonXMLStructure::SumoBaseObject::hasDoubleAttribute | ( | const SumoXMLAttr | attr | ) | const |
check if current SumoBaseObject has the given double attribute
Definition at line 322 of file CommonXMLStructure.cpp.
Referenced by GNEContainerFrame::buildContainer(), GNERouteHandler::buildContainerPlan(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPersonPlan(), GNEVehicleFrame::buildVehicleOverRoute(), GNEVehicleFrame::createPath(), GNEStopFrame::getStopParameter(), and AdditionalHandler::parseSumoBaseObject().
bool CommonXMLStructure::SumoBaseObject::hasIntAttribute | ( | const SumoXMLAttr | attr | ) | const |
check if current SumoBaseObject has the given int attribute
Definition at line 316 of file CommonXMLStructure.cpp.
bool CommonXMLStructure::SumoBaseObject::hasPositionAttribute | ( | const SumoXMLAttr | attr | ) | const |
check if current SumoBaseObject has the given bool attribute
Definition at line 334 of file CommonXMLStructure.cpp.
bool CommonXMLStructure::SumoBaseObject::hasPositionVectorAttribute | ( | const SumoXMLAttr | attr | ) | const |
check if current SumoBaseObject has the given positionVector attribute
Definition at line 358 of file CommonXMLStructure.cpp.
bool CommonXMLStructure::SumoBaseObject::hasStringAttribute | ( | const SumoXMLAttr | attr | ) | const |
has function
check if current SumoBaseObject has the given string attribute
Definition at line 310 of file CommonXMLStructure.cpp.
Referenced by GNEVehicleFrame::addVehicle(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEContainerFrame::buildContainer(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::buildVehicleOverRoute(), GNEWireFrame::buildWireOverView(), AdditionalHandler::checkParent(), RouteHandler::checkParent(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNEAdditionalFrame::createPath(), GNEWireFrame::createPath(), GNEAdditionalHandler::getAdditionalParent(), GNERouteHandler::getPreviousPlanEdge(), GNERouteHandler::getPreviousPlanJunction(), GNEAdditionalHandler::getRerouterIntervalParent(), GNEStopFrame::getStopParameter(), RouteHandler::isEmbeddedRoute(), GNEApplicationWindowHelper::GNEConfigHandler::loadConfig(), AdditionalHandler::parseSumoBaseObject(), RouteHandler::parseSumoBaseObject(), GNEShapeFrame::processClick(), and GNEShapeFrame::shapeDrawed().
bool CommonXMLStructure::SumoBaseObject::hasStringListAttribute | ( | const SumoXMLAttr | attr | ) | const |
check if current SumoBaseObject has the given string list attribute
Definition at line 352 of file CommonXMLStructure.cpp.
Referenced by GNEAdditionalFrame::buildAdditionalCommonAttributes(), GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNERouteHandler::getPreviousPlanEdge(), and GNEStopFrame::getStopParameter().
bool CommonXMLStructure::SumoBaseObject::hasTimeAttribute | ( | const SumoXMLAttr | attr | ) | const |
check if current SumoBaseObject has the given time attribute
Definition at line 340 of file CommonXMLStructure.cpp.
Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNEAdditionalHandler::getRerouterIntervalParent(), and GNEStopFrame::getStopParameter().
|
privatedelete |
invalidate assignment operator
|
protected |
remove SumoBaseObject child
Definition at line 501 of file CommonXMLStructure.cpp.
void CommonXMLStructure::SumoBaseObject::setStopParameter | ( | const SUMOVehicleParameter::Stop & | stopParameter | ) |
add stop parameters
Definition at line 448 of file CommonXMLStructure.cpp.
References SUMO_ATTR_BUS_STOP, SUMO_ATTR_CHARGING_STATION, SUMO_ATTR_CONTAINER_STOP, SUMO_ATTR_ID, SUMO_ATTR_LANE, and SUMO_ATTR_PARKING_AREA.
Referenced by GNEStopFrame::getStopParameter(), and RouteHandler::parseStop().
void CommonXMLStructure::SumoBaseObject::setTag | ( | const SumoXMLTag | tag | ) |
set SumoBaseObject tag
Definition at line 93 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(), ConfigHandler::parseConfigFile(), RouteHandler::parseContainer(), RouteHandler::parseContainerFlow(), AdditionalHandler::parseContainerStopAttributes(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseE1Attributes(), AdditionalHandler::parseE1InstantAttributes(), AdditionalHandler::parseE2Attributes(), AdditionalHandler::parseE3Attributes(), DataHandler::parseEdgeData(), DataHandler::parseEdgeRelationData(), AdditionalHandler::parseEntryAttributes(), AdditionalHandler::parseExitAttributes(), RouteHandler::parseFlow(), DataHandler::parseInterval(), 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().
void CommonXMLStructure::SumoBaseObject::setVClass | ( | SUMOVehicleClass | vClass | ) |
set vehicle class
Definition at line 418 of file CommonXMLStructure.cpp.
Referenced by RouteHandler::parseRoute().
void CommonXMLStructure::SumoBaseObject::setVehicleParameter | ( | const SUMOVehicleParameter * | vehicleParameter | ) |
set vehicle parameters
Definition at line 433 of file CommonXMLStructure.cpp.
References SUMOVehicleParameter::routeid, SUMO_ATTR_ID, and SUMO_ATTR_ROUTE.
Referenced by GNEContainerFrame::buildContainer(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::buildVehicleOverRoute(), GNEVehicleFrame::createPath(), AdditionalHandler::parseCalibratorFlowAttributes(), RouteHandler::parseContainer(), RouteHandler::parseContainerFlow(), RouteHandler::parseFlow(), RouteHandler::parsePerson(), RouteHandler::parsePersonFlow(), RouteHandler::parseTrip(), RouteHandler::parseVehicle(), GNERouteHandler::transformToRouteFlow(), and GNERouteHandler::transformToVehicle().
void CommonXMLStructure::SumoBaseObject::setVehicleTypeParameter | ( | const SUMOVTypeParameter * | vehicleTypeParameter | ) |
set vehicle type parameters
Definition at line 424 of file CommonXMLStructure.cpp.
References SUMO_ATTR_ID.
Referenced by RouteHandler::parseVType().
|
protected |
bool attributes
Definition at line 208 of file CommonXMLStructure.h.
|
protected |
RGBColor attributes.
Definition at line 217 of file CommonXMLStructure.h.
|
private |
flag for defined stop parameter
Definition at line 257 of file CommonXMLStructure.h.
|
private |
flag for defined vehicle parameter
Definition at line 254 of file CommonXMLStructure.h.
|
private |
flag for defined vehicle type parameter
Definition at line 251 of file CommonXMLStructure.h.
|
protected |
double attributes
Definition at line 205 of file CommonXMLStructure.h.
|
protected |
int attributes
Definition at line 202 of file CommonXMLStructure.h.
|
protected |
myParameters
Definition at line 226 of file CommonXMLStructure.h.
|
protected |
Position attributes.
Definition at line 211 of file CommonXMLStructure.h.
|
protected |
PositionVector attributes.
Definition at line 223 of file CommonXMLStructure.h.
|
protected |
stop parameter
Definition at line 241 of file CommonXMLStructure.h.
|
protected |
string attributes
Definition at line 199 of file CommonXMLStructure.h.
|
protected |
stringList attributes
Definition at line 220 of file CommonXMLStructure.h.
|
protected |
SumoBaseObject children.
Definition at line 229 of file CommonXMLStructure.h.
|
protected |
pointer to SumoBaseObject parent (If is null, then is the root)
Definition at line 193 of file CommonXMLStructure.h.
Referenced by SumoBaseObject().
|
protected |
XML myTag.
Definition at line 196 of file CommonXMLStructure.h.
|
protected |
SUMOTime attributes.
Definition at line 214 of file CommonXMLStructure.h.
|
protected |
vehicle class
Definition at line 232 of file CommonXMLStructure.h.
|
protected |
vehicle parameter
Definition at line 238 of file CommonXMLStructure.h.
|
protected |
vehicle type parameter
Definition at line 235 of file CommonXMLStructure.h.