An edge in the link graph. More...
#include <linkgraph.h>
Public Member Functions | |
void | Init (uint distance=0) |
Create an edge. | |
uint | MonthlyCapacity (Date last_compression) const |
uint | MonthlyUsage (Date last_compression) const |
Data Fields | |
uint | distance |
Length of the link. | |
uint | capacity |
Capacity of the link. | |
uint | usage |
Usage of the link. | |
Date | last_update |
When the link was last updated. | |
NodeID | next_edge |
Destination of next valid edge starting at the same source node. | |
Static Public Attributes | |
static const uint | MIN_DISTANCE = 48 |
minimum effective distance for timeout calculation. |
An edge in the link graph.
Corresponds to a link between two stations or at least the distance between them. Edges from one node to itself contain the ID of the opposite Node of the first active edge (i.e. not just distance) in the column as next_edge.
Definition at line 74 of file linkgraph.h.
void Edge::Init | ( | uint | distance = 0 |
) | [inline] |
Create an edge.
distance | Length of the link as manhattan distance. |
Definition at line 52 of file linkgraph.cpp.
References capacity, INVALID_DATE, last_update, next_edge, and usage.
Referenced by LinkGraph::AddNode(), and LinkGraph::SetSize().