From 11d98f043e96b7b7d9a2f97b5a7297b641f97c26 Mon Sep 17 00:00:00 2001 From: fonsinchen Date: Thu, 1 May 2014 14:50:52 +0000 Subject: (svn r26549) -Change: better estimation for link capacities during full load --- src/linkgraph/refresh.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/linkgraph/refresh.h') diff --git a/src/linkgraph/refresh.h b/src/linkgraph/refresh.h index 6f3f8f9b6..eac34266d 100644 --- a/src/linkgraph/refresh.h +++ b/src/linkgraph/refresh.h @@ -23,7 +23,7 @@ */ class LinkRefresher { public: - static void Run(Vehicle *v, bool allow_merge = true); + static void Run(Vehicle *v, bool allow_merge = true, bool is_full_loading = false); protected: /** @@ -88,8 +88,9 @@ protected: HopSet *seen_hops; ///< Hops already seen. If the same hop is seen twice we stop the algorithm. This is shared between all Refreshers of the same run. CargoID cargo; ///< Cargo given in last refit order. bool allow_merge; ///< If the refresher is allowed to merge or extend link graphs. + bool is_full_loading; ///< If the vehicle is full loading. - LinkRefresher(Vehicle *v, HopSet *seen_hops, bool allow_merge); + LinkRefresher(Vehicle *v, HopSet *seen_hops, bool allow_merge, bool is_full_loading); void HandleRefit(const Order *next); void ResetRefit(); -- cgit v1.2.3-54-g00ecf