summaryrefslogtreecommitdiff
path: root/Simulator/include/simulation/history/MachineSnapshot.h
diff options
context:
space:
mode:
authorMDBijman <matthijs@bijman.org>2017-01-24 12:15:26 +0100
committerMDBijman <matthijs@bijman.org>2017-01-24 12:15:26 +0100
commit070ce923574dcc57435cb3fb2dfe86b6a38cd249 (patch)
treeffd69a842ac4ad22aaf7161f923b9f0b47c7147a /Simulator/include/simulation/history/MachineSnapshot.h
Initial code commit with organized dependencies
Diffstat (limited to 'Simulator/include/simulation/history/MachineSnapshot.h')
-rw-r--r--Simulator/include/simulation/history/MachineSnapshot.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/Simulator/include/simulation/history/MachineSnapshot.h b/Simulator/include/simulation/history/MachineSnapshot.h
new file mode 100644
index 00000000..49ce1313
--- /dev/null
+++ b/Simulator/include/simulation/history/MachineSnapshot.h
@@ -0,0 +1,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;
+ };
+} \ No newline at end of file