SUMO - Simulation of Urban MObility
|
An edge the jtr-router may route through. More...
#include <ROJTREdge.h>
Public Types | |
enum | EdgeType { ET_NORMAL, ET_DISTRICT, ET_SOURCE, ET_SINK } |
Possible types of edges. More... | |
Public Member Functions | |
void | addFollower (ROEdge *s, std::string dir="") |
Adds information about a connected edge. | |
void | addFollowerProbability (ROJTREdge *follower, SUMOTime begTime, SUMOTime endTime, SUMOReal probability) |
adds the information about the percentage of using a certain follower | |
ROJTREdge * | chooseNext (const ROVehicle *const veh, SUMOTime time) const |
Returns the next edge to use. | |
SUMOReal | getDistanceTo (const ROEdge *other) const |
optimistic distance heuristic for use in routing | |
ROJTREdge (const std::string &id, RONode *from, RONode *to, unsigned int index) | |
Constructor. | |
void | setTurnDefaults (const std::vector< SUMOReal > &defs) |
Sets the turning definition defaults. | |
~ROJTREdge () | |
Destructor. | |
Set-up methods | |
virtual void | addLane (ROLane *lane) |
Adds a lane to the edge while loading. | |
void | setType (EdgeType type) |
Sets the type of te edge. | |
void | buildTimeLines (const std::string &measure) |
Builds the internal representation of the travel time/effort. | |
Getter methods | |
const std::string & | getID () const |
Returns the id of the edge. | |
EdgeType | getType () const |
Returns the type of the edge. | |
SUMOReal | getLength () const |
Returns the length of the edge. | |
unsigned int | getNumericalID () const |
Returns the index (numeric id) of the edge. | |
SUMOReal | getSpeed () const |
Returns the speed allowed on this edge. | |
unsigned int | getLaneNo () const |
Returns the number of lanes this edge has. | |
RONode * | getFromNode () const |
Returns the node this edge starts at. | |
RONode * | getToNode () const |
Returns the node this edge ends at. | |
bool | isConnectedTo (const ROEdge *const e) const |
returns the information whether this edge is directly connected to the given | |
bool | prohibits (const ROVehicle *const vehicle) const |
Returns whether this edge prohibits the given vehicle to pass it. | |
SVCPermissions | getPermissions () const |
bool | allFollowersProhibit (const ROVehicle *const vehicle) const |
Returns whether this edge succeding edges prohibit the given vehicle to pass them. | |
Methods for getting/setting travel time and cost information | |
void | addEffort (SUMOReal value, SUMOReal timeBegin, SUMOReal timeEnd) |
Adds a weight value. | |
void | addTravelTime (SUMOReal value, SUMOReal timeBegin, SUMOReal timeEnd) |
Adds a travel time value. | |
unsigned int | getNoFollowing () const |
Returns the number of edges this edge is connected to. | |
ROEdge * | getFollower (unsigned int pos) const |
Returns the edge at the given position from the list of reachable edges. | |
SUMOReal | getEffort (const ROVehicle *const veh, SUMOReal time) const |
Returns the effort for this edge. | |
SUMOReal | getTravelTime (const ROVehicle *const veh, SUMOReal time) const |
Returns the travel time for this edge. | |
SUMOReal | getMinimumTravelTime (const ROVehicle *const veh) const |
Returns the travel time for this edge without using any stored timeLine. | |
SUMOReal | getCOEffort (const ROVehicle *const veh, SUMOReal time) const |
SUMOReal | getCO2Effort (const ROVehicle *const veh, SUMOReal time) const |
SUMOReal | getPMxEffort (const ROVehicle *const veh, SUMOReal time) const |
SUMOReal | getHCEffort (const ROVehicle *const veh, SUMOReal time) const |
SUMOReal | getNOxEffort (const ROVehicle *const veh, SUMOReal time) const |
SUMOReal | getFuelEffort (const ROVehicle *const veh, SUMOReal time) const |
SUMOReal | getNoiseEffort (const ROVehicle *const veh, SUMOReal time) const |
Static Public Member Functions | |
static ROEdge * | dictionary (size_t index) |
Returns the ROEdge at the index. | |
static size_t | dictSize () |
Returns the number of edges. | |
static void | setTimeLineOptions (bool useBoundariesOnOverrideTT, bool useBoundariesOnOverrideE, bool interpolate) |
Protected Member Functions | |
bool | getStoredEffort (SUMOReal time, SUMOReal &ret) const |
Retrieves the stored effort. | |
Protected Attributes | |
SVCPermissions | myCombinedPermissions |
The list of allowed vehicle classes combined across lanes. | |
ValueTimeLine< SUMOReal > | myEfforts |
Container storing passing time varying over time for the edge. | |
std::vector< ROEdge * > | myFollowingEdges |
List of edges that may be approached from this edge. | |
RONode * | myFromNode |
The nodes this edge is connecting. | |
std::string | myID |
The id of the edge. | |
unsigned int | myIndex |
The index (numeric id) of the edge. | |
std::vector< ROLane * > | myLanes |
This edge's lanes. | |
SUMOReal | myLength |
The length of the edge. | |
SUMOReal | mySpeed |
The maximum speed allowed on this edge. | |
RONode * | myToNode |
ValueTimeLine< SUMOReal > | myTravelTimes |
Container storing passing time varying over time for the edge. | |
EdgeType | myType |
The type of the edge. | |
bool | myUsingETimeLine |
Information whether the time line shall be used instead of the length value. | |
bool | myUsingTTTimeLine |
Information whether the time line shall be used instead of the length value. | |
Static Protected Attributes | |
static std::vector< ROEdge * > | myEdges |
static bool | myHaveEWarned = false |
Information whether the edge has reported missing weights. | |
static bool | myHaveTTWarned = false |
Information whether the edge has reported missing weights. | |
static bool | myInterpolate = false |
Information whether to interpolate at interval boundaries. | |
static bool | myUseBoundariesOnOverrideE = false |
Whether overriding weight boundaries shall be reported. | |
static bool | myUseBoundariesOnOverrideTT = false |
Whether overriding weight boundaries shall be reported. | |
Private Types | |
typedef std::map< ROJTREdge *, ValueTimeLine< SUMOReal > * > | FollowerUsageCont |
Definition of a map that stores the probabilities of using a certain follower over time. | |
Private Member Functions | |
ROJTREdge & | operator= (const ROJTREdge &src) |
invalidated assignment operator | |
ROJTREdge (const ROJTREdge &src) | |
invalidated copy constructor | |
Private Attributes | |
FollowerUsageCont | myFollowingDefs |
Storage for the probabilities of using a certain follower over time. | |
std::vector< SUMOReal > | myParsedTurnings |
The defaults for turnings. |
An edge the jtr-router may route through.
A router edge extended by the definition about the probability a vehicle chooses a certain following edge over time.
Definition at line 57 of file ROJTREdge.h.
typedef std::map<ROJTREdge*, ValueTimeLine<SUMOReal>*> ROJTREdge::FollowerUsageCont [private] |
Definition of a map that stores the probabilities of using a certain follower over time.
Definition at line 113 of file ROJTREdge.h.
enum ROEdge::EdgeType [inherited] |
ROJTREdge::ROJTREdge | ( | const std::string & | id, |
RONode * | from, | ||
RONode * | to, | ||
unsigned int | index | ||
) |
Constructor.
[in] | id | The id of the edge |
[in] | from | The node the edge begins at |
[in] | to | The node the edge ends at |
[in] | index | The numeric id of the edge |
Definition at line 48 of file ROJTREdge.cpp.
ROJTREdge::ROJTREdge | ( | const ROJTREdge & | src | ) | [private] |
invalidated copy constructor
void ROEdge::addEffort | ( | SUMOReal | value, |
SUMOReal | timeBegin, | ||
SUMOReal | timeEnd | ||
) | [inherited] |
Adds a weight value.
[in] | value | The value to add |
[in] | timeBegin | The begin time of the interval the given value is valid for [s] |
[in] | timeEnd | The end time of the interval the given value is valid for [s] |
Definition at line 111 of file ROEdge.cpp.
References ValueTimeLine< T >::add(), ROEdge::myEfforts, and ROEdge::myUsingETimeLine.
Referenced by ROLoader::EdgeFloatTimeLineRetriever_EdgeWeight::addEdgeWeight().
void ROJTREdge::addFollower | ( | ROEdge * | s, |
std::string | dir = "" |
||
) | [virtual] |
Adds information about a connected edge.
Makes this edge know the given following edge. Calls ROEdge::addFollower.
Additionally it generates the entry for the given following edge in myFollowingDefs.
[in] | s | The following edge |
Reimplemented from ROEdge.
Definition at line 60 of file ROJTREdge.cpp.
References myFollowingDefs.
void ROJTREdge::addFollowerProbability | ( | ROJTREdge * | follower, |
SUMOTime | begTime, | ||
SUMOTime | endTime, | ||
SUMOReal | probability | ||
) |
adds the information about the percentage of using a certain follower
[in] | follower | The following edge |
[in] | begTime | Time begin for which this probability is valid |
[in] | endTime | Time end for which this probability is valid |
[in] | probability | The probability to use the given follower |
Definition at line 70 of file ROJTREdge.cpp.
References ROEdge::getID(), myFollowingDefs, and WRITE_ERROR.
Referenced by ROJTRTurnDefLoader::addToEdge().
void ROEdge::addLane | ( | ROLane * | lane | ) | [virtual, inherited] |
Adds a lane to the edge while loading.
The lane's length is adapted. Additionally, the information about allowed/disallowed vehicle classes is patched using the information stored in the lane.
[in] | lane | The lane to add |
Definition at line 86 of file ROEdge.cpp.
References ROLane::getLength(), ROLane::getPermissions(), ROLane::getSpeed(), ROEdge::myCombinedPermissions, ROEdge::myLanes, ROEdge::myLength, ROEdge::mySpeed, and SUMOReal.
Referenced by RONetHandler::parseLane().
void ROEdge::addTravelTime | ( | SUMOReal | value, |
SUMOReal | timeBegin, | ||
SUMOReal | timeEnd | ||
) | [inherited] |
Adds a travel time value.
[in] | value | The value to add |
[in] | timeBegin | The begin time of the interval the given value is valid for [s] |
[in] | timeEnd | The end time of the interval the given value is valid for [s] |
Definition at line 118 of file ROEdge.cpp.
References ValueTimeLine< T >::add(), ROEdge::myTravelTimes, and ROEdge::myUsingTTTimeLine.
Referenced by ROLoader::EdgeFloatTimeLineRetriever_EdgeTravelTime::addEdgeWeight().
bool ROEdge::allFollowersProhibit | ( | const ROVehicle *const | vehicle | ) | const [inherited] |
Returns whether this edge succeding edges prohibit the given vehicle to pass them.
[in] | vehicle | The vehicle for which the information has to be returned |
Definition at line 333 of file ROEdge.cpp.
References ROEdge::myFollowingEdges.
Referenced by chooseNext().
void ROEdge::buildTimeLines | ( | const std::string & | measure | ) | [inherited] |
Builds the internal representation of the travel time/effort.
Should be called after weights / travel times have been loaded.
In the case "weight-attribute" is one of "CO", "CO2", "HC", "NOx", "PMx", or "fuel" the proper value (departs/s) is computed and multiplied with the travel time.
[in] | measure | The name of the measure to use. |
Definition at line 302 of file ROEdge.cpp.
References HelpersHBEFA::computeCO(), HelpersHBEFA::computeCO2(), HelpersHBEFA::computeFuel(), HelpersHBEFA::computeHC(), HelpersHBEFA::computeNOx(), HelpersHBEFA::computePMx(), ValueTimeLine< T >::fillGaps(), ROEdge::myEfforts, ROEdge::myLength, ROEdge::mySpeed, ROEdge::myTravelTimes, ROEdge::myUseBoundariesOnOverrideE, ROEdge::myUseBoundariesOnOverrideTT, ROEdge::myUsingETimeLine, ROEdge::myUsingTTTimeLine, SUMOReal, and SVE_UNKNOWN.
ROJTREdge * ROJTREdge::chooseNext | ( | const ROVehicle *const | veh, |
SUMOTime | time | ||
) | const |
Returns the next edge to use.
[in] | veh | The vehicle to choose the next edge for |
[in] | time | The time at which the next edge shall be entered |
Definition at line 82 of file ROJTREdge.cpp.
References RandomDistributor< T >::add(), ROEdge::allFollowersProhibit(), RandomDistributor< T >::get(), RandomDistributor< T >::getOverallProb(), myFollowingDefs, ROEdge::myFollowingEdges, myParsedTurnings, and ROEdge::prohibits().
Referenced by ROJTRRouter::compute().
ROEdge * ROEdge::dictionary | ( | size_t | index | ) | [static, inherited] |
Returns the ROEdge at the index.
Definition at line 344 of file ROEdge.cpp.
References ROEdge::myEdges.
static size_t ROEdge::dictSize | ( | ) | [inline, static, inherited] |
SUMOReal ROEdge::getCO2Effort | ( | const ROVehicle *const | veh, |
SUMOReal | time | ||
) | const [inherited] |
Definition at line 180 of file ROEdge.cpp.
References HelpersHBEFA::computeDefaultCO2(), DEFAULT_VEH_ACCEL, DEFAULT_VEH_SIGMA, SUMOVTypeParameter::emissionClass, SUMOVTypeParameter::get(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::mySpeed, SUMO_ATTR_ACCEL, SUMO_ATTR_SIGMA, and SUMOReal.
Referenced by computeRoutes().
SUMOReal ROEdge::getCOEffort | ( | const ROVehicle *const | veh, |
SUMOReal | time | ||
) | const [inherited] |
Definition at line 168 of file ROEdge.cpp.
References HelpersHBEFA::computeDefaultCO(), DEFAULT_VEH_ACCEL, DEFAULT_VEH_SIGMA, SUMOVTypeParameter::emissionClass, SUMOVTypeParameter::get(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::mySpeed, SUMO_ATTR_ACCEL, SUMO_ATTR_SIGMA, and SUMOReal.
Referenced by computeRoutes().
SUMOReal ROEdge::getDistanceTo | ( | const ROEdge * | other | ) | const [inherited] |
optimistic distance heuristic for use in routing
Definition at line 135 of file ROEdge.cpp.
References Position::distanceTo2D(), ROEdge::getFromNode(), RONode::getPosition(), and ROEdge::getToNode().
SUMOReal ROEdge::getEffort | ( | const ROVehicle *const | veh, |
SUMOReal | time | ||
) | const [inherited] |
Returns the effort for this edge.
[in] | veh | The vehicle for which the effort on this edge shall be retrieved |
[in] | time | The tim for which the effort shall be returned [s] |
Definition at line 125 of file ROEdge.cpp.
References ROEdge::getStoredEffort(), ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::myLength, ROEdge::mySpeed, and SUMOReal.
ROEdge* ROEdge::getFollower | ( | unsigned int | pos | ) | const [inline, inherited] |
Returns the edge at the given position from the list of reachable edges.
[in] | pos | The position of the list within the list of following |
Definition at line 277 of file ROEdge.h.
References ROEdge::myFollowingEdges.
Referenced by RODFRouteCont::addAllEndFollower(), and RODFNet::buildApproachList().
RONode* ROEdge::getFromNode | ( | ) | const [inline, inherited] |
Returns the node this edge starts at.
Definition at line 196 of file ROEdge.h.
References ROEdge::myFromNode.
Referenced by RODFNet::buildApproachList(), AGPosition::compute2dPosition(), and ROEdge::getDistanceTo().
SUMOReal ROEdge::getFuelEffort | ( | const ROVehicle *const | veh, |
SUMOReal | time | ||
) | const [inherited] |
Definition at line 228 of file ROEdge.cpp.
References HelpersHBEFA::computeDefaultFuel(), DEFAULT_VEH_ACCEL, DEFAULT_VEH_SIGMA, SUMOVTypeParameter::emissionClass, SUMOVTypeParameter::get(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::mySpeed, SUMO_ATTR_ACCEL, SUMO_ATTR_SIGMA, and SUMOReal.
Referenced by computeRoutes().
SUMOReal ROEdge::getHCEffort | ( | const ROVehicle *const | veh, |
SUMOReal | time | ||
) | const [inherited] |
Definition at line 204 of file ROEdge.cpp.
References HelpersHBEFA::computeDefaultHC(), DEFAULT_VEH_ACCEL, DEFAULT_VEH_SIGMA, SUMOVTypeParameter::emissionClass, SUMOVTypeParameter::get(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::mySpeed, SUMO_ATTR_ACCEL, SUMO_ATTR_SIGMA, and SUMOReal.
Referenced by computeRoutes().
const std::string& ROEdge::getID | ( | ) | const [inline, inherited] |
Returns the id of the edge.
Definition at line 148 of file ROEdge.h.
References ROEdge::myID.
Referenced by RONet::addEdge(), addFollowerProbability(), RODFNet::buildApproachList(), RODFNet::buildEdgeFlowMap(), ROJTRRouter::compute(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), AGStreet::getName(), RODFNet::idComp::operator()(), and AGStreet::print().
unsigned int ROEdge::getLaneNo | ( | ) | const [inline, inherited] |
Returns the number of lanes this edge has.
Definition at line 188 of file ROEdge.h.
References ROEdge::myLanes.
Referenced by RODFDetectorHandler::myStartElement().
SUMOReal ROEdge::getLength | ( | ) | const [inline, inherited] |
Returns the length of the edge.
Definition at line 165 of file ROEdge.h.
References ROEdge::myLength.
Referenced by AGStreet::AGStreet(), RODFNet::buildRoutes(), RODFNet::getAbsPos(), AGStreet::getLength(), and AGStreet::print().
SUMOReal ROEdge::getMinimumTravelTime | ( | const ROVehicle *const | veh | ) | const [inherited] |
Returns the travel time for this edge without using any stored timeLine.
[in] | veh | The vehicle for which the effort on this edge shall be retrieved |
[in] | time | The time for which the effort shall be returned [s] |
Definition at line 162 of file ROEdge.cpp.
References ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::myLength, ROEdge::mySpeed, and SUMOReal.
Referenced by computeRoutes(), and ROEdge::getTravelTime().
unsigned int ROEdge::getNoFollowing | ( | ) | const [inherited] |
Returns the number of edges this edge is connected to.
If this edge's type is set to "sink", 0 is returned, otherwise the number of edges stored in "myFollowingEdges".
Definition at line 276 of file ROEdge.cpp.
References ROEdge::ET_SINK, ROEdge::getType(), and ROEdge::myFollowingEdges.
Referenced by RODFRouteCont::addAllEndFollower(), and RODFNet::buildApproachList().
SUMOReal ROEdge::getNoiseEffort | ( | const ROVehicle *const | veh, |
SUMOReal | time | ||
) | const [inherited] |
Definition at line 240 of file ROEdge.cpp.
References HelpersHarmonoise::computeNoise(), SUMOVTypeParameter::emissionClass, ROEdge::getStoredEffort(), ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::mySpeed, and SUMOReal.
Referenced by computeRoutes().
SUMOReal ROEdge::getNOxEffort | ( | const ROVehicle *const | veh, |
SUMOReal | time | ||
) | const [inherited] |
Definition at line 216 of file ROEdge.cpp.
References HelpersHBEFA::computeDefaultNOx(), DEFAULT_VEH_ACCEL, DEFAULT_VEH_SIGMA, SUMOVTypeParameter::emissionClass, SUMOVTypeParameter::get(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::mySpeed, SUMO_ATTR_ACCEL, SUMO_ATTR_SIGMA, and SUMOReal.
Referenced by computeRoutes().
unsigned int ROEdge::getNumericalID | ( | ) | const [inline, inherited] |
Returns the index (numeric id) of the edge.
Definition at line 172 of file ROEdge.h.
References ROEdge::myIndex.
SVCPermissions ROEdge::getPermissions | ( | ) | const [inline, inherited] |
Definition at line 228 of file ROEdge.h.
References ROEdge::myCombinedPermissions.
SUMOReal ROEdge::getPMxEffort | ( | const ROVehicle *const | veh, |
SUMOReal | time | ||
) | const [inherited] |
Definition at line 192 of file ROEdge.cpp.
References HelpersHBEFA::computeDefaultPMx(), DEFAULT_VEH_ACCEL, DEFAULT_VEH_SIGMA, SUMOVTypeParameter::emissionClass, SUMOVTypeParameter::get(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::mySpeed, SUMO_ATTR_ACCEL, SUMO_ATTR_SIGMA, and SUMOReal.
Referenced by computeRoutes().
SUMOReal ROEdge::getSpeed | ( | ) | const [inline, inherited] |
Returns the speed allowed on this edge.
Definition at line 180 of file ROEdge.h.
References ROEdge::mySpeed.
Referenced by RODFNet::buildEdgeFlowMap(), RODFNet::buildRoutes(), RODFNet::computeRoutesFor(), RODFNet::isDestination(), RODFNet::isFalseSource(), and RODFNet::isSource().
bool ROEdge::getStoredEffort | ( | SUMOReal | time, |
SUMOReal & | ret | ||
) | const [protected, inherited] |
Retrieves the stored effort.
[in] | veh | The vehicle for which the effort on this edge shall be retrieved |
[in] | time | The tim for which the effort shall be returned |
Definition at line 251 of file ROEdge.cpp.
References ValueTimeLine< T >::describesTime(), ValueTimeLine< T >::getSplitTime(), ValueTimeLine< T >::getValue(), ROEdge::myEfforts, ROEdge::myHaveEWarned, ROEdge::myID, ROEdge::myInterpolate, ROEdge::myTravelTimes, ROEdge::myUsingETimeLine, SUMOReal, toString(), and WRITE_WARNING.
Referenced by ROEdge::getCO2Effort(), ROEdge::getCOEffort(), ROEdge::getEffort(), ROEdge::getFuelEffort(), ROEdge::getHCEffort(), ROEdge::getNoiseEffort(), ROEdge::getNOxEffort(), and ROEdge::getPMxEffort().
RONode* ROEdge::getToNode | ( | ) | const [inline, inherited] |
Returns the node this edge ends at.
Definition at line 204 of file ROEdge.h.
References ROEdge::myToNode.
Referenced by RODFNet::buildApproachList(), AGPosition::compute2dPosition(), and ROEdge::getDistanceTo().
SUMOReal ROEdge::getTravelTime | ( | const ROVehicle *const | veh, |
SUMOReal | time | ||
) | const [inherited] |
Returns the travel time for this edge.
[in] | veh | The vehicle for which the effort on this edge shall be retrieved |
[in] | time | The time for which the effort shall be returned [s] |
Definition at line 141 of file ROEdge.cpp.
References ValueTimeLine< T >::describesTime(), ROEdge::getMinimumTravelTime(), ValueTimeLine< T >::getSplitTime(), ValueTimeLine< T >::getValue(), ROEdge::myHaveTTWarned, ROEdge::myID, ROEdge::myInterpolate, ROEdge::myTravelTimes, ROEdge::myUsingTTTimeLine, SUMOReal, toString(), and WRITE_WARNING.
Referenced by ROJTRRouter::compute(), computeRoutes(), ROEdge::getCO2Effort(), ROEdge::getCOEffort(), ROEdge::getFuelEffort(), ROEdge::getHCEffort(), ROEdge::getNOxEffort(), and ROEdge::getPMxEffort().
EdgeType ROEdge::getType | ( | ) | const [inline, inherited] |
Returns the type of the edge.
Definition at line 157 of file ROEdge.h.
References ROEdge::myType.
Referenced by RONet::checkSourceAndDestinations(), ROJTRRouter::compute(), and ROEdge::getNoFollowing().
bool ROEdge::isConnectedTo | ( | const ROEdge *const | e | ) | const [inline, inherited] |
returns the information whether this edge is directly connected to the given
[in] | e | The edge which may be connected |
Definition at line 214 of file ROEdge.h.
References ROEdge::myFollowingEdges.
bool ROEdge::prohibits | ( | const ROVehicle *const | vehicle | ) | const [inline, inherited] |
Returns whether this edge prohibits the given vehicle to pass it.
[in] | vehicle | The vehicle for which the information has to be returned |
Definition at line 223 of file ROEdge.h.
References ROVehicle::getVClass(), and ROEdge::myCombinedPermissions.
Referenced by chooseNext(), and ROJTRRouter::compute().
static void ROEdge::setTimeLineOptions | ( | bool | useBoundariesOnOverrideTT, |
bool | useBoundariesOnOverrideE, | ||
bool | interpolate | ||
) | [inline, static, inherited] |
Definition at line 353 of file ROEdge.h.
References ROEdge::myInterpolate, ROEdge::myUseBoundariesOnOverrideE, and ROEdge::myUseBoundariesOnOverrideTT.
Referenced by RODUAEdgeBuilder::RODUAEdgeBuilder().
void ROJTREdge::setTurnDefaults | ( | const std::vector< SUMOReal > & | defs | ) |
Sets the turning definition defaults.
[in] | def | The turning percentage defaults |
Definition at line 117 of file ROJTREdge.cpp.
References ROEdge::myFollowingEdges, myParsedTurnings, and SUMOReal.
void ROEdge::setType | ( | ROEdge::EdgeType | type | ) | [inherited] |
Sets the type of te edge.
[in] | type | The new type for the edge |
Definition at line 296 of file ROEdge.cpp.
References ROEdge::myType.
Referenced by loadJTRDefinitions(), ROJTRTurnDefLoader::myCharacters(), ROJTRTurnDefLoader::myStartElement(), RONetHandler::parseDistrict(), and RONetHandler::parseEdge().
SVCPermissions ROEdge::myCombinedPermissions [protected, inherited] |
The list of allowed vehicle classes combined across lanes.
Definition at line 425 of file ROEdge.h.
Referenced by ROEdge::addLane(), ROEdge::getPermissions(), and ROEdge::prohibits().
std::vector< ROEdge * > ROEdge::myEdges [static, protected, inherited] |
Definition at line 430 of file ROEdge.h.
Referenced by ROEdge::dictionary(), ROEdge::dictSize(), and ROEdge::ROEdge().
ValueTimeLine<SUMOReal> ROEdge::myEfforts [mutable, protected, inherited] |
Container storing passing time varying over time for the edge.
Definition at line 396 of file ROEdge.h.
Referenced by ROEdge::addEffort(), ROEdge::buildTimeLines(), and ROEdge::getStoredEffort().
FollowerUsageCont ROJTREdge::myFollowingDefs [private] |
Storage for the probabilities of using a certain follower over time.
Definition at line 116 of file ROJTREdge.h.
Referenced by addFollower(), addFollowerProbability(), chooseNext(), and ~ROJTREdge().
std::vector<ROEdge*> ROEdge::myFollowingEdges [protected, inherited] |
List of edges that may be approached from this edge.
Definition at line 411 of file ROEdge.h.
Referenced by ROEdge::addFollower(), ROEdge::allFollowersProhibit(), chooseNext(), ROEdge::getFollower(), ROEdge::getNoFollowing(), ROEdge::isConnectedTo(), and setTurnDefaults().
RONode* ROEdge::myFromNode [protected, inherited] |
The nodes this edge is connecting.
Definition at line 428 of file ROEdge.h.
Referenced by ROEdge::getFromNode().
bool ROEdge::myHaveEWarned = false [static, protected, inherited] |
Information whether the edge has reported missing weights.
Definition at line 406 of file ROEdge.h.
Referenced by ROEdge::getStoredEffort().
bool ROEdge::myHaveTTWarned = false [static, protected, inherited] |
Information whether the edge has reported missing weights.
Definition at line 408 of file ROEdge.h.
Referenced by ROEdge::getTravelTime().
std::string ROEdge::myID [protected, inherited] |
The id of the edge.
Definition at line 376 of file ROEdge.h.
Referenced by ROEdge::getID(), ROEdge::getStoredEffort(), and ROEdge::getTravelTime().
unsigned int ROEdge::myIndex [protected, inherited] |
The index (numeric id) of the edge.
Definition at line 382 of file ROEdge.h.
Referenced by ROEdge::getNumericalID().
bool ROEdge::myInterpolate = false [static, protected, inherited] |
Information whether to interpolate at interval boundaries.
Definition at line 403 of file ROEdge.h.
Referenced by ROEdge::getStoredEffort(), ROEdge::getTravelTime(), and ROEdge::setTimeLineOptions().
std::vector<ROLane*> ROEdge::myLanes [protected, inherited] |
This edge's lanes.
Definition at line 422 of file ROEdge.h.
Referenced by ROEdge::addLane(), ROEdge::getLaneNo(), and ROEdge::~ROEdge().
SUMOReal ROEdge::myLength [protected, inherited] |
The length of the edge.
Definition at line 385 of file ROEdge.h.
Referenced by ROEdge::addLane(), ROEdge::buildTimeLines(), ROEdge::getEffort(), ROEdge::getLength(), and ROEdge::getMinimumTravelTime().
std::vector<SUMOReal> ROJTREdge::myParsedTurnings [private] |
The defaults for turnings.
Definition at line 119 of file ROJTREdge.h.
Referenced by chooseNext(), and setTurnDefaults().
SUMOReal ROEdge::mySpeed [protected, inherited] |
The maximum speed allowed on this edge.
Definition at line 379 of file ROEdge.h.
Referenced by ROEdge::addLane(), ROEdge::buildTimeLines(), ROEdge::getCO2Effort(), ROEdge::getCOEffort(), ROEdge::getEffort(), ROEdge::getFuelEffort(), ROEdge::getHCEffort(), ROEdge::getMinimumTravelTime(), ROEdge::getNoiseEffort(), ROEdge::getNOxEffort(), ROEdge::getPMxEffort(), and ROEdge::getSpeed().
RONode * ROEdge::myToNode [protected, inherited] |
Definition at line 428 of file ROEdge.h.
Referenced by ROEdge::getToNode().
ValueTimeLine<SUMOReal> ROEdge::myTravelTimes [mutable, protected, inherited] |
Container storing passing time varying over time for the edge.
Definition at line 389 of file ROEdge.h.
Referenced by ROEdge::addTravelTime(), ROEdge::buildTimeLines(), ROEdge::getStoredEffort(), and ROEdge::getTravelTime().
EdgeType ROEdge::myType [protected, inherited] |
The type of the edge.
Definition at line 419 of file ROEdge.h.
Referenced by ROEdge::getType(), and ROEdge::setType().
bool ROEdge::myUseBoundariesOnOverrideE = false [static, protected, inherited] |
Whether overriding weight boundaries shall be reported.
Definition at line 400 of file ROEdge.h.
Referenced by ROEdge::buildTimeLines(), and ROEdge::setTimeLineOptions().
bool ROEdge::myUseBoundariesOnOverrideTT = false [static, protected, inherited] |
Whether overriding weight boundaries shall be reported.
Definition at line 393 of file ROEdge.h.
Referenced by ROEdge::buildTimeLines(), and ROEdge::setTimeLineOptions().
bool ROEdge::myUsingETimeLine [protected, inherited] |
Information whether the time line shall be used instead of the length value.
Definition at line 398 of file ROEdge.h.
Referenced by ROEdge::addEffort(), ROEdge::buildTimeLines(), and ROEdge::getStoredEffort().
bool ROEdge::myUsingTTTimeLine [protected, inherited] |
Information whether the time line shall be used instead of the length value.
Definition at line 391 of file ROEdge.h.
Referenced by ROEdge::addTravelTime(), ROEdge::buildTimeLines(), and ROEdge::getTravelTime().