X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/f61a5ebd00d4620af70c3780ba821f5af68def1c..b3b888e4ef034ddc35249ba97ea68ea3fb755ab2:/Model/include/simulator.h diff --git a/Model/include/simulator.h b/Model/include/simulator.h index e19a038..3802602 100644 --- a/Model/include/simulator.h +++ b/Model/include/simulator.h @@ -51,6 +51,9 @@ public: enum {PUMP, UNION, SPLITTER, CONDUCT, EXCLUSA, TANK, DRAINAGE}; bool set_open(const std::string &name, bool open = true); + + /// Dice si el simulador está simulando una planta + bool is_ok() { return is_load_ok; } protected: // Los mantengo en listas separadas para ahorrar // CPU y no tener que usar dinamic_cast @@ -83,6 +86,7 @@ protected: // Frame. Define el orden para los cuadros del XML unsigned long int frame; + bool is_load_ok; }; }