summaryrefslogtreecommitdiff
path: root/Simulator/src/modeling/machine/GPU.cpp
blob: 8458925bc0633514e1eafa5f6e2fb4437c98385f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;
	}
}