#include "drainage.h"
#include "exclusa.h"
#include <unistd.h>
-#include "simulador.h"
+#include <iostream>
+#include "simulator.h"
using namespace std;
using namespace PlaQui::Model;
int main(int argc, char *argv[])
{
- Simulador *sim = new Simulador();
-
- sim->add_pump("bomba1");
- sim->add_conduct("c");
- sim->add_drainage("d");
-
- sim->connect("bomba1", "c", IConector::OUT);
- sim->connect("c", "d", IConector::OUT);
+ Simulator *sim = new Simulator(argv[1]);
int i=0;
while (i<10) {
sim->simulate();
+
+ std::cout << sim->get_state_as_xml() << std::endl << std::endl;
i++;
}