![]() |
SUMO - Simulation of Urban MObility
|
A DFROUTER-network. More...
#include <RODFNet.h>
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::deque< RORoutable * > > | RoutablesMap |
Public Member Functions | |
void | addRestriction (const std::string &id, const SUMOVehicleClass svc, const double speed) |
Adds a restriction for an edge type. More... | |
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 | cleanup () |
closes the file output for computed routes and deletes associated threads if necessary More... | |
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 |
const std::map< std::string, ROEdge * > & | getEdgeMap () const |
int | getEdgeNo () const |
Returns the total number of edges the network contains including internal edges. More... | |
int | getInternalEdgeNumber () const |
Returns the number of internal edges the network contains. More... | |
double | getMaxSpeedFactorLKW () const |
double | getMaxSpeedFactorPKW () const |
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. More... | |
OutputDevice * | getRouteOutput (const bool alternative=false) |
bool | hasDetector (ROEdge *edge) const |
bool | hasPermissions () const |
void | mesoJoin (RODFDetectorCon &detectors, RODFDetectorFlows &flows) |
void | openOutput (const OptionsCont &options, const std::string altFilename="") |
Opens the output for computed routes. More... | |
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. More... | |
void | setPermissionsFound () |
~RODFNet () | |
Destructor. More... | |
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) |
const std::map< std::string, std::pair< std::vector< std::string >, std::vector< std::string > > > & | getDistricts () const |
Retrieves all TAZ (districts) from the network. More... | |
ROEdge * | getEdge (const std::string &name) const |
Retrieves an edge from the network. More... | |
ROEdge * | getEdgeForLaneID (const std::string &laneID) const |
Retrieves an edge from the network when the lane id is given. More... | |
void | addNode (RONode *node) |
RONode * | getNode (const std::string &id) const |
Retrieves an node from the network. More... | |
void | addBusStop (const std::string &id, SUMOVehicleParameter::Stop *stop) |
void | addContainerStop (const std::string &id, SUMOVehicleParameter::Stop *stop) |
void | addParkingArea (const std::string &id, SUMOVehicleParameter::Stop *stop) |
const SUMOVehicleParameter::Stop * | getBusStop (const std::string &id) const |
Retrieves a bus stop from the network. More... | |
const SUMOVehicleParameter::Stop * | getContainerStop (const std::string &id) const |
Retrieves a container stop from the network. More... | |
const SUMOVehicleParameter::Stop * | getParkingArea (const std::string &id) const |
Retrieves a parking area from the network. More... | |
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. More... | |
virtual bool | addVehicleType (SUMOVTypeParameter *type) |
Adds a read vehicle type definition to the network. More... | |
bool | addVTypeDistribution (const std::string &id, RandomDistributor< SUMOVTypeParameter *> *vehTypeDistribution) |
Adds a vehicle type distribution. More... | |
SUMOVTypeParameter * | getVehicleTypeSecure (const std::string &id) |
Retrieves the named vehicle type. More... | |
bool | addRouteDef (RORouteDef *def) |
RORouteDef * | getRouteDef (const std::string &name) const |
Returns the named route definition. More... | |
virtual bool | addVehicle (const std::string &id, ROVehicle *veh) |
bool | addFlow (SUMOVehicleParameter *flow, const bool randomize) |
bool | addPerson (ROPerson *person) |
void | addContainer (const SUMOTime depart, const std::string desc) |
Processing stored vehicle definitions | |
SUMOTime | saveAndRemoveRoutesUntil (OptionsCont &options, const RORouterProvider &provider, SUMOTime time) |
Computes routes described by their definitions and saves them. More... | |
virtual bool | furtherStored () |
Returns the information whether further vehicles, persons or containers are stored. More... | |
Static Public Member Functions | |
static void | adaptIntermodalRouter (ROIntermodalRouter &router) |
static RONet * | getInstance () |
Returns the pointer to the unique instance of RONet (singleton). More... | |
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 |
ROEdge * | getDetectorEdge (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 | 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 | |
bool | myAmInHighwayMode |
std::map< ROEdge *, ROEdgeVector > | myApproachedEdges |
Map of edge name->list of names of edges approached by this edge. More... | |
std::map< ROEdge *, ROEdgeVector > | myApproachingEdges |
Map of edge name->list of names of this edge approaching edges. More... | |
double | myAvgSpeedFactorLKW |
double | myAvgSpeedFactorPKW |
std::map< std::string, ROEdge * > | myDetectorEdges |
std::map< ROEdge *, std::vector< std::string >, idComp > | myDetectorsOnEdges |
std::vector< std::string > | myDisallowedEdges |
List of ids of edges that shall not be used. More... | |
int | myInBetweenNumber |
int | myInvalidNumber |
bool | myKeepTurnarounds |
double | myMaxSpeedFactorLKW |
double | myMaxSpeedFactorPKW |
maximum speed factor in measurements More... | |
int | mySinkNumber |
int | mySourceNumber |
|
inherited |
RODFNet::RODFNet | ( | bool | amInHighwayMode | ) |
Constructor.
[in] | amInHighwayMode | Whether search for following edges shall stop at slow edges |
Definition at line 53 of file RODFNet.cpp.
References OptionsCont::getBool(), OptionsCont::getOptions(), OptionsCont::getStringVector(), myDisallowedEdges, and myKeepTurnarounds.
RODFNet::~RODFNet | ( | ) |
Destructor.
Definition at line 65 of file RODFNet.cpp.
|
staticinherited |
Definition at line 665 of file RONet.cpp.
References IntermodalRouter< E, L, N, V, INTERNALROUTER >::addAccess(), IntermodalRouter< E, L, N, V, INTERNALROUTER >::addSchedule(), RONet::getEdgeForLaneID(), RORouteDef::getFirstRoute(), NamedObjectCont< T >::getMyMap(), ROVehicle::getParameter(), RONet::getRouteDef(), RORoute::getStops(), SUMOVehicleParameter::line, RONet::myBusStops, RONet::myFlows, RONet::myInstance, RONet::myRoutables, and SUMOVehicleParameter::repetitionNumber.
Referenced by computeRoutes(), and RONet::getRouteDef().
|
inherited |
Definition at line 198 of file RONet.cpp.
References RONet::myBusStops, and WRITE_ERROR.
Referenced by RONet::getNode(), and RONetHandler::parseStoppingPlace().
|
inherited |
Definition at line 395 of file RONet.cpp.
References RONet::myContainers.
Referenced by RORouteHandler::closeContainer(), and RONet::getRouteDef().
|
inherited |
Definition at line 209 of file RONet.cpp.
References RONet::myContainerStops, and WRITE_ERROR.
Referenced by RONet::getNode(), and RONetHandler::parseStoppingPlace().
Definition at line 150 of file RONet.cpp.
References RONet::addEdge(), ROEdge::ET_DISTRICT, RONet::myDistricts, ROEdge::setFunc(), and WRITE_ERROR.
Referenced by RONetHandler::parseDistrict().
|
inherited |
Definition at line 167 of file RONet.cpp.
References ROEdge::addSuccessor(), RONet::getEdge(), RONet::myDistricts, and WRITE_ERROR.
Referenced by RONetHandler::parseDistrict(), and RONetHandler::parseDistrictEdge().
|
virtualinherited |
Definition at line 136 of file RONet.cpp.
References NamedObjectCont< T >::add(), ROEdge::ET_INTERNAL, ROEdge::getFunc(), Named::getID(), RONet::myEdges, RONet::myNumInternalEdges, and WRITE_ERROR.
Referenced by RONet::addDistrict(), and RONetHandler::parseEdge().
|
inherited |
Definition at line 369 of file RONet.cpp.
References NamedObjectCont< T >::add(), SUMOVehicleParameter::depart, SUMOVehicleParameter::id, RONet::myDepartures, RONet::myFlows, RandHelper::rand(), SUMOVehicleParameter::repetitionNumber, and SUMOVehicleParameter::repetitionOffset.
Referenced by RORouteHandler::closeFlow(), and RONet::getRouteDef().
|
inherited |
Definition at line 189 of file RONet.cpp.
References NamedObjectCont< T >::add(), Named::getID(), RONet::myNodes, and WRITE_ERROR.
Referenced by RONet::getEdgeForLaneID(), RONetHandler::parseEdge(), and RONetHandler::parseJunction().
|
inherited |
Definition at line 220 of file RONet.cpp.
References RONet::myParkingAreas, and WRITE_ERROR.
Referenced by RONet::getNode(), and RONetHandler::parseStoppingPlace().
|
inherited |
Definition at line 383 of file RONet.cpp.
References RORoutable::getDepart(), RORoutable::getID(), RONet::myPersonIDs, RONet::myRoutables, and WRITE_ERROR.
Referenced by RORouteHandler::closePerson(), and RONet::getRouteDef().
|
inherited |
Adds a restriction for an edge type.
[in] | id | The id of the type |
[in] | svc | The vehicle class the restriction refers to |
[in] | speed | The restricted speed |
Definition at line 120 of file RONet.cpp.
References RONet::myRestrictions.
Referenced by RONetHandler::myStartElement().
|
inherited |
Definition at line 231 of file RONet.cpp.
References NamedObjectCont< T >::add(), Named::getID(), and RONet::myRoutes.
Referenced by RORouteHandler::closeRoute(), RORouteHandler::closeRouteDistribution(), and RONet::getParkingArea().
|
virtualinherited |
Definition at line 356 of file RONet.cpp.
References RORoutable::getDepart(), RONet::myReadRouteNo, RONet::myRoutables, RONet::myVehIDs, and WRITE_ERROR.
Referenced by RONet::checkFlows(), RORouteHandler::closeVehicle(), and RONet::getRouteDef().
|
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.
[in] | def | The vehicle type to add |
Definition at line 333 of file RONet.cpp.
References NamedObjectCont< T >::add(), RONet::checkVType(), SUMOVTypeParameter::id, RONet::myVehicleTypes, and WRITE_ERROR.
Referenced by RONet::getParkingArea(), and RORouteHandler::myEndElement().
|
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.
[in] | id | The id of the distribution to add |
[in] | vehTypeDistribution | The vehicle type distribution to add |
Definition at line 346 of file RONet.cpp.
References RONet::checkVType(), and RONet::myVTypeDistDict.
Referenced by RORouteHandler::closeVehicleTypeDistribution(), and RONet::getParkingArea().
void RODFNet::buildApproachList | ( | ) |
Definition at line 70 of file RODFNet.cpp.
References RONet::getEdgeMap(), ROEdge::getFromJunction(), Named::getID(), ROEdge::getSuccessors(), ROEdge::getToJunction(), myApproachedEdges, myApproachingEdges, myDisallowedEdges, and myKeepTurnarounds.
void RODFNet::buildDetectorDependencies | ( | RODFDetectorCon & | detectors | ) |
Definition at line 1031 of file RODFNet.cpp.
References RODFDetector::addPriorDetector(), buildDetectorEdgeDependencies(), RODFDetectorCon::getDetector(), RODFDetectorCon::getModifiableDetector(), RODFDetector::getRouteVector(), RODFDetector::hasRoutes(), myDetectorEdges, and myDetectorsOnEdges.
Referenced by startComputation().
|
protected |
Definition at line 101 of file RODFNet.cpp.
References getDetectorEdge(), RODFDetectorCon::getDetectors(), myDetectorEdges, and myDetectorsOnEdges.
Referenced by buildDetectorDependencies(), buildRoutes(), computeTypes(), getAvgSpeedFactorLKW(), and mesoJoin().
void RODFNet::buildEdgeFlowMap | ( | const RODFDetectorFlows & | flows, |
const RODFDetectorCon & | detectors, | ||
SUMOTime | startTime, | ||
SUMOTime | endTime, | ||
SUMOTime | stepOffset | ||
) |
Definition at line 933 of file RODFNet.cpp.
References FlowDef::fLKW, RODFDetectorCon::getDetector(), RODFDetectorFlows::getFlowDefs(), Named::getID(), RODFDetector::getPos(), ROEdge::getSpeedLimit(), ROEdge::getVClassMaxSpeed(), FlowDef::isLKW, RODFDetectorFlows::knows(), MAX2(), myAvgSpeedFactorLKW, myAvgSpeedFactorPKW, myDetectorsOnEdges, myMaxSpeedFactorLKW, myMaxSpeedFactorPKW, FlowDef::qLKW, FlowDef::qPKW, SVC_PASSENGER, SVC_TRUCK, toString(), FlowDef::vLKW, FlowDef::vPKW, and WRITE_MESSAGE.
Referenced by startComputation().
void RODFNet::buildRoutes | ( | RODFDetectorCon & | det, |
bool | keepUnfoundEnds, | ||
bool | includeInBetween, | ||
bool | keepShortestOnly, | ||
int | maxFollowingLength | ||
) | const |
!!;
!!routes->removeIllegal(illegals);
!!;
Definition at line 346 of file RODFNet.cpp.
References BETWEEN_DETECTOR, buildDetectorEdgeDependencies(), computeRoutesFor(), RODFRouteDesc::distance, RODFRouteDesc::distance2Last, RODFRouteDesc::duration2Last, RODFRouteDesc::duration_2, RODFRouteDesc::edges2Pass, RODFRouteDesc::endDetectorEdge, RODFRouteDesc::factor, RODFRouteCont::get(), RODFDetectorCon::getDetector(), getDetectorEdge(), RODFDetectorCon::getDetectors(), ROEdge::getLength(), ROEdge::getSpeedLimit(), RODFDetector::getType(), RODFRouteDesc::lastDetectorEdge, myDetectorsOnEdges, and RODFRouteDesc::overallProb.
Referenced by startComputation().
|
inherited |
Checks whether the vehicle type (distribution) may be added.
This method checks also whether the default type may still be replaced
[in] | id | The id of the vehicle type (distribution) to add |
Definition at line 308 of file RONet.cpp.
References DEFAULT_PEDTYPE_ID, DEFAULT_VTYPE_ID, NamedObjectCont< T >::get(), RONet::myDefaultPedTypeMayBeDeleted, RONet::myDefaultVTypeMayBeDeleted, RONet::myVehicleTypes, RONet::myVTypeDistDict, and NamedObjectCont< T >::remove().
Referenced by RONet::addVehicleType(), RONet::addVTypeDistribution(), and RONet::getParkingArea().
|
inherited |
closes the file output for computed routes and deletes associated threads if necessary
Definition at line 257 of file RONet.cpp.
References RouteCostCalculator< R, E, V >::cleanup(), OutputDevice::close(), RONet::myRouteAlternativesOutput, RONet::myRoutesOutput, and RONet::myTypesOutput.
Referenced by computeRoutes(), and RONet::getRouteDef().
|
protected |
!!! //toDiscard.push_back(current);
!!
Definition at line 187 of file RODFNet.cpp.
References RODFRouteCont::addRouteDesc(), RODFRouteDesc::distance, RODFRouteDesc::distance2Last, RODFRouteDesc::duration2Last, RODFRouteDesc::duration_2, RODFRouteDesc::edges2Pass, RODFRouteDesc::endDetectorEdge, RODFRouteDesc::factor, getDetectorEdge(), OptionsCont::getFloat(), Named::getID(), OptionsCont::getOptions(), ROEdge::getSpeedLimit(), hasApproached(), hasDetector(), hasInBetweenDetectorsOnly(), hasSourceDetector(), RODFRouteDesc::lastDetectorEdge, myAmInHighwayMode, myApproachedEdges, RODFRouteDesc::passedNo, RODFRouteCont::removeRouteDesc(), UNUSED_PARAMETER, and WRITE_WARNING.
Referenced by buildRoutes(), and getAvgSpeedFactorLKW().
void RODFNet::computeTypes | ( | RODFDetectorCon & | dets, |
bool | sourcesStrict | ||
) | const |
Definition at line 114 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, toString(), TYPE_NOT_DEFINED, and WRITE_MESSAGE.
Referenced by startComputation().
|
virtualinherited |
Returns the information whether further vehicles, persons or containers are stored.
Definition at line 641 of file RONet.cpp.
References RONet::myContainers, RONet::myFlows, RONet::myRoutables, and NamedObjectCont< T >::size().
Referenced by RONet::getRouteDef(), ROLoader::openRoutes(), and ROLoader::processRoutes().
double RODFNet::getAbsPos | ( | const RODFDetector & | det | ) | const |
Definition at line 676 of file RODFNet.cpp.
References getDetectorEdge(), ROEdge::getLength(), and RODFDetector::getPos().
Referenced by isDestination(), and isSource().
|
inline |
Definition at line 106 of file RODFNet.h.
References buildDetectorEdgeDependencies(), computeRoutesFor(), getDetectorEdge(), hasApproached(), hasApproaching(), hasInBetweenDetectorsOnly(), hasSourceDetector(), isDestination(), isFalseSource(), isSource(), myAvgSpeedFactorLKW, and revalidateFlows().
Referenced by RODFDetectorCon::writeEmitters().
|
inline |
Definition at line 102 of file RODFNet.h.
References myAvgSpeedFactorPKW.
Referenced by RODFDetectorCon::writeEmitters().
|
inlineinherited |
Retrieves a bus stop from the network.
[in] | name | The name of the stop to retrieve |
Definition at line 239 of file RONet.h.
References RONet::myBusStops.
Referenced by RORouteHandler::addStop().
|
inlineinherited |
Retrieves a container stop from the network.
[in] | name | The name of the stop to retrieve |
Definition at line 253 of file RONet.h.
References RONet::myContainerStops.
Referenced by RORouteHandler::addStop().
|
protected |
Definition at line 631 of file RODFNet.cpp.
References RONet::getEdge(), Named::getID(), and RODFDetector::getLaneID().
Referenced by buildDetectorEdgeDependencies(), buildRoutes(), computeRoutesFor(), getAbsPos(), getAvgSpeedFactorLKW(), isDestination(), isFalseSource(), isSource(), and revalidateFlows().
const std::vector< std::string > & RODFNet::getDetectorList | ( | ROEdge * | edge | ) | const |
Definition at line 670 of file RODFNet.cpp.
References myDetectorsOnEdges.
|
inlineinherited |
Retrieves all TAZ (districts) from the network.
Definition at line 153 of file RONet.h.
References RONet::myDistricts.
Referenced by main().
|
inlineinherited |
Retrieves an edge from the network.
This is not very pretty, but necessary, though, as routes run over instances, not over ids.
[in] | name | The name of the edge to retrieve |
Definition at line 165 of file RONet.h.
References NamedObjectCont< T >::get(), and RONet::myEdges.
Referenced by RONet::addDistrictEdge(), ROLoader::EdgeFloatTimeLineRetriever_EdgeWeight::addEdgeWeight(), ROLoader::EdgeFloatTimeLineRetriever_EdgeTravelTime::addEdgeWeight(), RORouteHandler::addPersonTrip(), RORouteHandler::addStop(), ROJTRTurnDefLoader::addToEdge(), ROJTRTurnDefLoader::beginFromEdge(), getDetectorEdge(), RONet::getEdgeForLaneID(), ROMAAssignments::getKPaths(), ROMAAssignments::incremental(), loadJTRDefinitions(), RONetHandler::myEndElement(), RODFDetectorHandler::myStartElement(), ROJTRTurnDefLoader::myStartElement(), RORouteHandler::myStartElement(), RONetHandler::parseConnection(), RORouteHandler::parseEdges(), RORouteHandler::parseFromViaTo(), AGActivityGenHandler::parseStreets(), ROVehicle::ROVehicle(), ROMAAssignments::sue(), RODFDetectorCon::writeEmitters(), and RODFDetectorCon::writeSpeedTrigger().
|
inlineinherited |
Retrieves an edge from the network when the lane id is given.
[in] | laneID | The name of the lane to retrieve the edge for |
Definition at line 175 of file RONet.h.
References RONet::addNode(), and RONet::getEdge().
Referenced by RONet::adaptIntermodalRouter(), ROVehicle::addStop(), RONetHandler::parseAccess(), and RONetHandler::parseStoppingPlace().
|
inherited |
Definition at line 659 of file RONet.cpp.
References NamedObjectCont< T >::getMyMap(), and RONet::myEdges.
Referenced by buildApproachList(), AGCity::completeStreets(), RONet::getRouteDef(), ROMAAssignments::incremental(), initNet(), ROLoader::loadWeights(), ROMAAssignments::resetFlows(), ROMAAssignments::sue(), and writeInterval().
|
inherited |
Returns the total number of edges the network contains including internal edges.
Definition at line 647 of file RONet.cpp.
References RONet::myEdges, and NamedObjectCont< T >::size().
Referenced by computeAllPairs(), computeRoutes(), RONet::getRouteDef(), and main().
|
staticinherited |
Returns the pointer to the unique instance of RONet (singleton).
Definition at line 62 of file RONet.cpp.
References RONet::myInstance.
Referenced by ROPerson::addTrip(), and ROEdge::getSuccessors().
|
inherited |
Returns the number of internal edges the network contains.
Definition at line 653 of file RONet.cpp.
References RONet::myNumInternalEdges.
Referenced by computeAllPairs(), and RONet::getRouteDef().
|
inline |
Definition at line 98 of file RODFNet.h.
References myMaxSpeedFactorLKW.
Referenced by RODFDetectorCon::writeEmitters().
|
inline |
Definition at line 94 of file RODFNet.h.
References myMaxSpeedFactorPKW.
Referenced by RODFDetectorCon::writeEmitters().
|
inlineinherited |
Retrieves an node from the network.
[in] | name | The name of the node to retrieve |
Definition at line 197 of file RONet.h.
References RONet::addBusStop(), RONet::addContainerStop(), RONet::addParkingArea(), NamedObjectCont< T >::get(), and RONet::myNodes.
Referenced by RONetHandler::myEndElement(), RONetHandler::parseEdge(), and RONetHandler::parseJunction().
|
inlineinherited |
Retrieves a parking area from the network.
[in] | name | The name of the stop to retrieve |
Definition at line 267 of file RONet.h.
References RONet::addRouteDef(), RONet::addVehicleType(), RONet::addVTypeDistribution(), RONet::checkVType(), RONet::getVehicleTypeSecure(), and RONet::myParkingAreas.
Referenced by RORouteHandler::addStop().
|
inherited |
Returns the restrictions for an edge type If no restrictions are present, 0 is returned.
[in] | id | The id of the type |
Definition at line 126 of file RONet.cpp.
References RONet::myRestrictions.
Referenced by RONetHandler::parseEdge().
|
inlineinherited |
Returns the named route definition.
[in] | name | The name of the route definition to retrieve |
Check whether a const pointer may be returned
Rename myRoutes to myRouteDefinitions
Definition at line 351 of file RONet.h.
References RONet::adaptIntermodalRouter(), RONet::addContainer(), RONet::addFlow(), RONet::addPerson(), RONet::addVehicle(), RONet::cleanup(), RONet::furtherStored(), NamedObjectCont< T >::get(), RONet::getEdgeMap(), RONet::getEdgeNo(), RONet::getInternalEdgeNumber(), RONet::hasPermissions(), RONet::myRoutes, RONet::openOutput(), RONet::saveAndRemoveRoutesUntil(), and RONet::setPermissionsFound().
Referenced by RONet::adaptIntermodalRouter(), RONet::checkFlows(), RORouteHandler::closeFlow(), RORouteHandler::closeRoute(), RORouteHandler::closeVehicle(), RORouteHandler::openRoute(), and RORouteHandler::openRouteDistribution().
|
inlineinherited |
Definition at line 455 of file RONet.h.
References RONet::checkFlows(), RONet::createBulkRouteRequests(), RONet::myRouteAlternativesOutput, RONet::myRoutesOutput, and RONet::operator=().
Referenced by computeRoutes().
|
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 0 is returned
[in] | id | The id of the vehicle type to return |
Definition at line 281 of file RONet.cpp.
References DEFAULT_PEDTYPE_ID, DEFAULT_VTYPE_ID, NamedObjectCont< T >::get(), RONet::myDefaultPedTypeMayBeDeleted, RONet::myDefaultVTypeMayBeDeleted, RONet::myVehicleTypes, and RONet::myVTypeDistDict.
Referenced by ROPerson::addTrip(), RONet::checkFlows(), RORouteHandler::closeFlow(), RORouteHandler::closeVehicle(), computeRoutes(), RONet::getParkingArea(), RORouteHandler::myStartElement(), RORouteHandler::openVehicleTypeDistribution(), and ROMAAssignments::ROMAAssignments().
|
protected |
Definition at line 652 of file RODFNet.cpp.
References myApproachedEdges.
Referenced by computeRoutesFor(), getAvgSpeedFactorLKW(), and isDestination().
|
protected |
Definition at line 643 of file RODFNet.cpp.
References myApproachingEdges.
Referenced by getAvgSpeedFactorLKW(), and isSource().
bool RODFNet::hasDetector | ( | ROEdge * | edge | ) | const |
Definition at line 661 of file RODFNet.cpp.
References myDetectorsOnEdges.
Referenced by RODFDetector::buildDestinationDistribution(), computeRoutesFor(), RODFDetector::computeSplitProbabilities(), isDestination(), isFalseSource(), isSource(), and revalidateFlows().
|
protected |
Definition at line 154 of file RODFNet.cpp.
References BETWEEN_DETECTOR, RODFDetectorCon::getDetector(), RODFDetector::getType(), and myDetectorsOnEdges.
Referenced by computeRoutesFor(), and getAvgSpeedFactorLKW().
|
inherited |
Definition at line 697 of file RONet.cpp.
References RONet::myHavePermissions.
Referenced by computeRoutes(), and RONet::getRouteDef().
|
protected |
Definition at line 170 of file RODFNet.cpp.
References RODFDetectorCon::getDetector(), RODFDetector::getType(), myDetectorsOnEdges, and SOURCE_DETECTOR.
Referenced by computeRoutesFor(), and getAvgSpeedFactorLKW().
|
protected |
Definition at line 699 of file RODFNet.cpp.
References getDetectorEdge().
Referenced by computeTypes(), getAvgSpeedFactorLKW(), and isDestination().
|
protected |
Definition at line 808 of file RODFNet.cpp.
References getAbsPos(), RODFDetectorCon::getDetector(), getDetectorEdge(), Named::getID(), ROEdge::getSpeedLimit(), hasApproached(), hasDetector(), isDestination(), myAmInHighwayMode, myApproachedEdges, myDetectorEdges, myDetectorsOnEdges, and WRITE_WARNING.
|
protected |
Definition at line 692 of file RODFNet.cpp.
References getDetectorEdge().
Referenced by computeTypes(), getAvgSpeedFactorLKW(), and isFalseSource().
|
protected |
Definition at line 884 of file RODFNet.cpp.
References BETWEEN_DETECTOR, RODFDetectorCon::getDetector(), getDetectorEdge(), Named::getID(), ROEdge::getSpeedLimit(), RODFDetector::getType(), hasDetector(), isFalseSource(), myAmInHighwayMode, myApproachedEdges, myDetectorsOnEdges, SINK_DETECTOR, SOURCE_DETECTOR, and WRITE_WARNING.
|
protected |
Definition at line 684 of file RODFNet.cpp.
References getDetectorEdge().
Referenced by computeTypes(), getAvgSpeedFactorLKW(), and isSource().
|
protected |
Definition at line 706 of file RODFNet.cpp.
References getAbsPos(), RODFDetectorCon::getDetector(), getDetectorEdge(), Named::getID(), ROEdge::getSpeedLimit(), hasApproaching(), hasDetector(), isSource(), myAmInHighwayMode, myApproachingEdges, myDetectorEdges, myDetectorsOnEdges, and WRITE_WARNING.
void RODFNet::mesoJoin | ( | RODFDetectorCon & | detectors, |
RODFDetectorFlows & | flows | ||
) |
Definition at line 1078 of file RODFNet.cpp.
References buildDetectorEdgeDependencies(), RODFDetectorCon::getDetector(), RODFDetector::getPos(), RODFDetectorFlows::mesoJoin(), RODFDetectorCon::mesoJoin(), and myDetectorsOnEdges.
|
inherited |
Opens the output for computed routes.
If the second parameter is set, a second file for route alternatives will be opened. If one of the file outputs can not be build, an IOError is thrown.
[in] | options | The options to be asked for "output-file" and "vtype-output" |
[in] | altFilename | The name of the file for writing alternatives, "" means no alternatives |
Definition at line 237 of file RONet.cpp.
References OutputDevice::getDevice(), OptionsCont::getString(), OptionsCont::isSet(), RONet::myRouteAlternativesOutput, RONet::myRoutesOutput, RONet::myTypesOutput, SUMO_TAG_ROUTES, OutputDevice::writeAttr(), and OutputDevice::writeHeader().
Referenced by computeRoutes(), and RONet::getRouteDef().
void RODFNet::removeEmptyDetectors | ( | RODFDetectorCon & | detectors, |
RODFDetectorFlows & | flows | ||
) |
Definition at line 590 of file RODFNet.cpp.
References RODFDetectorCon::getDetectors(), RODFDetectorFlows::knows(), RODFDetectorCon::removeDetector(), RODFDetectorFlows::removeFlow(), and WRITE_MESSAGE.
Referenced by startComputation().
void RODFNet::reportEmptyDetectors | ( | RODFDetectorCon & | detectors, |
RODFDetectorFlows & | flows | ||
) |
Definition at line 613 of file RODFNet.cpp.
References RODFDetectorCon::getDetectors(), RODFDetectorFlows::knows(), and WRITE_MESSAGE.
Referenced by startComputation().
void RODFNet::revalidateFlows | ( | const RODFDetectorCon & | detectors, |
RODFDetectorFlows & | flows, | ||
SUMOTime | startTime, | ||
SUMOTime | endTime, | ||
SUMOTime | stepOffset | ||
) |
Definition at line 576 of file RODFNet.cpp.
References RODFDetectorCon::getDetectors().
Referenced by getAvgSpeedFactorLKW(), and startComputation().
|
protected |
Definition at line 428 of file RODFNet.cpp.
References RODFNet::IterationEdge::depth, RODFNet::IterationEdge::edge, getDetectorEdge(), RODFDetectorFlows::getFlowDefs(), RODFEdge::getFlows(), Named::getID(), hasDetector(), RODFDetectorFlows::knows(), myApproachedEdges, myApproachingEdges, FlowDef::qLKW, FlowDef::qPKW, RODFDetectorFlows::setFlows(), FlowDef::vLKW, FlowDef::vPKW, and WRITE_WARNING.
|
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.
[in] | options | The options used during this process |
[in] | provider | The router provider for routes computation |
[in] | time | The time until which route definitions shall be processed |
Definition at line 533 of file RONet.cpp.
References RONet::checkFlows(), RORoutable::computeRoute(), RONet::createBulkRouteRequests(), NamedObjectCont< T >::erase(), OptionsCont::getBool(), MsgHandler::getErrorInstance(), Named::getID(), OptionsCont::getInt(), ROVehicle::getRouteDefinition(), RORoutable::getRoutingSuccess(), MsgHandler::getWarningInstance(), MIN2(), RONet::myContainers, RONet::myDiscardedRouteNo, RONet::myErrorHandler, RONet::myReadRouteNo, RONet::myRoutables, RONet::myRouteAlternativesOutput, RONet::myRoutes, RONet::myRoutesOutput, RONet::myTypesOutput, RONet::myWrittenRouteNo, SUMOTime_MAX, toString(), RORoutable::write(), WRITE_MESSAGE, and OutputDevice::writePreformattedTag().
Referenced by RONet::getRouteDef(), and ROLoader::processRoutes().
|
inherited |
Definition at line 703 of file RONet.cpp.
References RONet::myErrorHandler, and RONet::myHavePermissions.
Referenced by RONet::getRouteDef(), and RONetHandler::parseLane().
|
private |
Definition at line 185 of file RODFNet.h.
Referenced by computeRoutesFor(), isDestination(), isFalseSource(), and isSource().
|
private |
Map of edge name->list of names of edges approached by this edge.
Definition at line 180 of file RODFNet.h.
Referenced by buildApproachList(), computeRoutesFor(), hasApproached(), isDestination(), isFalseSource(), and revalidateFlows().
|
private |
Map of edge name->list of names of this edge approaching edges.
Definition at line 177 of file RODFNet.h.
Referenced by buildApproachList(), hasApproaching(), isSource(), and revalidateFlows().
|
private |
Definition at line 198 of file RODFNet.h.
Referenced by buildEdgeFlowMap(), and getAvgSpeedFactorLKW().
|
private |
Definition at line 197 of file RODFNet.h.
Referenced by buildEdgeFlowMap(), and getAvgSpeedFactorPKW().
|
mutableprivate |
Definition at line 183 of file RODFNet.h.
Referenced by buildDetectorDependencies(), buildDetectorEdgeDependencies(), isDestination(), and isSource().
Definition at line 182 of file RODFNet.h.
Referenced by buildDetectorDependencies(), buildDetectorEdgeDependencies(), buildEdgeFlowMap(), buildRoutes(), getDetectorList(), hasDetector(), hasInBetweenDetectorsOnly(), hasSourceDetector(), isDestination(), isFalseSource(), isSource(), and mesoJoin().
|
private |
List of ids of edges that shall not be used.
Definition at line 189 of file RODFNet.h.
Referenced by buildApproachList(), and RODFNet().
|
mutableprivate |
Definition at line 186 of file RODFNet.h.
Referenced by computeTypes().
|
mutableprivate |
Definition at line 186 of file RODFNet.h.
Referenced by computeTypes().
|
private |
Definition at line 192 of file RODFNet.h.
Referenced by buildApproachList(), and RODFNet().
|
private |
Definition at line 196 of file RODFNet.h.
Referenced by buildEdgeFlowMap(), and getMaxSpeedFactorLKW().
|
private |
maximum speed factor in measurements
Definition at line 195 of file RODFNet.h.
Referenced by buildEdgeFlowMap(), and getMaxSpeedFactorPKW().
|
mutableprivate |
Definition at line 186 of file RODFNet.h.
Referenced by computeTypes().
|
mutableprivate |
Definition at line 186 of file RODFNet.h.
Referenced by computeTypes().