summaryrefslogtreecommitdiff
path: root/Simulator/include/simulation/history/MachineSnapshot.h
blob: 49ce13131b34f0eace88eef1b4b7b81735367e32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

namespace Simulation {
	/*
		POD class that represents the state of a machine.
	*/
	class MachineSnapshot {
	public:
		MachineSnapshot(int id, int currentWorkload, float temp, float load, uint32_t mem) : id(id), currentWorkload(currentWorkload), temperature(temp), loadFraction(load), usedMemory(mem) {}

		int id;
		int currentWorkload;
		float temperature;
		float loadFraction;
		uint32_t usedMemory;
	};
}