17 #ifndef GNERouteHandler_h 18 #define GNERouteHandler_h 66 void setEdges(
GNEViewNet* viewNet,
const std::string& vehicleID,
const std::string& fromID,
const std::string& toID,
const std::string& viaIDs);
127 const std::vector<std::string>& types,
const std::vector<std::string>& modes,
double arrivalPos);
131 GNEAdditional* busStop,
const std::vector<std::string>& types,
const std::vector<std::string>& modes);
147 const std::vector<std::string>& lines,
double arrivalPos);
151 GNEAdditional* busStop,
const std::vector<std::string>& lines);
211 void closeRoute(
const bool mayBeDisconnected =
false);
274 std::vector<GNEEdge*> calculateEdgePath()
const;
286 std::vector<GNEEdge*>
via;
void closeRouteDistribution()
closes (ends) the building of a distribution
RouteParameter myRouteParameter
NETEDIT Route Parameters.
void closeVehicle()
Ends the processing of a vehicle.
void closeFlow()
Ends the processing of a routeFlow.
SUMOVehicleClass VClass
VClass used by this route.
SumoXMLTag
Numbers representing SUMO-XML - element names.
bool myAbort
flag used for parsing values
static void transformToVehicle(GNEVehicle *originalVehicle, bool createEmbeddedRoute)
transform vehicle functions
~GNERouteHandler()
Destructor.
struct for saving route parameters
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
static void buildRideFromTo(GNEViewNet *viewNet, bool undoDemandElements, GNEDemandElement *personParent, const std::vector< GNEEdge *> &edges, const std::vector< std::string > &lines, double arrivalPos)
build ride using a from-to edges
static bool isPersonIdDuplicated(GNEViewNet *viewNet, const std::string &id)
check if there is already a person (Person or PersonFlow) with the given ID
static void buildTrip(GNEViewNet *viewNet, bool undoDemandElements, const SUMOVehicleParameter &vehicleParameters, const std::vector< GNEEdge *> &edges)
build trip
GNEAdditional * busStop
busStop
std::vector< std::string > modes
modes
void setEdges(GNEViewNet *viewNet, const std::string &edgeIDs)
set edges (list of consecutive edges)
void openVehicleTypeDistribution(const SUMOSAXAttributes &attrs)
opens a type distribution for reading
static void transformToTrip(GNEVehicle *originalVehicle)
transform to trip
RGBColor color
string for saving parsed route colors
static void embebbeRoute(GNEVehicle *vehicle, GNEUndoList *undoList)
embebbe route within a vehicle
void openTrip(const SUMOSAXAttributes &attrs)
opens a trip for reading
void closeContainer()
Ends the processing of a container.
SUMOVehicleParameter::Stop stopParameters
stop parameters
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
static void transformToPerson(GNEPerson *originalPerson)
transform person functions
std::vector< std::string > lines
lines
static bool isVehicleIdDuplicated(GNEViewNet *viewNet, const std::string &id)
check if there is already a vehicle (Vehicle, Trip, Flow or Flow) with the given ID ...
struct used for load person plans (Rides, Walks, etc.)
static void buildFlow(GNEViewNet *viewNet, bool undoDemandElements, const SUMOVehicleParameter &vehicleParameters, const std::vector< GNEEdge *> &edges)
build flow
Parameterised genericParameters
generic parameters
static void buildRideBusStop(GNEViewNet *viewNet, bool undoDemandElements, GNEDemandElement *personParent, const std::vector< GNEEdge *> &edges, GNEAdditional *busStop, const std::vector< std::string > &lines)
build ride using a from edge and a busStop
void addRide(const SUMOSAXAttributes &attrs)
Processing of a ride.
static void transformToFlow(GNEVehicle *originalVehicle)
transform to flow
void closePersonFlow()
Ends the processing of a personFlow.
std::vector< GNEEdge * > edges
edges
void openFlow(const SUMOSAXAttributes &attrs)
opens a routeFlow for reading
std::vector< GNEEdge * > edges
list of edges
Encapsulated SAX-Attributes.
void addTranship(const SUMOSAXAttributes &attrs)
Processing of a tranship.
static void buildPerson(GNEViewNet *viewNet, bool undoDemandElements, const SUMOVehicleParameter &personParameters)
build person
void closePerson()
Ends the processing of a person.
void openRoute(const SUMOSAXAttributes &attrs)
opens a route for reading
GNEViewNet * myViewNet
pointer to View's Net
bool myUndoDemandElements
flag to check if created demand elements must be undo and redo
double arrivalPos
arrival pos
static void buildWalkFromTo(GNEViewNet *viewNet, bool undoDemandElements, GNEDemandElement *personParent, const std::vector< GNEEdge *> &edges, double arrivalPos)
build walk using a from-to edges
std::vector< GNEEdge * > via
via edges
void closeRoute(const bool mayBeDisconnected=false)
static void buildPersonFlow(GNEViewNet *viewNet, bool undoDemandElements, const SUMOVehicleParameter &personFlowParameters)
build person flow
An upper class for objects with additional parameters.
Definition of vehicle stop (position and duration)
void addStop(const SUMOSAXAttributes &attrs)
Processing of a stop.
Parser for routes during their loading.
A road/street connecting two junctions (netedit-version)
static void transformToPersonFlow(GNEPerson *originalPerson)
transform routeFlow over an existent route
Builds trigger objects for GNENet (busStops, chargingStations, detectors, etc..)
Structure representing possible vehicle parameter.
static void transformToRouteFlow(GNEVehicle *originalVehicle, bool createEmbeddedRoute)
transform routeFlow over an existent route
void addPerson(const SUMOSAXAttributes &attrs)
Processing of a person.
static void buildWalkRoute(GNEViewNet *viewNet, bool undoDemandElements, GNEDemandElement *personParent, GNEDemandElement *routeParent, double arrivalPos)
build walk using a list of consecutive edges
An Element which don't belongs to GNENet but has influency in the simulation.
static void buildStop(GNEViewNet *viewNet, bool undoDemandElements, const SUMOVehicleParameter::Stop &stopParameters, GNEDemandElement *stopParent, bool friendlyPosition)
build stop
static GNEVehicle * separateEmbeddedRoute(GNEVehicle *vehicle, GNEUndoList *undoList)
separate vehicle and embedded route
GNELane * laneStop
laneStop
void closeVType()
Ends the processing of a vehicle Type.
void addPersonTrip(const SUMOSAXAttributes &attrs)
add a routing request for a walking or intermodal person
std::vector< PersonPlansValues > myPersonPlanValues
container for person trips loaded values
void closeVehicleTypeDistribution()
closes (ends) the building of a distribution
void openRouteDistribution(const SUMOSAXAttributes &attrs)
opens a route distribution for reading
RouteParameter()
constructor
bool friendlyPos
friendly position
static void buildWalkBusStop(GNEViewNet *viewNet, bool undoDemandElements, GNEDemandElement *personParent, const std::vector< GNEEdge *> &edges, GNEAdditional *busStop)
build walk using a form edge an a busStop
static void buildVehicleWithEmbeddedRoute(GNEViewNet *viewNet, bool undoDemandElements, SUMOVehicleParameter vehicleParameters, GNEDemandElement *embeddedRouteCopy)
build vehicle with a embedded route
static void buildFlowOverRoute(GNEViewNet *viewNet, bool undoDemandElements, const SUMOVehicleParameter &vehicleParameters)
build a flow over an existent route
static void buildPersonTripFromTo(GNEViewNet *viewNet, bool undoDemandElements, GNEDemandElement *personParent, const std::vector< GNEEdge *> &edges, const std::vector< std::string > &types, const std::vector< std::string > &modes, double arrivalPos)
build trip using a from-to edges
GNEDemandElement * route
arrival route
static void buildWalkEdges(GNEViewNet *viewNet, bool undoDemandElements, GNEDemandElement *personParent, const std::vector< GNEEdge *> &edges, double arrivalPos)
build walk using a list of consecutive edges
std::vector< std::string > vTypes
vehicle types
GNERouteHandler(const std::string &file, GNEViewNet *viewNet, bool undoDemandElements=true)
Constructor.
void addWalk(const SUMOSAXAttributes &attrs)
add a fully specified walk
std::string routeID
string for saving parsed Route ID
void addTransport(const SUMOSAXAttributes &attrs)
Processing of a transport.
void addContainer(const SUMOSAXAttributes &attrs)
Processing of a container.
void closeTrip()
Ends the processing of a trip.
static void buildVehicleOverRoute(GNEViewNet *viewNet, bool undoDemandElements, const SUMOVehicleParameter &vehicleParameters)
build functions
An Element which don't belongs to GNENet but has influency in the simulation.
static void buildFlowWithEmbeddedRoute(GNEViewNet *viewNet, bool undoDemandElements, SUMOVehicleParameter vehicleParameters, GNEDemandElement *embeddedRouteCopy)
build flow with a embedded route
static void buildPersonTripBusStop(GNEViewNet *viewNet, bool undoDemandElements, GNEDemandElement *personParent, const std::vector< GNEEdge *> &edges, GNEAdditional *busStop, const std::vector< std::string > &types, const std::vector< std::string > &modes)
build trip using a from edge and a busStop