Public Types | |
enum | AcceptancePickup { ACCEPTANCE, PICKUP } |
Public Member Functions | |
FlowStat | GetSumFlowVia (StationID via) const |
Get the sum of flows via a specific station from this GoodsEntry. | |
void | UpdateFlowStats (StationID source, uint count, StationID next) |
Update the flow stats for "count" cargo from "source" sent to "next". | |
void | UpdateFlowStats (FlowStatSet &flow_stats, uint count, StationID next) |
Update the flow stats for a specific next station. | |
void | UpdateFlowStats (FlowStatSet &flow_stats, FlowStatSet::iterator flow_it, uint count) |
Update the flow stats for a specific entry. | |
StationID | UpdateFlowStatsTransfer (StationID source, uint count, StationID curr) |
Update the flow stats for "count" cargo that cannot be delivered here. | |
Data Fields | |
byte | acceptance_pickup |
byte | days_since_pickup |
byte | rating |
byte | last_speed |
byte | last_age |
byte | amount_fract |
Fractional part of the amount in the cargo list. | |
StationCargoList | cargo |
The cargo packets of cargo waiting in this station. | |
uint | supply |
Cargo supplied last month. | |
uint | supply_new |
Cargo supplied so far this month. | |
FlowStatMap | flows |
Planned flows through this station. | |
LinkStatMap | link_stats |
Capacities and usage statistics for outgoing links. | |
LinkGraphComponentID | last_component |
Component this station was last part of in this cargo's link graph. | |
uint | max_waiting_cargo |
Max cargo from this station waiting at any station. |
Definition at line 290 of file station_base.h.
Get the sum of flows via a specific station from this GoodsEntry.
via | Remote station to look for. |
Definition at line 3835 of file station_cmd.cpp.
References flows, and FlowStat::Via().
Referenced by LinkGraphOverlay::AddLinks().
void GoodsEntry::UpdateFlowStats | ( | FlowStatSet & | flow_stats, | |
FlowStatSet::iterator | flow_it, | |||
uint | count | |||
) |
Update the flow stats for a specific entry.
flow_stats | Flow stats to update. | |
flow_it | Iterator pointing to an entry in flow_stats. | |
count | Amount by which the flow should be increased. |
Definition at line 3765 of file station_cmd.cpp.
References FlowStat::Increase().
void GoodsEntry::UpdateFlowStats | ( | FlowStatSet & | flow_stats, | |
uint | count, | |||
StationID | next | |||
) |
Update the flow stats for a specific next station.
flow_stats | Flow stats to update. | |
count | Amount by which the flow should be increased. | |
next | Next hop for which the flow stats should be updated. |
Definition at line 3779 of file station_cmd.cpp.
References UpdateFlowStats().
Update the flow stats for "count" cargo from "source" sent to "next".
source | ID of station the cargo is from. | |
count | Amount of cargo. | |
next | ID of the station the cargo is travelling to. |
Definition at line 3799 of file station_cmd.cpp.
References flows.
Referenced by PrepareUnload(), StationCargoList::TakeFrom(), UpdateFlowStats(), and UpdateFlowStatsTransfer().
Update the flow stats for "count" cargo that cannot be delivered here.
source | ID of station where the cargo is from. | |
count | Amount of cargo. | |
curr | ID of station where it is stored for now. |
Definition at line 3813 of file station_cmd.cpp.
References flows, and UpdateFlowStats().
Referenced by StationCargoList::RerouteStalePackets().