diff options
Diffstat (limited to 'Simulator/src/modeling/machine/GPU.cpp')
| -rw-r--r-- | Simulator/src/modeling/machine/GPU.cpp | 26 |
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; + } +} |
