blob: 049b928e70c58b15e9c199e5819fdf00e1f2c6ef (
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
27
28
29
30
31
32
33
|
#pragma once
namespace Modeling
{
class GPU
{
public:
GPU(int speed, int cores, int energyConsumption, int failureModelId);
/*
Returns the speed of this CPU.
*/
int getSpeed();
/*
Returns the nr of cores of this CPU.
*/
int getCores();
/*
Returns the energy consumed by this CPU.
*/
int getEnergyConsumption();
/*
Returns the failure model id of this CPU.
*/
int getFailureModelId();
private:
int speed, cores, energyConsumption, failureModelId;
};
}
|