- 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

@ -22,7 +22,11 @@
#define POLICY_HH 1
#include "config.h"
#include "glibmm/ustring.h"
#include "scheduler.hh"
#include "policy_parameters.hh"
namespace sgpem
{
@ -36,12 +40,21 @@ namespace sgpem
class SG_DLLEXPORT Policy
{
public:
void sort_queue(sgpem::Scheduler::event) {}
bool is_pre_emptive() {return true;}
int get_time_slice() {return 2;}
virtual ~Policy();
virtual void configure() = 0;
virtual void sort_queue(sgpem::Scheduler::event) const = 0;
int get_id() const;
virtual Glib::ustring get_description() const = 0;
virtual bool is_pre_emptive() const = 0;
virtual int get_time_slice() const = 0;
virtual void set_time_slice(const int&) = 0;
const PolicyParameters& get_parameters() const;
private:
PolicyParameters _parameters;
int _id;
};
}//~ namespace sgpem