#include "sistemaautonomo.h"
+#ifdef DEBUG
+#include <iostream>
+#endif // DEBUG
+
//--------------------------------------------------------------------------------------------
//-- Funciones Auxiliares
{
double p = 1.0;
m_plan.clear();
+#ifdef DEBUG
+ std::cout << "entorno:\n" << p_entorno->datos << "\n";
+ std::cout << "datos finales:\n" << m_datos_finales << "\n";
+#endif // DEBUG
planificar(p_entorno->datos, m_datos_finales, m_plan, p);
+#ifdef DEBUG
+ std::cout << "plan:\n" << m_plan << "\n";
+#endif // DEBUG
curr_theory = m_plan.begin();
+#ifdef DEBUG
+ if (curr_theory == m_plan.end())
+ std::cout << "No hay teorĂas\n";
+ else
+ std::cout << "curr teoria: " << &*curr_theory << "=" << curr_theory->nombre << "\n";
+#endif // DEBUG
}
//--------------------------------------------------------------------------------------------
//--
-#include <iostream> // XXX FIXME
bool CSistemaAutonomo::has_next_theory()
{
return curr_theory != m_plan.end();