summaryrefslogtreecommitdiff
path: root/Simulator/include/modeling/machine/CPU.h
diff options
context:
space:
mode:
authorMatthijs Bijman <matthijs@bijman.org>2017-02-27 13:55:50 +0100
committerMatthijs Bijman <matthijs@bijman.org>2017-02-27 13:55:50 +0100
commitcc5c5a7eac0ebcf97c283e1e0dd1674c855a261a (patch)
tree841f95e14a00cb6d23d4e357c9e0cfcbdc3c9a2a /Simulator/include/modeling/machine/CPU.h
parent0709a81231b695caecb2269fe23d8dadeb764892 (diff)
Implement logging of cores_used in task_states
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: