blob: 69e20d01a9caf006b2975539bbb111645c07658c (
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
|
#pragma once
#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;
};
}
|