summaryrefslogtreecommitdiff
path: root/Simulator/include/modeling/machine/CPU.h
diff options
context:
space:
mode:
Diffstat (limited to 'Simulator/include/modeling/machine/CPU.h')
-rw-r--r--Simulator/include/modeling/machine/CPU.h27
1 files changed, 15 insertions, 12 deletions
diff --git a/Simulator/include/modeling/machine/CPU.h b/Simulator/include/modeling/machine/CPU.h
index dce4d2c5..95af1c86 100644
--- a/Simulator/include/modeling/machine/CPU.h
+++ b/Simulator/include/modeling/machine/CPU.h
@@ -5,27 +5,30 @@ namespace Modeling
class CPU
{
public:
+ /**
+ * \brief Creates a CPU with the given speed/core, number of cores, energy consumption, and failure model id.
+ */
CPU(int speed, int cores, int energyConsumption, int failureModelId);
- /*
- Returns the speed of this CPU.
+ /**
+ * \return the speed of this CPU.
*/
- int getSpeed();
+ int getSpeed() const;
- /*
- Returns the nr of cores of this CPU.
+ /**
+ * \return The nr of cores of this CPU.
*/
- int getCores();
+ int getCores() const;
- /*
- Returns the energy consumed by this CPU.
+ /**
+ * \return The energy consumed by this CPU.
*/
- int getEnergyConsumption();
+ int getEnergyConsumption() const;
- /*
- Returns the failure model id of this CPU.
+ /**
+ * \return The failure model id of this CPU.
*/
- int getFailureModelId();
+ int getFailureModelId() const;
private: