]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Model/src/main.cpp
* Simulador ==> Simulator fixed
[z.facultad/75.42/plaqui.git] / Model / src / main.cpp
index 3efdf8e10d70c2a7d79d50067b215018037e5dc9..1151dcfa642feb2970f9e59e453a38f37ad92956 100644 (file)
@@ -8,21 +8,15 @@
 #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) {