- Added SETPOLICY and LISTPOLICIES commands to text-based interface

- Fixed a bug preventing registration of managers in PoliciesGatekeeper

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@634 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
elvez 2006-06-15 20:07:03 +00:00
parent 9642918dd8
commit 30d070a420
11 changed files with 96 additions and 11 deletions

View file

@ -21,6 +21,7 @@
#include "policy.hh"
#include "scheduler.hh"
#include "policy_manager.hh"
#include "policies_gatekeeper.hh"
#include "user_interrupt_exception.hh"
#include <iostream>
@ -76,7 +77,8 @@ Scheduler::set_policy(Policy* p)
Policy&
Scheduler::get_policy()
{
return _policy_manager.get_policy();
//return _policy_manager.get_policy();
return *PoliciesGatekeeper::get_instance().get_current_policy(&History::get_instance());
}