X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/70d2e24643727ab1ea48e1793d609d27b7d21fed..7e74b790d290cd7d776349503bb361c47933c01f:/Model/src/conduct.cpp?ds=sidebyside diff --git a/Model/src/conduct.cpp b/Model/src/conduct.cpp index 4a4e731..02fe3a6 100644 --- a/Model/src/conduct.cpp +++ b/Model/src/conduct.cpp @@ -1,6 +1,5 @@ #include "conduct.h" -#include using namespace PlaQui::Model; @@ -54,7 +53,7 @@ void Conduct::update(int dir) // Si ya me actualice, no lo tengo que hacer de nuevo if (updated) return; // Seteo mi actualizar en true para evitar entrar de nuevo -// actual_flow = 99999; + actual_flow = 99999; updated = true; switch (dir) { case IN: @@ -68,11 +67,18 @@ void Conduct::update(int dir) void Conduct::simulate() { if (!updated) { + std::cout << name << "::sin actualizar!" << std::endl; return; } std::cout << name << "::Flujo actual = " << actual_flow << std::endl; updated = false; - actual_flow = 99999; +} + +void Conduct::get_state_as_xml(std::stringstream &out) +{ + out << "\t" << std::endl; + out << "\t\t" << actual_flow << "" << std::endl; + out << "\t" << std::endl; }