blob: 0caa34ec3a06f32e8566f08a6bc6b0642f2cafd0 (
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() const
{
return this->cores;
}
int CPU::getEnergyConsumption() const
{
return this->energyConsumption;
}
int CPU::getFailureModelId() const
{
return this->failureModelId;
}
int CPU::getSpeed() const
{
return this->speed;
}
}
|