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