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 Member Functions | |
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 allEndFollower, bool keepUnfoundEnds, bool includeInBetween, bool keepShortestOnly, int maxFollowingLength) const |
void | closeOutput () |
closes the file output for computed routes More... | |
void | computeTypes (RODFDetectorCon &dets, bool sourcesStrict) const |
SUMOReal | getAbsPos (const RODFDetector &det) const |
const std::vector< std::string > & | getDetectorList (ROEdge *edge) const |
const std::map< std::string, ROEdge * > & | getEdgeMap () const |
unsigned int | getEdgeNo () const |
Returns the number of edges thenetwork contains. More... | |
ROEdge * | getRandomDestination () |
Returns a random edge which may be used as an ending point. More... | |
const ROEdge * | getRandomDestination () const |
Returns a random edge which may be used as an ending point. More... | |
ROEdge * | getRandomSource () |
Returns a random edge which may be used as a starting point. More... | |
const ROEdge * | getRandomSource () const |
Returns a random edge which may be used as a starting point. More... | |
bool | hasDetector (ROEdge *edge) const |
bool | hasRestrictions () const |
void | mesoJoin (RODFDetectorCon &detectors, RODFDetectorFlows &flows) |
void | openOutput (const std::string &filename, bool useAlternatives, const std::string &typefilename) |
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 | setRestrictionFound () |
~RODFNet () | |
Destructor. More... | |
Insertion and retrieval of graph parts | |
virtual bool | addEdge (ROEdge *edge) |
ROEdge * | getEdge (const std::string &name) const |
Retrieves an edge from the network. More... | |
void | addNode (RONode *node) |
RONode * | getNode (const std::string &id) const |
Retrieves an node 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) |
Processing stored vehicle definitions | |
SUMOTime | saveAndRemoveRoutesUntil (OptionsCont &options, SUMOAbstractRouter< ROEdge, ROVehicle > &router, SUMOTime time) |
Computes routes described by their definitions and saves them. More... | |
virtual bool | furtherStored () |
Returns the information whether further vehicles are stored. More... | |
Protected Types | |
typedef std::map< std::string, RandomDistributor < SUMOVTypeParameter * > * > | VTypeDistDictType |
Vehicle type distribution dictionary type. More... | |
Protected Member Functions | |
void | buildDetectorEdgeDependencies (RODFDetectorCon &dets) const |
void | checkSourceAndDestinations () const |
Initialises the lists of source and destination edges. More... | |
bool | computeRoute (OptionsCont &options, SUMOAbstractRouter< ROEdge, ROVehicle > &router, const ROVehicle *const veh) |
void | computeRoutesFor (ROEdge *edge, RODFRouteDesc &base, int no, bool keepUnfoundEnds, bool keepShortestOnly, std::vector< ROEdge * > &visited, const RODFDetector &det, RODFRouteCont &into, const RODFDetectorCon &detectors, int maxFollowingLength, std::vector< ROEdge * > &seen) const |
ROEdge * | getDetectorEdge (const RODFDetector &det) const |
ROVehicleCont & | getVehicles () |
return vehicles for use by RouteAggregator More... | |
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, std::vector< ROEdge * > &seen, const RODFDetectorCon &detectors) const |
bool | isFalseSource (const RODFDetector &det, const RODFDetectorCon &detectors) const |
bool | isFalseSource (const RODFDetector &det, ROEdge *edge, std::vector< ROEdge * > &seen, const RODFDetectorCon &detectors) const |
bool | isSource (const RODFDetector &det, const RODFDetectorCon &detectors, bool strict) const |
bool | isSource (const RODFDetector &det, ROEdge *edge, std::vector< ROEdge * > &seen, const RODFDetectorCon &detectors, bool strict) const |
void | revalidateFlows (const RODFDetector *detector, RODFDetectorFlows &flows, SUMOTime startTime, SUMOTime endTime, SUMOTime stepOffset) |
Protected Attributes | |
bool | myDefaultVTypeMayBeDeleted |
Whether no vehicle type was loaded. More... | |
std::vector< ROEdge * > | myDestinationEdges |
List of destination edges. More... | |
unsigned int | myDiscardedRouteNo |
The number of discarded routes. More... | |
NamedObjectCont< ROEdge * > | myEdges |
Known edges. More... | |
bool | myHaveRestrictions |
Whether the network contains edges which not all vehicles may pass. More... | |
NamedObjectCont< RONode * > | myNodes |
Known nodes. More... | |
unsigned int | myReadRouteNo |
The number of read routes. More... | |
OutputDevice * | myRouteAlternativesOutput |
The file to write the computed route alternatives into. More... | |
NamedObjectCont< RORouteDef * > | myRoutes |
Known routes. More... | |
OutputDevice * | myRoutesOutput |
The file to write the computed routes into. More... | |
std::vector< ROEdge * > | mySourceEdges |
List of source edges. More... | |
OutputDevice * | myTypesOutput |
The file to write the vehicle types into. More... | |
ROVehicleCont | myVehicles |
Known vehicles. More... | |
NamedObjectCont < SUMOVTypeParameter * > | myVehicleTypes |
Known vehicle types. More... | |
std::set< std::string > | myVehIDs |
Known vehicle ids. More... | |
VTypeDistDictType | myVTypeDistDict |
A distribution of vehicle types (probability->vehicle type) More... | |
unsigned int | myWrittenRouteNo |
The number of written routes. More... | |
Private Attributes | |
bool | myAmInHighwayMode |
std::map< ROEdge *, std::vector< ROEdge * > > | myApproachedEdges |
Map of edge name->list of names of edges approached by this edge. More... | |
std::map< ROEdge *, std::vector< ROEdge * > > | myApproachingEdges |
Map of edge name->list of names of this edge approaching edges. More... | |
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... | |
size_t | myInBetweenNumber |
size_t | myInvalidNumber |
bool | myKeepTurnarounds |
size_t | mySinkNumber |
size_t | mySourceNumber |
|
protectedinherited |
RODFNet::RODFNet | ( | bool | amInHighwayMode | ) |
Constructor.
[in] | amInHighwayMode | Whether search for following edges shall stop at slow edges |
Definition at line 56 of file RODFNet.cpp.
References OptionsCont::getBool(), OptionsCont::getOptions(), OptionsCont::getStringVector(), myDisallowedEdges, and myKeepTurnarounds.
RODFNet::~RODFNet | ( | ) |
Destructor.
Definition at line 64 of file RODFNet.cpp.
Definition at line 84 of file RONet.cpp.
References NamedObjectCont< T >::add(), ROEdge::getID(), RONet::myEdges, and WRITE_ERROR.
Referenced by RONetHandler::parseDistrict(), and RONetHandler::parseEdge().
|
inherited |
Definition at line 95 of file RONet.cpp.
References NamedObjectCont< T >::add(), Named::getID(), RONet::myNodes, and WRITE_ERROR.
Referenced by RONetHandler::parseEdge(), and RONetHandler::parseJunction().
|
inherited |
Definition at line 104 of file RONet.cpp.
References NamedObjectCont< T >::add(), Named::getID(), and RONet::myRoutes.
Referenced by RORDGenerator_ODAmounts::FlowDef::addSingleRoute(), RORouteHandler::closeRoute(), RORouteHandler::closeRouteDistribution(), RORDLoader_TripDefs::myEndElement(), RORDLoader_SUMOBase::myEndElement(), and RORDGenerator_ODAmounts::myEndFlowAmountDef().
Definition at line 225 of file RONet.cpp.
References ROVehicleCont::add(), RONet::myReadRouteNo, RONet::myVehicles, RONet::myVehIDs, and WRITE_ERROR.
Referenced by RORDGenerator_ODAmounts::FlowDef::addSingleRoute(), RORDLoader_SUMOBase::closeVehicle(), RORouteHandler::closeVehicle(), and RORDLoader_TripDefs::myEndElement().
|
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 202 of file RONet.cpp.
References NamedObjectCont< T >::add(), RONet::checkVType(), SUMOVTypeParameter::id, RONet::myVehicleTypes, and WRITE_ERROR.
Referenced by RONet::getVehicleTypeSecure(), RORDLoader_TripDefs::myEndElement(), RORouteHandler::myEndElement(), and RORDLoader_SUMOBase::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 215 of file RONet.cpp.
References RONet::checkVType(), and RONet::myVTypeDistDict.
Referenced by RORouteHandler::closeVehicleTypeDistribution().
void RODFNet::buildApproachList | ( | ) |
Definition at line 69 of file RODFNet.cpp.
References RONet::getEdgeMap(), ROEdge::getFollower(), ROEdge::getFromNode(), ROEdge::getID(), ROEdge::getNoFollowing(), ROEdge::getToNode(), myApproachedEdges, myApproachingEdges, myDisallowedEdges, and myKeepTurnarounds.
Referenced by main().
void RODFNet::buildDetectorDependencies | ( | RODFDetectorCon & | detectors | ) |
Definition at line 1014 of file RODFNet.cpp.
References buildDetectorEdgeDependencies(), RODFDetectorCon::getDetector(), 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(), and mesoJoin().
void RODFNet::buildEdgeFlowMap | ( | const RODFDetectorFlows & | flows, |
const RODFDetectorCon & | detectors, | ||
SUMOTime | startTime, | ||
SUMOTime | endTime, | ||
SUMOTime | stepOffset | ||
) |
Definition at line 941 of file RODFNet.cpp.
References FlowDef::fLKW, RODFDetectorCon::getDetector(), RODFDetectorFlows::getFlowDefs(), ROEdge::getID(), RODFDetector::getPos(), ROEdge::getSpeed(), FlowDef::isLKW, RODFDetectorFlows::knows(), myDetectorsOnEdges, FlowDef::qLKW, FlowDef::qPKW, SUMOReal, FlowDef::vLKW, FlowDef::vPKW, and WRITE_MESSAGE.
Referenced by startComputation().
void RODFNet::buildRoutes | ( | RODFDetectorCon & | det, |
bool | allEndFollower, | ||
bool | keepUnfoundEnds, | ||
bool | includeInBetween, | ||
bool | keepShortestOnly, | ||
int | maxFollowingLength | ||
) | const |
!!;
!!routes->removeIllegal(illegals);
!!;
Definition at line 345 of file RODFNet.cpp.
References RODFRouteCont::addAllEndFollower(), 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::getSpeed(), RODFDetector::getType(), RODFRouteDesc::lastDetectorEdge, myDetectorsOnEdges, RODFRouteDesc::overallProb, SOURCE_DETECTOR, and SUMOReal.
Referenced by startComputation().
|
protectedinherited |
Initialises the lists of source and destination edges.
Definition at line 376 of file RONet.cpp.
References ROEdge::ET_SINK, ROEdge::ET_SOURCE, NamedObjectCont< T >::getMyMap(), ROEdge::getType(), RONet::myDestinationEdges, RONet::myEdges, and RONet::mySourceEdges.
Referenced by RONet::getRandomDestination(), and RONet::getRandomSource().
|
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 184 of file RONet.cpp.
References DEFAULT_VTYPE_ID, NamedObjectCont< T >::get(), RONet::myDefaultVTypeMayBeDeleted, RONet::myVehicleTypes, RONet::myVTypeDistDict, and NamedObjectCont< T >::remove().
Referenced by RONet::addVehicleType(), and RONet::addVTypeDistribution().
|
inherited |
closes the file output for computed routes
Definition at line 136 of file RONet.cpp.
References OutputDevice::close(), RONet::myRouteAlternativesOutput, RONet::myRoutesOutput, and RONet::myTypesOutput.
Referenced by computeRoutes().
|
protectedinherited |
Definition at line 237 of file RONet.cpp.
References RORouteDef::addAlternative(), RORouteDef::buildCurrentRoute(), OptionsCont::getBool(), ROVehicle::getDepartureTime(), MsgHandler::getErrorInstance(), ROVehicle::getID(), ROVehicle::getRouteDefinition(), MsgHandler::getWarningInstance(), MsgHandler::inform(), ReferencedItem::isSaved(), RORoute::recheckForLoops(), and RORoute::size().
Referenced by RONet::saveAndRemoveRoutesUntil().
|
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(), RODFDetector::getID(), OptionsCont::getOptions(), ROEdge::getSpeed(), hasApproached(), hasDetector(), hasInBetweenDetectorsOnly(), hasSourceDetector(), RODFRouteDesc::lastDetectorEdge, myAmInHighwayMode, myApproachedEdges, RODFRouteDesc::passedNo, RODFRouteCont::removeRouteDesc(), SUMOReal, and WRITE_WARNING.
Referenced by buildRoutes().
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 are stored.
Definition at line 321 of file RONet.cpp.
References RONet::myVehicles, and NamedObjectCont< T >::size().
Referenced by ROLoader::processRoutesStepWise().
SUMOReal RODFNet::getAbsPos | ( | const RODFDetector & | det | ) | const |
Definition at line 683 of file RODFNet.cpp.
References getDetectorEdge(), ROEdge::getLength(), and RODFDetector::getPos().
Referenced by isDestination(), and isSource().
|
protected |
Definition at line 638 of file RODFNet.cpp.
References RONet::getEdge(), RODFDetector::getID(), and RODFDetector::getLaneID().
Referenced by buildDetectorEdgeDependencies(), buildRoutes(), computeRoutesFor(), getAbsPos(), isDestination(), isFalseSource(), isSource(), and revalidateFlows().
const std::vector< std::string > & RODFNet::getDetectorList | ( | ROEdge * | edge | ) | const |
Definition at line 677 of file RODFNet.cpp.
References myDetectorsOnEdges.
|
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 105 of file RONet.h.
References NamedObjectCont< T >::get(), and RONet::myEdges.
Referenced by ROLoader::EdgeFloatTimeLineRetriever_EdgeTravelTime::addEdgeWeight(), ROJTRTurnDefLoader::addToEdge(), ROJTRTurnDefLoader::beginFromEdge(), getDetectorEdge(), RORDLoader_TripDefs::getEdge(), loadJTRDefinitions(), RODFDetectorHandler::myStartElement(), RORouteHandler::myStartElement(), ROJTRTurnDefLoader::myStartElement(), RONetHandler::parseConnection(), RONetHandler::parseDistrict(), RONetHandler::parseDistrictEdge(), RORouteHandler::parseEdges(), RORDLoader_SUMOBase::parseRoute(), AGActivityGenHandler::parseStreets(), RODFDetectorCon::writeEmitters(), and RODFDetectorCon::writeSpeedTrigger().
|
inherited |
Definition at line 402 of file RONet.cpp.
References NamedObjectCont< T >::getMyMap(), and RONet::myEdges.
Referenced by buildApproachList(), AGCity::completeStreets(), initNet(), and ROLoader::loadWeights().
|
inherited |
Returns the number of edges thenetwork contains.
Definition at line 396 of file RONet.cpp.
References RONet::myEdges, and NamedObjectCont< T >::size().
Referenced by computeRoutes(), and main().
|
inlineinherited |
Retrieves an node from the network.
[in] | name | The name of the node to retrieve |
Definition at line 127 of file RONet.h.
References NamedObjectCont< T >::get(), and RONet::myNodes.
Referenced by RONetHandler::parseEdge(), and RONetHandler::parseJunction().
|
inherited |
Returns a random edge which may be used as an ending point.
If the list of possible destinations (roads with no successor, "myDestinationEdges") is empty, it is tried to be built, first.
Definition at line 352 of file RONet.cpp.
References RONet::checkSourceAndDestinations(), RandHelper::getRandomFrom(), and RONet::myDestinationEdges.
|
inherited |
Returns a random edge which may be used as an ending point.
If the list of possible destinations (roads with no successor, "myDestinationEdges") is empty, it is tried to be built, first.
Definition at line 364 of file RONet.cpp.
References RONet::checkSourceAndDestinations(), RandHelper::getRandomFrom(), and RONet::myDestinationEdges.
|
inherited |
Returns a random edge which may be used as a starting point.
If the list of possible source (roads with no predecessor, "mySourceEdges") is empty, it is tried to be built, first.
Definition at line 327 of file RONet.cpp.
References RONet::checkSourceAndDestinations(), RandHelper::getRandomFrom(), and RONet::mySourceEdges.
|
inherited |
Returns a random edge which may be used as a starting point.
If the list of possible sources (roads with no predecessor, "mySourceEdges") is empty, it is tried to be built, first.
Definition at line 339 of file RONet.cpp.
References RONet::checkSourceAndDestinations(), RandHelper::getRandomFrom(), and RONet::mySourceEdges.
|
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 209 of file RONet.h.
References NamedObjectCont< T >::get(), and RONet::myRoutes.
Referenced by RORouteHandler::closeRoute(), RORDLoader_SUMOBase::closeVehicle(), RORouteHandler::closeVehicle(), RORouteHandler::openRoute(), and RORouteHandler::openRouteDistribution().
|
inlineprotectedinherited |
return vehicles for use by RouteAggregator
Definition at line 330 of file RONet.h.
References RONet::myVehicles.
|
inherited |
Retrieves the named vehicle type.
If the named vehicle type was not added to the net before, a default vehicle type which consists of the id only is generated, added to the net and returned.
Only if the name is "", 0 is returned.
[in] | id | The id of the vehicle type to return |
Definition at line 154 of file RONet.cpp.
References RONet::addVehicleType(), DEFAULT_VTYPE_ID, NamedObjectCont< T >::get(), SUMOVTypeParameter::id, RONet::myDefaultVTypeMayBeDeleted, RONet::myVehicleTypes, RONet::myVTypeDistDict, and SUMOVTypeParameter::onlyReferenced.
Referenced by RORDLoader_SUMOBase::closeVehicle(), RORouteHandler::closeVehicle(), computeRoutes(), RORDLoader_TripDefs::myEndElement(), RORDGenerator_ODAmounts::myEndFlowAmountDef(), and RORouteHandler::openVehicleTypeDistribution().
Definition at line 659 of file RODFNet.cpp.
References myApproachedEdges.
Referenced by computeRoutesFor(), and isDestination().
Definition at line 650 of file RODFNet.cpp.
References myApproachingEdges.
Referenced by isSource().
Definition at line 668 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().
|
inherited |
Definition at line 408 of file RONet.cpp.
References RONet::myHaveRestrictions.
Referenced by computeRoutes().
|
protected |
Definition at line 170 of file RODFNet.cpp.
References RODFDetectorCon::getDetector(), RODFDetector::getType(), myDetectorsOnEdges, and SOURCE_DETECTOR.
Referenced by computeRoutesFor().
|
protected |
Definition at line 706 of file RODFNet.cpp.
References getDetectorEdge().
Referenced by computeTypes(), and isDestination().
|
protected |
Definition at line 816 of file RODFNet.cpp.
References getAbsPos(), RODFDetectorCon::getDetector(), getDetectorEdge(), RODFDetector::getID(), ROEdge::getSpeed(), hasApproached(), hasDetector(), isDestination(), myAmInHighwayMode, myApproachedEdges, myDetectorEdges, myDetectorsOnEdges, and WRITE_WARNING.
|
protected |
Definition at line 699 of file RODFNet.cpp.
References getDetectorEdge().
Referenced by computeTypes(), and isFalseSource().
|
protected |
Definition at line 892 of file RODFNet.cpp.
References BETWEEN_DETECTOR, RODFDetectorCon::getDetector(), getDetectorEdge(), RODFDetector::getID(), ROEdge::getSpeed(), RODFDetector::getType(), hasDetector(), isFalseSource(), myAmInHighwayMode, myApproachedEdges, myDetectorsOnEdges, SINK_DETECTOR, SOURCE_DETECTOR, and WRITE_WARNING.
|
protected |
Definition at line 691 of file RODFNet.cpp.
References getDetectorEdge().
Referenced by computeTypes(), and isSource().
|
protected |
Definition at line 713 of file RODFNet.cpp.
References getAbsPos(), RODFDetectorCon::getDetector(), getDetectorEdge(), RODFDetector::getID(), ROEdge::getSpeed(), hasApproaching(), hasDetector(), isSource(), myAmInHighwayMode, myApproachingEdges, myDetectorEdges, myDetectorsOnEdges, and WRITE_WARNING.
void RODFNet::mesoJoin | ( | RODFDetectorCon & | detectors, |
RODFDetectorFlows & | flows | ||
) |
Definition at line 1061 of file RODFNet.cpp.
References buildDetectorEdgeDependencies(), RODFDetectorCon::getDetector(), RODFDetector::getPos(), RODFDetectorFlows::mesoJoin(), RODFDetectorCon::mesoJoin(), myDetectorsOnEdges, and SUMOReal.
|
inherited |
Opens the output for computed routes.
If the second parameter is true, a second file for route alternatives will be opened. The route alternatives files is simply the given name with ".alt" appended (before the ".xml"-suffix). If one of the file outputs can not be build, an IOError is thrown
[in] | filename | The (base) name of the file(s) to create |
[in] | useAlternatives | Whether a file for writing alternatives shall be created |
[in] | filename | The name of the vtype file to create, "" means no separate types |
Definition at line 110 of file RONet.cpp.
References OutputDevice::getDevice(), RONet::myRouteAlternativesOutput, RONet::myRoutesOutput, RONet::myTypesOutput, SUMO_TAG_ROUTES, OutputDevice::writeHeader(), and OutputDevice::writeXMLHeader().
Referenced by computeRoutes().
void RODFNet::removeEmptyDetectors | ( | RODFDetectorCon & | detectors, |
RODFDetectorFlows & | flows | ||
) |
Definition at line 597 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 620 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 583 of file RODFNet.cpp.
References RODFDetectorCon::getDetectors().
Referenced by startComputation().
|
protected |
Definition at line 435 of file RODFNet.cpp.
References RODFNet::IterationEdge::depth, RODFNet::IterationEdge::edge, getDetectorEdge(), RODFDetectorFlows::getFlowDefs(), RODFEdge::getFlows(), RODFDetector::getID(), hasDetector(), RODFDetectorFlows::knows(), myApproachedEdges, myApproachingEdges, FlowDef::qLKW, FlowDef::qPKW, RODFDetectorFlows::setFlows(), SUMOReal, FlowDef::vLKW, FlowDef::vPKW, and WRITE_WARNING.
|
inherited |
Computes routes described by their definitions and saves them.
As long a vehicle with a departure time not larger 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] | router | The router to use for routes computation |
[in] | options | The time until which route definitions shall be processed |
Definition at line 278 of file RONet.cpp.
References RONet::computeRoute(), ROVehicleCont::erase(), NamedObjectCont< T >::erase(), OptionsCont::getBool(), ROVehicle::getDepartureTime(), Named::getID(), ROVehicle::getID(), OptionsCont::getInt(), ROVehicle::getRouteDefinition(), ROVehicleCont::getTopVehicle(), RONet::myDiscardedRouteNo, RONet::myReadRouteNo, RONet::myRouteAlternativesOutput, RONet::myRoutes, RONet::myRoutesOutput, RONet::myTypesOutput, RONet::myVehicles, RONet::myWrittenRouteNo, ROVehicle::saveAllAsXML(), NamedObjectCont< T >::size(), toString(), and WRITE_MESSAGE.
Referenced by ROLoader::makeSingleStep(), and ROLoader::processAllRoutes().
|
inherited |
Definition at line 414 of file RONet.cpp.
References RONet::myHaveRestrictions.
Referenced by RONetHandler::parseLane().
|
private |
Definition at line 170 of file RODFNet.h.
Referenced by computeRoutesFor(), isDestination(), isFalseSource(), and isSource().
Map of edge name->list of names of edges approached by this edge.
Definition at line 165 of file RODFNet.h.
Referenced by buildApproachList(), computeRoutesFor(), hasApproached(), isDestination(), isFalseSource(), and revalidateFlows().
Map of edge name->list of names of this edge approaching edges.
Definition at line 162 of file RODFNet.h.
Referenced by buildApproachList(), hasApproaching(), isSource(), and revalidateFlows().
|
protectedinherited |
Whether no vehicle type was loaded.
Definition at line 354 of file RONet.h.
Referenced by RONet::checkVType(), and RONet::getVehicleTypeSecure().
|
mutableprotectedinherited |
List of destination edges.
Definition at line 366 of file RONet.h.
Referenced by RONet::checkSourceAndDestinations(), and RONet::getRandomDestination().
|
mutableprivate |
Definition at line 168 of file RODFNet.h.
Referenced by buildDetectorDependencies(), buildDetectorEdgeDependencies(), isDestination(), and isSource().
Definition at line 167 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 174 of file RODFNet.h.
Referenced by buildApproachList(), and RODFNet().
|
protectedinherited |
The number of discarded routes.
Definition at line 381 of file RONet.h.
Referenced by RONet::saveAndRemoveRoutesUntil().
|
protectedinherited |
Known edges.
Definition at line 343 of file RONet.h.
Referenced by RONet::addEdge(), RONet::checkSourceAndDestinations(), RONet::getEdge(), RONet::getEdgeMap(), RONet::getEdgeNo(), and RONet::~RONet().
|
protectedinherited |
Whether the network contains edges which not all vehicles may pass.
Definition at line 387 of file RONet.h.
Referenced by RONet::hasRestrictions(), and RONet::setRestrictionFound().
|
mutableprivate |
Definition at line 171 of file RODFNet.h.
Referenced by computeTypes().
|
mutableprivate |
Definition at line 171 of file RODFNet.h.
Referenced by computeTypes().
|
private |
Definition at line 177 of file RODFNet.h.
Referenced by buildApproachList(), and RODFNet().
|
protectedinherited |
Known nodes.
Definition at line 340 of file RONet.h.
Referenced by RONet::addNode(), RONet::getNode(), and RONet::~RONet().
|
protectedinherited |
The number of read routes.
Definition at line 378 of file RONet.h.
Referenced by RONet::addVehicle(), and RONet::saveAndRemoveRoutesUntil().
|
protectedinherited |
The file to write the computed route alternatives into.
Definition at line 372 of file RONet.h.
Referenced by RONet::closeOutput(), RONet::openOutput(), and RONet::saveAndRemoveRoutesUntil().
|
protectedinherited |
Known routes.
Definition at line 357 of file RONet.h.
Referenced by RONet::addRouteDef(), RONet::getRouteDef(), RONet::saveAndRemoveRoutesUntil(), and RONet::~RONet().
|
protectedinherited |
The file to write the computed routes into.
Definition at line 369 of file RONet.h.
Referenced by RONet::closeOutput(), RONet::openOutput(), and RONet::saveAndRemoveRoutesUntil().
|
mutableprivate |
Definition at line 171 of file RODFNet.h.
Referenced by computeTypes().
|
mutableprotectedinherited |
List of source edges.
Definition at line 363 of file RONet.h.
Referenced by RONet::checkSourceAndDestinations(), and RONet::getRandomSource().
|
mutableprivate |
Definition at line 171 of file RODFNet.h.
Referenced by computeTypes().
|
protectedinherited |
The file to write the vehicle types into.
Definition at line 375 of file RONet.h.
Referenced by RONet::closeOutput(), RONet::openOutput(), and RONet::saveAndRemoveRoutesUntil().
|
protectedinherited |
Known vehicles.
Definition at line 360 of file RONet.h.
Referenced by RONet::addVehicle(), RONet::furtherStored(), RONet::getVehicles(), RONet::saveAndRemoveRoutesUntil(), and RONet::~RONet().
|
protectedinherited |
Known vehicle types.
Definition at line 346 of file RONet.h.
Referenced by RONet::addVehicleType(), RONet::checkVType(), RONet::getVehicleTypeSecure(), RONet::RONet(), and RONet::~RONet().
|
protectedinherited |
|
protectedinherited |
A distribution of vehicle types (probability->vehicle type)
Definition at line 351 of file RONet.h.
Referenced by RONet::addVTypeDistribution(), RONet::checkVType(), and RONet::getVehicleTypeSecure().
|
protectedinherited |
The number of written routes.
Definition at line 384 of file RONet.h.
Referenced by RONet::saveAndRemoveRoutesUntil().