From 1e28e573c2263f78184cb12d054f7c3177b31f60 Mon Sep 17 00:00:00 2001 From: Romain BERNARD <romain.bernard@uca.fr> Date: Tue, 18 Jun 2024 19:04:23 +0200 Subject: [PATCH] add insertion status enum to make debugging easier --- src/routes/vehicle/propagation/SAEVRouteChangelist.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/routes/vehicle/propagation/SAEVRouteChangelist.h b/src/routes/vehicle/propagation/SAEVRouteChangelist.h index 790c534..6db14fb 100644 --- a/src/routes/vehicle/propagation/SAEVRouteChangelist.h +++ b/src/routes/vehicle/propagation/SAEVRouteChangelist.h @@ -15,6 +15,16 @@ * To allow comparison and ordering between multiple insertions if necessary, it also memorizes a score associated with this constraint propagation (lower is better) */ class SAEVRouteChangelist { +public: + enum class InsertionStatus{ + SUCCESS, + FAILURE_PRECONDITION_TW, + FAILURE_PRECONDITION_WEIGHT,//To check if you need to remove a request, check status > FAILURE_PRECONDITION_WEIGHT + FAILURE_MIN, + FAILURE_MAX, + FAILURE_DELTA_MIN, + FAILURE_DELTA_MAX + }; private: SAEVRoute * const _routePtr; const size_t _requestId; -- GitLab