- bomba->connect(canio1, IConector::OUT);
- canio1->connect(bomba, IConector::IN);
- canio1->connect(canio2, IConector::OUT);
- canio2->connect(canio1, IConector::IN);
+ union1 = new Union("union");
+ union1->set_max_flow(5);
+ salida = new Conduct("salida");
+ salida->set_max_flow(10);
+
+ bomba1->connect(canio1, IConector::OUT);
+ canio1->connect(bomba1, IConector::IN);
+ canio1->connect(union1, IConector::OUT);
+
+ bomba2->connect(canio2, IConector::OUT);
+ canio2->connect(bomba2, IConector::IN);
+ canio2->connect(union1, IConector::OUT);
+
+ union1->connect(canio1, IConector::IN);
+ union1->connect(canio2, IConector::IN);
+ union1->connect(salida, IConector::OUT);
+
+ salida->connect(union1, IConector::IN);