- Udpdated test-holt-widget for resource policy support

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@981 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
matrevis 2006-09-01 12:49:16 +00:00
parent 17b54f1bfe
commit 689f1c108d
1 changed files with 8 additions and 0 deletions

View File

@ -42,6 +42,10 @@
#include "backend/cpu_policies_gatekeeper.hh" #include "backend/cpu_policies_gatekeeper.hh"
#include "backend/cpu_policy.hh" #include "backend/cpu_policy.hh"
#include "backend/cpu_policy_manager.hh" #include "backend/cpu_policy_manager.hh"
#include "backend/resource_policies_gatekeeper.hh"
#include "backend/resource_policy.hh"
#include "backend/resource_policy_manager.hh"
#include "backend/history_observer.hh" #include "backend/history_observer.hh"
#include "backend/scheduler.hh" #include "backend/scheduler.hh"
#include "backend/simulation.hh" #include "backend/simulation.hh"
@ -549,6 +553,10 @@ main(int argc, char** argv)
info << "gets simulation \n"; info << "gets simulation \n";
History& hist = Simulation::get_instance().get_history(); History& hist = Simulation::get_instance().get_history();
ResourcePolicyManager & rpm = *ResourcePoliciesGatekeeper::get_instance().get_registered().at(0);
Simulation::get_instance().set_resource_policy(rpm.get_avail_policies().at(0));
info << "gets history \n"; info << "gets history \n";
DummyPolicyManager dummy_manager; DummyPolicyManager dummy_manager;