Eclipse SUMO - Simulation of Urban MObility
|
plan parameters (used for group all from-to parameters related with plans) More...
#include <CommonXMLStructure.h>
Public Member Functions | |
void | clear () |
clear parameters | |
int | getNumberOfDefinedParameters () const |
get number of defined plans | |
bool | isSingleEdgePlan () const |
check if this is a single-edge plan | |
PlanParameters () | |
PlanParameters (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOSAXAttributes &attrs, bool &parsedOk) | |
constructor for parsing the parameters from SUMOSAXAttributes | |
Data Fields | |
std::vector< std::string > | consecutiveEdges |
consecutive edges | |
std::string | fromBusStop |
from busStop | |
std::string | fromChargingStation |
from chargingStation | |
std::string | fromContainerStop |
from containerStop | |
std::string | fromEdge |
from edge | |
std::string | fromJunction |
from junction | |
std::string | fromParkingArea |
from parkingArea | |
std::string | fromRoute |
from route | |
std::string | fromTAZ |
from TAZ | |
std::string | fromTrainStop |
from trainStop | |
std::string | toBusStop |
to busStop | |
std::string | toChargingStation |
to chargingStation | |
std::string | toContainerStop |
to containerStop | |
std::string | toEdge |
to edge | |
std::string | toJunction |
to junction | |
std::string | toParkingArea |
to parkingArea | |
std::string | toRoute |
to route | |
std::string | toTAZ |
to TAZ | |
std::string | toTrainStop |
to trainStop | |
Private Member Functions | |
const CommonXMLStructure::SumoBaseObject * | getPreviousPlanObj (const CommonXMLStructure::SumoBaseObject *sumoBaseObject) const |
get previous plan obj | |
void | resetPreviousFromAttributes (const CommonXMLStructure::SumoBaseObject *previousPlanObj, const std::string &newType, const std::string &newId) const |
reste all previous from attributes | |
void | updateFromAttributes (const CommonXMLStructure::SumoBaseObject *sumoBaseObject) |
update the from attributes | |
void | writeIgnoringMessage (const CommonXMLStructure::SumoBaseObject *previousPlanObj, const std::string &oldType, const std::string &oldId, const std::string &newType, const std::string &newId) const |
write ignoring message | |
plan parameters (used for group all from-to parameters related with plans)
Definition at line 44 of file CommonXMLStructure.h.
CommonXMLStructure::PlanParameters::PlanParameters | ( | ) |
Definition at line 37 of file CommonXMLStructure.cpp.
CommonXMLStructure::PlanParameters::PlanParameters | ( | const CommonXMLStructure::SumoBaseObject * | sumoBaseObject, |
const SUMOSAXAttributes & | attrs, | ||
bool & | parsedOk | ||
) |
constructor for parsing the parameters from SUMOSAXAttributes
Definition at line 40 of file CommonXMLStructure.cpp.
References SUMOSAXAttributes::getOpt(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), GNE_ATTR_FROM_BUSSTOP, GNE_ATTR_FROM_CHARGINGSTATION, GNE_ATTR_FROM_CONTAINERSTOP, GNE_ATTR_FROM_PARKINGAREA, GNE_ATTR_FROM_ROUTE, GNE_ATTR_FROM_TRAINSTOP, CommonXMLStructure::SumoBaseObject::hasStringAttribute(), SUMO_ATTR_BUS_STOP, SUMO_ATTR_CHARGING_STATION, SUMO_ATTR_CONTAINER_STOP, SUMO_ATTR_EDGE, SUMO_ATTR_EDGES, SUMO_ATTR_FROM, SUMO_ATTR_FROM_JUNCTION, SUMO_ATTR_FROM_TAZ, SUMO_ATTR_ID, SUMO_ATTR_PARKING_AREA, SUMO_ATTR_ROUTE, SUMO_ATTR_TO, SUMO_ATTR_TO_JUNCTION, SUMO_ATTR_TO_TAZ, and SUMO_ATTR_TRAIN_STOP.
void CommonXMLStructure::PlanParameters::clear | ( | ) |
clear parameters
Definition at line 82 of file CommonXMLStructure.cpp.
Referenced by GNEPlanCreator::clearPath(), and GNEStopFrame::getStopParameter().
int CommonXMLStructure::PlanParameters::getNumberOfDefinedParameters | ( | ) | const |
get number of defined plans
Definition at line 116 of file CommonXMLStructure.cpp.
Referenced by GNEPlanCreator::getNumberOfSelectedElements().
|
private |
get previous plan obj
Definition at line 140 of file CommonXMLStructure.cpp.
References CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), and CommonXMLStructure::SumoBaseObject::getSumoBaseObjectChildren().
bool CommonXMLStructure::PlanParameters::isSingleEdgePlan | ( | ) | const |
check if this is a single-edge plan
Definition at line 106 of file CommonXMLStructure.cpp.
Referenced by GNEDemandElementPlan::getPersonTripTagIcon(), GNEDemandElementPlan::getRideTagIcon(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getTransportTagIcon(), and GNEDemandElementPlan::getWalkTagIcon().
|
private |
reste all previous from attributes
Definition at line 218 of file CommonXMLStructure.cpp.
|
private |
update the from attributes
Definition at line 166 of file CommonXMLStructure.cpp.
|
private |
write ignoring message
Definition at line 248 of file CommonXMLStructure.cpp.
References CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getTag(), SUMO_ATTR_ID, TLF, toString(), and WRITE_WARNING.
std::vector<std::string> CommonXMLStructure::PlanParameters::consecutiveEdges |
consecutive edges
Definition at line 70 of file CommonXMLStructure.h.
Referenced by GNEPlanCreator::addConsecutiveEdge(), GNERouteHandler::duplicatePlan(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getWalkTagIcon(), GNEPlanParents::GNEPlanParents(), GNEPlanCreator::recalculatePath(), and GNEPlanCreator::removeLastElement().
std::string CommonXMLStructure::PlanParameters::fromBusStop |
from busStop
Definition at line 85 of file CommonXMLStructure.h.
Referenced by GNEPlanCreator::addFromToStoppingPlace(), GNEAdditional::checkDrawFromContour(), GNEPlanParents::checkIntegrity(), GNERouteHandler::duplicatePlan(), GNEDemandElementPlan::getPersonTripTagIcon(), GNEDemandElementPlan::getRideTagIcon(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getTransportTagIcon(), GNEDemandElementPlan::getWalkTagIcon(), GNEPlanParents::GNEPlanParents(), GNEPlanCreator::recalculatePath(), and GNEPlanCreator::removeLastElement().
std::string CommonXMLStructure::PlanParameters::fromChargingStation |
from chargingStation
Definition at line 103 of file CommonXMLStructure.h.
Referenced by GNEPlanCreator::addFromToStoppingPlace(), GNEAdditional::checkDrawFromContour(), GNEPlanParents::checkIntegrity(), GNEDemandElementPlan::getPersonTripTagIcon(), GNEDemandElementPlan::getRideTagIcon(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getTransportTagIcon(), GNEDemandElementPlan::getWalkTagIcon(), GNEPlanParents::GNEPlanParents(), GNEPlanCreator::recalculatePath(), and GNEPlanCreator::removeLastElement().
std::string CommonXMLStructure::PlanParameters::fromContainerStop |
from containerStop
Definition at line 97 of file CommonXMLStructure.h.
Referenced by GNEPlanCreator::addFromToStoppingPlace(), GNEAdditional::checkDrawFromContour(), GNEPlanParents::checkIntegrity(), GNERouteHandler::duplicatePlan(), GNEDemandElementPlan::getPersonTripTagIcon(), GNEDemandElementPlan::getRideTagIcon(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getTransportTagIcon(), GNEDemandElementPlan::getWalkTagIcon(), GNEPlanParents::GNEPlanParents(), GNEPlanCreator::recalculatePath(), and GNEPlanCreator::removeLastElement().
std::string CommonXMLStructure::PlanParameters::fromEdge |
from edge
Definition at line 64 of file CommonXMLStructure.h.
Referenced by GNEPlanCreator::addFromToEdge(), GNEEdge::checkDrawFromContour(), GNEPlanParents::checkIntegrity(), GNERouteHandler::duplicatePlan(), GNEDemandElementPlan::getPersonTripTagIcon(), GNEDemandElementPlan::getRideTagIcon(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getTransportTagIcon(), GNEDemandElementPlan::getWalkTagIcon(), GNEPlanParents::GNEPlanParents(), GNEPlanCreator::recalculatePath(), and GNEPlanCreator::removeLastElement().
std::string CommonXMLStructure::PlanParameters::fromJunction |
from junction
Definition at line 73 of file CommonXMLStructure.h.
Referenced by GNEPlanCreator::addFromToJunction(), GNEJunction::checkDrawFromContour(), GNEPlanParents::checkIntegrity(), GNEPlanCreator::drawTemporalRoute(), GNERouteHandler::duplicatePlan(), GNEDemandElementPlan::getPersonTripTagIcon(), GNEDemandElementPlan::getRideTagIcon(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getTransportTagIcon(), GNEDemandElementPlan::getWalkTagIcon(), GNEPlanParents::GNEPlanParents(), GNEPlanCreator::recalculatePath(), and GNEPlanCreator::removeLastElement().
std::string CommonXMLStructure::PlanParameters::fromParkingArea |
from parkingArea
Definition at line 109 of file CommonXMLStructure.h.
Referenced by GNEPlanCreator::addFromToStoppingPlace(), GNEAdditional::checkDrawFromContour(), GNEPlanParents::checkIntegrity(), GNEDemandElementPlan::getPersonTripTagIcon(), GNEDemandElementPlan::getRideTagIcon(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getTransportTagIcon(), GNEDemandElementPlan::getWalkTagIcon(), GNEPlanParents::GNEPlanParents(), GNEPlanCreator::recalculatePath(), and GNEPlanCreator::removeLastElement().
std::string CommonXMLStructure::PlanParameters::fromRoute |
from route
Definition at line 115 of file CommonXMLStructure.h.
Referenced by GNEPlanParents::checkIntegrity(), and GNEPlanParents::GNEPlanParents().
std::string CommonXMLStructure::PlanParameters::fromTAZ |
from TAZ
Definition at line 79 of file CommonXMLStructure.h.
Referenced by GNEPlanCreator::addFromToTAZ(), GNEAdditional::checkDrawFromContour(), GNEPlanParents::checkIntegrity(), GNEPlanCreator::drawTemporalRoute(), GNERouteHandler::duplicatePlan(), GNEDemandElementPlan::getPersonTripTagIcon(), GNEDemandElementPlan::getRideTagIcon(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getTransportTagIcon(), GNEDemandElementPlan::getWalkTagIcon(), GNEPlanParents::GNEPlanParents(), and GNEPlanCreator::removeLastElement().
std::string CommonXMLStructure::PlanParameters::fromTrainStop |
from trainStop
Definition at line 91 of file CommonXMLStructure.h.
Referenced by GNEPlanCreator::addFromToStoppingPlace(), GNEAdditional::checkDrawFromContour(), GNEPlanParents::checkIntegrity(), GNERouteHandler::duplicatePlan(), GNEDemandElementPlan::getPersonTripTagIcon(), GNEDemandElementPlan::getRideTagIcon(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getTransportTagIcon(), GNEDemandElementPlan::getWalkTagIcon(), GNEPlanParents::GNEPlanParents(), GNEPlanCreator::recalculatePath(), and GNEPlanCreator::removeLastElement().
std::string CommonXMLStructure::PlanParameters::toBusStop |
to busStop
Definition at line 88 of file CommonXMLStructure.h.
Referenced by GNEPlanCreator::addFromToStoppingPlace(), GNEPlanCreator::addSingleStoppingPlace(), GNEAdditional::checkDrawToContour(), GNEPlanParents::checkIntegrity(), GNERouteHandler::duplicatePlan(), GNEDemandElementPlan::getContainerStopTagIcon(), GNEDemandElementPlan::getPersonStopTagIcon(), GNEDemandElementPlan::getPersonTripTagIcon(), GNEDemandElementPlan::getRideTagIcon(), GNEStopFrame::getStopParameter(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getTransportTagIcon(), GNEDemandElementPlan::getWalkTagIcon(), GNEPlanParents::GNEPlanParents(), GNEPlanCreator::recalculatePath(), and GNEPlanCreator::removeLastElement().
std::string CommonXMLStructure::PlanParameters::toChargingStation |
to chargingStation
Definition at line 106 of file CommonXMLStructure.h.
Referenced by GNEPlanCreator::addFromToStoppingPlace(), GNEPlanCreator::addSingleStoppingPlace(), GNEAdditional::checkDrawToContour(), GNEPlanParents::checkIntegrity(), GNEDemandElementPlan::getContainerStopTagIcon(), GNEDemandElementPlan::getPersonStopTagIcon(), GNEDemandElementPlan::getPersonTripTagIcon(), GNEDemandElementPlan::getRideTagIcon(), GNEStopFrame::getStopParameter(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getTransportTagIcon(), GNEDemandElementPlan::getWalkTagIcon(), GNEPlanParents::GNEPlanParents(), GNEPlanCreator::recalculatePath(), and GNEPlanCreator::removeLastElement().
std::string CommonXMLStructure::PlanParameters::toContainerStop |
to containerStop
Definition at line 100 of file CommonXMLStructure.h.
Referenced by GNEPlanCreator::addFromToStoppingPlace(), GNEPlanCreator::addSingleStoppingPlace(), GNEAdditional::checkDrawToContour(), GNEPlanParents::checkIntegrity(), GNERouteHandler::duplicatePlan(), GNEDemandElementPlan::getContainerStopTagIcon(), GNEDemandElementPlan::getPersonStopTagIcon(), GNEDemandElementPlan::getPersonTripTagIcon(), GNEDemandElementPlan::getRideTagIcon(), GNEStopFrame::getStopParameter(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getTransportTagIcon(), GNEDemandElementPlan::getWalkTagIcon(), GNEPlanParents::GNEPlanParents(), GNEPlanCreator::recalculatePath(), and GNEPlanCreator::removeLastElement().
std::string CommonXMLStructure::PlanParameters::toEdge |
to edge
Definition at line 67 of file CommonXMLStructure.h.
Referenced by GNEPlanCreator::addFromToEdge(), GNEPlanCreator::addSingleEdge(), GNEEdge::checkDrawToContour(), GNEPlanParents::checkIntegrity(), GNERouteHandler::duplicatePlan(), GNEDemandElementPlan::getContainerStopTagIcon(), GNEDemandElementPlan::getPersonStopTagIcon(), GNEDemandElementPlan::getPersonTripTagIcon(), GNEDemandElementPlan::getRideTagIcon(), GNEStopFrame::getStopParameter(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getTransportTagIcon(), GNEDemandElementPlan::getWalkTagIcon(), GNEPlanParents::GNEPlanParents(), GNEPlanCreator::recalculatePath(), and GNEPlanCreator::removeLastElement().
std::string CommonXMLStructure::PlanParameters::toJunction |
to junction
Definition at line 76 of file CommonXMLStructure.h.
Referenced by GNEPlanCreator::addFromToJunction(), GNEJunction::checkDrawToContour(), GNEPlanParents::checkIntegrity(), GNEPlanCreator::drawTemporalRoute(), GNERouteHandler::duplicatePlan(), GNEDemandElementPlan::getPersonTripTagIcon(), GNEDemandElementPlan::getRideTagIcon(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getTransportTagIcon(), GNEDemandElementPlan::getWalkTagIcon(), GNEPlanParents::GNEPlanParents(), GNEPlanCreator::recalculatePath(), and GNEPlanCreator::removeLastElement().
std::string CommonXMLStructure::PlanParameters::toParkingArea |
to parkingArea
Definition at line 112 of file CommonXMLStructure.h.
Referenced by GNEPlanCreator::addFromToStoppingPlace(), GNEPlanCreator::addSingleStoppingPlace(), GNEAdditional::checkDrawToContour(), GNEPlanParents::checkIntegrity(), GNEDemandElementPlan::getContainerStopTagIcon(), GNEDemandElementPlan::getPersonStopTagIcon(), GNEDemandElementPlan::getPersonTripTagIcon(), GNEDemandElementPlan::getRideTagIcon(), GNEStopFrame::getStopParameter(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getTransportTagIcon(), GNEDemandElementPlan::getWalkTagIcon(), GNEPlanParents::GNEPlanParents(), GNEPlanCreator::recalculatePath(), and GNEPlanCreator::removeLastElement().
std::string CommonXMLStructure::PlanParameters::toRoute |
to route
Definition at line 118 of file CommonXMLStructure.h.
Referenced by GNEPlanCreator::addRoute(), GNEPlanParents::checkIntegrity(), GNERouteHandler::duplicatePlan(), GNEDemandElementPlan::getWalkTagIcon(), and GNEPlanParents::GNEPlanParents().
std::string CommonXMLStructure::PlanParameters::toTAZ |
to TAZ
Definition at line 82 of file CommonXMLStructure.h.
Referenced by GNEPlanCreator::addFromToTAZ(), GNEAdditional::checkDrawToContour(), GNEPlanParents::checkIntegrity(), GNEPlanCreator::drawTemporalRoute(), GNERouteHandler::duplicatePlan(), GNEDemandElementPlan::getPersonTripTagIcon(), GNEDemandElementPlan::getRideTagIcon(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getTransportTagIcon(), GNEDemandElementPlan::getWalkTagIcon(), GNEPlanParents::GNEPlanParents(), and GNEPlanCreator::removeLastElement().
std::string CommonXMLStructure::PlanParameters::toTrainStop |
to trainStop
Definition at line 94 of file CommonXMLStructure.h.
Referenced by GNEPlanCreator::addFromToStoppingPlace(), GNEPlanCreator::addSingleStoppingPlace(), GNEAdditional::checkDrawToContour(), GNEPlanParents::checkIntegrity(), GNERouteHandler::duplicatePlan(), GNEDemandElementPlan::getContainerStopTagIcon(), GNEDemandElementPlan::getPersonStopTagIcon(), GNEDemandElementPlan::getPersonTripTagIcon(), GNEDemandElementPlan::getRideTagIcon(), GNEStopFrame::getStopParameter(), GNEDemandElementPlan::getTranshipTagIcon(), GNEDemandElementPlan::getTransportTagIcon(), GNEDemandElementPlan::getWalkTagIcon(), GNEPlanParents::GNEPlanParents(), GNEPlanCreator::recalculatePath(), and GNEPlanCreator::removeLastElement().