Eclipse SUMO - Simulation of Urban MObility
|
Builds trigger objects for GNENet (busStops, chargingStations, detectors, etc..) More...
#include <GNERouteHandler.h>
Public Member Functions | |
bool | beginParseAttributes (SumoXMLTag tag, const SUMOSAXAttributes &attrs) |
begin parse attributes | |
bool | checkViaAttribute (const SumoXMLTag tag, const std::string &id, const std::vector< std::string > &via) |
check if via attribute is valid | |
void | duplicatePlan (const GNEDemandElement *originalPlan, GNEDemandElement *newParent) |
duplicate given plan in new parent | |
void | endParseAttributes () |
end parse attributes | |
GNERouteHandler (const std::string &file, GNENet *net, const bool allowUndoRedo, const bool overwrite) | |
Constructor. | |
bool | isErrorCreatingElement () const |
get flag for mark if a element wasn't created | |
void | parseSumoBaseObject (CommonXMLStructure::SumoBaseObject *obj) |
parse SumoBaseObject (it's called recursivelly) | |
bool | postParserTasks () |
run post parser tasks | |
virtual | ~GNERouteHandler () |
Destructor. | |
build functions | |
bool | buildVType (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVTypeParameter &vTypeParameter) |
build vType | |
bool | buildVTypeDistribution (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const int deterministic, const std::vector< std::string > &vTypeIDs, const std::vector< double > &probabilities) |
build vType distribution | |
bool | buildRoute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, SUMOVehicleClass vClass, const std::vector< std::string > &edgeIDs, const RGBColor &color, const int repeat, const SUMOTime cycleTime, const double probability, const Parameterised::Map &routeParameters) |
build route | |
bool | buildEmbeddedRoute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::vector< std::string > &edgeIDs, const RGBColor &color, const int repeat, const SUMOTime cycleTime, const Parameterised::Map &routeParameters) |
build embedded route | |
bool | buildRouteDistribution (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::vector< std::string > &routeIDs, const std::vector< double > &probabilities) |
build route distribution | |
bool | buildVehicleOverRoute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters) |
build a vehicle over an existent route | |
bool | buildFlowOverRoute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters) |
build a flow over an existent route | |
bool | buildTrip (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromEdgeID, const std::string &toEdgeID) |
build trip | |
bool | buildTripJunctions (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromJunctionID, const std::string &toJunctionID) |
build trip over junctions | |
bool | buildTripTAZs (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromTAZID, const std::string &toTAZID) |
build trip over TAZs | |
bool | buildFlow (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromEdgeID, const std::string &toEdgeIDs) |
build flow | |
bool | buildFlowJunctions (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromJunctionID, const std::string &toJunctionID) |
build flow over junctions | |
bool | buildFlowTAZs (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromTAZID, const std::string &toTAZID) |
build flow over junctions | |
bool | buildPerson (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &personParameters) |
build person | |
bool | buildPersonFlow (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &personFlowParameters) |
build person flow | |
bool | buildPersonTrip (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPos, const std::vector< std::string > &types, const std::vector< std::string > &modes, const std::vector< std::string > &lines, const double walkFactor, const std::string &group) |
build person trip | |
bool | buildWalk (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPos, const double speed, const SUMOTime duration) |
build walk | |
bool | buildRide (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPos, const std::vector< std::string > &lines, const std::string &group) |
build ride | |
bool | buildContainer (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &containerParameters) |
build container | |
bool | buildContainerFlow (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &containerFlowParameters) |
build container flow | |
bool | buildTransport (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPos, const std::vector< std::string > &lines, const std::string &group) |
build transport | |
bool | buildTranship (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPosition, const double departPosition, const double speed, const SUMOTime duration) |
build tranship | |
bool | buildPersonStop (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double endPos, const SUMOTime duration, const SUMOTime until, const std::string &actType, const bool friendlyPos, const int parameterSet) |
build person stop | |
bool | buildContainerStop (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double endPos, const SUMOTime duration, const SUMOTime until, const std::string &actType, const bool friendlyPos, const int parameterSet) |
build container stop | |
bool | buildStop (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const SUMOVehicleParameter::Stop &stopParameters) |
build stop | |
bool | buildPersonPlan (const GNEDemandElement *planTemplate, GNEDemandElement *personParent, GNEAttributesCreator *personPlanAttributes, GNEPlanCreator *planCreator, const bool centerAfterCreation) |
build person plan | |
bool | buildContainerPlan (const GNEDemandElement *planTemplate, GNEDemandElement *containerParent, GNEAttributesCreator *containerPlanAttributes, GNEPlanCreator *planCreator, const bool centerAfterCreation) |
build container plan | |
Static Public Member Functions | |
static void | transformToVehicle (GNEVehicle *originalVehicle, bool createEmbeddedRoute) |
transform vehicle functions | |
static void | transformToRouteFlow (GNEVehicle *originalVehicle, bool createEmbeddedRoute) |
transform routeFlow over an existent route | |
static void | transformToTrip (GNEVehicle *originalVehicle) |
transform to trip | |
static void | transformToFlow (GNEVehicle *originalVehicle) |
transform to flow | |
static void | transformToTripJunctions (GNEVehicle *originalVehicle) |
transform to trip over junctions | |
static void | transformToFlowJunctions (GNEVehicle *originalVehicle) |
transform to flow over junctions | |
static void | transformToTripTAZs (GNEVehicle *originalVehicle) |
transform to trip over TAZs | |
static void | transformToFlowTAZs (GNEVehicle *originalVehicle) |
transform to flow over TAZs | |
static void | transformToPerson (GNEPerson *originalPerson) |
transform person functions | |
static void | transformToPersonFlow (GNEPerson *originalPerson) |
transform routeFlow over an existent route | |
static void | transformToContainer (GNEContainer *originalContainer) |
transform container functions | |
static void | transformToContainerFlow (GNEContainer *originalContainer) |
transform routeFlow over an existent route | |
static bool | canReverse (const GNEDemandElement *element) |
reverse functions | |
static bool | canReverse (GNENet *net, SUMOVehicleClass vClass, const std::vector< GNEEdge * > &edges) |
check if the given list of edges can be reversed | |
static void | reverse (GNEDemandElement *element) |
reverse given demand element | |
static void | addReverse (GNEDemandElement *element) |
add reverse for given demand element | |
Protected Member Functions | |
bool | checkDuplicatedDemandElement (const SumoXMLTag tag, const std::vector< SumoXMLTag > tags, const std::string &id) |
check if given ID correspond to a duplicated demand element | |
GNEDemandElement * | getContainerParent (const CommonXMLStructure::SumoBaseObject *sumoBaseObject) const |
get container parent | |
bool | getDistributionElements (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, SumoXMLTag distributionElementTag, const std::vector< std::string > &distributionElementIDs, const std::vector< double > &probabilities, std::vector< const GNEDemandElement * > &elements) |
get distribution elements | |
GNEDemandElement * | getPersonParent (const CommonXMLStructure::SumoBaseObject *sumoBaseObject) const |
get person parent | |
GNEDemandElement * | getType (const std::string &id) const |
get type (Either type o typeDistribution) | |
GNEEdge * | parseEdge (const SumoXMLTag tag, const std::string &id, const std::string &edgeID, const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const bool firstEdge) |
parse edge | |
GNEEdge * | parseEdgeFromLaneID (const std::string &laneID) const |
parse edge from lane ID | |
std::vector< GNEEdge * > | parseEdges (const SumoXMLTag tag, const std::string &id, const std::vector< std::string > &edgeIDs) |
parse edges | |
GNEJunction * | parseJunction (const SumoXMLTag tag, const std::string &id, const std::string &junctionID) |
parse junction | |
void | parseParameters (const SUMOSAXAttributes &attrs) |
parse generic parameters | |
GNEEdge * | parseStopEdge (const CommonXMLStructure::SumoBaseObject *sumoBaseObject) const |
parse stop edge | |
GNEAdditional * | parseTAZ (const SumoXMLTag tag, const std::string &id, const std::string &TAZID) |
parse TAZ | |
bool | writeError (const std::string &error) |
write error and enable error creating element | |
bool | writeErrorDuplicated (const SumoXMLTag tag, const std::string &id, const SumoXMLTag checkedTag) |
write error "duplicated additional" | |
bool | writeErrorInvalidDistribution (const SumoXMLTag tag, const std::string &id) |
write error "invalid distribution" | |
bool | writeErrorInvalidLanes (const SumoXMLTag tag, const std::string &id) |
write error "invalid list of lanes" | |
bool | writeErrorInvalidParent (const SumoXMLTag tag, const std::string &id, const SumoXMLTag parentTag, const std::string &parentID) |
write error "invalid parent element" giving ids of current and parent element | |
bool | writeErrorInvalidParent (const SumoXMLTag tag, const SumoXMLTag parentTag) |
write error "invalid parent element" without giving IDs | |
bool | writeErrorInvalidParent (const SumoXMLTag tag, const SumoXMLTag parentTag, const std::string &parentID) |
write error "invalid parent element" giving only the id of parent element | |
bool | writeErrorInvalidPosition (const SumoXMLTag tag, const std::string &id) |
write error "invalid position" | |
check functions | |
check parsed parents | |
void | checkParsedParent (const SumoXMLTag currentTag, const std::vector< SumoXMLTag > &parentTags, bool &ok) |
bool | checkListOfVehicleTypes (const SumoXMLTag tag, const std::string &id, const std::vector< std::string > &vTypeIDs) |
check list of IDs | |
bool | checkNegative (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute, const int value, const bool canBeZero) |
check if the given int value is NOT negative | |
bool | checkNegative (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute, const double value, const bool canBeZero) |
check if the given double value is NOT negative | |
bool | checkNegative (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute, const SUMOTime value, const bool canBeZero) |
check if the given SUMOTime value is NOT negative | |
bool | checkFileName (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute, const std::string &value) |
check if the given filename is valid | |
bool | checkValidAdditionalID (const SumoXMLTag tag, const std::string &value) |
check if the given additional ID is valid | |
bool | checkValidDetectorID (const SumoXMLTag tag, const std::string &value) |
check if the given detector ID is valid | |
bool | checkValidDemandElementID (const SumoXMLTag tag, const std::string &value) |
check if the given demand elmement ID is valid | |
Protected Attributes | |
CommonXMLStructure | myCommonXMLStructure |
common XML Structure | |
bool | myErrorCreatingElement = false |
flag for mark if a element wasn't created | |
Private Member Functions | |
bool | isEmbeddedRoute (const SUMOSAXAttributes &attrs) const |
check embedded route | |
parse route element attributes | |
parse vType | |
void | parseVType (const SUMOSAXAttributes &attrs) |
void | parseVTypeDistribution (const SUMOSAXAttributes &attrs) |
parse vType distribution | |
void | parseRoute (const SUMOSAXAttributes &attrs) |
parse route | |
void | parseRouteDistribution (const SUMOSAXAttributes &attrs) |
parse route distribution | |
void | parseTrip (const SUMOSAXAttributes &attrs) |
parse trip | |
void | parseVehicle (const SUMOSAXAttributes &attrs) |
parse vehicle (including vehicles over routes and vehicles with embedded routes) | |
void | parseFlow (const SUMOSAXAttributes &attrs) |
parse flow (including flows, flows over routes and flows with embedded routes) | |
void | parseStop (const SUMOSAXAttributes &attrs) |
parse stop | |
void | parsePerson (const SUMOSAXAttributes &attrs) |
parse person | |
void | parsePersonFlow (const SUMOSAXAttributes &attrs) |
parse person flow | |
void | parsePersonTrip (const SUMOSAXAttributes &attrs) |
parse person trip | |
void | parseWalk (const SUMOSAXAttributes &attrs) |
parse walk | |
void | parseRide (const SUMOSAXAttributes &attrs) |
parse ride | |
void | parseContainer (const SUMOSAXAttributes &attrs) |
parse container | |
void | parseContainerFlow (const SUMOSAXAttributes &attrs) |
parse container flow | |
void | parseTransport (const SUMOSAXAttributes &attrs) |
parse transport | |
void | parseTranship (const SUMOSAXAttributes &attrs) |
parse tranship | |
void | parseInterval (const SUMOSAXAttributes &attrs) |
parse interval | |
bool | parseNestedCFM (const SumoXMLTag tag, const SUMOSAXAttributes &attrs, CommonXMLStructure::SumoBaseObject *vTypeObject) |
parse nested CarFollowingModel | |
bool | parseStopParameters (SUMOVehicleParameter::Stop &stop, const SUMOSAXAttributes &attrs) |
parse stop parameters | |
Private Attributes | |
const bool | myAllowUndoRedo |
allow undo/redo | |
const std::string | myFilename |
filename (needed for parsing vTypes) | |
SUMOTime | myFlowBeginDefault |
The default value for flow begins. | |
SUMOTime | myFlowEndDefault |
The default value for flow ends. | |
const bool | myHardFail |
enable or disable hardFail (stop parsing if parameter aren't correct) | |
GNENet * | myNet |
pointer to GNENet | |
const bool | myOverwrite |
check if overwrite | |
std::set< GNEDemandElement * > | myParentPlanElements |
demand element parentplans (person and containers, used in postParserTasks) | |
CommonXMLStructure::SumoBaseObject * | myPlanObject |
pointer for person and container plans | |
Static Private Attributes | |
static const std::vector< SumoXMLTag > | myContainerTags |
container tags | |
static const std::vector< SumoXMLTag > | myPersonTags |
person tags | |
static const std::vector< SumoXMLTag > | myVehicleTags |
vehicle tags | |
Builds trigger objects for GNENet (busStops, chargingStations, detectors, etc..)
Definition at line 55 of file GNERouteHandler.h.
GNERouteHandler::GNERouteHandler | ( | const std::string & | file, |
GNENet * | net, | ||
const bool | allowUndoRedo, | ||
const bool | overwrite | ||
) |
Constructor.
Definition at line 73 of file GNERouteHandler.cpp.
|
virtual |
|
static |
add reverse for given demand element
Definition at line 2335 of file GNERouteHandler.cpp.
References GNERoute::copyRoute(), GNEVehicle::copyVehicle(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNETagProperties::isVehicle(), reverse(), and SUMO_TAG_ROUTE.
Referenced by GNEViewNet::onCmdAddReverse().
|
inherited |
begin parse attributes
Definition at line 51 of file RouteHandler.cpp.
References CommonXMLStructure::abortSUMOBaseOBject(), CommonXMLStructure::getCurrentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonHandler::myCommonXMLStructure, CommonXMLStructure::openSUMOBaseOBject(), RouteHandler::parseContainer(), RouteHandler::parseContainerFlow(), RouteHandler::parseFlow(), RouteHandler::parseInterval(), RouteHandler::parseNestedCFM(), CommonHandler::parseParameters(), RouteHandler::parsePerson(), RouteHandler::parsePersonFlow(), RouteHandler::parsePersonTrip(), RouteHandler::parseRide(), RouteHandler::parseRoute(), RouteHandler::parseRouteDistribution(), RouteHandler::parseStop(), RouteHandler::parseTranship(), RouteHandler::parseTransport(), RouteHandler::parseTrip(), RouteHandler::parseVehicle(), RouteHandler::parseVType(), RouteHandler::parseVTypeDistribution(), RouteHandler::parseWalk(), SUMO_TAG_CONTAINER, SUMO_TAG_CONTAINERFLOW, SUMO_TAG_FLOW, SUMO_TAG_INTERVAL, SUMO_TAG_PARAM, SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, SUMO_TAG_PERSONTRIP, SUMO_TAG_RIDE, SUMO_TAG_ROUTE, SUMO_TAG_ROUTE_DISTRIBUTION, SUMO_TAG_STOP, SUMO_TAG_TRANSHIP, SUMO_TAG_TRANSPORT, SUMO_TAG_TRIP, SUMO_TAG_VEHICLE, SUMO_TAG_VTYPE, SUMO_TAG_VTYPE_DISTRIBUTION, SUMO_TAG_WALK, and WRITE_ERROR.
Referenced by GNEGeneralHandler::beginTag().
|
virtual |
build container
Implements RouteHandler.
Definition at line 860 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedDemandElement(), CommonHandler::checkValidDemandElementID(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), getType(), GNEViewNet::getUndoList(), GNENet::getViewNet(), SUMOVehicleParameter::id, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myContainerTags, myNet, myParentPlanElements, SUMO_TAG_CONTAINER, SUMOVehicleParameter::tag, TL, TLF, toString(), SUMOVehicleParameter::vtypeid, and CommonHandler::writeError().
Referenced by transformToContainer().
|
virtual |
build container flow
Implements RouteHandler.
Definition at line 893 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedDemandElement(), CommonHandler::checkValidDemandElementID(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), getType(), GNEViewNet::getUndoList(), GNENet::getViewNet(), SUMOVehicleParameter::id, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myContainerTags, myNet, myParentPlanElements, SUMO_TAG_CONTAINERFLOW, SUMOVehicleParameter::tag, TL, TLF, toString(), SUMOVehicleParameter::vtypeid, and CommonHandler::writeError().
Referenced by transformToContainerFlow().
bool GNERouteHandler::buildContainerPlan | ( | const GNEDemandElement * | planTemplate, |
GNEDemandElement * | containerParent, | ||
GNEAttributesCreator * | containerPlanAttributes, | ||
GNEPlanCreator * | planCreator, | ||
const bool | centerAfterCreation | ||
) |
build container plan
Definition at line 1304 of file GNERouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addStringAttribute(), Boundary::around(), buildContainerStop(), buildTranship(), buildTransport(), GUISUMOAbstractView::centerTo(), CommonXMLStructure::SumoBaseObject::clear(), GNENet::getAttributeCarriers(), GNEAttributesCreator::getAttributesAndValues(), CommonXMLStructure::SumoBaseObject::getBoolAttribute(), GNEPlanCreator::getClickedPositionOverLane(), CommonXMLStructure::SumoBaseObject::getDoubleAttribute(), GNEAttributeCarrier::getID(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), GNEPlanCreator::getPlanParameteres(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getStringListAttribute(), GNETagProperties::getTag(), CommonXMLStructure::SumoBaseObject::getTag(), GNEAttributeCarrier::getTagProperty(), CommonXMLStructure::SumoBaseObject::getTimeAttribute(), GNENet::getViewNet(), GUISUMOAbstractView::getVisibleBoundary(), CommonXMLStructure::SumoBaseObject::hasBoolAttribute(), CommonXMLStructure::SumoBaseObject::hasDoubleAttribute(), CommonXMLStructure::SumoBaseObject::hasStringAttribute(), CommonXMLStructure::SumoBaseObject::hasStringListAttribute(), CommonXMLStructure::SumoBaseObject::hasTimeAttribute(), GNETagProperties::isPlanStopContainer(), GNETagProperties::isPlanTranship(), GNETagProperties::isPlanTransport(), myNet, myPlanObject, GNENetHelper::AttributeCarriers::retrieveDemandElement(), CommonXMLStructure::SumoBaseObject::setTag(), STOP_DURATION_SET, STOP_UNTIL_SET, SUMO_ATTR_ACTTYPE, SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_DURATION, SUMO_ATTR_ENDPOS, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_GROUP, SUMO_ATTR_ID, SUMO_ATTR_LINES, SUMO_ATTR_SPEED, and SUMO_ATTR_UNTIL.
Referenced by GNEContainerFrame::createPath(), and GNEContainerPlanFrame::createPath().
bool GNERouteHandler::buildContainerStop | ( | const CommonXMLStructure::SumoBaseObject * | sumoBaseObject, |
const CommonXMLStructure::PlanParameters & | planParameters, | ||
const double | endPos, | ||
const SUMOTime | duration, | ||
const SUMOTime | until, | ||
const std::string & | actType, | ||
const bool | friendlyPos, | ||
const int | parameterSet | ||
) |
build container stop
Definition at line 1035 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEPlanParents::addChildElements(), GNEUndoList::begin(), GNEPlanParents::checkIntegrity(), GNEUndoList::end(), GNENet::getAttributeCarriers(), getContainerParent(), GNEDemandElementPlan::getContainerStopTagIcon(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, SUMO_TAG_CONTAINER, SUMO_TAG_NOTHING, SUMO_TAG_STOP, TL, TLF, CommonHandler::writeError(), and CommonHandler::writeErrorInvalidParent().
Referenced by buildContainerPlan(), buildStop(), and duplicatePlan().
|
virtual |
build embedded route
Implements RouteHandler.
Definition at line 225 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedDemandElement(), CommonHandler::checkValidDemandElementID(), SUMOVehicleParameter::departLane, SUMOVehicleParameter::departLaneProcedure, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEDemandElement::getAttributeDouble(), GNEAttributeCarrier::getID(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getTag(), GNEAttributeCarrier::getTagStr(), getType(), GNEViewNet::getUndoList(), CommonXMLStructure::SumoBaseObject::getVehicleParameter(), GNENet::getViewNet(), GIVEN, GNE_TAG_FLOW_WITHROUTE, GNE_TAG_VEHICLE_WITHROUTE, SUMOVehicleParameter::id, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, myVehicleTags, parseEdges(), SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_MAXSPEED, SUMO_TAG_FLOW, SUMO_TAG_ROUTE, SUMO_TAG_VEHICLE, SUMO_TAG_VTYPE, SUMOVehicleParameter::tag, TL, TLF, toString(), VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTSPEED_SET, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), CommonHandler::writeError(), and CommonHandler::writeErrorInvalidParent().
Referenced by transformToRouteFlow(), and transformToVehicle().
|
virtual |
build flow
Implements RouteHandler.
Definition at line 541 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedDemandElement(), CommonHandler::checkValidDemandElementID(), checkViaAttribute(), SUMOVehicleParameter::departLane, SUMOVehicleParameter::departLaneProcedure, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEDemandElement::getAttributeDouble(), CommonXMLStructure::SumoBaseObject::getStringListAttribute(), GNEAttributeCarrier::getTagStr(), getType(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GIVEN, CommonXMLStructure::SumoBaseObject::hasStringListAttribute(), SUMOVehicleParameter::id, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, myVehicleTags, parseEdge(), SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_MAXSPEED, SUMO_ATTR_VIA, SUMO_TAG_FLOW, SUMO_TAG_VTYPE, SUMOVehicleParameter::tag, TL, TLF, toString(), VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTSPEED_SET, SUMOVehicleParameter::via, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), CommonHandler::writeError(), and CommonHandler::writeErrorInvalidParent().
Referenced by transformToFlow().
|
virtual |
build flow over junctions
Implements RouteHandler.
Definition at line 594 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedDemandElement(), CommonHandler::checkValidDemandElementID(), SUMOVehicleParameter::departLane, SUMOVehicleParameter::departLaneProcedure, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEDemandElement::getAttributeDouble(), GNEAttributeCarrier::getTagStr(), getType(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GIVEN, GNE_TAG_FLOW_JUNCTIONS, SUMOVehicleParameter::id, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, myVehicleTags, parseJunction(), SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_MAXSPEED, SUMO_TAG_VTYPE, SUMOVehicleParameter::tag, TL, TLF, toString(), VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTSPEED_SET, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), CommonHandler::writeError(), and CommonHandler::writeErrorInvalidParent().
Referenced by transformToFlowJunctions().
|
virtual |
build a flow over an existent route
Implements RouteHandler.
Definition at line 356 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedDemandElement(), CommonHandler::checkValidDemandElementID(), SUMOVehicleParameter::departLane, SUMOVehicleParameter::departLaneProcedure, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEDemandElement::getAttributeDouble(), GNEHierarchicalElement::getParentEdges(), GNEAttributeCarrier::getTagStr(), getType(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GIVEN, GNE_TAG_FLOW_ROUTE, SUMOVehicleParameter::id, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, myVehicleTags, GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMOVehicleParameter::routeid, SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_MAXSPEED, SUMO_TAG_ROUTE, SUMO_TAG_VTYPE, SUMOVehicleParameter::tag, TL, TLF, toString(), VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTSPEED_SET, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), CommonHandler::writeError(), and CommonHandler::writeErrorInvalidParent().
Referenced by transformToRouteFlow().
|
virtual |
build flow over junctions
Implements RouteHandler.
Definition at line 640 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedDemandElement(), CommonHandler::checkValidDemandElementID(), SUMOVehicleParameter::departLane, SUMOVehicleParameter::departLaneProcedure, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEDemandElement::getAttributeDouble(), GNEAttributeCarrier::getTagStr(), getType(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GIVEN, GNE_TAG_FLOW_TAZS, SUMOVehicleParameter::id, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, myVehicleTags, parseTAZ(), SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_MAXSPEED, SUMO_TAG_VTYPE, SUMOVehicleParameter::tag, TL, TLF, toString(), VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTSPEED_SET, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), CommonHandler::writeError(), and CommonHandler::writeErrorInvalidParent().
Referenced by transformToFlowTAZs().
|
virtual |
build person
Implements RouteHandler.
Definition at line 686 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedDemandElement(), CommonHandler::checkValidDemandElementID(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEAttributeCarrier::getTagStr(), getType(), GNEViewNet::getUndoList(), GNENet::getViewNet(), SUMOVehicleParameter::id, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, myParentPlanElements, myPersonTags, SUMO_TAG_PERSON, SUMO_TAG_VTYPE, TL, SUMOVehicleParameter::vtypeid, and CommonHandler::writeErrorInvalidParent().
Referenced by transformToPerson().
|
virtual |
build person flow
Implements RouteHandler.
Definition at line 719 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedDemandElement(), CommonHandler::checkValidDemandElementID(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEAttributeCarrier::getTagStr(), getType(), GNEViewNet::getUndoList(), GNENet::getViewNet(), SUMOVehicleParameter::id, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, myParentPlanElements, myPersonTags, SUMO_TAG_PERSONFLOW, SUMO_TAG_VTYPE, TL, SUMOVehicleParameter::vtypeid, and CommonHandler::writeErrorInvalidParent().
Referenced by transformToPersonFlow().
bool GNERouteHandler::buildPersonPlan | ( | const GNEDemandElement * | planTemplate, |
GNEDemandElement * | personParent, | ||
GNEAttributesCreator * | personPlanAttributes, | ||
GNEPlanCreator * | planCreator, | ||
const bool | centerAfterCreation | ||
) |
build person plan
Definition at line 1227 of file GNERouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addStringAttribute(), Boundary::around(), buildPersonStop(), buildPersonTrip(), buildRide(), buildWalk(), GUISUMOAbstractView::centerTo(), CommonXMLStructure::SumoBaseObject::clear(), GNENet::getAttributeCarriers(), GNEAttributesCreator::getAttributesAndValues(), CommonXMLStructure::SumoBaseObject::getBoolAttribute(), GNEPlanCreator::getClickedPositionOverLane(), CommonXMLStructure::SumoBaseObject::getDoubleAttribute(), GNEAttributeCarrier::getID(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), GNEPlanCreator::getPlanParameteres(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getStringListAttribute(), GNETagProperties::getTag(), CommonXMLStructure::SumoBaseObject::getTag(), GNEAttributeCarrier::getTagProperty(), CommonXMLStructure::SumoBaseObject::getTimeAttribute(), GNENet::getViewNet(), GUISUMOAbstractView::getVisibleBoundary(), CommonXMLStructure::SumoBaseObject::hasBoolAttribute(), CommonXMLStructure::SumoBaseObject::hasDoubleAttribute(), CommonXMLStructure::SumoBaseObject::hasStringAttribute(), CommonXMLStructure::SumoBaseObject::hasStringListAttribute(), CommonXMLStructure::SumoBaseObject::hasTimeAttribute(), GNETagProperties::isPlanPersonTrip(), GNETagProperties::isPlanRide(), GNETagProperties::isPlanStopPerson(), GNETagProperties::isPlanWalk(), myNet, myPlanObject, GNENetHelper::AttributeCarriers::retrieveDemandElement(), CommonXMLStructure::SumoBaseObject::setTag(), STOP_DURATION_SET, STOP_UNTIL_SET, SUMO_ATTR_ACTTYPE, SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DURATION, SUMO_ATTR_ENDPOS, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_GROUP, SUMO_ATTR_ID, SUMO_ATTR_LINES, SUMO_ATTR_MODES, SUMO_ATTR_SPEED, SUMO_ATTR_UNTIL, SUMO_ATTR_VTYPES, and SUMO_ATTR_WALKFACTOR.
Referenced by GNEPersonFrame::createPath(), and GNEPersonPlanFrame::createPath().
bool GNERouteHandler::buildPersonStop | ( | const CommonXMLStructure::SumoBaseObject * | sumoBaseObject, |
const CommonXMLStructure::PlanParameters & | planParameters, | ||
const double | endPos, | ||
const SUMOTime | duration, | ||
const SUMOTime | until, | ||
const std::string & | actType, | ||
const bool | friendlyPos, | ||
const int | parameterSet | ||
) |
build person stop
Definition at line 999 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEPlanParents::addChildElements(), GNEUndoList::begin(), GNEPlanParents::checkIntegrity(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEAttributeCarrier::getID(), getPersonParent(), GNEDemandElementPlan::getPersonStopTagIcon(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, SUMO_TAG_NOTHING, SUMO_TAG_PERSON, SUMO_TAG_STOP, TL, TLF, CommonHandler::writeError(), and CommonHandler::writeErrorInvalidParent().
Referenced by buildPersonPlan(), buildStop(), and duplicatePlan().
|
virtual |
build person trip
Implements RouteHandler.
Definition at line 752 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEPlanParents::addChildElements(), GNEUndoList::begin(), GNEPlanParents::checkIntegrity(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEAttributeCarrier::getID(), getPersonParent(), GNEDemandElementPlan::getPersonTripTagIcon(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, SUMO_TAG_NOTHING, SUMO_TAG_PERSON, SUMO_TAG_PERSONTRIP, TL, TLF, CommonHandler::writeError(), and CommonHandler::writeErrorInvalidParent().
Referenced by buildPersonPlan(), and duplicatePlan().
|
virtual |
build ride
Implements RouteHandler.
Definition at line 826 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEPlanParents::addChildElements(), GNEUndoList::begin(), GNEPlanParents::checkIntegrity(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEAttributeCarrier::getID(), getPersonParent(), GNEDemandElementPlan::getRideTagIcon(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, SUMO_TAG_NOTHING, SUMO_TAG_PERSON, SUMO_TAG_RIDE, TL, TLF, CommonHandler::writeError(), and CommonHandler::writeErrorInvalidParent().
Referenced by buildPersonPlan(), and duplicatePlan().
|
virtual |
build route
Implements RouteHandler.
Definition at line 180 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEDemandElementDistribution::addDistributionKey(), GNEUndoList::begin(), checkDuplicatedDemandElement(), CommonHandler::checkValidDemandElementID(), GNEUndoList::end(), GNENet::getAttributeCarriers(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getTag(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, parseEdges(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMO_ATTR_ID, SUMO_TAG_ROUTE, SUMO_TAG_ROUTE_DISTRIBUTION, and TL.
Referenced by transformToRouteFlow(), and transformToVehicle().
|
virtual |
build route distribution
Implements RouteHandler.
Definition at line 281 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEDemandElementDistribution::addDistributionKey(), GNEUndoList::begin(), checkDuplicatedDemandElement(), CommonHandler::checkValidDemandElementID(), GNEUndoList::end(), GNENet::getAttributeCarriers(), getDistributionElements(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, SUMO_TAG_ROUTE, SUMO_TAG_ROUTE_DISTRIBUTION, and TL.
|
virtual |
build stop
Implements RouteHandler.
Definition at line 1071 of file GNERouteHandler.cpp.
References SUMOVehicleParameter::Stop::actType, GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), buildContainerStop(), buildPersonStop(), SUMOVehicleParameter::Stop::busstop, SUMOVehicleParameter::Stop::chargingStation, SUMOVehicleParameter::Stop::containerstop, SUMOVehicleParameter::Stop::duration, SUMOVehicleParameter::Stop::edge, GNEUndoList::end(), SUMOVehicleParameter::Stop::endPos, SUMOVehicleParameter::Stop::friendlyPos, GNENet::getAttributeCarriers(), GNEAttributeCarrier::getID(), GNELane::getParentEdge(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getStopParameter(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNE_TAG_FLOW_ROUTE, GNE_TAG_FLOW_WITHROUTE, GNE_TAG_STOP_BUSSTOP, GNE_TAG_STOP_CHARGINGSTATION, GNE_TAG_STOP_CONTAINERSTOP, GNE_TAG_STOP_LANE, GNE_TAG_STOP_PARKINGAREA, GNE_TAG_STOP_TRAINSTOP, GNE_TAG_STOPCONTAINER_CONTAINERSTOP, GNE_TAG_STOPPERSON_BUSSTOP, GNE_TAG_STOPPERSON_TRAINSTOP, GNE_TAG_VEHICLE_WITHROUTE, GNE_TAG_WAYPOINT_BUSSTOP, GNE_TAG_WAYPOINT_CHARGINGSTATION, GNE_TAG_WAYPOINT_CONTAINERSTOP, GNE_TAG_WAYPOINT_LANE, GNE_TAG_WAYPOINT_PARKINGAREA, GNE_TAG_WAYPOINT_TRAINSTOP, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), GNETagProperties::isContainer(), GNETagProperties::isPerson(), GNETagProperties::isVehicle(), SUMOVehicleParameter::Stop::lane, myAllowUndoRedo, myNet, SUMOVehicleParameter::Stop::parametersSet, SUMOVehicleParameter::Stop::parkingarea, GNENetHelper::AttributeCarriers::retrieveAdditional(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), GNENetHelper::AttributeCarriers::retrieveEdge(), GNENetHelper::AttributeCarriers::retrieveLane(), SUMOVehicleParameter::Stop::speed, STOP_SPEED_SET, SUMO_ATTR_FROM, SUMO_ATTR_ID, SUMO_ATTR_ROUTE, SUMO_ATTR_TO, SUMO_TAG_BUS_STOP, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CONTAINER, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_CONTAINERFLOW, SUMO_TAG_FLOW, SUMO_TAG_NOTHING, SUMO_TAG_PARKING_AREA, SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, SUMO_TAG_STOP, SUMO_TAG_TRAIN_STOP, SUMO_TAG_VEHICLE, TL, SUMOVehicleParameter::Stop::until, CommonHandler::writeError(), and CommonHandler::writeErrorInvalidParent().
Referenced by GNEStopFrame::addStop().
|
virtual |
build tranship
Implements RouteHandler.
Definition at line 960 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEPlanParents::addChildElements(), GNEUndoList::begin(), GNEPlanParents::checkIntegrity(), CommonHandler::checkNegative(), GNEUndoList::end(), GNENet::getAttributeCarriers(), getContainerParent(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), GNEDemandElementPlan::getTranshipTagIcon(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, SUMO_ATTR_DURATION, SUMO_ATTR_SPEED, SUMO_TAG_CONTAINER, SUMO_TAG_NOTHING, SUMO_TAG_TRANSHIP, TL, TLF, CommonHandler::writeError(), and CommonHandler::writeErrorInvalidParent().
Referenced by buildContainerPlan(), and duplicatePlan().
|
virtual |
build transport
Implements RouteHandler.
Definition at line 926 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEPlanParents::addChildElements(), GNEUndoList::begin(), GNEPlanParents::checkIntegrity(), GNEUndoList::end(), GNENet::getAttributeCarriers(), getContainerParent(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), GNEDemandElementPlan::getTransportTagIcon(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, SUMO_TAG_CONTAINER, SUMO_TAG_NOTHING, SUMO_TAG_TRANSPORT, TL, TLF, CommonHandler::writeError(), and CommonHandler::writeErrorInvalidParent().
Referenced by buildContainerPlan(), and duplicatePlan().
|
virtual |
build trip
Implements RouteHandler.
Definition at line 395 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedDemandElement(), CommonHandler::checkValidDemandElementID(), checkViaAttribute(), SUMOVehicleParameter::departLane, SUMOVehicleParameter::departLaneProcedure, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEDemandElement::getAttributeDouble(), CommonXMLStructure::SumoBaseObject::getStringListAttribute(), GNEAttributeCarrier::getTagStr(), getType(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GIVEN, CommonXMLStructure::SumoBaseObject::hasStringListAttribute(), SUMOVehicleParameter::id, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, myVehicleTags, parseEdge(), SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_MAXSPEED, SUMO_ATTR_VIA, SUMO_TAG_TRIP, SUMO_TAG_VTYPE, SUMOVehicleParameter::tag, TL, TLF, toString(), VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTSPEED_SET, SUMOVehicleParameter::via, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), CommonHandler::writeError(), and CommonHandler::writeErrorInvalidParent().
Referenced by transformToTrip().
|
virtual |
build trip over junctions
Implements RouteHandler.
Definition at line 448 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedDemandElement(), CommonHandler::checkValidDemandElementID(), SUMOVehicleParameter::departLane, SUMOVehicleParameter::departLaneProcedure, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEDemandElement::getAttributeDouble(), GNEAttributeCarrier::getTagStr(), getType(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GIVEN, GNE_TAG_TRIP_JUNCTIONS, SUMOVehicleParameter::id, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, myVehicleTags, parseJunction(), SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_MAXSPEED, SUMO_TAG_VTYPE, SUMOVehicleParameter::tag, TL, TLF, toString(), VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTSPEED_SET, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), CommonHandler::writeError(), and CommonHandler::writeErrorInvalidParent().
Referenced by transformToTripJunctions().
|
virtual |
build trip over TAZs
Implements RouteHandler.
Definition at line 495 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedDemandElement(), CommonHandler::checkValidDemandElementID(), SUMOVehicleParameter::departLane, SUMOVehicleParameter::departLaneProcedure, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEDemandElement::getAttributeDouble(), GNEAttributeCarrier::getTagStr(), getType(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GIVEN, GNE_TAG_TRIP_TAZS, SUMOVehicleParameter::id, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, myVehicleTags, parseTAZ(), SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_MAXSPEED, SUMO_TAG_VTYPE, SUMOVehicleParameter::tag, TL, TLF, toString(), VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTSPEED_SET, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), CommonHandler::writeError(), and CommonHandler::writeErrorInvalidParent().
Referenced by transformToTripTAZs().
|
virtual |
build a vehicle over an existent route
Implements RouteHandler.
Definition at line 317 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedDemandElement(), CommonHandler::checkValidDemandElementID(), SUMOVehicleParameter::departLane, SUMOVehicleParameter::departLaneProcedure, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEDemandElement::getAttributeDouble(), GNEHierarchicalElement::getParentEdges(), GNEAttributeCarrier::getTagStr(), getType(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GIVEN, SUMOVehicleParameter::id, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, myVehicleTags, GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMOVehicleParameter::routeid, SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_MAXSPEED, SUMO_TAG_ROUTE, SUMO_TAG_VEHICLE, SUMO_TAG_VTYPE, SUMOVehicleParameter::tag, TL, TLF, toString(), VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTSPEED_SET, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), CommonHandler::writeError(), and CommonHandler::writeErrorInvalidParent().
Referenced by transformToVehicle().
|
virtual |
build vType
Implements RouteHandler.
Definition at line 107 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEDemandElementDistribution::addDistributionKey(), GNEUndoList::begin(), checkDuplicatedDemandElement(), CommonHandler::checkValidDemandElementID(), DEFAULT_VTYPES, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEDemandElement::getAttributeDouble(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getTag(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), SUMOVTypeParameter::id, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, GNEVType::overwriteVType(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMO_ATTR_ID, SUMO_ATTR_PROB, SUMO_TAG_VTYPE, SUMO_TAG_VTYPE_DISTRIBUTION, and TL.
|
virtual |
build vType distribution
Implements RouteHandler.
Definition at line 144 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEDemandElementDistribution::addDistributionKey(), GNEUndoList::begin(), checkDuplicatedDemandElement(), CommonHandler::checkValidDemandElementID(), GNEUndoList::end(), GNENet::getAttributeCarriers(), getDistributionElements(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, SUMO_TAG_VTYPE, SUMO_TAG_VTYPE_DISTRIBUTION, and TL.
|
virtual |
build walk
Implements RouteHandler.
Definition at line 788 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEPlanParents::addChildElements(), GNEUndoList::begin(), GNEPlanParents::checkIntegrity(), CommonHandler::checkNegative(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEAttributeCarrier::getID(), getPersonParent(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEDemandElementPlan::getWalkTagIcon(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, SUMO_ATTR_DURATION, SUMO_ATTR_SPEED, SUMO_TAG_NOTHING, SUMO_TAG_PERSON, SUMO_TAG_WALK, TL, TLF, CommonHandler::writeError(), and CommonHandler::writeErrorInvalidParent().
Referenced by buildPersonPlan(), and duplicatePlan().
|
static |
reverse functions
check if the given vehicle can be reversed
Definition at line 2240 of file GNERouteHandler.cpp.
References GNEPathManager::PathCalculator::calculateDijkstraPath(), canReverse(), GNEHierarchicalElement::getChildDemandElements(), GNENet::getDemandPathManager(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEHierarchicalElement::getParentJunctions(), GNEPathManager::getPathCalculator(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEDemandElement::getVClass(), SUMO_TAG_ROUTE, SVC_PEDESTRIAN, GNETagProperties::vehicleEdges(), GNETagProperties::vehicleJunctions(), GNETagProperties::vehicleRoute(), GNETagProperties::vehicleRouteEmbedded(), and GNETagProperties::vehicleTAZs().
Referenced by GNEDemandElement::buildMenuAddReverse(), and canReverse().
|
static |
check if the given list of edges can be reversed
Definition at line 2262 of file GNERouteHandler.cpp.
References GNEPathManager::PathCalculator::calculateDijkstraPath(), GNENet::getDemandPathManager(), and GNEPathManager::getPathCalculator().
|
protected |
check if given ID correspond to a duplicated demand element
Definition at line 2572 of file GNERouteHandler.cpp.
References GNENet::deleteDemandElement(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), myAllowUndoRedo, myNet, myOverwrite, GNENetHelper::AttributeCarriers::retrieveDemandElement(), and CommonHandler::writeErrorDuplicated().
Referenced by buildContainer(), buildContainerFlow(), buildEmbeddedRoute(), buildFlow(), buildFlowJunctions(), buildFlowOverRoute(), buildFlowTAZs(), buildPerson(), buildPersonFlow(), buildRoute(), buildRouteDistribution(), buildTrip(), buildTripJunctions(), buildTripTAZs(), buildVehicleOverRoute(), buildVType(), and buildVTypeDistribution().
|
protectedinherited |
check if the given filename is valid
Definition at line 175 of file CommonHandler.cpp.
References SUMOXMLDefinitions::isValidFilename(), TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildPOI(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildRouteProbe(), and GNEAdditionalHandler::buildSingleLaneDetectorE2().
|
protectedinherited |
check list of IDs
Definition at line 110 of file CommonHandler.cpp.
References SUMOXMLDefinitions::isValidTypeID(), TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), and GNEAdditionalHandler::buildVariableSpeedSign().
|
protectedinherited |
check if the given double value is NOT negative
Definition at line 139 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
|
protectedinherited |
check if the given int value is NOT negative
Definition at line 121 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEAdditionalHandler::buildLaneCalibrator(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNEAdditionalHandler::buildPOI(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildPolygon(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRerouterInterval(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNEAdditionalHandler::buildTractionSubstation(), GNEAdditionalHandler::buildTrainStop(), buildTranship(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSignStep(), buildWalk(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseRerouterAttributes(), RouteHandler::parseRoute(), and AdditionalHandler::parseRouteProbRerouteAttributes().
|
protectedinherited |
check if the given SUMOTime value is NOT negative
Definition at line 157 of file CommonHandler.cpp.
References time2string(), TLF, toString(), and CommonHandler::writeError().
|
protectedinherited |
Definition at line 79 of file CommonHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getTag(), CommonXMLStructure::SumoBaseObject::hasStringAttribute(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_ID, SUMO_TAG_NOTHING, TLF, toString(), and CommonHandler::writeError().
Referenced by AdditionalHandler::parseAccessAttributes(), AdditionalHandler::parseClosingLaneRerouteAttributes(), AdditionalHandler::parseClosingRerouteAttributes(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseEntryAttributes(), AdditionalHandler::parseExitAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseParkingSpaceAttributes(), RouteHandler::parsePersonTrip(), AdditionalHandler::parseRerouterIntervalAttributes(), RouteHandler::parseRide(), AdditionalHandler::parseRouteProbRerouteAttributes(), RouteHandler::parseStop(), AdditionalHandler::parseTAZSinkAttributes(), AdditionalHandler::parseTAZSourceAttributes(), RouteHandler::parseTranship(), RouteHandler::parseTransport(), AdditionalHandler::parseVariableSpeedSignStepAttributes(), and RouteHandler::parseWalk().
|
protectedinherited |
check if the given additional ID is valid
Definition at line 185 of file CommonHandler.cpp.
References SUMOXMLDefinitions::isValidVehicleID(), TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEDataHandler::buildDataSet(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEMeanDataHandler::buildEdgeMeanData(), GNEAdditionalHandler::buildJpsObstacle(), GNEAdditionalHandler::buildJpsWalkableArea(), GNEAdditionalHandler::buildLaneCalibrator(), GNEMeanDataHandler::buildLaneMeanData(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildPOI(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildPolygon(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTractionSubstation(), GNEAdditionalHandler::buildTrainStop(), GNEAdditionalHandler::buildVaporizer(), and GNEAdditionalHandler::buildVariableSpeedSign().
|
protectedinherited |
check if the given demand elmement ID is valid
Definition at line 209 of file CommonHandler.cpp.
References SUMOXMLDefinitions::isValidVehicleID(), TLF, toString(), and CommonHandler::writeError().
Referenced by buildContainer(), buildContainerFlow(), buildEmbeddedRoute(), buildFlow(), buildFlowJunctions(), buildFlowOverRoute(), buildFlowTAZs(), buildPerson(), buildPersonFlow(), buildRoute(), buildRouteDistribution(), buildTrip(), buildTripJunctions(), buildTripTAZs(), buildVehicleOverRoute(), buildVType(), and buildVTypeDistribution().
|
protectedinherited |
check if the given detector ID is valid
Definition at line 197 of file CommonHandler.cpp.
References SUMOXMLDefinitions::isValidDetectorID(), TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), and GNEAdditionalHandler::buildSingleLaneDetectorE2().
bool GNERouteHandler::checkViaAttribute | ( | const SumoXMLTag | tag, |
const std::string & | id, | ||
const std::vector< std::string > & | via | ||
) |
check if via attribute is valid
Definition at line 1543 of file GNERouteHandler.cpp.
References GNENet::getAttributeCarriers(), myNet, GNENetHelper::AttributeCarriers::retrieveEdge(), SUMO_TAG_EDGE, TLF, toString(), and CommonHandler::writeError().
Referenced by buildFlow(), and buildTrip().
void GNERouteHandler::duplicatePlan | ( | const GNEDemandElement * | originalPlan, |
GNEDemandElement * | newParent | ||
) |
duplicate given plan in new parent
Definition at line 1377 of file GNERouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addBoolAttribute(), CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), CommonXMLStructure::SumoBaseObject::addTimeAttribute(), buildContainerStop(), buildPersonStop(), buildPersonTrip(), buildRide(), buildTranship(), buildTransport(), buildWalk(), CommonXMLStructure::SumoBaseObject::clear(), CommonXMLStructure::PlanParameters::consecutiveEdges, CommonXMLStructure::PlanParameters::fromBusStop, CommonXMLStructure::PlanParameters::fromContainerStop, CommonXMLStructure::PlanParameters::fromEdge, CommonXMLStructure::PlanParameters::fromJunction, CommonXMLStructure::PlanParameters::fromTAZ, CommonXMLStructure::PlanParameters::fromTrainStop, GNEDemandElement::getAttribute(), GNEDemandElement::getAttributeDouble(), CommonXMLStructure::SumoBaseObject::getBoolAttribute(), CommonXMLStructure::SumoBaseObject::getDoubleAttribute(), GNEAttributeCarrier::getID(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getStringListAttribute(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), CommonXMLStructure::SumoBaseObject::getTimeAttribute(), GNE_ATTR_FROM_BUSSTOP, GNE_ATTR_FROM_CONTAINERSTOP, GNE_ATTR_FROM_TRAINSTOP, CommonXMLStructure::SumoBaseObject::hasStringAttribute(), CommonXMLStructure::SumoBaseObject::hasTimeAttribute(), myPlanObject, CommonXMLStructure::SumoBaseObject::setTag(), STOP_DURATION_SET, STOP_UNTIL_SET, SUMO_ATTR_ACTTYPE, SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_BUS_STOP, SUMO_ATTR_CONTAINER_STOP, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_DURATION, SUMO_ATTR_EDGE, SUMO_ATTR_EDGES, SUMO_ATTR_ENDPOS, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_FROM, SUMO_ATTR_FROM_JUNCTION, SUMO_ATTR_FROM_TAZ, SUMO_ATTR_GROUP, SUMO_ATTR_ID, SUMO_ATTR_LINES, SUMO_ATTR_MODES, SUMO_ATTR_ROUTE, SUMO_ATTR_SPEED, SUMO_ATTR_TO, SUMO_ATTR_TO_JUNCTION, SUMO_ATTR_TO_TAZ, SUMO_ATTR_TRAIN_STOP, SUMO_ATTR_UNTIL, SUMO_ATTR_VTYPES, SUMO_ATTR_WALKFACTOR, CommonXMLStructure::PlanParameters::toBusStop, CommonXMLStructure::PlanParameters::toContainerStop, CommonXMLStructure::PlanParameters::toEdge, CommonXMLStructure::PlanParameters::toJunction, CommonXMLStructure::PlanParameters::toRoute, CommonXMLStructure::PlanParameters::toTAZ, and CommonXMLStructure::PlanParameters::toTrainStop.
Referenced by transformToPerson(), and transformToPersonFlow().
|
inherited |
end parse attributes
Definition at line 147 of file RouteHandler.cpp.
References CommonXMLStructure::closeSUMOBaseOBject(), CommonXMLStructure::getCurrentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getTag(), CommonHandler::myCommonXMLStructure, RouteHandler::parseSumoBaseObject(), SUMO_ATTR_ID, SUMO_TAG_CONTAINER, SUMO_TAG_CONTAINERFLOW, SUMO_TAG_FLOW, SUMO_TAG_NOTHING, SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, SUMO_TAG_ROUTE, SUMO_TAG_ROUTE_DISTRIBUTION, SUMO_TAG_TRIP, SUMO_TAG_VEHICLE, SUMO_TAG_VTYPE, and SUMO_TAG_VTYPE_DISTRIBUTION.
Referenced by GNEGeneralHandler::endTag().
|
protected |
get container parent
Definition at line 2520 of file GNERouteHandler.cpp.
References GNENet::getAttributeCarriers(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getTag(), myNet, GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMO_ATTR_ID, SUMO_TAG_CONTAINER, and SUMO_TAG_CONTAINERFLOW.
Referenced by buildContainerStop(), buildTranship(), and buildTransport().
|
protected |
get distribution elements
Definition at line 2541 of file GNERouteHandler.cpp.
References GNENet::getAttributeCarriers(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getTag(), myNet, GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMO_ATTR_ID, TLF, toString(), and CommonHandler::writeError().
Referenced by buildRouteDistribution(), and buildVTypeDistribution().
|
protected |
get person parent
Definition at line 2499 of file GNERouteHandler.cpp.
References GNENet::getAttributeCarriers(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getTag(), myNet, GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMO_ATTR_ID, SUMO_TAG_PERSON, and SUMO_TAG_PERSONFLOW.
Referenced by buildPersonStop(), buildPersonTrip(), buildRide(), and buildWalk().
|
protected |
get type (Either type o typeDistribution)
Definition at line 2488 of file GNERouteHandler.cpp.
References GNENet::getAttributeCarriers(), myNet, GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMO_TAG_VTYPE, and SUMO_TAG_VTYPE_DISTRIBUTION.
Referenced by buildContainer(), buildContainerFlow(), buildEmbeddedRoute(), buildFlow(), buildFlowJunctions(), buildFlowOverRoute(), buildFlowTAZs(), buildPerson(), buildPersonFlow(), buildTrip(), buildTripJunctions(), buildTripTAZs(), and buildVehicleOverRoute().
|
privateinherited |
check embedded route
Definition at line 1189 of file RouteHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getTag(), SUMOSAXAttributes::hasAttribute(), CommonXMLStructure::SumoBaseObject::hasStringAttribute(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_ID, SUMO_ATTR_ROUTE, SUMO_TAG_FLOW, and SUMO_TAG_VEHICLE.
Referenced by RouteHandler::parseRoute().
|
inherited |
get flag for mark if a element wasn't created
Definition at line 41 of file CommonHandler.cpp.
References CommonHandler::myErrorCreatingElement.
Referenced by GNEGeneralHandler::isErrorCreatingElement(), GNEApplicationWindow::loadDataElements(), and GNEApplicationWindow::onCmdOpenDataElements().
|
privateinherited |
parse container
Definition at line 870 of file RouteHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), CommonHandler::myCommonXMLStructure, RouteHandler::myHardFail, SUMOVehicleParserHelper::parseVehicleAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), SUMO_TAG_CONTAINER, and SUMO_TAG_NOTHING.
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse container flow
Definition at line 887 of file RouteHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), CommonHandler::myCommonXMLStructure, RouteHandler::myFlowBeginDefault, RouteHandler::myFlowEndDefault, RouteHandler::myHardFail, SUMOVehicleParserHelper::parseFlowAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), SUMO_TAG_CONTAINERFLOW, and SUMO_TAG_NOTHING.
Referenced by RouteHandler::beginParseAttributes().
|
protected |
parse edge
Definition at line 2375 of file GNERouteHandler.cpp.
References GNENet::getAttributeCarriers(), CommonXMLStructure::SumoBaseObject::getSumoBaseObjectChildren(), myNet, parseStopEdge(), GNENetHelper::AttributeCarriers::retrieveEdge(), SUMO_TAG_CHARGING_STATION, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_EDGE, SUMO_TAG_PARKING_AREA, SUMO_TAG_STOP, SUMO_TAG_TRAIN_STOP, and CommonHandler::writeErrorInvalidParent().
Referenced by buildFlow(), and buildTrip().
|
protected |
parse edge from lane ID
Definition at line 2460 of file GNERouteHandler.cpp.
References GNENet::getAttributeCarriers(), myNet, and GNENetHelper::AttributeCarriers::retrieveEdge().
Referenced by parseStopEdge().
|
protected |
parse edges
Definition at line 2470 of file GNERouteHandler.cpp.
References GNENet::getAttributeCarriers(), myNet, GNENetHelper::AttributeCarriers::retrieveEdge(), SUMO_TAG_EDGE, TLF, toString(), and CommonHandler::writeError().
Referenced by buildEmbeddedRoute(), and buildRoute().
|
privateinherited |
parse flow (including flows, flows over routes and flows with embedded routes)
Definition at line 625 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::hasAttribute(), SUMOVehicleParameter::id, CommonHandler::myCommonXMLStructure, RouteHandler::myFlowBeginDefault, RouteHandler::myFlowEndDefault, RouteHandler::myHardFail, SUMOVehicleParserHelper::parseFlowAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), SUMO_ATTR_FROM, SUMO_ATTR_FROM_JUNCTION, SUMO_ATTR_FROM_TAZ, SUMO_ATTR_ROUTE, SUMO_ATTR_TO, SUMO_ATTR_TO_JUNCTION, SUMO_ATTR_TO_TAZ, SUMO_ATTR_VIA, SUMO_TAG_FLOW, SUMO_TAG_NOTHING, TL, and CommonHandler::writeError().
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse interval
Definition at line 963 of file RouteHandler.cpp.
References SUMOSAXAttributes::getSUMOTimeReporting(), RouteHandler::myFlowBeginDefault, RouteHandler::myFlowEndDefault, SUMO_ATTR_BEGIN, and SUMO_ATTR_END.
Referenced by RouteHandler::beginParseAttributes().
|
protected |
parse junction
Definition at line 2353 of file GNERouteHandler.cpp.
References GNENet::getAttributeCarriers(), myNet, GNENetHelper::AttributeCarriers::retrieveJunction(), SUMO_TAG_JUNCTION, and CommonHandler::writeErrorInvalidParent().
Referenced by buildFlowJunctions(), and buildTripJunctions().
|
privateinherited |
parse nested CarFollowingModel
Definition at line 973 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getVehicleTypeParameter(), RouteHandler::myHardFail, SUMOVehicleParserHelper::parseCFMParams(), CommonXMLStructure::SumoBaseObject::setVehicleTypeParameter(), SUMO_ATTR_ID, TL, WRITE_WARNINGF, and CommonHandler::writeError().
Referenced by RouteHandler::beginParseAttributes().
|
protectedinherited |
parse generic parameters
Definition at line 47 of file CommonHandler.cpp.
References SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), SUMOSAXAttributes::getString(), SUMOSAXAttributes::hasAttribute(), SUMOXMLDefinitions::isValidParameterKey(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_NOTHING, SUMO_TAG_PARAM, SUMO_TAG_ROOTFILE, TL, TLF, toString(), WRITE_DEBUG, and CommonHandler::writeError().
Referenced by AdditionalHandler::beginParseAttributes(), and RouteHandler::beginParseAttributes().
|
privateinherited |
parse person
Definition at line 735 of file RouteHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), CommonHandler::myCommonXMLStructure, RouteHandler::myHardFail, SUMOVehicleParserHelper::parseVehicleAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), SUMO_TAG_NOTHING, and SUMO_TAG_PERSON.
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse person flow
Definition at line 752 of file RouteHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), CommonHandler::myCommonXMLStructure, RouteHandler::myFlowBeginDefault, RouteHandler::myFlowEndDefault, RouteHandler::myHardFail, SUMOVehicleParserHelper::parseFlowAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), SUMO_TAG_NOTHING, and SUMO_TAG_PERSONFLOW.
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse person trip
Definition at line 769 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), CommonHandler::checkParsedParent(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, SUMOVehicleParameter::parsePersonModes(), NamespaceIDs::persons, CommonXMLStructure::SumoBaseObject::setPlanParameters(), CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_GROUP, SUMO_ATTR_LINES, SUMO_ATTR_MODES, SUMO_ATTR_VIA, SUMO_ATTR_VTYPES, SUMO_ATTR_WALKFACTOR, SUMO_TAG_NOTHING, SUMO_TAG_PERSONTRIP, toString(), and WRITE_WARNING.
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse ride
Definition at line 844 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), CommonHandler::checkParsedParent(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, NamespaceIDs::persons, CommonXMLStructure::SumoBaseObject::setPlanParameters(), CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_GROUP, SUMO_ATTR_LINES, SUMO_TAG_NOTHING, and SUMO_TAG_RIDE.
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse route
Definition at line 469 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addColorAttribute(), CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addIntAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), CommonXMLStructure::SumoBaseObject::addTimeAttribute(), CommonHandler::checkNegative(), SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::getOptSUMOTimeReporting(), SUMOSAXAttributes::hasAttribute(), RGBColor::INVISIBLE, RouteHandler::isEmbeddedRoute(), CommonHandler::myCommonXMLStructure, SUMOVehicleParserHelper::parseVehicleClass(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVClass(), SUMO_ATTR_COLOR, SUMO_ATTR_CYCLETIME, SUMO_ATTR_EDGES, SUMO_ATTR_ID, SUMO_ATTR_PROB, SUMO_ATTR_REPEAT, SUMO_TAG_NOTHING, SUMO_TAG_ROUTE, TL, and CommonHandler::writeError().
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse route distribution
Definition at line 511 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleListAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_ID, SUMO_ATTR_PROBS, SUMO_ATTR_ROUTES, SUMO_TAG_NOTHING, SUMO_TAG_ROUTE_DISTRIBUTION, and CommonHandler::writeErrorInvalidDistribution().
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse stop
Definition at line 706 of file RouteHandler.cpp.
References CommonHandler::checkParsedParent(), NamespaceIDs::containers, CommonXMLStructure::getCurrentSumoBaseObject(), CommonHandler::myCommonXMLStructure, RouteHandler::parseStopParameters(), NamespaceIDs::persons, NamespaceIDs::routes, CommonXMLStructure::SumoBaseObject::setPlanParameters(), CommonXMLStructure::SumoBaseObject::setStopParameter(), CommonXMLStructure::SumoBaseObject::setTag(), SUMO_TAG_NOTHING, SUMO_TAG_STOP, and NamespaceIDs::vehicles.
Referenced by RouteHandler::beginParseAttributes().
|
protected |
parse stop edge
Definition at line 2405 of file GNERouteHandler.cpp.
References GNENet::getAttributeCarriers(), GNEHierarchicalElement::getParentLanes(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::hasStringAttribute(), myNet, parseEdgeFromLaneID(), GNENetHelper::AttributeCarriers::retrieveAdditional(), GNENetHelper::AttributeCarriers::retrieveEdge(), SUMO_ATTR_BUS_STOP, SUMO_ATTR_CHARGING_STATION, SUMO_ATTR_CONTAINER_STOP, SUMO_ATTR_EDGE, SUMO_ATTR_LANE, SUMO_ATTR_PARKING_AREA, SUMO_ATTR_TRAIN_STOP, SUMO_TAG_BUS_STOP, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_PARKING_AREA, and SUMO_TAG_TRAIN_STOP.
Referenced by parseEdge().
|
privateinherited |
parse stop parameters
Definition at line 992 of file RouteHandler.cpp.
References SUMOVehicleParameter::Stop::actType, SUMOVehicleParameter::Stop::arrival, SUMOVehicleParameter::Stop::awaitedContainers, SUMOVehicleParameter::Stop::awaitedPersons, SUMOVehicleParameter::Stop::busstop, SUMOVehicleParameter::Stop::chargingStation, SUMOVehicleParameter::Stop::containerstop, SUMOVehicleParameter::Stop::containerTriggered, SUMOVehicleParameter::Stop::duration, SUMOVehicleParameter::Stop::edge, SUMOVehicleParameter::Stop::ended, SUMOVehicleParameter::Stop::endPos, SUMOVehicleParameter::Stop::extension, SUMOVehicleParameter::Stop::friendlyPos, SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::getOptSUMOTimeReporting(), SUMOSAXAttributes::hasAttribute(), SUMOVehicleParameter::Stop::index, INVALID_DOUBLE, SUMOVehicleParameter::Stop::join, SUMOVehicleParameter::Stop::jump, SUMOVehicleParameter::Stop::lane, SUMOVehicleParameter::Stop::line, OFFROAD, SUMOVehicleParameter::Stop::onDemand, ONROAD, SUMOVehicleParameter::Stop::overheadWireSegment, SUMOVehicleParameter::Stop::parametersSet, SUMOVehicleParameter::Stop::parking, SUMOVehicleParameter::Stop::parkingarea, SUMOVehicleParameter::parseStopTriggers(), SUMOVehicleParameter::Stop::permitted, SUMOVehicleParameter::Stop::posLat, SUMOVehicleParameter::Stop::speed, SUMOVehicleParameter::Stop::split, SUMOVehicleParameter::Stop::started, SUMOVehicleParameter::Stop::startPos, STOP_ARRIVAL_SET, STOP_CONTAINER_TRIGGER_SET, STOP_DURATION_SET, STOP_END_SET, STOP_ENDED_SET, STOP_EXPECTED_CONTAINERS_SET, STOP_EXPECTED_SET, STOP_EXTENSION_SET, STOP_INDEX_END, STOP_INDEX_FIT, STOP_JOIN_SET, STOP_JUMP_SET, STOP_LINE_SET, STOP_ONDEMAND_SET, STOP_PARKING_SET, STOP_PERMITTED_SET, STOP_POSLAT_SET, STOP_SPEED_SET, STOP_SPLIT_SET, STOP_START_SET, STOP_STARTED_SET, STOP_TRIGGER_SET, STOP_TRIP_ID_SET, STOP_UNTIL_SET, SUMO_ATTR_ACTTYPE, SUMO_ATTR_ARRIVAL, SUMO_ATTR_BUS_STOP, SUMO_ATTR_CHARGING_STATION, SUMO_ATTR_CONTAINER_STOP, SUMO_ATTR_CONTAINER_TRIGGERED, SUMO_ATTR_DURATION, SUMO_ATTR_EDGE, SUMO_ATTR_ENDED, SUMO_ATTR_ENDPOS, SUMO_ATTR_EXPECTED, SUMO_ATTR_EXPECTED_CONTAINERS, SUMO_ATTR_EXTENSION, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_INDEX, SUMO_ATTR_JOIN, SUMO_ATTR_JUMP, SUMO_ATTR_LANE, SUMO_ATTR_LINE, SUMO_ATTR_ONDEMAND, SUMO_ATTR_OVERHEAD_WIRE_SEGMENT, SUMO_ATTR_PARKING, SUMO_ATTR_PARKING_AREA, SUMO_ATTR_PERMITTED, SUMO_ATTR_POSITION_LAT, SUMO_ATTR_SPEED, SUMO_ATTR_SPLIT, SUMO_ATTR_STARTED, SUMO_ATTR_STARTPOS, SUMO_ATTR_TRAIN_STOP, SUMO_ATTR_TRIGGERED, SUMO_ATTR_TRIP_ID, SUMO_ATTR_UNTIL, SUMO_TAG_CONTAINER, TL, toString(), SUMOVehicleParameter::Stop::triggered, SUMOVehicleParameter::Stop::tripId, SUMOVehicleParameter::Stop::until, WRITE_WARNING, and CommonHandler::writeError().
Referenced by RouteHandler::parseStop().
|
inherited |
parse SumoBaseObject (it's called recursivelly)
Definition at line 200 of file RouteHandler.cpp.
References RouteHandler::buildContainer(), RouteHandler::buildContainerFlow(), RouteHandler::buildEmbeddedRoute(), RouteHandler::buildFlow(), RouteHandler::buildFlowJunctions(), RouteHandler::buildFlowOverRoute(), RouteHandler::buildFlowTAZs(), RouteHandler::buildPerson(), RouteHandler::buildPersonFlow(), RouteHandler::buildPersonTrip(), RouteHandler::buildRide(), RouteHandler::buildRoute(), RouteHandler::buildRouteDistribution(), RouteHandler::buildStop(), RouteHandler::buildTranship(), RouteHandler::buildTransport(), RouteHandler::buildTrip(), RouteHandler::buildTripJunctions(), RouteHandler::buildTripTAZs(), RouteHandler::buildVehicleOverRoute(), RouteHandler::buildVType(), RouteHandler::buildVTypeDistribution(), RouteHandler::buildWalk(), CommonXMLStructure::SumoBaseObject::getColorAttribute(), CommonXMLStructure::SumoBaseObject::getDoubleAttribute(), CommonXMLStructure::SumoBaseObject::getDoubleListAttribute(), CommonXMLStructure::SumoBaseObject::getIntAttribute(), CommonXMLStructure::SumoBaseObject::getParameters(), CommonXMLStructure::SumoBaseObject::getPlanParameters(), CommonXMLStructure::SumoBaseObject::getStopParameter(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getStringListAttribute(), CommonXMLStructure::SumoBaseObject::getSumoBaseObjectChildren(), CommonXMLStructure::SumoBaseObject::getTag(), CommonXMLStructure::SumoBaseObject::getTimeAttribute(), CommonXMLStructure::SumoBaseObject::getVClass(), CommonXMLStructure::SumoBaseObject::getVehicleParameter(), CommonXMLStructure::SumoBaseObject::getVehicleTypeParameter(), CommonXMLStructure::SumoBaseObject::hasStringAttribute(), CommonXMLStructure::SumoBaseObject::markAsCreated(), RouteHandler::parseSumoBaseObject(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_COLOR, SUMO_ATTR_CYCLETIME, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_DETERMINISTIC, SUMO_ATTR_DURATION, SUMO_ATTR_EDGES, SUMO_ATTR_FROM, SUMO_ATTR_FROM_JUNCTION, SUMO_ATTR_FROM_TAZ, SUMO_ATTR_GROUP, SUMO_ATTR_ID, SUMO_ATTR_LINES, SUMO_ATTR_MODES, SUMO_ATTR_PROB, SUMO_ATTR_PROBS, SUMO_ATTR_REPEAT, SUMO_ATTR_ROUTE, SUMO_ATTR_ROUTES, SUMO_ATTR_SPEED, SUMO_ATTR_TO, SUMO_ATTR_TO_JUNCTION, SUMO_ATTR_TO_TAZ, SUMO_ATTR_VTYPES, SUMO_ATTR_WALKFACTOR, SUMO_TAG_CONTAINER, SUMO_TAG_CONTAINERFLOW, SUMO_TAG_FLOW, SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, SUMO_TAG_PERSONTRIP, SUMO_TAG_RIDE, SUMO_TAG_ROUTE, SUMO_TAG_ROUTE_DISTRIBUTION, SUMO_TAG_STOP, SUMO_TAG_TRANSHIP, SUMO_TAG_TRANSPORT, SUMO_TAG_TRIP, SUMO_TAG_VEHICLE, SUMO_TAG_VTYPE, SUMO_TAG_VTYPE_DISTRIBUTION, and SUMO_TAG_WALK.
Referenced by GNEContainerFrame::buildContainer(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::buildVehicleOverRoute(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), RouteHandler::endParseAttributes(), and RouteHandler::parseSumoBaseObject().
|
protected |
parse TAZ
Definition at line 2364 of file GNERouteHandler.cpp.
References GNENet::getAttributeCarriers(), myNet, GNENetHelper::AttributeCarriers::retrieveAdditional(), SUMO_TAG_TAZ, TAZ, and CommonHandler::writeErrorInvalidParent().
Referenced by buildFlowTAZs(), and buildTripTAZs().
|
privateinherited |
parse tranship
Definition at line 930 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addTimeAttribute(), CommonHandler::checkParsedParent(), NamespaceIDs::containers, CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::getOptSUMOTimeReporting(), SUMOSAXAttributes::hasAttribute(), CommonHandler::myCommonXMLStructure, CommonXMLStructure::SumoBaseObject::setPlanParameters(), CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_DURATION, SUMO_ATTR_SPEED, SUMO_TAG_NOTHING, SUMO_TAG_TRANSHIP, TL, and CommonHandler::writeError().
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse transport
Definition at line 904 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), CommonHandler::checkParsedParent(), NamespaceIDs::containers, CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, CommonXMLStructure::SumoBaseObject::setPlanParameters(), CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_GROUP, SUMO_ATTR_LINES, SUMO_TAG_NOTHING, and SUMO_TAG_TRANSPORT.
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse trip
Definition at line 537 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::hasAttribute(), SUMOVehicleParameter::id, CommonHandler::myCommonXMLStructure, RouteHandler::myHardFail, SUMOVehicleParserHelper::parseVehicleAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), SUMO_ATTR_FROM, SUMO_ATTR_FROM_JUNCTION, SUMO_ATTR_FROM_TAZ, SUMO_ATTR_TO, SUMO_ATTR_TO_JUNCTION, SUMO_ATTR_TO_TAZ, SUMO_ATTR_VIA, SUMO_TAG_NOTHING, SUMO_TAG_TRIP, TL, and CommonHandler::writeError().
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse vehicle (including vehicles over routes and vehicles with embedded routes)
Definition at line 608 of file RouteHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), CommonHandler::myCommonXMLStructure, RouteHandler::myHardFail, SUMOVehicleParserHelper::parseVehicleAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), SUMO_TAG_NOTHING, and SUMO_TAG_VEHICLE.
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
Definition at line 424 of file RouteHandler.cpp.
References SUMOVehicleParserHelper::beginVTypeParsing(), CommonXMLStructure::getCurrentSumoBaseObject(), CommonHandler::myCommonXMLStructure, RouteHandler::myFilename, RouteHandler::myHardFail, CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleTypeParameter(), SUMO_TAG_NOTHING, and SUMO_TAG_VTYPE.
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse vType distribution
Definition at line 441 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleListAttribute(), CommonXMLStructure::SumoBaseObject::addIntAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_DETERMINISTIC, SUMO_ATTR_ID, SUMO_ATTR_PROBS, SUMO_ATTR_VTYPES, SUMO_TAG_NOTHING, SUMO_TAG_VTYPE_DISTRIBUTION, and CommonHandler::writeErrorInvalidDistribution().
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse walk
Definition at line 811 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addTimeAttribute(), CommonHandler::checkParsedParent(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::getOptSUMOTimeReporting(), SUMOSAXAttributes::hasAttribute(), CommonHandler::myCommonXMLStructure, NamespaceIDs::persons, CommonXMLStructure::SumoBaseObject::setPlanParameters(), CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_DURATION, SUMO_ATTR_SPEED, SUMO_TAG_NOTHING, SUMO_TAG_WALK, TL, and CommonHandler::writeError().
Referenced by RouteHandler::beginParseAttributes().
|
virtual |
run post parser tasks
Implements RouteHandler.
Definition at line 88 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEUndoList::begin(), GNENetHelper::AttributeCarriers::deleteDemandElement(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), myAllowUndoRedo, myNet, myParentPlanElements, and TLF.
Referenced by GNEGeneralHandler::postParserTasks().
|
static |
reverse given demand element
Definition at line 2286 of file GNERouteHandler.cpp.
References GNEDemandElement::getAttribute(), GNEHierarchicalElement::getChildDemandElements(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEAttributeCarrier::getTagProperty(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEPathElement::isRoute(), GNEAttributeCarrier::parseIDs(), reverse(), GNEDemandElement::setAttribute(), SUMO_ATTR_EDGES, SUMO_ATTR_FROM, SUMO_ATTR_FROM_JUNCTION, SUMO_ATTR_FROM_TAZ, SUMO_ATTR_TO, SUMO_ATTR_TO_JUNCTION, SUMO_ATTR_TO_TAZ, SUMO_ATTR_VIA, GNETagProperties::vehicleJunctions(), GNETagProperties::vehicleRoute(), GNETagProperties::vehicleRouteEmbedded(), and GNETagProperties::vehicleTAZs().
Referenced by addReverse(), GNEViewNet::onCmdReverse(), and reverse().
|
static |
transform container functions
transform to vehicle over an existent route
Definition at line 2161 of file GNERouteHandler.cpp.
References GNEUndoList::begin(), buildContainer(), GNENet::deleteDemandElement(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEHierarchicalElement::getChildDemandElements(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getInspectedElements(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNE_ATTR_PARENT, SUMOVehicleParameter::id, GNEInspectorFrame::inspectElement(), GNEViewNetHelper::InspectedElements::isACInspected(), GNEApplicationWindow::isUndoRedoAllowed(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), GNEDemandElement::setAttribute(), SUMO_ATTR_ID, SUMO_TAG_CONTAINER, and toString().
Referenced by GNEContainer::GNEContainerPopupMenu::onCmdTransform(), and GNEContainer::GNESelectedContainersPopupMenu::onCmdTransform().
|
static |
transform routeFlow over an existent route
Definition at line 2199 of file GNERouteHandler.cpp.
References GNEUndoList::begin(), buildContainerFlow(), GNENet::deleteDemandElement(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEHierarchicalElement::getChildDemandElements(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getInspectedElements(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNE_ATTR_PARENT, SUMOVehicleParameter::id, GNEInspectorFrame::inspectElement(), GNEViewNetHelper::InspectedElements::isACInspected(), GNEApplicationWindow::isUndoRedoAllowed(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), GNEDemandElement::setAttribute(), SUMO_ATTR_CONTAINERSPERHOUR, SUMO_ATTR_END, SUMO_ATTR_ID, SUMO_TAG_CONTAINERFLOW, and toString().
Referenced by GNEContainer::GNEContainerPopupMenu::onCmdTransform().
|
static |
transform to flow
Definition at line 1813 of file GNERouteHandler.cpp.
References GNEUndoList::begin(), buildFlow(), GNENet::deleteDemandElement(), SUMOVehicleParameter::depart, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEHierarchicalElement::getChildDemandElements(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getInspectedElements(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNETagSelector::getTemplateAC(), GNEViewNet::getUndoList(), GNEViewParent::getVehicleFrame(), GNEVehicleFrame::getVehicleTagSelector(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNE_ATTR_FLOWPARAMETERS, GNE_TAG_FLOW_ROUTE, SUMOVehicleParameter::id, GNEInspectorFrame::inspectElement(), GNEViewNetHelper::InspectedElements::isACInspected(), GNETagProperties::isFlow(), GNEApplicationWindow::isUndoRedoAllowed(), SUMOVehicleParameter::parametersSet, SUMOVehicleParameter::repetitionEnd, SUMOVehicleParameter::repetitionNumber, SUMOVehicleParameter::repetitionOffset, SUMOVehicleParameter::repetitionProbability, GNENetHelper::AttributeCarriers::retrieveDemandElement(), string2time(), SUMO_ATTR_NUMBER, SUMO_ATTR_PERIOD, SUMO_ATTR_PROB, SUMO_TAG_FLOW, SUMO_TAG_VEHICLE, SUMOVehicleParameter::tag, toString(), GNETagProperties::vehicleEdges(), GNETagProperties::vehicleRoute(), GNETagProperties::vehicleRouteEmbedded(), and WRITE_DEBUG.
Referenced by GNEVehicle::GNESingleVehiclePopupMenu::onCmdTransform(), and GNEVehicle::GNESelectedVehiclesPopupMenu::onCmdTransform().
|
static |
transform to flow over junctions
Definition at line 1934 of file GNERouteHandler.cpp.
References GNEUndoList::begin(), buildFlowJunctions(), GNENet::deleteDemandElement(), SUMOVehicleParameter::depart, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getInspectedElements(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentJunctions(), GNEAttributeCarrier::getTagStr(), GNETagSelector::getTemplateAC(), GNEViewNet::getUndoList(), GNEViewParent::getVehicleFrame(), GNEVehicleFrame::getVehicleTagSelector(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNE_ATTR_FLOWPARAMETERS, GNE_TAG_FLOW_JUNCTIONS, SUMOVehicleParameter::id, GNEInspectorFrame::inspectElement(), GNEViewNetHelper::InspectedElements::isACInspected(), GNEApplicationWindow::isUndoRedoAllowed(), SUMOVehicleParameter::parametersSet, SUMOVehicleParameter::repetitionEnd, SUMOVehicleParameter::repetitionNumber, SUMOVehicleParameter::repetitionOffset, SUMOVehicleParameter::repetitionProbability, GNENetHelper::AttributeCarriers::retrieveDemandElement(), string2time(), SUMO_ATTR_NUMBER, SUMO_ATTR_PERIOD, SUMO_ATTR_PROB, SUMOVehicleParameter::tag, toString(), and WRITE_DEBUG.
Referenced by GNEVehicle::GNESingleVehiclePopupMenu::onCmdTransform(), and GNEVehicle::GNESelectedVehiclesPopupMenu::onCmdTransform().
|
static |
transform to flow over TAZs
Definition at line 2031 of file GNERouteHandler.cpp.
References GNEUndoList::begin(), buildFlowTAZs(), GNENet::deleteDemandElement(), SUMOVehicleParameter::depart, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getInspectedElements(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentAdditionals(), GNEAttributeCarrier::getTagStr(), GNETagSelector::getTemplateAC(), GNEViewNet::getUndoList(), GNEViewParent::getVehicleFrame(), GNEVehicleFrame::getVehicleTagSelector(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNE_ATTR_FLOWPARAMETERS, GNE_TAG_FLOW_TAZS, SUMOVehicleParameter::id, GNEInspectorFrame::inspectElement(), GNEViewNetHelper::InspectedElements::isACInspected(), GNEApplicationWindow::isUndoRedoAllowed(), SUMOVehicleParameter::parametersSet, SUMOVehicleParameter::repetitionEnd, SUMOVehicleParameter::repetitionNumber, SUMOVehicleParameter::repetitionOffset, SUMOVehicleParameter::repetitionProbability, GNENetHelper::AttributeCarriers::retrieveDemandElement(), string2time(), SUMO_ATTR_NUMBER, SUMO_ATTR_PERIOD, SUMO_ATTR_PROB, SUMOVehicleParameter::tag, toString(), and WRITE_DEBUG.
Referenced by GNEVehicle::GNESingleVehiclePopupMenu::onCmdTransform(), and GNEVehicle::GNESelectedVehiclesPopupMenu::onCmdTransform().
|
static |
transform person functions
transform to vehicle over an existent route
Definition at line 2084 of file GNERouteHandler.cpp.
References GNEUndoList::begin(), buildPerson(), GNENet::deleteDemandElement(), duplicatePlan(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEHierarchicalElement::getChildDemandElements(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getInspectedElements(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEViewNet::getViewParent(), SUMOVehicleParameter::id, GNEInspectorFrame::inspectElement(), GNEViewNetHelper::InspectedElements::isACInspected(), GNEApplicationWindow::isUndoRedoAllowed(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMO_ATTR_ID, SUMO_TAG_PERSON, and toString().
Referenced by GNEPerson::GNEPersonPopupMenu::onCmdTransform(), and GNEPerson::GNESelectedPersonsPopupMenu::onCmdTransform().
|
static |
transform routeFlow over an existent route
Definition at line 2120 of file GNERouteHandler.cpp.
References GNEUndoList::begin(), buildPersonFlow(), GNENet::deleteDemandElement(), duplicatePlan(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEHierarchicalElement::getChildDemandElements(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getInspectedElements(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEViewNet::getViewParent(), SUMOVehicleParameter::id, GNEInspectorFrame::inspectElement(), GNEViewNetHelper::InspectedElements::isACInspected(), GNEApplicationWindow::isUndoRedoAllowed(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMO_ATTR_END, SUMO_ATTR_ID, SUMO_ATTR_PERSONSPERHOUR, SUMO_TAG_PERSONFLOW, and toString().
Referenced by GNEPerson::GNEPersonPopupMenu::onCmdTransform().
|
static |
transform routeFlow over an existent route
Definition at line 1645 of file GNERouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addStringAttribute(), GNEUndoList::begin(), buildEmbeddedRoute(), buildFlowOverRoute(), buildRoute(), GNEPathManager::PathCalculator::calculateDijkstraPath(), GNENet::deleteDemandElement(), SUMOVehicleParameter::depart, GNEUndoList::end(), GNENetHelper::AttributeCarriers::generateDemandElementID(), GNENet::getAttributeCarriers(), GNEHierarchicalElement::getChildDemandElements(), GNENet::getDemandPathManager(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getInspectedElements(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEPathManager::getPathCalculator(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNETagSelector::getTemplateAC(), GNEViewNet::getUndoList(), GNEVehicle::getVClass(), GNEViewParent::getVehicleFrame(), GNEVehicleFrame::getVehicleTagSelector(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNE_ATTR_FLOWPARAMETERS, GNE_TAG_FLOW_ROUTE, GNE_TAG_FLOW_WITHROUTE, SUMOVehicleParameter::id, GNEInspectorFrame::inspectElement(), RGBColor::INVISIBLE, GNEViewNetHelper::InspectedElements::isACInspected(), GNETagProperties::isFlow(), GNEApplicationWindow::isUndoRedoAllowed(), SUMOVehicleParameter::parametersSet, SUMOVehicleParameter::repetitionEnd, SUMOVehicleParameter::repetitionNumber, SUMOVehicleParameter::repetitionOffset, SUMOVehicleParameter::repetitionProbability, GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMOVehicleParameter::routeid, CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), string2time(), SUMO_ATTR_ID, SUMO_ATTR_NUMBER, SUMO_ATTR_PERIOD, SUMO_ATTR_PROB, SUMO_TAG_FLOW, SUMO_TAG_ROUTE, SUMO_TAG_VEHICLE, SUMOVehicleParameter::tag, toString(), GNETagProperties::vehicleEdges(), GNETagProperties::vehicleRoute(), GNETagProperties::vehicleRouteEmbedded(), WRITE_DEBUG, and RGBColor::YELLOW.
Referenced by GNEVehicle::GNESingleVehiclePopupMenu::onCmdTransform(), and GNEVehicle::GNESelectedVehiclesPopupMenu::onCmdTransform().
|
static |
transform to trip
Definition at line 1748 of file GNERouteHandler.cpp.
References GNEUndoList::begin(), buildTrip(), GNENet::deleteDemandElement(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEHierarchicalElement::getChildDemandElements(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getInspectedElements(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEViewNet::getViewParent(), SUMOVehicleParameter::id, GNEInspectorFrame::inspectElement(), GNEViewNetHelper::InspectedElements::isACInspected(), GNEApplicationWindow::isUndoRedoAllowed(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMO_TAG_TRIP, SUMOVehicleParameter::tag, toString(), GNETagProperties::vehicleEdges(), GNETagProperties::vehicleRoute(), GNETagProperties::vehicleRouteEmbedded(), and WRITE_DEBUG.
Referenced by GNEVehicle::GNESingleVehiclePopupMenu::onCmdTransform(), and GNEVehicle::GNESelectedVehiclesPopupMenu::onCmdTransform().
|
static |
transform to trip over junctions
Definition at line 1890 of file GNERouteHandler.cpp.
References GNEUndoList::begin(), buildTripJunctions(), GNENet::deleteDemandElement(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getInspectedElements(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentJunctions(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNE_TAG_TRIP_JUNCTIONS, SUMOVehicleParameter::id, GNEInspectorFrame::inspectElement(), GNEViewNetHelper::InspectedElements::isACInspected(), GNEApplicationWindow::isUndoRedoAllowed(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMOVehicleParameter::tag, toString(), and WRITE_DEBUG.
Referenced by GNEVehicle::GNESingleVehiclePopupMenu::onCmdTransform(), and GNEVehicle::GNESelectedVehiclesPopupMenu::onCmdTransform().
|
static |
transform to trip over TAZs
Definition at line 1987 of file GNERouteHandler.cpp.
References GNEUndoList::begin(), buildTripTAZs(), GNENet::deleteDemandElement(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getInspectedElements(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentAdditionals(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNE_TAG_TRIP_TAZS, SUMOVehicleParameter::id, GNEInspectorFrame::inspectElement(), GNEViewNetHelper::InspectedElements::isACInspected(), GNEApplicationWindow::isUndoRedoAllowed(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMOVehicleParameter::tag, toString(), and WRITE_DEBUG.
Referenced by GNEVehicle::GNESingleVehiclePopupMenu::onCmdTransform(), and GNEVehicle::GNESelectedVehiclesPopupMenu::onCmdTransform().
|
static |
transform vehicle functions
transform to vehicle over an existent route
Definition at line 1554 of file GNERouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addStringAttribute(), GNEUndoList::begin(), buildEmbeddedRoute(), buildRoute(), buildVehicleOverRoute(), GNEPathManager::PathCalculator::calculateDijkstraPath(), GNENet::deleteDemandElement(), GNEUndoList::end(), GNENetHelper::AttributeCarriers::generateDemandElementID(), GNENet::getAttributeCarriers(), GNEHierarchicalElement::getChildDemandElements(), GNENet::getDemandPathManager(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getInspectedElements(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEPathManager::getPathCalculator(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNEVehicle::getVClass(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNE_TAG_VEHICLE_WITHROUTE, SUMOVehicleParameter::id, GNEInspectorFrame::inspectElement(), RGBColor::INVISIBLE, GNEViewNetHelper::InspectedElements::isACInspected(), GNEApplicationWindow::isUndoRedoAllowed(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMOVehicleParameter::routeid, CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), SUMO_ATTR_ID, SUMO_TAG_ROUTE, SUMO_TAG_VEHICLE, SUMOVehicleParameter::tag, toString(), GNETagProperties::vehicleEdges(), GNETagProperties::vehicleRoute(), GNETagProperties::vehicleRouteEmbedded(), WRITE_DEBUG, and RGBColor::YELLOW.
Referenced by GNEVehicle::GNESingleVehiclePopupMenu::onCmdTransform(), and GNEVehicle::GNESelectedVehiclesPopupMenu::onCmdTransform().
|
protectedinherited |
write error and enable error creating element
Definition at line 221 of file CommonHandler.cpp.
References CommonHandler::myErrorCreatingElement, and WRITE_ERROR.
Referenced by AdditionalHandler::beginParseAttributes(), MeanDataHandler::beginParseAttributes(), GNEAdditionalHandler::buildAccess(), buildContainer(), buildContainerFlow(), buildContainerStop(), GNEDataHandler::buildEdgeRelationData(), buildEmbeddedRoute(), buildFlow(), buildFlowJunctions(), buildFlowOverRoute(), buildFlowTAZs(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), buildPersonStop(), buildPersonTrip(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildRerouterInterval(), buildRide(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), buildStop(), GNEAdditionalHandler::buildTAZ(), GNEDataHandler::buildTAZRelationData(), buildTranship(), buildTransport(), buildTrip(), buildTripJunctions(), buildTripTAZs(), GNEAdditionalHandler::buildVaporizer(), buildVehicleOverRoute(), buildWalk(), AdditionalHandler::checkCalibratorFlowParents(), AdditionalHandler::checkDetectPersons(), CommonHandler::checkFileName(), CommonHandler::checkListOfVehicleTypes(), CommonHandler::checkNegative(), CommonHandler::checkNegative(), CommonHandler::checkNegative(), DataHandler::checkParent(), CommonHandler::checkParsedParent(), CommonHandler::checkValidAdditionalID(), CommonHandler::checkValidDemandElementID(), CommonHandler::checkValidDetectorID(), checkViaAttribute(), getDistributionElements(), DataHandler::myStartElement(), GNEMeanDataHandler::parseAttributes(), AdditionalHandler::parseCalibratorAttributes(), AdditionalHandler::parseCalibratorFlowAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseE2Attributes(), GNEAdditionalHandler::parseEdges(), parseEdges(), GNEMeanDataHandler::parseEdges(), RouteHandler::parseFlow(), GNEAdditionalHandler::parseLanes(), RouteHandler::parseNestedCFM(), CommonHandler::parseParameters(), AdditionalHandler::parsePOIAttributes(), RouteHandler::parseRoute(), RouteHandler::parseStopParameters(), RouteHandler::parseTranship(), RouteHandler::parseTrip(), RouteHandler::parseWalk(), CommonHandler::writeErrorDuplicated(), CommonHandler::writeErrorInvalidDistribution(), CommonHandler::writeErrorInvalidLanes(), CommonHandler::writeErrorInvalidParent(), CommonHandler::writeErrorInvalidParent(), CommonHandler::writeErrorInvalidParent(), and CommonHandler::writeErrorInvalidPosition().
|
protectedinherited |
write error "duplicated additional"
Definition at line 235 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::checkDuplicatedAdditional(), GNEDataHandler::checkDuplicatedDataSet(), checkDuplicatedDemandElement(), and GNEMeanDataHandler::checkDuplicatedMeanDataElement().
|
protectedinherited |
write error "invalid distribution"
Definition at line 247 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
Referenced by RouteHandler::parseRouteDistribution(), and RouteHandler::parseVTypeDistribution().
|
protectedinherited |
write error "invalid list of lanes"
Definition at line 241 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
|
protectedinherited |
write error "invalid parent element" giving ids of current and parent element
Definition at line 253 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildClosingReroute(), buildContainerStop(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDestProbReroute(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), buildEmbeddedRoute(), buildFlow(), buildFlowJunctions(), buildFlowOverRoute(), buildFlowTAZs(), GNEAdditionalHandler::buildLaneCalibrator(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingAreaReroute(), GNEAdditionalHandler::buildParkingSpace(), buildPerson(), buildPersonFlow(), buildPersonStop(), buildPersonTrip(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildRerouterInterval(), buildRide(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildRouteProbReroute(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), buildStop(), GNEDataHandler::buildTAZRelationData(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNEAdditionalHandler::buildTrainStop(), buildTranship(), buildTransport(), buildTrip(), buildTripJunctions(), buildTripTAZs(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSignStep(), buildVehicleOverRoute(), buildWalk(), parseEdge(), parseJunction(), and parseTAZ().
|
protectedinherited |
write error "invalid parent element" without giving IDs
Definition at line 265 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
|
protectedinherited |
write error "invalid parent element" giving only the id of parent element
Definition at line 259 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
|
protectedinherited |
write error "invalid position"
Definition at line 229 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEAdditionalHandler::buildLaneCalibrator(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), and GNEAdditionalHandler::buildTrainStop().
|
private |
allow undo/redo
Definition at line 301 of file GNERouteHandler.h.
Referenced by buildContainer(), buildContainerFlow(), buildContainerStop(), buildEmbeddedRoute(), buildFlow(), buildFlowJunctions(), buildFlowOverRoute(), buildFlowTAZs(), buildPerson(), buildPersonFlow(), buildPersonStop(), buildPersonTrip(), buildRide(), buildRoute(), buildRouteDistribution(), buildStop(), buildTranship(), buildTransport(), buildTrip(), buildTripJunctions(), buildTripTAZs(), buildVehicleOverRoute(), buildVType(), buildVTypeDistribution(), buildWalk(), checkDuplicatedDemandElement(), and postParserTasks().
|
protectedinherited |
common XML Structure
Definition at line 51 of file CommonHandler.h.
Referenced by AdditionalHandler::beginParseAttributes(), MeanDataHandler::beginParseAttributes(), RouteHandler::beginParseAttributes(), AdditionalHandler::checkCalibratorFlowParents(), DataHandler::checkParent(), CommonHandler::checkParsedParent(), AdditionalHandler::endParseAttributes(), MeanDataHandler::endParseAttributes(), RouteHandler::endParseAttributes(), DataHandler::getAttributes(), RouteHandler::isEmbeddedRoute(), DataHandler::myEndElement(), DataHandler::myStartElement(), AdditionalHandler::parseAccessAttributes(), AdditionalHandler::parseBusStopAttributes(), AdditionalHandler::parseCalibratorAttributes(), AdditionalHandler::parseCalibratorFlowAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseClosingLaneRerouteAttributes(), AdditionalHandler::parseClosingRerouteAttributes(), RouteHandler::parseContainer(), RouteHandler::parseContainerFlow(), AdditionalHandler::parseContainerStopAttributes(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseE1Attributes(), AdditionalHandler::parseE1InstantAttributes(), AdditionalHandler::parseE2Attributes(), AdditionalHandler::parseE3Attributes(), DataHandler::parseEdgeData(), MeanDataHandler::parseEdgeMeanData(), DataHandler::parseEdgeRelationData(), AdditionalHandler::parseEntryAttributes(), AdditionalHandler::parseExitAttributes(), RouteHandler::parseFlow(), DataHandler::parseInterval(), AdditionalHandler::parseJpsObstacleAttributes(), AdditionalHandler::parseJpsWalkableAreaAttributes(), MeanDataHandler::parseLaneMeanData(), AdditionalHandler::parseOverheadWire(), AdditionalHandler::parseOverheadWireClamp(), CommonHandler::parseParameters(), 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(), and RouteHandler::parseWalk().
|
staticprivate |
container tags
Definition at line 64 of file GNERouteHandler.h.
Referenced by buildContainer(), and buildContainerFlow().
|
protectedinherited |
flag for mark if a element wasn't created
Definition at line 54 of file CommonHandler.h.
Referenced by CommonHandler::isErrorCreatingElement(), and CommonHandler::writeError().
|
privateinherited |
filename (needed for parsing vTypes)
Definition at line 148 of file RouteHandler.h.
Referenced by RouteHandler::parseVType().
|
privateinherited |
The default value for flow begins.
Definition at line 154 of file RouteHandler.h.
Referenced by RouteHandler::parseContainerFlow(), RouteHandler::parseFlow(), RouteHandler::parseInterval(), and RouteHandler::parsePersonFlow().
|
privateinherited |
The default value for flow ends.
Definition at line 157 of file RouteHandler.h.
Referenced by RouteHandler::parseContainerFlow(), RouteHandler::parseFlow(), RouteHandler::parseInterval(), and RouteHandler::parsePersonFlow().
|
privateinherited |
enable or disable hardFail (stop parsing if parameter aren't correct)
Definition at line 151 of file RouteHandler.h.
Referenced by RouteHandler::parseContainer(), RouteHandler::parseContainerFlow(), RouteHandler::parseFlow(), RouteHandler::parseNestedCFM(), RouteHandler::parsePerson(), RouteHandler::parsePersonFlow(), RouteHandler::parseTrip(), RouteHandler::parseVehicle(), and RouteHandler::parseVType().
|
private |
pointer to GNENet
Definition at line 292 of file GNERouteHandler.h.
Referenced by buildContainer(), buildContainerFlow(), buildContainerPlan(), buildContainerStop(), buildEmbeddedRoute(), buildFlow(), buildFlowJunctions(), buildFlowOverRoute(), buildFlowTAZs(), buildPerson(), buildPersonFlow(), buildPersonPlan(), buildPersonStop(), buildPersonTrip(), buildRide(), buildRoute(), buildRouteDistribution(), buildStop(), buildTranship(), buildTransport(), buildTrip(), buildTripJunctions(), buildTripTAZs(), buildVehicleOverRoute(), buildVType(), buildVTypeDistribution(), buildWalk(), checkDuplicatedDemandElement(), checkViaAttribute(), getContainerParent(), getDistributionElements(), getPersonParent(), getType(), parseEdge(), parseEdgeFromLaneID(), parseEdges(), parseJunction(), parseStopEdge(), parseTAZ(), and postParserTasks().
|
private |
check if overwrite
Definition at line 304 of file GNERouteHandler.h.
Referenced by checkDuplicatedDemandElement().
|
private |
demand element parentplans (person and containers, used in postParserTasks)
Definition at line 298 of file GNERouteHandler.h.
Referenced by buildContainer(), buildContainerFlow(), buildPerson(), buildPersonFlow(), and postParserTasks().
|
staticprivate |
person tags
Definition at line 59 of file GNERouteHandler.h.
Referenced by buildPerson(), and buildPersonFlow().
|
private |
pointer for person and container plans
Definition at line 295 of file GNERouteHandler.h.
Referenced by buildContainerPlan(), buildPersonPlan(), duplicatePlan(), and ~GNERouteHandler().
|
staticprivate |
vehicle tags
Definition at line 51 of file GNERouteHandler.h.
Referenced by buildEmbeddedRoute(), buildFlow(), buildFlowJunctions(), buildFlowOverRoute(), buildFlowTAZs(), buildTrip(), buildTripJunctions(), buildTripTAZs(), and buildVehicleOverRoute().