summaryrefslogtreecommitdiff
path: root/Simulator/src/modeling/machine/CPU.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Simulator/src/modeling/machine/CPU.cpp')
-rw-r--r--Simulator/src/modeling/machine/CPU.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/Simulator/src/modeling/machine/CPU.cpp b/Simulator/src/modeling/machine/CPU.cpp
new file mode 100644
index 00000000..6167b133
--- /dev/null
+++ b/Simulator/src/modeling/machine/CPU.cpp
@@ -0,0 +1,26 @@
+#include "modeling/machine/CPU.h"
+
+namespace Modeling
+{
+ CPU::CPU(int speed, int cores, int energyConsumption, int failureModelId) : speed(speed), cores(cores), energyConsumption(energyConsumption), failureModelId(failureModelId) {}
+
+ int CPU::getCores()
+ {
+ return this->cores;
+ }
+
+ int CPU::getEnergyConsumption()
+ {
+ return this->energyConsumption;
+ }
+
+ int CPU::getFailureModelId()
+ {
+ return this->failureModelId;
+ }
+
+ int CPU::getSpeed()
+ {
+ return this->speed;
+ }
+}