Pump::~Pump()
{
+ delete input;
+ delete output;
}
void Pump::update(int dir)
if (updated) return;
// Me fijo si me tengo que apagar automaticamente
open = input->get_output();
+ std::cout << name << " open = " << (open?"true":"false") << std::endl;
if (active && open)
actual_flow = max_flow;
else