summaryrefslogtreecommitdiff
path: root/Simulator/include/modeling/machine/GPU.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/modeling/machine/GPU.h
Initial code commit with organized dependencies
Diffstat (limited to 'Simulator/include/modeling/machine/GPU.h')
-rw-r--r--Simulator/include/modeling/machine/GPU.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/Simulator/include/modeling/machine/GPU.h b/Simulator/include/modeling/machine/GPU.h
new file mode 100644
index 00000000..049b928e
--- /dev/null
+++ b/Simulator/include/modeling/machine/GPU.h
@@ -0,0 +1,33 @@
+#pragma once
+
+namespace Modeling
+{
+ class GPU
+ {
+ public:
+ GPU(int speed, int cores, int energyConsumption, int failureModelId);
+
+ /*
+ Returns the speed of this CPU.
+ */
+ int getSpeed();
+
+ /*
+ Returns the nr of cores of this CPU.
+ */
+ int getCores();
+
+ /*
+ Returns the energy consumed by this CPU.
+ */
+ int getEnergyConsumption();
+
+ /*
+ Returns the failure model id of this CPU.
+ */
+ int getFailureModelId();
+
+ private:
+ int speed, cores, energyConsumption, failureModelId;
+ };
+}