- More documentation

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@437 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
johnny 2006-02-24 12:22:25 +00:00
parent 7ce8cf93c3
commit 52857f08b9
2 changed files with 25 additions and 21 deletions

View File

@ -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

View File

@ -29,25 +29,28 @@
namespace sgpem 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 private:
{ int _time_slice;
public: };
virtual ~DummyPolicy(); } //~ namespace sgpem
virtual void configure(); #endif // DUMMYPOLICY_HH
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