Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Replace todo direct access with consider methods; guided or not
[simgrid.git] / src / mc / api / guide / BasicGuide.hpp
index 4fcd9f6..daa5733 100644 (file)
@@ -26,6 +26,18 @@ public:
     return std::make_pair(-1, 0.0);
   }
   void execute_next(aid_t aid, RemoteApp& app) override { return; }
+
+  void consider_best() override
+  {
+    for (auto& [_, actor] : actors_to_run_) {
+      if (actor.is_todo())
+        return;
+      if (actor.is_enabled() and not actor.is_done()) {
+        actor.mark_todo();
+        return;
+      }
+    }
+  }
 };
 
 } // namespace simgrid::mc