Simulator *sim = new Simulator(argv[1]);
int i=0;
- while (i<2) {
- sim->simulate();
-
-// std::cout << sim->get_state_as_xml() << std::endl << std::endl;
+ while (i<5) {
+ if (i==1) {
+ sim->set_open("exclusa6", false);
+ std::cout << "apagando" << std::endl;
+ }
i++;
+ sim->simulate();
+ std::cout << sim->get_state_as_xml() << std::endl << std::endl;
}
delete sim;