Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
RODFNet Class Reference

A DFROUTER-network. More...

#include <RODFNet.h>

Inheritance diagram for RODFNet:
[legend]
Collaboration diagram for RODFNet:
[legend]

Data Structures

class  DFRouteDescByTimeComperator
struct  idComp
 comparator for maps using edges as key, used only in myDetectorsOnEdges to make tests comparable More...
struct  IterationEdge

Public Types

typedef std::map< const SUMOTime, std::vector< RORoutable * > > RoutablesMap

Public Member Functions

void addPreference (const std::string &routingType, std::string vType, double prio)
 add edge type specific routing preference
void addPreference (const std::string &routingType, SUMOVehicleClass svc, double prio)
 add edge type specific routing preference
void addRestriction (const std::string &id, const SUMOVehicleClass svc, const double speed)
 Adds a restriction for an edge type.
void buildApproachList ()
void buildDetectorDependencies (RODFDetectorCon &detectors)
void buildEdgeFlowMap (const RODFDetectorFlows &flows, const RODFDetectorCon &detectors, SUMOTime startTime, SUMOTime endTime, SUMOTime stepOffset)
void buildRoutes (RODFDetectorCon &det, bool keepUnfoundEnds, bool includeInBetween, bool keepShortestOnly, int maxFollowingLength) const
void computeTypes (RODFDetectorCon &dets, bool sourcesStrict) const
double getAbsPos (const RODFDetector &det) const
double getAvgSpeedFactorLKW () const
double getAvgSpeedFactorPKW () const
const std::vector< std::string > & getDetectorList (ROEdge *edge) const
double getMaxSpeedFactorLKW () const
double getMaxSpeedFactorPKW () const
double getPreference (const std::string &routingType, const SUMOVTypeParameter &pars) const
 retriefe edge type specific routing preference
const std::map< SUMOVehicleClass, double > * getRestrictions (const std::string &id) const
 Returns the restrictions for an edge type If no restrictions are present, 0 is returned.
bool hasDetector (ROEdge *edge) const
bool hasRestrictions () const
void mesoJoin (RODFDetectorCon &detectors, RODFDetectorFlows &flows)
void removeEmptyDetectors (RODFDetectorCon &detectors, RODFDetectorFlows &flows)
void reportEmptyDetectors (RODFDetectorCon &detectors, RODFDetectorFlows &flows)
void revalidateFlows (const RODFDetectorCon &detectors, RODFDetectorFlows &flows, SUMOTime startTime, SUMOTime endTime, SUMOTime stepOffset)
 RODFNet (bool amInHighwayMode)
 Constructor.
 ~RODFNet ()
 Destructor.
Insertion and retrieval of graph parts
virtual bool addEdge (ROEdge *edge)
bool addDistrict (const std::string id, ROEdge *source, ROEdge *sink)
bool addDistrictEdge (const std::string tazID, const std::string edgeID, const bool isSource)
void addJunctionTaz (ROAbstractEdgeBuilder &eb)
 add a taz for every junction unless a taz with the same id already exists
void setBidiEdges (const std::map< ROEdge *, std::string > &bidiMap)
 add a taz for every junction unless a taz with the same id already exists
const std::map< std::string, std::pair< std::vector< std::string >, std::vector< std::string > > > & getDistricts () const
 Retrieves all TAZ (districts) from the network.
ROEdgegetEdge (const std::string &name) const
 Retrieves an edge from the network.
ROEdgegetEdgeForLaneID (const std::string &laneID) const
 Retrieves an edge from the network when the lane id is given.
ROLanegetLane (const std::string &laneID) const
 Retrieves a lane rom the network given its id.
void addNode (RONode *node)
RONodegetNode (const std::string &id) const
 Retrieves an node from the network.
void addStoppingPlace (const std::string &id, const SumoXMLTag category, SUMOVehicleParameter::Stop *stop)
const SUMOVehicleParameter::StopgetStoppingPlace (const std::string &id, const SumoXMLTag category) const
 Retrieves a stopping place from the network.
const std::string getStoppingPlaceName (const std::string &id) const
 return the name for the given stopping place id
const std::string getStoppingPlaceElement (const std::string &id) const
 return the element name for the given stopping place id
Insertion and retrieval of vehicle types, vehicles, routes, and route definitions
bool checkVType (const std::string &id)
 Checks whether the vehicle type (distribution) may be added.
virtual bool addVehicleType (SUMOVTypeParameter *type)
 Adds a read vehicle type definition to the network.
bool addVTypeDistribution (const std::string &id, RandomDistributor< SUMOVTypeParameter * > *vehTypeDistribution)
 Adds a vehicle type distribution.
const RandomDistributor< SUMOVTypeParameter * > * getVTypeDistribution (const std::string &id)
 Retrieves the named vehicle type distribution.
SUMOVTypeParametergetVehicleTypeSecure (const std::string &id)
 Retrieves the named vehicle type.
bool addRouteDef (RORouteDef *def)
RORouteDefgetRouteDef (const std::string &name) const
 Returns the named route definition.
virtual bool addVehicle (const std::string &id, ROVehicle *veh)
bool knowsVehicle (const std::string &id) const
 returns whether a vehicle with the given id was already loaded
SUMOTime getDeparture (const std::string &vehID) const
 returns departure time for the given vehicle id
bool addFlow (SUMOVehicleParameter *flow, const bool randomize)
bool addPerson (ROPerson *person)
void addContainer (const SUMOTime depart, const std::string desc)

Static Public Member Functions

static RONetgetInstance ()
 Returns the pointer to the unique instance of RONet (singleton).

Protected Member Functions

void buildDetectorEdgeDependencies (RODFDetectorCon &dets) const
void computeRoutesFor (ROEdge *edge, RODFRouteDesc &base, int no, bool keepUnfoundEnds, bool keepShortestOnly, ROEdgeVector &visited, const RODFDetector &det, RODFRouteCont &into, const RODFDetectorCon &detectors, int maxFollowingLength, ROEdgeVector &seen) const
ROEdgegetDetectorEdge (const RODFDetector &det) const
bool hasApproached (ROEdge *edge) const
bool hasApproaching (ROEdge *edge) const
bool hasInBetweenDetectorsOnly (ROEdge *edge, const RODFDetectorCon &detectors) const
bool hasSourceDetector (ROEdge *edge, const RODFDetectorCon &detectors) const
bool isAllowed (const ROEdge *const edge) const
bool isDestination (const RODFDetector &det, const RODFDetectorCon &detectors) const
bool isDestination (const RODFDetector &det, ROEdge *edge, ROEdgeVector &seen, const RODFDetectorCon &detectors) const
bool isFalseSource (const RODFDetector &det, const RODFDetectorCon &detectors) const
bool isFalseSource (const RODFDetector &det, ROEdge *edge, ROEdgeVector &seen, const RODFDetectorCon &detectors) const
bool isSource (const RODFDetector &det, const RODFDetectorCon &detectors, bool strict) const
bool isSource (const RODFDetector &det, ROEdge *edge, ROEdgeVector &seen, const RODFDetectorCon &detectors, bool strict) const
void revalidateFlows (const RODFDetector *detector, RODFDetectorFlows &flows, SUMOTime startTime, SUMOTime endTime, SUMOTime stepOffset)

Private Attributes

SUMOVehicleClass myAllowedVClass
bool myAmInHighwayMode
std::map< ROEdge *, ROEdgeVectormyApproachedEdges
 Map of edge name->list of names of edges approached by this edge.
std::map< ROEdge *, ROEdgeVectormyApproachingEdges
 Map of edge name->list of names of this edge approaching edges.
double myAvgSpeedFactorLKW
double myAvgSpeedFactorPKW
std::map< std::string, ROEdge * > myDetectorEdges
std::map< ROEdge *, std::vector< std::string >, idCompmyDetectorsOnEdges
std::vector< std::string > myDisallowedEdges
 List of ids of edges that shall not be used.
int myInBetweenNumber
int myInvalidNumber
bool myKeepTurnarounds
double myMaxSpeedFactorLKW
double myMaxSpeedFactorPKW
 maximum speed factor in measurements
int mySinkNumber
int mySourceNumber

Processing stored vehicle definitions

std::map< std::string, SUMOTimemyVehIDs
 Known vehicle ids and their departure.
std::set< std::string > myPersonIDs
 Known person ids.
NamedObjectCont< RONode * > myNodes
 Known nodes.
NamedObjectCont< ROEdge * > myEdges
 Known edges.
std::map< SumoXMLTag, NamedObjectCont< SUMOVehicleParameter::Stop * > > myStoppingPlaces
 Known bus / train / container stops and parking areas.
NamedObjectCont< SUMOVTypeParameter * > myVehicleTypes
 Known vehicle types.
VTypeDistDictType myVTypeDistDict
 A distribution of vehicle types (probability->vehicle type).
bool myDefaultVTypeMayBeDeleted
 Whether the default vehicle type was already used or can still be replaced.
bool myDefaultPedTypeMayBeDeleted
 Whether the default pedestrian type was already used or can still be replaced.
bool myDefaultBikeTypeMayBeDeleted
 Whether the default bicycle type was already used or can still be replaced.
bool myDefaultTaxiTypeMayBeDeleted
 Whether the default taxi type was already used or can still be replaced.
bool myDefaultRailTypeMayBeDeleted
 Whether the default rail type was already used or can still be replaced.
NamedObjectCont< RORouteDef * > myRoutes
 Known routes.
RoutablesMap myRoutables
 Known routables.
NamedObjectCont< SUMOVehicleParameter * > myFlows
 Known flows.
bool myHaveActiveFlows
 whether any flows are still active
ContainerMap myContainers
std::vector< const RORoutable * > myPTVehicles
 vehicles to keep for public transport routing
std::map< std::string, std::vector< SUMOTime > > myDepartures
 Departure times for randomized flows.
std::map< std::string, std::pair< std::vector< std::string >, std::vector< std::string > > > myDistricts
 traffic assignment zones with sources and sinks
OutputDevicemyRoutesOutput
 The file to write the computed routes into.
OutputDevicemyRouteAlternativesOutput
 The file to write the computed route alternatives into.
OutputDevicemyTypesOutput
 The file to write the vehicle types into.
int myReadRouteNo
 The number of read routes.
int myDiscardedRouteNo
 The number of discarded routes.
int myWrittenRouteNo
 The number of written routes.
bool myHavePermissions
 Whether the network contains edges which not all vehicles may pass.
std::map< std::string, std::map< SUMOVehicleClass, double > > myRestrictions
 The vehicle class specific speed restrictions.
std::map< SUMOVehicleClass, std::map< std::string, double > > myVClassPreferences
 Preferences for routing.
std::map< std::string, std::map< std::string, double > > myVTypePreferences
int myNumInternalEdges
 The number of internal edges in the dictionary.
MsgHandlermyErrorHandler
 handler for ignorable error messages
const bool myKeepVTypeDist
 whether to keep the vtype distribution in output
const bool myDoPTRouting
 whether to calculate routes for public transport
const bool myKeepFlows
 whether to preserve flows
bool myHasBidiEdges
 whether the network contains bidirectional railway edges
SUMOTime saveAndRemoveRoutesUntil (OptionsCont &options, const RORouterProvider &provider, SUMOTime time)
 Computes routes described by their definitions and saves them.
bool furtherStored ()
 Returns the information whether further vehicles, persons or containers are stored.
void openOutput (const OptionsCont &options)
 Opens the output for computed routes.
void writeIntermodal (const OptionsCont &options, ROIntermodalRouter &router) const
 Writes the intermodal network and weights if requested.
void cleanup ()
 closes the file output for computed routes and deletes associated threads if necessary
int getEdgeNumber () const
 Returns the total number of edges the network contains including internal edges.
int getInternalEdgeNumber () const
 Returns the number of internal edges the network contains.
const NamedObjectCont< ROEdge * > & getEdgeMap () const
bool hasPermissions () const
void setPermissionsFound ()
bool hasBidiEdges () const
 return whether the network contains bidirectional rail edges
bool hasLoadedEffort () const
 whether efforts were loaded from file
OutputDevicegetRouteOutput (const bool alternative=false)
typedef std::map< std::string, RandomDistributor< SUMOVTypeParameter * > * > VTypeDistDictType
 Vehicle type distribution dictionary type.
typedef std::multimap< const SUMOTime, const std::string > ContainerMap
 Known containers.
static RONetmyInstance = nullptr
 Unique instance of RONet.
static void adaptIntermodalRouter (ROIntermodalRouter &router)
void checkFlows (SUMOTime time, MsgHandler *errorHandler)
void createBulkRouteRequests (const RORouterProvider &provider, const SUMOTime time, const bool removeLoops)

Detailed Description

A DFROUTER-network.

Definition at line 42 of file RODFNet.h.

Member Typedef Documentation

◆ ContainerMap

typedef std::multimap<const SUMOTime, const std::string> RONet::ContainerMap
privateinherited

Known containers.

Definition at line 549 of file RONet.h.

◆ RoutablesMap

typedef std::map<const SUMOTime, std::vector<RORoutable*> > RONet::RoutablesMap
inherited

Definition at line 66 of file RONet.h.

◆ VTypeDistDictType

typedef std::map< std::string, RandomDistributor<SUMOVTypeParameter*>* > RONet::VTypeDistDictType
privateinherited

Vehicle type distribution dictionary type.

Definition at line 517 of file RONet.h.

Constructor & Destructor Documentation

◆ RODFNet()

RODFNet::RODFNet ( bool amInHighwayMode)

◆ ~RODFNet()

RODFNet::~RODFNet ( )

Destructor.

Definition at line 59 of file RODFNet.cpp.

Member Function Documentation

◆ adaptIntermodalRouter()

◆ addContainer()

void RONet::addContainer ( const SUMOTime depart,
const std::string desc )
inherited

Definition at line 578 of file RONet.cpp.

References myContainers.

◆ addDistrict()

bool RONet::addDistrict ( const std::string id,
ROEdge * source,
ROEdge * sink )
inherited

Definition at line 221 of file RONet.cpp.

References addEdge(), CONNECTOR, myDistricts, ROEdge::setFunction(), ROEdge::setOtherTazConnector(), TL, and WRITE_ERRORF.

Referenced by addJunctionTaz().

Here is the caller graph for this function:

◆ addDistrictEdge()

bool RONet::addDistrictEdge ( const std::string tazID,
const std::string edgeID,
const bool isSource )
inherited

Definition at line 244 of file RONet.cpp.

References ROEdge::addSuccessor(), getEdge(), myDistricts, TL, and WRITE_ERRORF.

◆ addEdge()

bool RONet::addEdge ( ROEdge * edge)
virtualinherited

Definition at line 207 of file RONet.cpp.

References Named::getID(), ROEdge::isInternal(), myEdges, myNumInternalEdges, TL, and WRITE_ERRORF.

Referenced by addDistrict().

Here is the caller graph for this function:

◆ addFlow()

◆ addJunctionTaz()

void RONet::addJunctionTaz ( ROAbstractEdgeBuilder & eb)
inherited

add a taz for every junction unless a taz with the same id already exists

Definition at line 266 of file RONet.cpp.

References addDistrict(), ROEdge::addSuccessor(), ROAbstractEdgeBuilder::buildEdge(), RONode::getIncoming(), RONode::getOutgoing(), myDistricts, myNodes, ROEdge::setOtherTazConnector(), TL, and WRITE_WARNINGF.

Referenced by ROLoader::loadNet().

Here is the caller graph for this function:

◆ addNode()

void RONet::addNode ( RONode * node)
inherited

Definition at line 315 of file RONet.cpp.

References Named::getID(), myNodes, TL, and WRITE_ERRORF.

◆ addPerson()

bool RONet::addPerson ( ROPerson * person)
inherited

◆ addPreference() [1/2]

void RONet::addPreference ( const std::string & routingType,
std::string vType,
double prio )
inherited

add edge type specific routing preference

Definition at line 189 of file RONet.cpp.

References gRoutingPreferences, and myVTypePreferences.

◆ addPreference() [2/2]

void RONet::addPreference ( const std::string & routingType,
SUMOVehicleClass svc,
double prio )
inherited

add edge type specific routing preference

Definition at line 182 of file RONet.cpp.

References gRoutingPreferences, and myVClassPreferences.

◆ addRestriction()

void RONet::addRestriction ( const std::string & id,
const SUMOVehicleClass svc,
const double speed )
inherited

Adds a restriction for an edge type.

Parameters
[in]idThe id of the type
[in]svcThe vehicle class the restriction refers to
[in]speedThe restricted speed

Definition at line 146 of file RONet.cpp.

References myRestrictions.

◆ addRouteDef()

bool RONet::addRouteDef ( RORouteDef * def)
inherited

Definition at line 333 of file RONet.cpp.

References Named::getID(), and myRoutes.

◆ addStoppingPlace()

void RONet::addStoppingPlace ( const std::string & id,
const SumoXMLTag category,
SUMOVehicleParameter::Stop * stop )
inherited

◆ addVehicle()

bool RONet::addVehicle ( const std::string & id,
ROVehicle * veh )
virtualinherited

Definition at line 510 of file RONet.cpp.

References SUMOVehicleParameter::departProcedure, RORoutable::getDepart(), ROVehicle::getDepartureTime(), RORoutable::getParameter(), RORoutable::isPartOfFlow(), RORoutable::isPublicTransport(), myDoPTRouting, myPTVehicles, myRoutables, myVehIDs, TL, TRIGGERED, and WRITE_ERRORF.

Referenced by checkFlows().

Here is the caller graph for this function:

◆ addVehicleType()

bool RONet::addVehicleType ( SUMOVTypeParameter * type)
virtualinherited

Adds a read vehicle type definition to the network.

If the vehicle type definition is already known (another one with the same id exists), false is returned, and the vehicle type is deleted.

Parameters
[in]defThe vehicle type to add
Returns
Whether the vehicle type could be added

Definition at line 486 of file RONet.cpp.

References checkVType(), SUMOVTypeParameter::id, myVehicleTypes, TL, and WRITE_ERRORF.

◆ addVTypeDistribution()

bool RONet::addVTypeDistribution ( const std::string & id,
RandomDistributor< SUMOVTypeParameter * > * vehTypeDistribution )
inherited

Adds a vehicle type distribution.

If another vehicle type (or distribution) with the same id exists, false is returned. Otherwise, the vehicle type distribution is added to the internal vehicle type distribution container "myVTypeDistDict".

This control get responsible for deletion of the added vehicle type distribution.

Parameters
[in]idThe id of the distribution to add
[in]vehTypeDistributionThe vehicle type distribution to add
Returns
Whether the vehicle type could be added

Definition at line 499 of file RONet.cpp.

References checkVType(), and myVTypeDistDict.

◆ buildApproachList()

void RODFNet::buildApproachList ( )

Definition at line 73 of file RODFNet.cpp.

References ROEdge::getAllEdges(), ROEdge::getSuccessors(), isAllowed(), myApproachedEdges, myApproachingEdges, and myKeepTurnarounds.

Referenced by main().

Here is the caller graph for this function:

◆ buildDetectorDependencies()

void RODFNet::buildDetectorDependencies ( RODFDetectorCon & detectors)

Definition at line 1008 of file RODFNet.cpp.

References RODFDetector::addPriorDetector(), buildDetectorEdgeDependencies(), RODFDetectorCon::getDetector(), RODFDetectorCon::getModifiableDetector(), RODFDetector::getRouteVector(), RODFDetector::hasRoutes(), myDetectorEdges, and myDetectorsOnEdges.

Referenced by startComputation().

Here is the caller graph for this function:

◆ buildDetectorEdgeDependencies()

void RODFNet::buildDetectorEdgeDependencies ( RODFDetectorCon & dets) const
protected

Definition at line 97 of file RODFNet.cpp.

References getDetectorEdge(), RODFDetectorCon::getDetectors(), myDetectorEdges, and myDetectorsOnEdges.

Referenced by buildDetectorDependencies(), buildRoutes(), computeTypes(), and mesoJoin().

Here is the caller graph for this function:

◆ buildEdgeFlowMap()

void RODFNet::buildEdgeFlowMap ( const RODFDetectorFlows & flows,
const RODFDetectorCon & detectors,
SUMOTime startTime,
SUMOTime endTime,
SUMOTime stepOffset )

◆ buildRoutes()

void RODFNet::buildRoutes ( RODFDetectorCon & det,
bool keepUnfoundEnds,
bool includeInBetween,
bool keepShortestOnly,
int maxFollowingLength ) const

◆ checkFlows()

◆ checkVType()

bool RONet::checkVType ( const std::string & id)
inherited

Checks whether the vehicle type (distribution) may be added.

This method checks also whether the default type may still be replaced

Parameters
[in]idThe id of the vehicle type (distribution) to add
Returns
Whether the type (distribution) may be added

Definition at line 440 of file RONet.cpp.

References DEFAULT_BIKETYPE_ID, DEFAULT_PEDTYPE_ID, DEFAULT_RAILTYPE_ID, DEFAULT_TAXITYPE_ID, DEFAULT_VTYPE_ID, myDefaultBikeTypeMayBeDeleted, myDefaultPedTypeMayBeDeleted, myDefaultRailTypeMayBeDeleted, myDefaultTaxiTypeMayBeDeleted, myDefaultVTypeMayBeDeleted, myVehicleTypes, and myVTypeDistDict.

Referenced by addVehicleType(), and addVTypeDistribution().

Here is the caller graph for this function:

◆ cleanup()

void RONet::cleanup ( )
inherited

closes the file output for computed routes and deletes associated threads if necessary

Definition at line 384 of file RONet.cpp.

References RouteCostCalculator< R, E, V >::cleanup(), myRouteAlternativesOutput, myRoutesOutput, and myTypesOutput.

Referenced by computeRoutes(), and computeRoutes().

Here is the caller graph for this function:

◆ computeRoutesFor()

void RODFNet::computeRoutesFor ( ROEdge * edge,
RODFRouteDesc & base,
int no,
bool keepUnfoundEnds,
bool keepShortestOnly,
ROEdgeVector & visited,
const RODFDetector & det,
RODFRouteCont & into,
const RODFDetectorCon & detectors,
int maxFollowingLength,
ROEdgeVector & seen ) const
protected

◆ computeTypes()

void RODFNet::computeTypes ( RODFDetectorCon & dets,
bool sourcesStrict ) const

Definition at line 110 of file RODFNet.cpp.

References BETWEEN_DETECTOR, buildDetectorEdgeDependencies(), DISCARDED_DETECTOR, RODFDetectorCon::getDetectors(), isDestination(), isFalseSource(), isSource(), myInBetweenNumber, myInvalidNumber, mySinkNumber, mySourceNumber, PROGRESS_BEGIN_MESSAGE, PROGRESS_DONE_MESSAGE, SINK_DETECTOR, SOURCE_DETECTOR, TL, toString(), TYPE_NOT_DEFINED, WRITE_MESSAGE, and WRITE_MESSAGEF.

Referenced by startComputation().

Here is the caller graph for this function:

◆ createBulkRouteRequests()

void RONet::createBulkRouteRequests ( const RORouterProvider & provider,
const SUMOTime time,
const bool removeLoops )
privateinherited

Definition at line 687 of file RONet.cpp.

References RORoutable::computeRoute(), RORoutable::getDepartEdge(), RORoutable::getID(), RORoutable::getMaxSpeed(), ROEdge::getNumericalID(), RORoutable::getVClass(), myErrorHandler, myRoutables, RouterProvider< E, L, N, V >::setBulkMode(), TL, TLF, WRITE_MESSAGE, and WRITE_WARNINGF.

Referenced by saveAndRemoveRoutesUntil().

Here is the caller graph for this function:

◆ furtherStored()

bool RONet::furtherStored ( )
inherited

Returns the information whether further vehicles, persons or containers are stored.

Definition at line 855 of file RONet.cpp.

References myContainers, myFlows, myHaveActiveFlows, and myRoutables.

Referenced by ROLoader::openRoutes(), and ROLoader::processRoutes().

Here is the caller graph for this function:

◆ getAbsPos()

double RODFNet::getAbsPos ( const RODFDetector & det) const

Definition at line 659 of file RODFNet.cpp.

References getDetectorEdge(), ROEdge::getLength(), and RODFDetector::getPos().

Referenced by isDestination(), and isSource().

Here is the caller graph for this function:

◆ getAvgSpeedFactorLKW()

double RODFNet::getAvgSpeedFactorLKW ( ) const
inline

Definition at line 96 of file RODFNet.h.

References myAvgSpeedFactorLKW.

Referenced by RODFDetectorCon::writeEmitters().

Here is the caller graph for this function:

◆ getAvgSpeedFactorPKW()

double RODFNet::getAvgSpeedFactorPKW ( ) const
inline

Definition at line 92 of file RODFNet.h.

References myAvgSpeedFactorPKW.

Referenced by RODFDetectorCon::writeEmitters().

Here is the caller graph for this function:

◆ getDeparture()

SUMOTime RONet::getDeparture ( const std::string & vehID) const
inherited

returns departure time for the given vehicle id

Definition at line 537 of file RONet.cpp.

References myVehIDs, and TLF.

◆ getDetectorEdge()

ROEdge * RODFNet::getDetectorEdge ( const RODFDetector & det) const
protected

Definition at line 621 of file RODFNet.cpp.

References RONet::getEdge(), SUMOXMLDefinitions::getEdgeIDFromLane(), Named::getID(), and RODFDetector::getLaneID().

Referenced by buildDetectorEdgeDependencies(), buildRoutes(), computeRoutesFor(), getAbsPos(), isDestination(), isDestination(), isFalseSource(), isFalseSource(), isSource(), isSource(), and revalidateFlows().

Here is the caller graph for this function:

◆ getDetectorList()

const std::vector< std::string > & RODFNet::getDetectorList ( ROEdge * edge) const

Definition at line 653 of file RODFNet.cpp.

References myDetectorsOnEdges.

◆ getDistricts()

const std::map< std::string, std::pair< std::vector< std::string >, std::vector< std::string > > > & RONet::getDistricts ( ) const
inlineinherited

Retrieves all TAZ (districts) from the network.

Returns
The map of all districts

Definition at line 157 of file RONet.h.

References myDistricts.

Referenced by main().

Here is the caller graph for this function:

◆ getEdge()

ROEdge * RONet::getEdge ( const std::string & name) const
inlineinherited

Retrieves an edge from the network.

This is not very pretty, but necessary, though, as routes run over instances, not over ids.

Parameters
[in]nameThe name of the edge to retrieve
Returns
The named edge if known, otherwise 0

Definition at line 169 of file RONet.h.

References myEdges.

Referenced by addDistrictEdge(), ROVehicle::addStop(), RODFNet::getDetectorEdge(), getEdgeForLaneID(), ROEdge::getStopPosition(), loadJTRDefinitions(), ROVehicle::ROVehicle(), ROVehicle::saveAsXML(), RODFDetectorCon::writeEmitters(), and RODFDetectorCon::writeSpeedTrigger().

Here is the caller graph for this function:

◆ getEdgeForLaneID()

ROEdge * RONet::getEdgeForLaneID ( const std::string & laneID) const
inherited

Retrieves an edge from the network when the lane id is given.

Parameters
[in]laneIDThe name of the lane to retrieve the edge for
Returns
The edge of the named lane if known, otherwise 0

Definition at line 873 of file RONet.cpp.

References getEdge(), and SUMOXMLDefinitions::getEdgeIDFromLane().

Referenced by getLane().

Here is the caller graph for this function:

◆ getEdgeMap()

const NamedObjectCont< ROEdge * > & RONet::getEdgeMap ( ) const
inlineinherited

Definition at line 434 of file RONet.h.

References myEdges.

Referenced by initNet(), ROLoader::loadNet(), and ROLoader::loadWeights().

Here is the caller graph for this function:

◆ getEdgeNumber()

int RONet::getEdgeNumber ( ) const
inherited

Returns the total number of edges the network contains including internal edges.

Definition at line 861 of file RONet.cpp.

References myEdges.

Referenced by computeAllPairs(), computeRoutes(), and main().

Here is the caller graph for this function:

◆ getInstance()

RONet * RONet::getInstance ( void )
staticinherited

Returns the pointer to the unique instance of RONet (singleton).

Returns
Pointer to the unique RONet-instance

Definition at line 56 of file RONet.cpp.

References myInstance, and TL.

Referenced by ROPerson::addTrip(), ROEdge::getPreference(), ROEdge::getStopPosition(), ROEdge::getSuccessors(), ROEdge::getViaSuccessors(), RORoute::isPermitted(), ROPerson::Ride::saveAsXML(), ROPerson::Stop::saveAsXML(), ROPerson::Walk::saveAsXML(), ROVehicle::saveAsXML(), and ROPerson::PersonTrip::saveVehicles().

Here is the caller graph for this function:

◆ getInternalEdgeNumber()

int RONet::getInternalEdgeNumber ( ) const
inherited

Returns the number of internal edges the network contains.

Definition at line 867 of file RONet.cpp.

References myNumInternalEdges.

Referenced by computeAllPairs().

Here is the caller graph for this function:

◆ getLane()

ROLane * RONet::getLane ( const std::string & laneID) const
inherited

Retrieves a lane rom the network given its id.

Parameters
[in]laneIDThe name of the lane to retrieve the edge for
Returns
The lane object

Definition at line 879 of file RONet.cpp.

References getEdgeForLaneID(), SUMOXMLDefinitions::getIndexFromLane(), and ROEdge::getLanes().

◆ getMaxSpeedFactorLKW()

double RODFNet::getMaxSpeedFactorLKW ( ) const
inline

Definition at line 88 of file RODFNet.h.

References myMaxSpeedFactorLKW.

Referenced by RODFDetectorCon::writeEmitters().

Here is the caller graph for this function:

◆ getMaxSpeedFactorPKW()

double RODFNet::getMaxSpeedFactorPKW ( ) const
inline

Definition at line 84 of file RODFNet.h.

References myMaxSpeedFactorPKW.

Referenced by RODFDetectorCon::writeEmitters().

Here is the caller graph for this function:

◆ getNode()

RONode * RONet::getNode ( const std::string & id) const
inlineinherited

Retrieves an node from the network.

Parameters
[in]nameThe name of the node to retrieve
Returns
The named node if known, otherwise 0
Todo
Check whether a const pointer may be returned

Definition at line 205 of file RONet.h.

References myNodes.

◆ getPreference()

double RONet::getPreference ( const std::string & routingType,
const SUMOVTypeParameter & pars ) const
inherited

retriefe edge type specific routing preference

Definition at line 152 of file RONet.cpp.

References gRoutingPreferences, SUMOVTypeParameter::id, myVClassPreferences, myVTypePreferences, and SUMOVTypeParameter::vehicleClass.

Referenced by ROEdge::getPreference().

Here is the caller graph for this function:

◆ getRestrictions()

const std::map< SUMOVehicleClass, double > * RONet::getRestrictions ( const std::string & id) const
inherited

Returns the restrictions for an edge type If no restrictions are present, 0 is returned.

Parameters
[in]idThe id of the type
Returns
The mapping of vehicle classes to maximum speeds

Definition at line 197 of file RONet.cpp.

References myRestrictions.

Referenced by ROLoader::loadNet().

Here is the caller graph for this function:

◆ getRouteDef()

RORouteDef * RONet::getRouteDef ( const std::string & name) const
inlineinherited

Returns the named route definition.

Parameters
[in]nameThe name of the route definition to retrieve
Returns
The named route definition if known, otherwise 0
Todo

Check whether a const pointer may be returned

Rename myRoutes to myRouteDefinitions

Definition at line 330 of file RONet.h.

References myRoutes.

Referenced by checkFlows().

Here is the caller graph for this function:

◆ getRouteOutput()

OutputDevice * RONet::getRouteOutput ( const bool alternative = false)
inlineinherited

Definition at line 452 of file RONet.h.

References myRouteAlternativesOutput, and myRoutesOutput.

Referenced by computeRoutes().

Here is the caller graph for this function:

◆ getStoppingPlace()

const SUMOVehicleParameter::Stop * RONet::getStoppingPlace ( const std::string & id,
const SumoXMLTag category ) const
inlineinherited

Retrieves a stopping place from the network.

Parameters
[in]idThe name of the stop to retrieve
[in]categoryThe type of stop
Returns
The named stop if known, otherwise 0

Definition at line 228 of file RONet.h.

References myStoppingPlaces.

◆ getStoppingPlaceElement()

const std::string RONet::getStoppingPlaceElement ( const std::string & id) const
inherited

return the element name for the given stopping place id

Definition at line 964 of file RONet.cpp.

References SUMOVehicleParameter::Stop::actType, myStoppingPlaces, SUMO_TAG_BUS_STOP, and toString().

Referenced by ROPerson::Ride::saveAsXML(), and ROPerson::Walk::saveAsXML().

Here is the caller graph for this function:

◆ getStoppingPlaceName()

const std::string RONet::getStoppingPlaceName ( const std::string & id) const
inherited

return the name for the given stopping place id

Definition at line 952 of file RONet.cpp.

References SUMOVehicleParameter::Stop::busstop, and myStoppingPlaces.

Referenced by ROPerson::Ride::saveAsXML(), ROPerson::Stop::saveAsXML(), and ROPerson::Walk::saveAsXML().

Here is the caller graph for this function:

◆ getVehicleTypeSecure()

SUMOVTypeParameter * RONet::getVehicleTypeSecure ( const std::string & id)
inherited

Retrieves the named vehicle type.

If the name is "" the default type is returned. If the named vehicle type (or typeDistribution) was not added to the net before nullptr is returned

Parameters
[in]idThe id of the vehicle type to return
Returns
The named vehicle type

Definition at line 408 of file RONet.cpp.

References DEFAULT_BIKETYPE_ID, DEFAULT_PEDTYPE_ID, DEFAULT_RAILTYPE_ID, DEFAULT_TAXITYPE_ID, DEFAULT_VTYPE_ID, myDefaultBikeTypeMayBeDeleted, myDefaultPedTypeMayBeDeleted, myDefaultRailTypeMayBeDeleted, myDefaultTaxiTypeMayBeDeleted, myDefaultVTypeMayBeDeleted, myVehicleTypes, and myVTypeDistDict.

Referenced by ROPerson::addTrip(), checkFlows(), computeRoutes(), computeRoutes(), and ROMAAssignments::ROMAAssignments().

Here is the caller graph for this function:

◆ getVTypeDistribution()

const RandomDistributor< SUMOVTypeParameter * > * RONet::getVTypeDistribution ( const std::string & id)
inlineinherited

Retrieves the named vehicle type distribution.

If the named vehicle type distribution was not added to the net before nullptr is returned

Parameters
[in]idThe id of the vehicle type distribution to return
Returns
The named vehicle type distribution

Definition at line 292 of file RONet.h.

References myVTypeDistDict.

Referenced by checkFlows().

Here is the caller graph for this function:

◆ hasApproached()

bool RODFNet::hasApproached ( ROEdge * edge) const
protected

Definition at line 639 of file RODFNet.cpp.

References myApproachedEdges.

Referenced by computeRoutesFor(), and isDestination().

Here is the caller graph for this function:

◆ hasApproaching()

bool RODFNet::hasApproaching ( ROEdge * edge) const
protected

Definition at line 632 of file RODFNet.cpp.

References myApproachingEdges.

Referenced by isSource().

Here is the caller graph for this function:

◆ hasBidiEdges()

bool RONet::hasBidiEdges ( ) const
inlineinherited

return whether the network contains bidirectional rail edges

Definition at line 445 of file RONet.h.

References myHasBidiEdges.

Referenced by computeRoutes().

Here is the caller graph for this function:

◆ hasDetector()

bool RODFNet::hasDetector ( ROEdge * edge) const

Definition at line 646 of file RODFNet.cpp.

References myDetectorsOnEdges.

Referenced by RODFDetector::buildDestinationDistribution(), computeRoutesFor(), RODFDetector::computeSplitProbabilities(), isDestination(), isFalseSource(), isSource(), and revalidateFlows().

Here is the caller graph for this function:

◆ hasInBetweenDetectorsOnly()

bool RODFNet::hasInBetweenDetectorsOnly ( ROEdge * edge,
const RODFDetectorCon & detectors ) const
protected

Definition at line 150 of file RODFNet.cpp.

References BETWEEN_DETECTOR, RODFDetectorCon::getDetector(), RODFDetector::getType(), and myDetectorsOnEdges.

Referenced by computeRoutesFor().

Here is the caller graph for this function:

◆ hasLoadedEffort()

bool RONet::hasLoadedEffort ( ) const
inherited

whether efforts were loaded from file

Definition at line 942 of file RONet.cpp.

References myEdges.

Referenced by computeRoutes(), and computeRoutes().

Here is the caller graph for this function:

◆ hasPermissions()

bool RONet::hasPermissions ( ) const
inherited

Definition at line 931 of file RONet.cpp.

References myHavePermissions.

Referenced by computeRoutes(), computeRoutes(), and RORoute::isPermitted().

Here is the caller graph for this function:

◆ hasRestrictions()

bool RONet::hasRestrictions ( ) const
inlineinherited

Definition at line 97 of file RONet.h.

References myRestrictions.

Referenced by RORoute::isPermitted(), and ROLoader::loadNet().

Here is the caller graph for this function:

◆ hasSourceDetector()

bool RODFNet::hasSourceDetector ( ROEdge * edge,
const RODFDetectorCon & detectors ) const
protected

Definition at line 166 of file RODFNet.cpp.

References RODFDetectorCon::getDetector(), RODFDetector::getType(), myDetectorsOnEdges, and SOURCE_DETECTOR.

Referenced by computeRoutesFor().

Here is the caller graph for this function:

◆ isAllowed()

bool RODFNet::isAllowed ( const ROEdge *const edge) const
protected

Definition at line 64 of file RODFNet.cpp.

References Named::getID(), ROEdge::getPermissions(), ROEdge::isCrossing(), ROEdge::isInternal(), ROEdge::isWalkingArea(), myAllowedVClass, and myDisallowedEdges.

Referenced by buildApproachList().

Here is the caller graph for this function:

◆ isDestination() [1/2]

bool RODFNet::isDestination ( const RODFDetector & det,
const RODFDetectorCon & detectors ) const
protected

Definition at line 680 of file RODFNet.cpp.

References getDetectorEdge(), and isDestination().

Referenced by computeTypes(), isDestination(), and isDestination().

Here is the caller graph for this function:

◆ isDestination() [2/2]

◆ isFalseSource() [1/2]

bool RODFNet::isFalseSource ( const RODFDetector & det,
const RODFDetectorCon & detectors ) const
protected

Definition at line 674 of file RODFNet.cpp.

References getDetectorEdge(), and isFalseSource().

Referenced by computeTypes(), isFalseSource(), and isFalseSource().

Here is the caller graph for this function:

◆ isFalseSource() [2/2]

◆ isSource() [1/2]

bool RODFNet::isSource ( const RODFDetector & det,
const RODFDetectorCon & detectors,
bool strict ) const
protected

Definition at line 667 of file RODFNet.cpp.

References getDetectorEdge(), and isSource().

Referenced by computeTypes(), isSource(), and isSource().

Here is the caller graph for this function:

◆ isSource() [2/2]

◆ knowsVehicle()

bool RONet::knowsVehicle ( const std::string & id) const
inherited

returns whether a vehicle with the given id was already loaded

Definition at line 532 of file RONet.cpp.

References myVehIDs.

◆ mesoJoin()

◆ openOutput()

void RONet::openOutput ( const OptionsCont & options)
inherited

Opens the output for computed routes.

If one of the file outputs can not be build, an IOError is thrown.

Parameters
[in]optionsThe options to be asked for "output-file", "alternatives-output" and "vtype-output"

Definition at line 339 of file RONet.cpp.

References OptionsCont::exists(), OptionsCont::getBool(), OutputDevice::getDevice(), OptionsCont::getString(), OptionsCont::isSet(), myRouteAlternativesOutput, myRoutesOutput, and myTypesOutput.

Referenced by computeRoutes(), and computeRoutes().

Here is the caller graph for this function:

◆ removeEmptyDetectors()

void RODFNet::removeEmptyDetectors ( RODFDetectorCon & detectors,
RODFDetectorFlows & flows )

Definition at line 580 of file RODFNet.cpp.

References RODFDetectorCon::getDetectors(), RODFDetectorFlows::knows(), RODFDetectorCon::removeDetector(), RODFDetectorFlows::removeFlow(), TL, and WRITE_MESSAGEF.

Referenced by startComputation().

Here is the caller graph for this function:

◆ reportEmptyDetectors()

void RODFNet::reportEmptyDetectors ( RODFDetectorCon & detectors,
RODFDetectorFlows & flows )

Definition at line 603 of file RODFNet.cpp.

References RODFDetectorCon::getDetectors(), RODFDetectorFlows::knows(), TL, and WRITE_MESSAGEF.

Referenced by startComputation().

Here is the caller graph for this function:

◆ revalidateFlows() [1/2]

◆ revalidateFlows() [2/2]

void RODFNet::revalidateFlows ( const RODFDetectorCon & detectors,
RODFDetectorFlows & flows,
SUMOTime startTime,
SUMOTime endTime,
SUMOTime stepOffset )

Definition at line 566 of file RODFNet.cpp.

References RODFDetectorCon::getDetectors(), and revalidateFlows().

Referenced by revalidateFlows(), and startComputation().

Here is the caller graph for this function:

◆ saveAndRemoveRoutesUntil()

SUMOTime RONet::saveAndRemoveRoutesUntil ( OptionsCont & options,
const RORouterProvider & provider,
SUMOTime time )
inherited

Computes routes described by their definitions and saves them.

As long as a vehicle with a departure time smaller than the given exists, its route is computed and it is written and removed from the internal container.

Parameters
[in]optionsThe options used during this process
[in]providerThe router provider for routes computation
[in]timeThe time until which route definitions shall be processed
Returns
The last seen departure time>=time

Definition at line 742 of file RONet.cpp.

References checkFlows(), RORoutable::computeRoute(), createBulkRouteRequests(), OptionsCont::exists(), OptionsCont::getBool(), MsgHandler::getErrorInstance(), OptionsCont::getFloat(), Named::getID(), OptionsCont::getInt(), ROVehicle::getRouteDefinition(), RORoutable::getRoutingSuccess(), getScalingQuota(), MsgHandler::getWarningInstance(), RORoutable::isPartOfFlow(), RORoutable::isPublicTransport(), MIN2(), myContainers, myDiscardedRouteNo, myErrorHandler, myHaveActiveFlows, myRoutables, myRouteAlternativesOutput, myRoutes, myRoutesOutput, myTypesOutput, myVehIDs, myWrittenRouteNo, SUMOTime_MAX, toString(), RORoutable::write(), and WRITE_MESSAGE.

Referenced by ROLoader::processRoutes().

Here is the caller graph for this function:

◆ setBidiEdges()

void RONet::setBidiEdges ( const std::map< ROEdge *, std::string > & bidiMap)
inherited

add a taz for every junction unless a taz with the same id already exists

Definition at line 302 of file RONet.cpp.

References myEdges, myHasBidiEdges, TL, and WRITE_ERRORF.

Referenced by ROLoader::loadNet().

Here is the caller graph for this function:

◆ setPermissionsFound()

void RONet::setPermissionsFound ( )
inherited

Definition at line 937 of file RONet.cpp.

References myHavePermissions.

◆ writeIntermodal()

void RONet::writeIntermodal ( const OptionsCont & options,
ROIntermodalRouter & router ) const
inherited

Writes the intermodal network and weights if requested.

If one of the file outputs can not be build, an IOError is thrown.

Parameters
[in]optionsThe options to be asked for "intermodal-network-output" and "intermodal-weight-output"

Definition at line 365 of file RONet.cpp.

References OutputDevice::closeTag(), OutputDevice::createDeviceByOption(), OptionsCont::exists(), OutputDevice::getDevice(), OutputDevice::getDeviceByOption(), OptionsCont::getString(), OptionsCont::isSet(), OutputDevice::openTag(), SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_ATTR_ID, SUMO_TAG_INTERVAL, SUMOTime_MAX, OutputDevice::writeAttr(), IntermodalRouter< E, L, N, V >::writeNetwork(), and IntermodalRouter< E, L, N, V >::writeWeights().

Referenced by computeRoutes().

Here is the caller graph for this function:

Field Documentation

◆ myAllowedVClass

SUMOVehicleClass RODFNet::myAllowedVClass
private

Definition at line 183 of file RODFNet.h.

Referenced by isAllowed(), and RODFNet().

◆ myAmInHighwayMode

bool RODFNet::myAmInHighwayMode
private

Definition at line 177 of file RODFNet.h.

Referenced by computeRoutesFor(), isDestination(), isFalseSource(), isSource(), and RODFNet().

◆ myApproachedEdges

std::map<ROEdge*, ROEdgeVector > RODFNet::myApproachedEdges
private

Map of edge name->list of names of edges approached by this edge.

Definition at line 172 of file RODFNet.h.

Referenced by buildApproachList(), computeRoutesFor(), hasApproached(), isDestination(), isFalseSource(), and revalidateFlows().

◆ myApproachingEdges

std::map<ROEdge*, ROEdgeVector > RODFNet::myApproachingEdges
private

Map of edge name->list of names of this edge approaching edges.

Definition at line 169 of file RODFNet.h.

Referenced by buildApproachList(), hasApproaching(), isSource(), and revalidateFlows().

◆ myAvgSpeedFactorLKW

double RODFNet::myAvgSpeedFactorLKW
private

Definition at line 191 of file RODFNet.h.

Referenced by buildEdgeFlowMap(), getAvgSpeedFactorLKW(), and RODFNet().

◆ myAvgSpeedFactorPKW

double RODFNet::myAvgSpeedFactorPKW
private

Definition at line 190 of file RODFNet.h.

Referenced by buildEdgeFlowMap(), getAvgSpeedFactorPKW(), and RODFNet().

◆ myContainers

ContainerMap RONet::myContainers
privateinherited

Definition at line 550 of file RONet.h.

Referenced by addContainer(), furtherStored(), and saveAndRemoveRoutesUntil().

◆ myDefaultBikeTypeMayBeDeleted

bool RONet::myDefaultBikeTypeMayBeDeleted
privateinherited

Whether the default bicycle type was already used or can still be replaced.

Definition at line 528 of file RONet.h.

Referenced by checkVType(), getVehicleTypeSecure(), and RONet().

◆ myDefaultPedTypeMayBeDeleted

bool RONet::myDefaultPedTypeMayBeDeleted
privateinherited

Whether the default pedestrian type was already used or can still be replaced.

Definition at line 525 of file RONet.h.

Referenced by checkVType(), getVehicleTypeSecure(), and RONet().

◆ myDefaultRailTypeMayBeDeleted

bool RONet::myDefaultRailTypeMayBeDeleted
privateinherited

Whether the default rail type was already used or can still be replaced.

Definition at line 534 of file RONet.h.

Referenced by checkVType(), getVehicleTypeSecure(), and RONet().

◆ myDefaultTaxiTypeMayBeDeleted

bool RONet::myDefaultTaxiTypeMayBeDeleted
privateinherited

Whether the default taxi type was already used or can still be replaced.

Definition at line 531 of file RONet.h.

Referenced by checkVType(), getVehicleTypeSecure(), and RONet().

◆ myDefaultVTypeMayBeDeleted

bool RONet::myDefaultVTypeMayBeDeleted
privateinherited

Whether the default vehicle type was already used or can still be replaced.

Definition at line 522 of file RONet.h.

Referenced by checkVType(), getVehicleTypeSecure(), and RONet().

◆ myDepartures

std::map<std::string, std::vector<SUMOTime> > RONet::myDepartures
privateinherited

Departure times for randomized flows.

Definition at line 556 of file RONet.h.

Referenced by addFlow(), and checkFlows().

◆ myDetectorEdges

std::map<std::string, ROEdge*> RODFNet::myDetectorEdges
mutableprivate

◆ myDetectorsOnEdges

◆ myDisallowedEdges

std::vector<std::string> RODFNet::myDisallowedEdges
private

List of ids of edges that shall not be used.

Definition at line 181 of file RODFNet.h.

Referenced by isAllowed(), and RODFNet().

◆ myDiscardedRouteNo

int RONet::myDiscardedRouteNo
privateinherited

The number of discarded routes.

Definition at line 574 of file RONet.h.

Referenced by RONet(), and saveAndRemoveRoutesUntil().

◆ myDistricts

std::map<std::string, std::pair<std::vector<std::string>, std::vector<std::string> > > RONet::myDistricts
privateinherited

traffic assignment zones with sources and sinks

Definition at line 559 of file RONet.h.

Referenced by addDistrict(), addDistrictEdge(), addJunctionTaz(), and getDistricts().

◆ myDoPTRouting

const bool RONet::myDoPTRouting
privateinherited

whether to calculate routes for public transport

Definition at line 599 of file RONet.h.

Referenced by addVehicle(), checkFlows(), and RONet().

◆ myEdges

NamedObjectCont<ROEdge*> RONet::myEdges
privateinherited

Known edges.

Definition at line 508 of file RONet.h.

Referenced by addEdge(), getEdge(), getEdgeMap(), getEdgeNumber(), hasLoadedEffort(), and setBidiEdges().

◆ myErrorHandler

MsgHandler* RONet::myErrorHandler
privateinherited

handler for ignorable error messages

Definition at line 593 of file RONet.h.

Referenced by createBulkRouteRequests(), RONet(), and saveAndRemoveRoutesUntil().

◆ myFlows

NamedObjectCont<SUMOVehicleParameter*> RONet::myFlows
privateinherited

Known flows.

Definition at line 543 of file RONet.h.

Referenced by addFlow(), checkFlows(), and furtherStored().

◆ myHasBidiEdges

bool RONet::myHasBidiEdges
privateinherited

whether the network contains bidirectional railway edges

Definition at line 605 of file RONet.h.

Referenced by hasBidiEdges(), RONet(), and setBidiEdges().

◆ myHaveActiveFlows

bool RONet::myHaveActiveFlows
privateinherited

whether any flows are still active

Definition at line 546 of file RONet.h.

Referenced by addFlow(), checkFlows(), furtherStored(), RONet(), and saveAndRemoveRoutesUntil().

◆ myHavePermissions

bool RONet::myHavePermissions
privateinherited

Whether the network contains edges which not all vehicles may pass.

Definition at line 580 of file RONet.h.

Referenced by hasPermissions(), RONet(), and setPermissionsFound().

◆ myInBetweenNumber

int RODFNet::myInBetweenNumber
private

Definition at line 178 of file RODFNet.h.

Referenced by computeTypes(), and RODFNet().

◆ myInstance

RONet * RONet::myInstance = nullptr
staticprivateinherited

Unique instance of RONet.

Definition at line 496 of file RONet.h.

Referenced by adaptIntermodalRouter(), getInstance(), and RONet().

◆ myInvalidNumber

int RODFNet::myInvalidNumber
private

Definition at line 178 of file RODFNet.h.

Referenced by computeTypes(), and RODFNet().

◆ myKeepFlows

const bool RONet::myKeepFlows
privateinherited

whether to preserve flows

Definition at line 602 of file RONet.h.

Referenced by checkFlows(), and RONet().

◆ myKeepTurnarounds

bool RODFNet::myKeepTurnarounds
private

Definition at line 185 of file RODFNet.h.

Referenced by buildApproachList(), and RODFNet().

◆ myKeepVTypeDist

const bool RONet::myKeepVTypeDist
privateinherited

whether to keep the vtype distribution in output

Definition at line 596 of file RONet.h.

Referenced by checkFlows(), and RONet().

◆ myMaxSpeedFactorLKW

double RODFNet::myMaxSpeedFactorLKW
private

Definition at line 189 of file RODFNet.h.

Referenced by buildEdgeFlowMap(), getMaxSpeedFactorLKW(), and RODFNet().

◆ myMaxSpeedFactorPKW

double RODFNet::myMaxSpeedFactorPKW
private

maximum speed factor in measurements

Definition at line 188 of file RODFNet.h.

Referenced by buildEdgeFlowMap(), getMaxSpeedFactorPKW(), and RODFNet().

◆ myNodes

NamedObjectCont<RONode*> RONet::myNodes
privateinherited

Known nodes.

Definition at line 505 of file RONet.h.

Referenced by addJunctionTaz(), addNode(), and getNode().

◆ myNumInternalEdges

int RONet::myNumInternalEdges
privateinherited

The number of internal edges in the dictionary.

Definition at line 590 of file RONet.h.

Referenced by addEdge(), getInternalEdgeNumber(), and RONet().

◆ myPersonIDs

std::set<std::string> RONet::myPersonIDs
privateinherited

Known person ids.

Definition at line 502 of file RONet.h.

Referenced by addPerson().

◆ myPTVehicles

std::vector<const RORoutable*> RONet::myPTVehicles
privateinherited

vehicles to keep for public transport routing

Definition at line 553 of file RONet.h.

Referenced by addVehicle(), and ~RONet().

◆ myReadRouteNo

int RONet::myReadRouteNo
privateinherited

The number of read routes.

Definition at line 571 of file RONet.h.

Referenced by RONet().

◆ myRestrictions

std::map<std::string, std::map<SUMOVehicleClass, double> > RONet::myRestrictions
privateinherited

The vehicle class specific speed restrictions.

Definition at line 583 of file RONet.h.

Referenced by addRestriction(), getRestrictions(), and hasRestrictions().

◆ myRoutables

RoutablesMap RONet::myRoutables
privateinherited

Known routables.

Definition at line 540 of file RONet.h.

Referenced by addPerson(), addVehicle(), createBulkRouteRequests(), furtherStored(), saveAndRemoveRoutesUntil(), and ~RONet().

◆ myRouteAlternativesOutput

OutputDevice* RONet::myRouteAlternativesOutput
privateinherited

The file to write the computed route alternatives into.

Definition at line 565 of file RONet.h.

Referenced by cleanup(), getRouteOutput(), openOutput(), RONet(), and saveAndRemoveRoutesUntil().

◆ myRoutes

NamedObjectCont<RORouteDef*> RONet::myRoutes
privateinherited

Known routes.

Definition at line 537 of file RONet.h.

Referenced by addRouteDef(), getRouteDef(), saveAndRemoveRoutesUntil(), and ~RONet().

◆ myRoutesOutput

OutputDevice* RONet::myRoutesOutput
privateinherited

The file to write the computed routes into.

Definition at line 562 of file RONet.h.

Referenced by cleanup(), getRouteOutput(), openOutput(), RONet(), and saveAndRemoveRoutesUntil().

◆ mySinkNumber

int RODFNet::mySinkNumber
private

Definition at line 178 of file RODFNet.h.

Referenced by computeTypes(), and RODFNet().

◆ mySourceNumber

int RODFNet::mySourceNumber
mutableprivate

Definition at line 178 of file RODFNet.h.

Referenced by computeTypes(), and RODFNet().

◆ myStoppingPlaces

std::map<SumoXMLTag, NamedObjectCont<SUMOVehicleParameter::Stop*> > RONet::myStoppingPlaces
privateinherited

Known bus / train / container stops and parking areas.

Definition at line 511 of file RONet.h.

Referenced by addStoppingPlace(), getStoppingPlace(), getStoppingPlaceElement(), and getStoppingPlaceName().

◆ myTypesOutput

OutputDevice* RONet::myTypesOutput
privateinherited

The file to write the vehicle types into.

Definition at line 568 of file RONet.h.

Referenced by cleanup(), openOutput(), RONet(), and saveAndRemoveRoutesUntil().

◆ myVClassPreferences

std::map<SUMOVehicleClass, std::map<std::string, double> > RONet::myVClassPreferences
privateinherited

Preferences for routing.

Definition at line 586 of file RONet.h.

Referenced by addPreference(), and getPreference().

◆ myVehicleTypes

NamedObjectCont<SUMOVTypeParameter*> RONet::myVehicleTypes
privateinherited

Known vehicle types.

Definition at line 514 of file RONet.h.

Referenced by addVehicleType(), checkVType(), getVehicleTypeSecure(), and RONet().

◆ myVehIDs

std::map<std::string, SUMOTime> RONet::myVehIDs
privateinherited

Known vehicle ids and their departure.

Definition at line 499 of file RONet.h.

Referenced by addVehicle(), getDeparture(), knowsVehicle(), and saveAndRemoveRoutesUntil().

◆ myVTypeDistDict

VTypeDistDictType RONet::myVTypeDistDict
privateinherited

A distribution of vehicle types (probability->vehicle type).

Definition at line 519 of file RONet.h.

Referenced by addVTypeDistribution(), checkVType(), getVehicleTypeSecure(), getVTypeDistribution(), and ~RONet().

◆ myVTypePreferences

std::map<std::string, std::map<std::string, double> > RONet::myVTypePreferences
privateinherited

Definition at line 587 of file RONet.h.

Referenced by addPreference(), and getPreference().

◆ myWrittenRouteNo

int RONet::myWrittenRouteNo
privateinherited

The number of written routes.

Definition at line 577 of file RONet.h.

Referenced by RONet(), and saveAndRemoveRoutesUntil().


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