Public Member Functions | Data Fields

Node Class Reference

Node of the link graph. More...

#include <linkgraph.h>

Inheritance diagram for Node:
GraphItem

Public Member Functions

 ~Node ()
 Clear a node on destruction to delete paths that might remain.
void Init (StationID st=INVALID_STATION, uint demand=0)
 Create a node or clear it.
uint MonthlySupply (Date last_compression) const

Data Fields

uint supply
 Supply at the station.
uint demand
 Acceptance at the station.
StationID station
 Station ID.
Date last_update
 When the supply was last updated.

Detailed Description

Node of the link graph.

contains all relevant information from the associated station. It's copied so that the link graph job can work on its own data set in a separate thread.

Definition at line 48 of file linkgraph.h.


Member Function Documentation

void Node::Init ( StationID  st = INVALID_STATION,
uint  demand = 0 
) [inline]

Create a node or clear it.

Parameters:
st ID of the associated station.
sup Supply of cargo at the station last month.

Definition at line 40 of file linkgraph.cpp.

References INVALID_DATE.

Referenced by ~Node().


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