blob: dce4d2c5c28c0c45d6f50b0e322418814d8d8fe7 (
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
34
|
#pragma once
namespace Modeling
{
class CPU
{
public:
CPU(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;
};
}
|