- 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
|
||||
|
||||
#include "dummy_policy.hh"
|
||||
|
||||
using namespace std;
|
||||
using namespace sgpem;
|
||||
|
||||
|
@ -42,7 +43,7 @@ DummyPolicy::configure()
|
|||
Glib::ustring
|
||||
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
|
||||
|
|
|
@ -29,25 +29,28 @@
|
|||
|
||||
namespace sgpem
|
||||
{
|
||||
class DummyPolicy;
|
||||
|
||||
class DummyPolicy;
|
||||
/** \brief This is a trivial policy for demostration purposes only
|
||||
*
|
||||
* This trivial schedulation policy was needed during initial development
|
||||
* as stub. It is now maintained as an example of how built-in policy can
|
||||
* be implemented in C++.
|
||||
*/
|
||||
class SG_DLLEXPORT DummyPolicy : public Policy
|
||||
{
|
||||
public:
|
||||
virtual ~DummyPolicy();
|
||||
virtual void configure();
|
||||
virtual void sort_queue(sgpem::Scheduler::event) const;
|
||||
virtual Glib::ustring get_description() const;
|
||||
virtual bool is_pre_emptive() const;
|
||||
virtual int get_time_slice() const;
|
||||
virtual void set_time_slice(const int&);
|
||||
|
||||
class SG_DLLEXPORT DummyPolicy : public Policy
|
||||
{
|
||||
public:
|
||||
virtual ~DummyPolicy();
|
||||
private:
|
||||
int _time_slice;
|
||||
};
|
||||
} //~ namespace sgpem
|
||||
|
||||
virtual void configure();
|
||||
virtual void sort_queue(sgpem::Scheduler::event) const;
|
||||
virtual Glib::ustring get_description() const;
|
||||
virtual bool is_pre_emptive() const;
|
||||
virtual int get_time_slice() const;
|
||||
virtual void set_time_slice(const int&);
|
||||
|
||||
private:
|
||||
int _time_slice;
|
||||
};
|
||||
|
||||
}//~ namespace sgpem
|
||||
|
||||
#endif
|
||||
#endif // DUMMYPOLICY_HH
|
||||
|
|
Loading…
Reference in New Issue