- Now all backend classes are present (not all complete)

- Can't compile when trying to link with Python
         + check -pedantic parameter
         + when compiling main.cc there is no -I/..../Python parameter


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@321 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
fpaparel 2006-02-13 11:32:05 +00:00
parent e2a0c3f248
commit 146b3c99cc
16 changed files with 699 additions and 30 deletions

View file

@ -32,6 +32,10 @@
#include "backend/schedulable_status.hh"
#include "backend/slice.hh"
#include "backend/process.hh"
#include "backend/policy.hh"
#include "backend/policy_parameters.hh"
#include "backend/python_policy.hh"
#include "backend/python_policy_manager.hh"
#include <iostream>
#include <string>
@ -40,7 +44,8 @@
using namespace std;
using namespace sgpem;
using namespace memory;
using Glib::ustring;
int
main(int argc, char* argv[])
{
@ -63,8 +68,10 @@ main(int argc, char* argv[])
*/
start_gui(argc, argv);
PythonPolicyManager p = PythonPolicyManager::get_instance();
//SMOKE-TEST for backend classes
cout << "\n\n********************************";
/* cout << "\n\n********************************";
Process p1("P1", 0,10,1);
Process p2("P2", 0,30,2);
Process p3("P3", 5,15,3);
@ -105,7 +112,7 @@ main(int argc, char* argv[])
quale = h.get_simulation_status_at(0); //stato iniziale
cout << bool(quale) << " " << quale->get_item_at(0)->get_schedulable()->get_name();
*/
/*
smart_ptr<const sgpem::SimulationStatus> quale;
@ -128,20 +135,27 @@ main(int argc, char* argv[])
*/
//************** TEST QUEUE
cout << "\n\nTEST QUEUE\n";
/* cout << "\n\nTEST QUEUE\n";
/* SchedulableQueue sq;
sq.add_at_top(ss1);
sq.add_at_top(ss2);
SchedulableList sq;
sq.add_at_bottom(ss1);
sq.add_at_bottom(ss2);
sq.add_at_bottom(ss3);
cout << sq.get_item_at(0)->get_schedulable()->get_name() << "\n";
cout << sq.get_item_at(1)->get_schedulable()->get_name() << "\n";
cout << sq.get_item_at(2)->get_schedulable()->get_name() << "\n";
sq.insert_at(0,2);
sq.insert_at(2,0);
cout << sq.get_item_at(0)->get_schedulable()->get_name() << "\n";
cout << sq.get_item_at(1)->get_schedulable()->get_name() << "\n";
cout << sq.get_item_at(2)->get_schedulable()->get_name() << "\n";
*/
cout << "\n\nTEST POLICYPARAMETERS\n";
PolicyParameters pp;
pp.register_int("ciao", 0, 100, true, 50);
pp.set_int("ciao",1);
cout << pp.get_int("ciao");
cout << "\n\n";
return 0;
*/
return 0;
}