summaryrefslogtreecommitdiff
path: root/Simulator/src/modeling/machine/CPU.cpp
blob: 6167b1335e16474063dd0e6f4050f4921fc354ce (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/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;
	}
}