94 ROEdge(
const std::string&
id,
RONode* from,
RONode* to,
unsigned int index,
const int priority);
184 return (
unsigned int)
myLanes.size();
355 bool useBoundariesOnOverrideTT,
356 bool useBoundariesOnOverrideE,
RONode * getToNode() const
Returns the node this edge ends at.
EdgeType getType() const
Returns the type of the edge.
static bool myUseBoundariesOnOverrideTT
Whether overriding weight boundaries shall be reported.
ROEdge * getFollower(unsigned int pos) const
Returns the edge at the given position from the list of reachable edges.
A single lane the router may use.
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
SUMOReal getDistanceTo(const ROEdge *other) const
optimistic distance heuristic for use in routing
static std::vector< ROEdge * > myEdges
SUMOVehicleClass getVClass() const
static bool myInterpolate
Information whether to interpolate at interval boundaries.
EdgeType
Possible types of edges.
static ROEdge * dictionary(size_t index)
Returns the ROEdge at the index.
ValueTimeLine< SUMOReal > myTravelTimes
Container storing passing time varying over time for the edge.
virtual void addLane(ROLane *lane)
Adds a lane to the edge while loading.
SUMOReal getPMxEffort(const ROVehicle *const veh, SUMOReal time) const
SUMOReal getCO2Effort(const ROVehicle *const veh, SUMOReal time) const
An internal edge which models driving across a junction. This is currently not used for routing...
std::vector< ROEdge * > myApproachingEdges
List of edges that approached this edge.
bool isConnectedTo(const ROEdge *const e) const
returns the information whether this edge is directly connected to the given
unsigned int getLaneNo() const
Returns the number of lanes this edge has.
static bool myUseBoundariesOnOverrideE
Whether overriding weight boundaries shall be reported.
SVCPermissions myCombinedPermissions
The list of allowed vehicle classes combined across lanes.
void addTravelTime(SUMOReal value, SUMOReal timeBegin, SUMOReal timeEnd)
Adds a travel time value.
RONode * getFromNode() const
Returns the node this edge starts at.
An edge where vehicles are inserted at (no vehicle may come from back)
A vehicle as used by router.
void setType(EdgeType type)
Sets the type of te edge.
bool allFollowersProhibit(const ROVehicle *const vehicle) const
Returns whether this edge succeding edges prohibit the given vehicle to pass them.
ValueTimeLine< SUMOReal > myEfforts
Container storing passing time varying over time for the edge.
bool myUsingTTTimeLine
Information whether the time line shall be used instead of the length value.
static bool myHaveEWarned
Information whether the edge has reported missing weights.
SUMOReal myLength
The length of the edge.
bool myUsingETimeLine
Information whether the time line shall be used instead of the length value.
SUMOReal getHCEffort(const ROVehicle *const veh, SUMOReal time) const
SUMOReal getNOxEffort(const ROVehicle *const veh, SUMOReal time) const
static void setTimeLineOptions(bool useBoundariesOnOverrideTT, bool useBoundariesOnOverrideE, bool interpolate)
unsigned int getNumericalID() const
Returns the index (numeric id) of the edge.
An edge representing a whole district.
std::vector< ROLane * > myLanes
This edge's lanes.
ROEdge(const std::string &id, RONode *from, RONode *to, unsigned int index, const int priority)
Constructor.
const unsigned int myIndex
The index (numeric id) of the edge.
virtual ~ROEdge()
Destructor.
A basic edge for routing applications.
Base class for objects which have an id.
RONode *const *const myToNode
ROEdge * getApproaching(unsigned int pos) const
Returns the edge at the given position from the list of reachable edges.
SUMOReal mySpeed
The maximum speed allowed on this edge.
std::vector< ROEdge * > myFollowingEdges
List of edges that may be approached from this edge.
unsigned int getNoFollowing() const
Returns the number of edges this edge is connected to.
void addEffort(SUMOReal value, SUMOReal timeBegin, SUMOReal timeEnd)
Adds a weight value.
int getPriority() const
get edge priority (road class)
SUMOReal getFuelEffort(const ROVehicle *const veh, SUMOReal time) const
SUMOReal getLength() const
Returns the length of the edge.
unsigned int getNumApproaching() const
Returns the number of edges this edge is connected to.
bool prohibits(const ROVehicle *const vehicle) const
Returns whether this edge prohibits the given vehicle to pass it.
SUMOReal getEffort(const ROVehicle *const veh, SUMOReal time) const
Returns the effort for this edge.
void buildTimeLines(const std::string &measure)
Builds the internal representation of the travel time/effort.
bool getStoredEffort(SUMOReal time, SUMOReal &ret) const
Retrieves the stored effort.
RONode *const myFromNode
The nodes this edge is connecting.
static size_t dictSize()
Returns the number of edges.
SUMOReal getNoiseEffort(const ROVehicle *const veh, SUMOReal time) const
SUMOReal getCOEffort(const ROVehicle *const veh, SUMOReal time) const
Base class for nodes used by the router.
SUMOReal getTravelTime(const ROVehicle *const veh, SUMOReal time) const
Returns the travel time for this edge.
An edge where vehicles disappear (no vehicle may leave this edge)
static bool myHaveTTWarned
Information whether the edge has reported missing weights.
SVCPermissions getPermissions() const
virtual void addFollower(ROEdge *s, std::string dir="")
Adds information about a connected edge.
SUMOReal getMinimumTravelTime(const ROVehicle *const veh) const
Returns the travel time for this edge without using any stored timeLine.
EdgeType myType
The type of the edge.
ROEdge & operator=(const ROEdge &src)
Invalidated assignment operator.
SUMOReal getSpeed() const
Returns the speed allowed on this edge.
const int myPriority
The edge priority (road class)