]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/trainrouteplanner.h
Follow the same path until another is significantly better
[r2c2.git] / source / libr2c2 / trainrouteplanner.h
index 79a6036e6d1fbe5b8c7a6c23a70f616a8d6c6216..32c9dadc3494671dcbe805c6fcf1ff4bee5b5247 100644 (file)
@@ -103,8 +103,8 @@ private:
        struct RoutingStep
        {
                Msp::Time::TimeDelta time;
-               Msp::Time::TimeDelta penalty;
                Msp::Time::TimeDelta cost_estimate;
+               bool preferred;
                std::vector<TrainRoutingState> trains;
                const RoutingStep *prev;
 
@@ -141,6 +141,7 @@ private:
        std::list<RoutingStep> steps;
        std::list<RoutingStep> queue;
        const RoutingStep *goal;
+       Msp::Time::TimeDelta path_switch_bias;
        Msp::Time::TimeDelta timeout;
        Result result;
        PlanningThread *thread;