Public Member Functions | Data Fields | Static Public Attributes

Edge Class Reference

An edge in the link graph. More...

#include <linkgraph.h>

Inheritance diagram for Edge:
GraphItem

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.

Detailed Description

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.


Member Function Documentation

void Edge::Init ( uint  distance = 0  )  [inline]

Create an edge.

Parameters:
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().


The documentation for this class was generated from the following files: