- More documentation
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@437 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
7ce8cf93c3
commit
52857f08b9
|
@ -19,6 +19,7 @@
|
||||||
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
#include "dummy_policy.hh"
|
#include "dummy_policy.hh"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace sgpem;
|
using namespace sgpem;
|
||||||
|
|
||||||
|
@ -42,7 +43,7 @@ DummyPolicy::configure()
|
||||||
Glib::ustring
|
Glib::ustring
|
||||||
DummyPolicy::get_description() const
|
DummyPolicy::get_description() const
|
||||||
{
|
{
|
||||||
return "Questa è una STUPIDISSIMA politica implementata in C++. Serve solo per debug.";
|
return "This is a dummy policy implemented in C++. It is just needed as a debug stub.";
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
|
@ -29,25 +29,28 @@
|
||||||
|
|
||||||
namespace sgpem
|
namespace sgpem
|
||||||
{
|
{
|
||||||
|
class DummyPolicy;
|
||||||
|
|
||||||
class DummyPolicy;
|
/** \brief This is a trivial policy for demostration purposes only
|
||||||
|
*
|
||||||
class SG_DLLEXPORT DummyPolicy : public Policy
|
* This trivial schedulation policy was needed during initial development
|
||||||
{
|
* as stub. It is now maintained as an example of how built-in policy can
|
||||||
public:
|
* be implemented in C++.
|
||||||
virtual ~DummyPolicy();
|
*/
|
||||||
|
class SG_DLLEXPORT DummyPolicy : public Policy
|
||||||
virtual void configure();
|
{
|
||||||
virtual void sort_queue(sgpem::Scheduler::event) const;
|
public:
|
||||||
virtual Glib::ustring get_description() const;
|
virtual ~DummyPolicy();
|
||||||
virtual bool is_pre_emptive() const;
|
virtual void configure();
|
||||||
virtual int get_time_slice() const;
|
virtual void sort_queue(sgpem::Scheduler::event) const;
|
||||||
virtual void set_time_slice(const int&);
|
virtual Glib::ustring get_description() const;
|
||||||
|
virtual bool is_pre_emptive() const;
|
||||||
private:
|
virtual int get_time_slice() const;
|
||||||
int _time_slice;
|
virtual void set_time_slice(const int&);
|
||||||
};
|
|
||||||
|
|
||||||
}//~ namespace sgpem
|
|
||||||
|
|
||||||
#endif
|
private:
|
||||||
|
int _time_slice;
|
||||||
|
};
|
||||||
|
} //~ namespace sgpem
|
||||||
|
|
||||||
|
#endif // DUMMYPOLICY_HH
|
||||||
|
|
Loading…
Reference in New Issue