Eclipse SUMO - Simulation of Urban MObility
GNERouteHandler::RouteParameter Struct Reference

struct for saving route parameters More...

#include <GNERouteHandler.h>

Collaboration diagram for GNERouteHandler::RouteParameter:
[legend]

Public Member Functions

void clearEdges ()
 clear edges More...
 
 RouteParameter ()
 constructor More...
 
 RouteParameter (GNEDemandElement *originalDemandElement)
 parameter constructor (use values of originalDemandElement) More...
 
void setEdges (GNENet *net, const std::string &edgeIDs)
 set edges (list of consecutive edges) More...
 
void setEdges (GNENet *net, const std::string &vehicleID, const std::string &fromID, const std::string &toID, const std::string &viaIDs)
 set edges (from, to and via edges) More...
 

Data Fields

RGBColor color
 string for saving parsed route colors More...
 
std::vector< GNEEdge * > edges
 edges More...
 
bool loadedID
 flag to check if route was loaded More...
 
Parameterised parameters
 parameters More...
 
std::string routeID
 string for saving parsed Route ID More...
 
SUMOVehicleClass vClass
 vClass used by this route More...
 

Detailed Description

struct for saving route parameters

Definition at line 53 of file GNERouteHandler.h.

Constructor & Destructor Documentation

◆ RouteParameter() [1/2]

GNERouteHandler::RouteParameter::RouteParameter ( )

constructor

Definition at line 46 of file GNERouteHandler.cpp.

◆ RouteParameter() [2/2]

GNERouteHandler::RouteParameter::RouteParameter ( GNEDemandElement originalDemandElement)

parameter constructor (use values of originalDemandElement)

Definition at line 53 of file GNERouteHandler.cpp.

Member Function Documentation

◆ clearEdges()

void GNERouteHandler::RouteParameter::clearEdges ( )

clear edges

Definition at line 109 of file GNERouteHandler.cpp.

Referenced by GNERouteHandler::openRouteFlow().

Here is the caller graph for this function:

◆ setEdges() [1/2]

void GNERouteHandler::RouteParameter::setEdges ( GNENet net,
const std::string &  edgeIDs 
)

set edges (list of consecutive edges)

Definition at line 65 of file GNERouteHandler.cpp.

References GNEAttributeCarrier::canParse().

Referenced by GNERouteHandler::openFlow(), GNERouteHandler::openRoute(), and GNERouteHandler::openTrip().

Here is the caller graph for this function:

◆ setEdges() [2/2]

void GNERouteHandler::RouteParameter::setEdges ( GNENet net,
const std::string &  vehicleID,
const std::string &  fromID,
const std::string &  toID,
const std::string &  viaIDs 
)

set edges (from, to and via edges)

Definition at line 76 of file GNERouteHandler.cpp.

References GNEAttributeCarrier::canParse(), GNENet::retrieveEdge(), and WRITE_ERROR.

Field Documentation

◆ color

◆ edges

◆ loadedID

bool GNERouteHandler::RouteParameter::loadedID

flag to check if route was loaded

Definition at line 74 of file GNERouteHandler.h.

Referenced by GNERouteHandler::closeRoute(), and GNERouteHandler::openRoute().

◆ parameters

Parameterised GNERouteHandler::RouteParameter::parameters

parameters

Definition at line 86 of file GNERouteHandler.h.

Referenced by GNERouteHandler::closeRoute().

◆ routeID

◆ vClass

SUMOVehicleClass GNERouteHandler::RouteParameter::vClass

vClass used by this route

Definition at line 80 of file GNERouteHandler.h.

Referenced by GNERouteFrame::createPath().


The documentation for this struct was generated from the following files: