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 | |
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 | isContainerIdDuplicated (const std::string &id) |
check if there is already a container (Container or ContainerFlow) with the given ID | |
bool | isErrorCreatingElement () const |
get flag for check if a element wasn't created | |
bool | isPersonIdDuplicated (const std::string &id) |
check if there is already a person (Person or PersonFlow) with the given ID | |
bool | isVehicleIdDuplicated (const std::string &id) |
check if there is already a vehicle (Vehicle, Trip, Flow or Flow) with the given ID | |
bool | isViaAttributeValid (const std::vector< std::string > &via) |
check if via attribute is valid | |
void | parseSumoBaseObject (CommonXMLStructure::SumoBaseObject *obj) |
parse SumoBaseObject (it's called recursivelly) | |
virtual | ~GNERouteHandler () |
Destructor. | |
build functions | |
void | buildVType (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVTypeParameter &vTypeParameter) |
build vType | |
void | 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 | |
void | 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 | |
void | 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 | |
void | buildRouteDistribution (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::vector< std::string > &routeIDs, const std::vector< double > &probabilities) |
build route distribution | |
void | buildVehicleOverRoute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters) |
build a vehicle over an existent route | |
void | buildFlowOverRoute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters) |
build a flow over an existent route | |
void | buildTrip (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromEdgeID, const std::string &toEdgeID) |
build trip | |
void | buildTripJunctions (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromJunctionID, const std::string &toJunctionID) |
build trip over junctions | |
void | buildTripTAZs (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromTAZID, const std::string &toTAZID) |
build trip over TAZs | |
void | buildFlow (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromEdgeID, const std::string &toEdgeIDs) |
build flow | |
void | buildFlowJunctions (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromJunctionID, const std::string &toJunctionID) |
build flow over junctions | |
void | buildFlowTAZs (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameters, const std::string &fromTAZID, const std::string &toTAZID) |
build flow over junctions | |
void | buildPerson (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &personParameters) |
build person | |
void | buildPersonFlow (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &personFlowParameters) |
build person flow | |
void | 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 | |
void | buildWalk (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPos, const double speed, const SUMOTime duration) |
build walk | |
void | buildRide (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPos, const std::vector< std::string > &lines, const std::string &group) |
build ride | |
void | buildContainer (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &containerParameters) |
build container | |
void | buildContainerFlow (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &containerFlowParameters) |
build container flow | |
void | buildTransport (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPos, const std::vector< std::string > &lines, const std::string &group) |
build transport | |
void | buildTranship (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const CommonXMLStructure::PlanParameters &planParameters, const double arrivalPosition, const double departPosition, const double speed, const SUMOTime duration) |
build tranship | |
void | 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 | |
void | 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 | |
void | 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::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) | |
void | overwriteDemandElement () |
remove overwritten demand element | |
GNEEdge * | parseEdge (const SumoXMLTag tag, 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::vector< std::string > &edgeIDs) |
parse edges | |
GNEJunction * | parseJunction (const SumoXMLTag tag, const std::string &junctionID) |
parse junction | |
GNEEdge * | parseStopEdge (const CommonXMLStructure::SumoBaseObject *sumoBaseObject) const |
parse stop edge | |
GNEAdditional * | parseTAZ (const SumoXMLTag tag, const std::string &TAZID) |
parse TAZ | |
void | writeError (const std::string &error) |
write error and enable error creating element | |
void | writeErrorInvalidNegativeValue (const SumoXMLTag tag, const SumoXMLAttr attribute) |
write error "invalid negative element" | |
Private Member Functions | |
void | checkParent (const SumoXMLTag currentTag, const std::vector< SumoXMLTag > &parentTags, bool &ok) |
check parents | |
bool | isEmbeddedRoute (const SUMOSAXAttributes &attrs) const |
check embedded route | |
bool | parseStopParameters (SUMOVehicleParameter::Stop &stop, const SUMOSAXAttributes &attrs) |
parse stop parameters | |
void | writeErrorInvalidDistribution (const SumoXMLTag tag, const std::string &id) |
write error "invalid distribution" | |
void | writeErrorInvalidID (const SumoXMLTag tag, const std::string &id) |
write error "invalid id" | |
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 | |
void | parseParameters (const SUMOSAXAttributes &attrs) |
parse generic parameters | |
bool | parseNestedCFM (const SumoXMLTag tag, const SUMOSAXAttributes &attrs, CommonXMLStructure::SumoBaseObject *vTypeObject) |
parse nested CarFollowingModel | |
Private Attributes | |
const bool | myAllowUndoRedo |
allow undo/redo | |
CommonXMLStructure | myCommonXMLStructure |
common XML Structure | |
GNEDemandElement * | myDemandToOverwrite = nullptr |
demand to overwrite (using undo-redo | |
bool | myErrorCreatingElement = false |
flag for check if a element wasn't created | |
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 | |
CommonXMLStructure::SumoBaseObject * | myPlanObject |
pointer for person and container plans | |
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 51 of file GNERouteHandler.cpp.
|
virtual |
|
static |
add reverse for given demand element
Definition at line 2223 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(), RouteHandler::myCommonXMLStructure, CommonXMLStructure::openSUMOBaseOBject(), RouteHandler::parseContainer(), RouteHandler::parseContainerFlow(), RouteHandler::parseFlow(), RouteHandler::parseInterval(), RouteHandler::parseNestedCFM(), RouteHandler::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 713 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), getType(), GNEViewNet::getUndoList(), GNENet::getViewNet(), SUMOVehicleParameter::id, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), isContainerIdDuplicated(), myAllowUndoRedo, myNet, overwriteDemandElement(), SUMO_TAG_CONTAINER, SUMOVehicleParameter::tag, TL, TLF, toString(), SUMOVehicleParameter::vtypeid, and RouteHandler::writeError().
Referenced by transformToContainer().
|
virtual |
build container flow
Implements RouteHandler.
Definition at line 740 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), getType(), GNEViewNet::getUndoList(), GNENet::getViewNet(), SUMOVehicleParameter::id, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), isContainerIdDuplicated(), myAllowUndoRedo, myNet, overwriteDemandElement(), SUMO_TAG_CONTAINERFLOW, SUMOVehicleParameter::tag, TL, TLF, toString(), SUMOVehicleParameter::vtypeid, and RouteHandler::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 1144 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().
void 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 870 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, overwriteDemandElement(), SUMO_TAG_NOTHING, TL, TLF, and WRITE_ERROR.
Referenced by buildContainerPlan(), buildStop(), and duplicatePlan().
|
virtual |
build embedded route
Implements RouteHandler.
Definition at line 172 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), 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(), isVehicleIdDuplicated(), myAllowUndoRedo, myNet, overwriteDemandElement(), parseEdges(), SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_MAXSPEED, SUMO_TAG_FLOW, SUMO_TAG_ROUTE, SUMO_TAG_VEHICLE, SUMOVehicleParameter::tag, TL, TLF, toString(), VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTSPEED_SET, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), and RouteHandler::writeError().
Referenced by transformToRouteFlow(), and transformToVehicle().
|
virtual |
build flow
Implements RouteHandler.
Definition at line 439 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), 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(), isVehicleIdDuplicated(), isViaAttributeValid(), myAllowUndoRedo, myNet, overwriteDemandElement(), parseEdge(), SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_MAXSPEED, SUMO_ATTR_VIA, SUMO_TAG_FLOW, SUMOVehicleParameter::tag, TL, TLF, toString(), VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTSPEED_SET, SUMOVehicleParameter::via, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), and RouteHandler::writeError().
Referenced by transformToFlow().
|
virtual |
build flow over junctions
Implements RouteHandler.
Definition at line 481 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), 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(), isVehicleIdDuplicated(), myAllowUndoRedo, myNet, overwriteDemandElement(), parseJunction(), SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_MAXSPEED, SUMO_TAG_TRIP, SUMOVehicleParameter::tag, TL, TLF, toString(), VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTSPEED_SET, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), and RouteHandler::writeError().
Referenced by transformToFlowJunctions().
|
virtual |
build a flow over an existent route
Implements RouteHandler.
Definition at line 286 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), 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(), isVehicleIdDuplicated(), myAllowUndoRedo, myNet, overwriteDemandElement(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMOVehicleParameter::routeid, SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_MAXSPEED, SUMO_TAG_ROUTE, SUMOVehicleParameter::tag, TL, TLF, toString(), VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTSPEED_SET, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), and RouteHandler::writeError().
Referenced by transformToRouteFlow().
|
virtual |
build flow over junctions
Implements RouteHandler.
Definition at line 519 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), 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(), isVehicleIdDuplicated(), myAllowUndoRedo, myNet, overwriteDemandElement(), parseTAZ(), SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_MAXSPEED, SUMO_TAG_TRIP, SUMOVehicleParameter::tag, TL, TLF, toString(), VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTSPEED_SET, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), and RouteHandler::writeError().
Referenced by transformToFlowTAZs().
|
virtual |
build person
Implements RouteHandler.
Definition at line 557 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEAttributeCarrier::getTagStr(), getType(), GNEViewNet::getUndoList(), GNENet::getViewNet(), SUMOVehicleParameter::id, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), isPersonIdDuplicated(), myAllowUndoRedo, myNet, overwriteDemandElement(), SUMO_TAG_PERSON, SUMOVehicleParameter::tag, TL, TLF, toString(), SUMOVehicleParameter::vtypeid, and RouteHandler::writeError().
Referenced by transformToPerson().
|
virtual |
build person flow
Implements RouteHandler.
Definition at line 584 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEAttributeCarrier::getTagStr(), getType(), GNEViewNet::getUndoList(), GNENet::getViewNet(), SUMOVehicleParameter::id, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), isPersonIdDuplicated(), myAllowUndoRedo, myNet, overwriteDemandElement(), SUMO_TAG_PERSONFLOW, SUMOVehicleParameter::tag, TL, TLF, toString(), SUMOVehicleParameter::vtypeid, and RouteHandler::writeError().
Referenced by transformToPersonFlow().
bool GNERouteHandler::buildPersonPlan | ( | const GNEDemandElement * | planTemplate, |
GNEDemandElement * | personParent, | ||
GNEAttributesCreator * | personPlanAttributes, | ||
GNEPlanCreator * | planCreator, | ||
const bool | centerAfterCreation | ||
) |
build person plan
Definition at line 1067 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().
void 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 836 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, overwriteDemandElement(), SUMO_TAG_NOTHING, TL, TLF, and WRITE_ERROR.
Referenced by buildPersonPlan(), buildStop(), and duplicatePlan().
|
virtual |
build person trip
Implements RouteHandler.
Definition at line 611 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, overwriteDemandElement(), SUMO_TAG_NOTHING, TL, TLF, and WRITE_ERROR.
Referenced by buildPersonPlan(), and duplicatePlan().
|
virtual |
build ride
Implements RouteHandler.
Definition at line 681 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, overwriteDemandElement(), SUMO_TAG_NOTHING, TL, TLF, and RouteHandler::writeError().
Referenced by buildPersonPlan(), and duplicatePlan().
|
virtual |
build route
Implements RouteHandler.
Definition at line 133 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEDemandElementDistribution::addDistributionKey(), GNEUndoList::begin(), checkDuplicatedDemandElement(), 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, overwriteDemandElement(), parseEdges(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMO_ATTR_ID, SUMO_TAG_ROUTE, SUMO_TAG_ROUTE_DISTRIBUTION, TL, TLF, toString(), and RouteHandler::writeError().
Referenced by transformToRouteFlow(), and transformToVehicle().
|
virtual |
build route distribution
Implements RouteHandler.
Definition at line 219 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEDemandElementDistribution::addDistributionKey(), GNEUndoList::begin(), checkDuplicatedDemandElement(), GNEUndoList::end(), GNENet::getAttributeCarriers(), getDistributionElements(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, overwriteDemandElement(), SUMO_TAG_ROUTE, SUMO_TAG_ROUTE_DISTRIBUTION, TL, TLF, toString(), and RouteHandler::writeError().
|
virtual |
build stop
Implements RouteHandler.
Definition at line 904 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, overwriteDemandElement(), 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_TRAIN_STOP, SUMO_TAG_VEHICLE, TL, SUMOVehicleParameter::Stop::until, WRITE_ERROR, and RouteHandler::writeError().
Referenced by GNEStopFrame::addStop().
|
virtual |
build tranship
Implements RouteHandler.
Definition at line 799 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::getTranshipTagIcon(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, overwriteDemandElement(), SUMO_ATTR_DURATION, SUMO_ATTR_SPEED, SUMO_TAG_NOTHING, SUMO_TAG_TRANSHIP, TL, TLF, WRITE_ERROR, and writeErrorInvalidNegativeValue().
Referenced by buildContainerPlan(), and duplicatePlan().
|
virtual |
build transport
Implements RouteHandler.
Definition at line 767 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, overwriteDemandElement(), SUMO_TAG_NOTHING, TL, TLF, and WRITE_ERROR.
Referenced by buildContainerPlan(), and duplicatePlan().
|
virtual |
build trip
Implements RouteHandler.
Definition at line 321 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), 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(), isVehicleIdDuplicated(), isViaAttributeValid(), myAllowUndoRedo, myNet, overwriteDemandElement(), parseEdge(), SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_MAXSPEED, SUMO_ATTR_VIA, SUMO_TAG_TRIP, SUMOVehicleParameter::tag, TL, TLF, toString(), VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTSPEED_SET, SUMOVehicleParameter::via, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), and RouteHandler::writeError().
Referenced by transformToTrip().
|
virtual |
build trip over junctions
Implements RouteHandler.
Definition at line 363 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), 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(), isVehicleIdDuplicated(), myAllowUndoRedo, myNet, overwriteDemandElement(), parseJunction(), SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_MAXSPEED, SUMO_TAG_TRIP, SUMOVehicleParameter::tag, TL, TLF, toString(), VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTSPEED_SET, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), and RouteHandler::writeError().
Referenced by transformToTripJunctions().
|
virtual |
build trip over TAZs
Implements RouteHandler.
Definition at line 401 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), 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(), isVehicleIdDuplicated(), myAllowUndoRedo, myNet, overwriteDemandElement(), parseTAZ(), SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_MAXSPEED, SUMO_TAG_TRIP, SUMOVehicleParameter::tag, TL, TLF, toString(), VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTSPEED_SET, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), and RouteHandler::writeError().
Referenced by transformToTripTAZs().
|
virtual |
build a vehicle over an existent route
Implements RouteHandler.
Definition at line 251 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), 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(), isVehicleIdDuplicated(), myAllowUndoRedo, myNet, overwriteDemandElement(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMOVehicleParameter::routeid, SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_MAXSPEED, SUMO_TAG_ROUTE, SUMO_TAG_VEHICLE, SUMOVehicleParameter::tag, TL, TLF, toString(), VEHPARS_DEPARTLANE_SET, VEHPARS_DEPARTSPEED_SET, SUMOVehicleParameter::vtypeid, SUMOVehicleParameter::wasSet(), and RouteHandler::writeError().
Referenced by transformToVehicle().
|
virtual |
build vType
Implements RouteHandler.
Definition at line 66 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEDemandElementDistribution::addDistributionKey(), GNEUndoList::begin(), checkDuplicatedDemandElement(), 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, overwriteDemandElement(), GNEVType::overwriteVType(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMO_ATTR_ID, SUMO_ATTR_PROB, SUMO_TAG_VTYPE, SUMO_TAG_VTYPE_DISTRIBUTION, TL, TLF, toString(), and RouteHandler::writeError().
|
virtual |
build vType distribution
Implements RouteHandler.
Definition at line 101 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEDemandElementDistribution::addDistributionKey(), GNEUndoList::begin(), checkDuplicatedDemandElement(), GNEUndoList::end(), GNENet::getAttributeCarriers(), getDistributionElements(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, overwriteDemandElement(), SUMO_TAG_VTYPE, SUMO_TAG_VTYPE_DISTRIBUTION, TL, TLF, toString(), and RouteHandler::writeError().
|
virtual |
build walk
Implements RouteHandler.
Definition at line 645 of file GNERouteHandler.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEPlanParents::addChildElements(), GNEUndoList::begin(), GNEPlanParents::checkIntegrity(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEAttributeCarrier::getID(), getPersonParent(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEDemandElementPlan::getWalkTagIcon(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertDemandElement(), myAllowUndoRedo, myNet, overwriteDemandElement(), SUMO_ATTR_DURATION, SUMO_ATTR_SPEED, SUMO_TAG_NOTHING, SUMO_TAG_WALK, TL, TLF, WRITE_ERROR, and writeErrorInvalidNegativeValue().
Referenced by buildPersonPlan(), and duplicatePlan().
|
static |
reverse functions
check if the given vehicle can be reversed
Definition at line 2128 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 2150 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 2464 of file GNERouteHandler.cpp.
References GNENet::getAttributeCarriers(), myAllowUndoRedo, myDemandToOverwrite, myNet, myOverwrite, and GNENetHelper::AttributeCarriers::retrieveDemandElement().
Referenced by buildRoute(), buildRouteDistribution(), buildVType(), buildVTypeDistribution(), isContainerIdDuplicated(), isPersonIdDuplicated(), and isVehicleIdDuplicated().
|
privateinherited |
check parents
Definition at line 1168 of file RouteHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getTag(), CommonXMLStructure::SumoBaseObject::hasStringAttribute(), RouteHandler::myCommonXMLStructure, SUMO_ATTR_ID, toString(), and RouteHandler::writeError().
Referenced by RouteHandler::parseStop().
void GNERouteHandler::duplicatePlan | ( | const GNEDemandElement * | originalPlan, |
GNEDemandElement * | newParent | ||
) |
duplicate given plan in new parent
Definition at line 1217 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(), RouteHandler::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 2408 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 2429 of file GNERouteHandler.cpp.
References GNENet::getAttributeCarriers(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getTag(), myNet, GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMO_ATTR_ID, TLF, toString(), and RouteHandler::writeError().
Referenced by buildRouteDistribution(), and buildVTypeDistribution().
|
protected |
get person parent
Definition at line 2387 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 2376 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().
bool GNERouteHandler::isContainerIdDuplicated | ( | const std::string & | id | ) |
check if there is already a container (Container or ContainerFlow) with the given ID
Definition at line 1429 of file GNERouteHandler.cpp.
References checkDuplicatedDemandElement(), SUMO_TAG_CONTAINER, SUMO_TAG_CONTAINERFLOW, TLF, toString(), and RouteHandler::writeError().
Referenced by buildContainer(), and buildContainerFlow().
|
privateinherited |
check embedded route
Definition at line 1149 of file RouteHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getTag(), SUMOSAXAttributes::hasAttribute(), CommonXMLStructure::SumoBaseObject::hasStringAttribute(), RouteHandler::myCommonXMLStructure, SUMO_ATTR_ID, SUMO_ATTR_ROUTE, SUMO_TAG_FLOW, and SUMO_TAG_VEHICLE.
Referenced by RouteHandler::parseRoute().
|
inherited |
get flag for check if a element wasn't created
Definition at line 377 of file RouteHandler.cpp.
References RouteHandler::myErrorCreatingElement.
Referenced by GNEGeneralHandler::isErrorCreatingElement().
bool GNERouteHandler::isPersonIdDuplicated | ( | const std::string & | id | ) |
check if there is already a person (Person or PersonFlow) with the given ID
Definition at line 1416 of file GNERouteHandler.cpp.
References checkDuplicatedDemandElement(), SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, TLF, toString(), and RouteHandler::writeError().
Referenced by buildPerson(), and buildPersonFlow().
bool GNERouteHandler::isVehicleIdDuplicated | ( | const std::string & | id | ) |
check if there is already a vehicle (Vehicle, Trip, Flow or Flow) with the given ID
Definition at line 1383 of file GNERouteHandler.cpp.
References checkDuplicatedDemandElement(), GNE_TAG_FLOW_JUNCTIONS, GNE_TAG_FLOW_ROUTE, GNE_TAG_FLOW_TAZS, GNE_TAG_FLOW_WITHROUTE, GNE_TAG_TRIP_JUNCTIONS, GNE_TAG_TRIP_TAZS, GNE_TAG_VEHICLE_WITHROUTE, SUMO_TAG_FLOW, SUMO_TAG_TRIP, SUMO_TAG_VEHICLE, TLF, toString(), and RouteHandler::writeError().
Referenced by buildEmbeddedRoute(), buildFlow(), buildFlowJunctions(), buildFlowOverRoute(), buildFlowTAZs(), buildTrip(), buildTripJunctions(), buildTripTAZs(), and buildVehicleOverRoute().
bool GNERouteHandler::isViaAttributeValid | ( | const std::vector< std::string > & | via | ) |
check if via attribute is valid
Definition at line 1404 of file GNERouteHandler.cpp.
References GNENet::getAttributeCarriers(), myNet, GNENetHelper::AttributeCarriers::retrieveEdge(), TLF, and RouteHandler::writeError().
Referenced by buildFlow(), and buildTrip().
|
protected |
remove overwritten demand element
Definition at line 2488 of file GNERouteHandler.cpp.
References GNENet::deleteDemandElement(), GNEViewNet::getUndoList(), GNENet::getViewNet(), myDemandToOverwrite, and myNet.
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(), and buildWalk().
|
privateinherited |
parse container
Definition at line 805 of file RouteHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), RouteHandler::myCommonXMLStructure, RouteHandler::myHardFail, SUMOVehicleParserHelper::parseVehicleAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), and SUMO_TAG_CONTAINER.
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse container flow
Definition at line 820 of file RouteHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), RouteHandler::myCommonXMLStructure, RouteHandler::myFlowBeginDefault, RouteHandler::myFlowEndDefault, RouteHandler::myHardFail, SUMOVehicleParserHelper::parseFlowAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), and SUMO_TAG_CONTAINERFLOW.
Referenced by RouteHandler::beginParseAttributes().
|
protected |
parse edge
Definition at line 2263 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, TLF, toString(), and RouteHandler::writeError().
Referenced by buildFlow(), and buildTrip().
|
protected |
parse edge from lane ID
Definition at line 2348 of file GNERouteHandler.cpp.
References GNENet::getAttributeCarriers(), myNet, and GNENetHelper::AttributeCarriers::retrieveEdge().
Referenced by parseStopEdge().
|
protected |
parse edges
Definition at line 2358 of file GNERouteHandler.cpp.
References GNENet::getAttributeCarriers(), myNet, GNENetHelper::AttributeCarriers::retrieveEdge(), SUMO_TAG_EDGE, TLF, toString(), and RouteHandler::writeError().
Referenced by buildEmbeddedRoute(), and buildRoute().
|
privateinherited |
parse flow (including flows, flows over routes and flows with embedded routes)
Definition at line 591 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::hasAttribute(), SUMOVehicleParameter::id, RouteHandler::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, TL, and RouteHandler::writeError().
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse interval
Definition at line 885 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 2241 of file GNERouteHandler.cpp.
References GNENet::getAttributeCarriers(), myNet, GNENetHelper::AttributeCarriers::retrieveJunction(), SUMO_TAG_JUNCTION, TLF, toString(), and RouteHandler::writeError().
Referenced by buildFlowJunctions(), and buildTripJunctions().
|
privateinherited |
parse nested CarFollowingModel
Definition at line 929 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 RouteHandler::writeError().
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse generic parameters
Definition at line 895 of file RouteHandler.cpp.
References SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), SUMOSAXAttributes::getString(), SUMOSAXAttributes::hasAttribute(), SUMOXMLDefinitions::isValidParameterKey(), RouteHandler::myCommonXMLStructure, SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_PARAM, SUMO_TAG_ROOTFILE, TL, toString(), WRITE_DEBUG, WRITE_WARNINGF, and RouteHandler::writeError().
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse person
Definition at line 687 of file RouteHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), RouteHandler::myCommonXMLStructure, RouteHandler::myHardFail, SUMOVehicleParserHelper::parseVehicleAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), and SUMO_TAG_PERSON.
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse person flow
Definition at line 702 of file RouteHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), RouteHandler::myCommonXMLStructure, RouteHandler::myFlowBeginDefault, RouteHandler::myFlowEndDefault, RouteHandler::myHardFail, SUMOVehicleParserHelper::parseFlowAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), and SUMO_TAG_PERSONFLOW.
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse person trip
Definition at line 717 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), RouteHandler::myCommonXMLStructure, SUMOVehicleParameter::parsePersonModes(), 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_PERSONTRIP, toString(), and WRITE_WARNING.
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse ride
Definition at line 783 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), RouteHandler::myCommonXMLStructure, CommonXMLStructure::SumoBaseObject::setPlanParameters(), CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_GROUP, SUMO_ATTR_LINES, and SUMO_TAG_RIDE.
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse route
Definition at line 447 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addColorAttribute(), CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addIntAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), CommonXMLStructure::SumoBaseObject::addTimeAttribute(), SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::getOptSUMOTimeReporting(), SUMOSAXAttributes::hasAttribute(), RGBColor::INVISIBLE, RouteHandler::isEmbeddedRoute(), SUMOXMLDefinitions::isValidVehicleID(), RouteHandler::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_DEST_PROB_REROUTE, SUMO_TAG_ROUTE, TL, TLF, toString(), RouteHandler::writeError(), and RouteHandler::writeErrorInvalidID().
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse route distribution
Definition at line 489 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleListAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), SUMOXMLDefinitions::isValidVehicleID(), RouteHandler::myCommonXMLStructure, CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_ID, SUMO_ATTR_PROBS, SUMO_ATTR_ROUTES, SUMO_TAG_ROUTE_DISTRIBUTION, RouteHandler::writeErrorInvalidDistribution(), and RouteHandler::writeErrorInvalidID().
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse stop
Definition at line 660 of file RouteHandler.cpp.
References RouteHandler::checkParent(), NamespaceIDs::containers, CommonXMLStructure::getCurrentSumoBaseObject(), RouteHandler::myCommonXMLStructure, RouteHandler::parseStopParameters(), NamespaceIDs::persons, NamespaceIDs::routes, CommonXMLStructure::SumoBaseObject::setPlanParameters(), CommonXMLStructure::SumoBaseObject::setStopParameter(), CommonXMLStructure::SumoBaseObject::setTag(), SUMO_TAG_STOP, and NamespaceIDs::vehicles.
Referenced by RouteHandler::beginParseAttributes().
|
protected |
parse stop edge
Definition at line 2293 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 949 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 RouteHandler::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(), 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 2252 of file GNERouteHandler.cpp.
References GNENet::getAttributeCarriers(), myNet, GNENetHelper::AttributeCarriers::retrieveAdditional(), SUMO_TAG_TAZ, TAZ, TLF, toString(), and RouteHandler::writeError().
Referenced by buildFlowTAZs(), and buildTripTAZs().
|
privateinherited |
parse tranship
Definition at line 857 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addTimeAttribute(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::getOptSUMOTimeReporting(), SUMOSAXAttributes::hasAttribute(), RouteHandler::myCommonXMLStructure, CommonXMLStructure::SumoBaseObject::setPlanParameters(), CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_DURATION, SUMO_ATTR_SPEED, SUMO_TAG_TRANSHIP, TL, and WRITE_ERROR.
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse transport
Definition at line 835 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), RouteHandler::myCommonXMLStructure, CommonXMLStructure::SumoBaseObject::setPlanParameters(), CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_GROUP, SUMO_ATTR_LINES, and SUMO_TAG_TRANSPORT.
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse trip
Definition at line 515 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::hasAttribute(), SUMOVehicleParameter::id, RouteHandler::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_TRIP, TL, and RouteHandler::writeError().
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse vehicle (including vehicles over routes and vehicles with embedded routes)
Definition at line 576 of file RouteHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), RouteHandler::myCommonXMLStructure, RouteHandler::myHardFail, SUMOVehicleParserHelper::parseVehicleAttributes(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), and SUMO_TAG_VEHICLE.
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
Definition at line 404 of file RouteHandler.cpp.
References SUMOVehicleParserHelper::beginVTypeParsing(), CommonXMLStructure::getCurrentSumoBaseObject(), RouteHandler::myCommonXMLStructure, RouteHandler::myFilename, RouteHandler::myHardFail, CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleTypeParameter(), and SUMO_TAG_VTYPE.
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse vType distribution
Definition at line 419 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleListAttribute(), CommonXMLStructure::SumoBaseObject::addIntAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), SUMOXMLDefinitions::isValidVehicleID(), RouteHandler::myCommonXMLStructure, CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_DETERMINISTIC, SUMO_ATTR_ID, SUMO_ATTR_PROBS, SUMO_ATTR_VTYPES, SUMO_TAG_VTYPE_DISTRIBUTION, RouteHandler::writeErrorInvalidDistribution(), and RouteHandler::writeErrorInvalidID().
Referenced by RouteHandler::beginParseAttributes().
|
privateinherited |
parse walk
Definition at line 755 of file RouteHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addTimeAttribute(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::getOptSUMOTimeReporting(), SUMOSAXAttributes::hasAttribute(), RouteHandler::myCommonXMLStructure, CommonXMLStructure::SumoBaseObject::setPlanParameters(), CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_DURATION, SUMO_ATTR_SPEED, SUMO_TAG_WALK, TL, and WRITE_ERROR.
Referenced by RouteHandler::beginParseAttributes().
|
static |
reverse given demand element
Definition at line 2174 of file GNERouteHandler.cpp.
References GNEDemandElement::getAttribute(), GNEHierarchicalElement::getChildDemandElements(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEAttributeCarrier::getTagProperty(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEPathManager::PathElement::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 2049 of file GNERouteHandler.cpp.
References GNEUndoList::begin(), buildContainer(), GNENet::deleteDemandElement(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEHierarchicalElement::getChildDemandElements(), GNEViewParent::getGNEAppWindows(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNE_ATTR_PARENT, SUMOVehicleParameter::id, GNEInspectorFrame::inspectSingleElement(), GNEViewNet::isAttributeCarrierInspected(), 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 2087 of file GNERouteHandler.cpp.
References GNEUndoList::begin(), buildContainerFlow(), GNENet::deleteDemandElement(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEHierarchicalElement::getChildDemandElements(), GNEViewParent::getGNEAppWindows(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNE_ATTR_PARENT, SUMOVehicleParameter::id, GNEInspectorFrame::inspectSingleElement(), GNEViewNet::isAttributeCarrierInspected(), 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 1701 of file GNERouteHandler.cpp.
References GNEUndoList::begin(), buildFlow(), GNENet::deleteDemandElement(), SUMOVehicleParameter::depart, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEHierarchicalElement::getChildDemandElements(), GNEViewParent::getGNEAppWindows(), 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::inspectSingleElement(), GNEViewNet::isAttributeCarrierInspected(), 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 1822 of file GNERouteHandler.cpp.
References GNEUndoList::begin(), buildFlowJunctions(), GNENet::deleteDemandElement(), SUMOVehicleParameter::depart, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewParent::getGNEAppWindows(), 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::inspectSingleElement(), GNEViewNet::isAttributeCarrierInspected(), 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 1919 of file GNERouteHandler.cpp.
References GNEUndoList::begin(), buildFlowTAZs(), GNENet::deleteDemandElement(), SUMOVehicleParameter::depart, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewParent::getGNEAppWindows(), 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::inspectSingleElement(), GNEViewNet::isAttributeCarrierInspected(), 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 1972 of file GNERouteHandler.cpp.
References GNEUndoList::begin(), buildPerson(), GNENet::deleteDemandElement(), duplicatePlan(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEHierarchicalElement::getChildDemandElements(), GNEViewParent::getGNEAppWindows(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEViewNet::getViewParent(), SUMOVehicleParameter::id, GNEInspectorFrame::inspectSingleElement(), GNEViewNet::isAttributeCarrierInspected(), 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 2008 of file GNERouteHandler.cpp.
References GNEUndoList::begin(), buildPersonFlow(), GNENet::deleteDemandElement(), duplicatePlan(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEHierarchicalElement::getChildDemandElements(), GNEViewParent::getGNEAppWindows(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEViewNet::getViewParent(), SUMOVehicleParameter::id, GNEInspectorFrame::inspectSingleElement(), GNEViewNet::isAttributeCarrierInspected(), 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 1533 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(), 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::inspectSingleElement(), RGBColor::INVISIBLE, GNEViewNet::isAttributeCarrierInspected(), 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 1636 of file GNERouteHandler.cpp.
References GNEUndoList::begin(), buildTrip(), GNENet::deleteDemandElement(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEHierarchicalElement::getChildDemandElements(), GNEViewParent::getGNEAppWindows(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEViewNet::getViewParent(), SUMOVehicleParameter::id, GNEInspectorFrame::inspectSingleElement(), GNEViewNet::isAttributeCarrierInspected(), 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 1778 of file GNERouteHandler.cpp.
References GNEUndoList::begin(), buildTripJunctions(), GNENet::deleteDemandElement(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewParent::getGNEAppWindows(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentJunctions(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNE_TAG_TRIP_JUNCTIONS, SUMOVehicleParameter::id, GNEInspectorFrame::inspectSingleElement(), GNEViewNet::isAttributeCarrierInspected(), 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 1875 of file GNERouteHandler.cpp.
References GNEUndoList::begin(), buildTripTAZs(), GNENet::deleteDemandElement(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewParent::getGNEAppWindows(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentAdditionals(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNE_TAG_TRIP_TAZS, SUMOVehicleParameter::id, GNEInspectorFrame::inspectSingleElement(), GNEViewNet::isAttributeCarrierInspected(), 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 1442 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(), 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::inspectSingleElement(), RGBColor::INVISIBLE, GNEViewNet::isAttributeCarrierInspected(), 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 383 of file RouteHandler.cpp.
References RouteHandler::myErrorCreatingElement, and WRITE_ERROR.
Referenced by buildContainer(), buildContainerFlow(), buildEmbeddedRoute(), buildFlow(), buildFlowJunctions(), buildFlowOverRoute(), buildFlowTAZs(), buildPerson(), buildPersonFlow(), buildRide(), buildRoute(), buildRouteDistribution(), buildStop(), buildTrip(), buildTripJunctions(), buildTripTAZs(), buildVehicleOverRoute(), buildVType(), buildVTypeDistribution(), RouteHandler::checkParent(), getDistributionElements(), isContainerIdDuplicated(), isPersonIdDuplicated(), isVehicleIdDuplicated(), isViaAttributeValid(), parseEdge(), parseEdges(), RouteHandler::parseFlow(), parseJunction(), RouteHandler::parseNestedCFM(), RouteHandler::parseParameters(), RouteHandler::parseRoute(), RouteHandler::parseStopParameters(), parseTAZ(), RouteHandler::parseTrip(), and writeErrorInvalidNegativeValue().
|
privateinherited |
write error "invalid distribution"
Definition at line 397 of file RouteHandler.cpp.
References RouteHandler::myErrorCreatingElement, TL, toString(), and WRITE_ERRORF.
Referenced by RouteHandler::parseRouteDistribution(), and RouteHandler::parseVTypeDistribution().
|
privateinherited |
write error "invalid id"
Definition at line 390 of file RouteHandler.cpp.
References RouteHandler::myErrorCreatingElement, TL, toString(), and WRITE_ERRORF.
Referenced by RouteHandler::parseRoute(), RouteHandler::parseRouteDistribution(), and RouteHandler::parseVTypeDistribution().
|
protected |
write error "invalid negative element"
Definition at line 2499 of file GNERouteHandler.cpp.
References TLF, toString(), and RouteHandler::writeError().
Referenced by buildTranship(), and buildWalk().
|
private |
allow undo/redo
Definition at line 310 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(), and checkDuplicatedDemandElement().
|
privateinherited |
common XML Structure
Definition at line 165 of file RouteHandler.h.
Referenced by RouteHandler::beginParseAttributes(), RouteHandler::checkParent(), RouteHandler::endParseAttributes(), RouteHandler::isEmbeddedRoute(), RouteHandler::parseContainer(), RouteHandler::parseContainerFlow(), RouteHandler::parseFlow(), RouteHandler::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(), and RouteHandler::parseWalk().
|
private |
demand to overwrite (using undo-redo
Definition at line 316 of file GNERouteHandler.h.
Referenced by checkDuplicatedDemandElement(), and overwriteDemandElement().
|
privateinherited |
flag for check if a element wasn't created
Definition at line 168 of file RouteHandler.h.
Referenced by RouteHandler::isErrorCreatingElement(), RouteHandler::writeError(), RouteHandler::writeErrorInvalidDistribution(), and RouteHandler::writeErrorInvalidID().
|
privateinherited |
filename (needed for parsing vTypes)
Definition at line 153 of file RouteHandler.h.
Referenced by RouteHandler::parseVType().
|
privateinherited |
The default value for flow begins.
Definition at line 159 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 162 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 156 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 304 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(), getContainerParent(), getDistributionElements(), getPersonParent(), getType(), isViaAttributeValid(), overwriteDemandElement(), parseEdge(), parseEdgeFromLaneID(), parseEdges(), parseJunction(), parseStopEdge(), and parseTAZ().
|
private |
check if overwrite
Definition at line 313 of file GNERouteHandler.h.
Referenced by checkDuplicatedDemandElement().
|
private |
pointer for person and container plans
Definition at line 307 of file GNERouteHandler.h.
Referenced by buildContainerPlan(), buildPersonPlan(), duplicatePlan(), and ~GNERouteHandler().