summaryrefslogtreecommitdiff
path: root/Simulator/src/modeling/machine/GPU.cpp
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/src/modeling/machine/GPU.cpp
Initial code commit with organized dependencies
Diffstat (limited to 'Simulator/src/modeling/machine/GPU.cpp')
-rw-r--r--Simulator/src/modeling/machine/GPU.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/Simulator/src/modeling/machine/GPU.cpp b/Simulator/src/modeling/machine/GPU.cpp
new file mode 100644
index 00000000..8458925b
--- /dev/null
+++ b/Simulator/src/modeling/machine/GPU.cpp
@@ -0,0 +1,26 @@
+#include "modeling/machine/GPU.h"
+
+namespace Modeling
+{
+ GPU::GPU(int speed, int cores, int energyConsumption, int failureModelId) : speed(speed), cores(cores), energyConsumption(energyConsumption), failureModelId(failureModelId) {}
+
+ int GPU::getCores()
+ {
+ return this->cores;
+ }
+
+ int GPU::getEnergyConsumption()
+ {
+ return this->energyConsumption;
+ }
+
+ int GPU::getFailureModelId()
+ {
+ return this->failureModelId;
+ }
+
+ int GPU::getSpeed()
+ {
+ return this->speed;
+ }
+}