65 void setEdges(
GNENet* net,
const std::string& vehicleID,
const std::string& fromID,
const std::string& toID,
const std::string& viaIDs);
105 static void buildRoute(
GNENet* net,
bool undoDemandElements,
const RouteParameter& routeParameters,
const std::vector<SUMOVehicleParameter::Stop>& activeStops);
150 GNEAdditional* busStopFrom,
GNEAdditional* busStopTo,
double arrivalPos,
const std::vector<std::string>& types,
const std::vector<std::string>& modes);
221 void closeRoute(
const bool mayBeDisconnected =
false);
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
SumoXMLTag
Numbers representing SUMO-XML - element names.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
An Element which don't belongs to GNENet but has influency in the simulation.
An Element which don't belongs to GNENet but has influency in the simulation.
A road/street connecting two junctions (netedit-version)
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
A NBNetBuilder extended by visualisation and editing capabilities.
Builds trigger objects for GNENet (busStops, chargingStations, detectors, etc..)
void closePerson()
Ends the processing of a person.
static void buildVehicleOverRoute(GNENet *net, bool undoDemandElements, const SUMOVehicleParameter &vehicleParameters)
build a vehicle over an existent route
static void buildRide(GNENet *net, bool undoDemandElements, GNEDemandElement *personParent, GNEEdge *fromEdge, GNEEdge *toEdge, GNEAdditional *busStopFrom, GNEAdditional *busStopTo, double arrivalPos, const std::vector< std::string > &lines)
build ride
RouteParameter myRouteParameter
NETEDIT Route Parameters.
void addStop(const SUMOSAXAttributes &attrs)
Processing of a stop.
void addTranship(const SUMOSAXAttributes &attrs)
Processing of a tranship.
bool myAbort
flag used for parsing values
static void buildFlowEmbeddedRoute(GNENet *net, bool undoDemandElements, SUMOVehicleParameter vehicleParameters, const std::vector< GNEEdge * > &edges)
build flow with a embedded route
static void buildPersonTrip(GNENet *net, bool undoDemandElements, GNEDemandElement *personParent, GNEEdge *fromEdge, GNEEdge *toEdge, GNEAdditional *busStopFrom, GNEAdditional *busStopTo, double arrivalPos, const std::vector< std::string > &types, const std::vector< std::string > &modes)
build person trip
void closeFlow()
Ends the processing of a routeFlow.
void addTransport(const SUMOSAXAttributes &attrs)
Processing of a transport.
void closeVehicleTypeDistribution()
closes (ends) the building of a distribution
static void buildPerson(GNENet *net, bool undoDemandElements, const SUMOVehicleParameter &personParameters)
void addContainer(const SUMOSAXAttributes &attrs)
Processing of a container.
static void transformToRouteFlow(GNEVehicle *originalVehicle, bool createEmbeddedRoute)
transform routeFlow over an existent route
GNENet * myNet
pointer to GNENet
void openRouteFlow(const SUMOSAXAttributes &attrs)
opens a routeFlow for reading
static bool isPersonIdDuplicated(GNENet *net, const std::string &id)
check if there is already a person (Person or PersonFlow) with the given ID
void closeContainer()
Ends the processing of a container.
static void buildRoute(GNENet *net, bool undoDemandElements, const RouteParameter &routeParameters, const std::vector< SUMOVehicleParameter::Stop > &activeStops)
build route
void closePersonFlow()
Ends the processing of a personFlow.
static void transformToFlow(GNEVehicle *originalVehicle)
transform to flow
void addPersonTrip(const SUMOSAXAttributes &attrs)
add a routing request for a walking or intermodal person
void closeVehicle()
Ends the processing of a vehicle.
void openRouteDistribution(const SUMOSAXAttributes &attrs)
opens a route distribution for reading
static void buildPersonStop(GNENet *net, bool undoDemandElements, GNEDemandElement *personParent, GNEEdge *edge, GNEAdditional *busStop, const SUMOVehicleParameter::Stop &stopParameters)
build stop
static void buildWalk(GNENet *net, bool undoDemandElements, GNEDemandElement *personParent, GNEEdge *fromEdge, GNEEdge *toEdge, GNEAdditional *busStopFrom, GNEAdditional *busStopTo, const std::vector< GNEEdge * > &edges, GNEDemandElement *route, double arrivalPos)
build walk
void addWalk(const SUMOSAXAttributes &attrs)
add a fully specified walk
void closeRoute(const bool mayBeDisconnected=false)
static void buildPersonFlow(GNENet *net, bool undoDemandElements, const SUMOVehicleParameter &personFlowParameters)
build person flow
void addPerson(const SUMOSAXAttributes &attrs)
Processing of a person.
void openRoute(const SUMOSAXAttributes &attrs)
opens a route for reading
static void setFlowParameters(const SumoXMLAttr attribute, int ¶meters)
configure flow parameters
static bool isVehicleIdDuplicated(GNENet *net, const std::string &id)
check if there is already a vehicle (Vehicle, Trip, Flow or Flow) with the given ID
GNERouteHandler(const std::string &file, GNENet *net, bool undoDemandElements=true)
Constructor.
void openTrip(const SUMOSAXAttributes &attrs)
opens a trip for reading
PersonValue myPersonValues
NETEDIT person values.
void closeRouteDistribution()
closes (ends) the building of a distribution
static bool buildPersonPlan(SumoXMLTag tag, GNEDemandElement *personParent, GNEFrameAttributesModuls::AttributesCreator *personPlanAttributes, GNEFrameModuls::PathCreator *pathCreator)
void openFlow(const SUMOSAXAttributes &attrs)
opens a routeFlow for reading
static void transformToTrip(GNEVehicle *originalVehicle)
transform to trip
static void transformToPerson(GNEPerson *originalPerson)
transform person functions
void closeVType()
Ends the processing of a vehicle Type.
bool myUndoDemandElements
flag to check if created demand elements must be undo and redo
~GNERouteHandler()
Destructor.
GNEDemandElement * myLoadedVehicleWithEmbebbedRoute
Pointer to loaded vehicle with embebbed route (needed for GNEStops)
static void buildStop(GNENet *net, bool undoDemandElements, const SUMOVehicleParameter::Stop &stopParameters, GNEDemandElement *stopParent)
build stop
void closeTrip()
Ends the processing of a trip.
void addRide(const SUMOSAXAttributes &attrs)
Processing of a ride.
static void buildVehicleEmbeddedRoute(GNENet *net, bool undoDemandElements, SUMOVehicleParameter vehicleParameters, const std::vector< GNEEdge * > &edges)
build vehicle with a embedded route
void openVehicleTypeDistribution(const SUMOSAXAttributes &attrs)
opens a type distribution for reading
static void transformToPersonFlow(GNEPerson *originalPerson)
transform routeFlow over an existent route
static void buildFlowOverRoute(GNENet *net, bool undoDemandElements, const SUMOVehicleParameter &vehicleParameters)
build a flow over an existent route
static void buildFlow(GNENet *net, bool undoDemandElements, const SUMOVehicleParameter &vehicleParameters, GNEEdge *fromEdge, GNEEdge *toEdge, const std::vector< GNEEdge * > &via)
build flow
static void transformToVehicle(GNEVehicle *originalVehicle, bool createEmbeddedRoute)
transform vehicle functions
static void buildTrip(GNENet *net, bool undoDemandElements, const SUMOVehicleParameter &vehicleParameters, GNEEdge *fromEdge, GNEEdge *toEdge, const std::vector< GNEEdge * > &via)
build trip
An upper class for objects with additional parameters.
Parser for routes during their loading.
Encapsulated SAX-Attributes.
Definition of vehicle stop (position and duration)
Structure representing possible vehicle parameter.
struct used for load person plans (Rides, Walks, etc.)
PersonPlansValues & operator=(PersonPlansValues *)=delete
Invalidated assignment operator.
GNEEdge * getLastEdge() const
return last valid edge (used to create consecutive person plans)
std::vector< std::string > vTypes
vehicle types
PersonPlansValues(PersonPlansValues *)=delete
Invalidated copy constructor.
GNELane * lane
lane (stop)
GNEAdditional * chargingStation
charging station (stop)
bool isFirstPersonPlan() const
is first person plan
std::vector< std::string > lines
lines
GNEAdditional * fromBusStop
from busStop
std::vector< GNEEdge * > edges
list of edges
GNEEdge * fromEdge
from edge
void updateGNETag()
update tag
PersonPlansValues()
default constructor
double arrivalPos
arrival pos
GNEAdditional * busStop
bus stop (stop)
SUMOVehicleParameter::Stop stopParameters
stop parameters
GNEAdditional * parkingArea
parking area (stop)
std::vector< std::string > modes
modes
GNEDemandElement * route
arrival route
GNEEdge * edgeStop
edge stop
GNEAdditional * toBusStop
to busStop
GNEAdditional * containerStop
container stop (stop)
bool checkIntegrity() const
check integrity
std::vector< PersonPlansValues > myPersonPlanValues
container for person trips loaded values
bool addPersonValue(GNENet *net, SumoXMLTag tag, const SUMOSAXAttributes &attrs)
add person plan value (
bool checkPersonPlanValues()
check person plan loaded (this will change tags, set begin and end elements, etc.)
struct for saving route parameters
bool loadedID
flag to check if route was loaded
std::string routeID
string for saving parsed Route ID
std::vector< GNEEdge * > edges
edges
RGBColor color
string for saving parsed route colors
void clearEdges()
clear edges
Parameterised parameters
parameters
SUMOVehicleClass vClass
vClass used by this route
void setEdges(GNENet *net, const std::string &edgeIDs)
set edges (list of consecutive edges)
RouteParameter()
constructor