]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Model/src/main.cpp
El make_tar va a usar el numero de REV en breve
[z.facultad/75.42/plaqui.git] / Model / src / main.cpp
index 1151dcfa642feb2970f9e59e453a38f37ad92956..8671daa9780011119fd8efbcc3d5ba9a3c68b54e 100644 (file)
@@ -19,9 +19,14 @@ int main(int argc, char *argv[])
        Simulator *sim = new Simulator(argv[1]);
 
        int i=0;
        Simulator *sim = new Simulator(argv[1]);
 
        int i=0;
-       while (i<10) {
-               sim->simulate();
+       while (i<5) {
+               if (i==1) {
+                       sim->set_open("exclusa6", false);
+                       std::cout << "apagando" << std::endl;
+               }
                i++;
                i++;
+               sim->simulate();
+               std::cout << sim->get_state_as_xml() << std::endl << std::endl;
        }
 
        delete sim;
        }
 
        delete sim;