summaryrefslogtreecommitdiff
path: root/Simulator/include/simulation/schedulers/Scheduler.h
blob: b084e8f6b53e517610329ebed89d59bcf6b604d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include "simulation/workloads/Workload.h"
#include "modeling/machine/Machine.h"

#include <vector>

namespace Simulation
{
	/*
		Provides a strategy for load balancing.
	*/
	class Scheduler
	{
	public:
		virtual ~Scheduler()
		{
			
		}

		/*
			Divides the workloads over the given machines.
		*/
		virtual void schedule(std::vector<std::reference_wrapper<Modeling::Machine>>& machines, std::vector<Workload*> workloads) = 0;
	};
}