From 7b05b053cf092e09cdc532602d6b9ffc5149bb87 Mon Sep 17 00:00:00 2001 From: Jiri Vlasak Date: Wed, 11 Jan 2023 16:09:09 +0100 Subject: [PATCH] Add eta getter/setter --- incl/rrts.hh | 3 +++ src/rrts.cc | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/incl/rrts.hh b/incl/rrts.hh index e0930d5..0b8e363 100644 --- a/incl/rrts.hh +++ b/incl/rrts.hh @@ -135,6 +135,9 @@ public: /*! Return elapsed time. */ double scnt() const; + double eta() const; + void eta(double e); + /*! Generate JSON output. */ Json::Value json() const; diff --git a/src/rrts.cc b/src/rrts.cc index 1d66b3c..107594b 100644 --- a/src/rrts.cc +++ b/src/rrts.cc @@ -326,6 +326,18 @@ RRTS::scnt() const return this->ter_.scnt(); } +double +RRTS::eta() const +{ + return this->eta_; +} + +void +RRTS::eta(double e) +{ + this->eta_ = e; +} + Json::Value RRTS::json() const { -- 2.39.2