From 3ebf1efe9dce3abe7dc1b22454b1cecc71302bc2 Mon Sep 17 00:00:00 2001 From: LJ5O <75009579+LJ5O@users.noreply.github.com> Date: Mon, 13 Oct 2025 14:51:30 +0200 Subject: [PATCH] =?UTF-8?q?D=C3=A9finition=20de=20Sink=20dans=20le=20Graph?= =?UTF-8?q?=20manager?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/FactoryGraphManager.hpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/FactoryGraphManager.hpp b/src/FactoryGraphManager.hpp index 139bd2e..141daf0 100644 --- a/src/FactoryGraphManager.hpp +++ b/src/FactoryGraphManager.hpp @@ -105,7 +105,20 @@ public: break; } case SINK: { - // TODO + // Gérer le Sink + auto new_sink = new SinkSimulator( + "M_" + std::to_string(m->pool_id) + "_" + std::to_string(m->machine_id), + SinkParameters{} + ); + + _sinks.push_back(new_sink); + this->add_child(MACHINE + machine_index, new_sink); + + // PoolRouter -> Sink + out({_pool_routers.back(), artis::factory::PoolRouter::outputs::OUT_M + m->machine_id}) + >> in({new_sink, artis::factory::Sink::inputs::IN}); + + ++machine_index; break; } case SEPARATOR: {