summaryrefslogtreecommitdiff
path: root/Simulator/src/modeling/machine/CPU.cpp
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/src/modeling/machine/CPU.cpp
parent0709a81231b695caecb2269fe23d8dadeb764892 (diff)
Implement logging of cores_used in task_states
Diffstat (limited to 'Simulator/src/modeling/machine/CPU.cpp')
-rw-r--r--Simulator/src/modeling/machine/CPU.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Simulator/src/modeling/machine/CPU.cpp b/Simulator/src/modeling/machine/CPU.cpp
index 6167b133..0caa34ec 100644
--- a/Simulator/src/modeling/machine/CPU.cpp
+++ b/Simulator/src/modeling/machine/CPU.cpp
@@ -4,22 +4,22 @@ namespace Modeling
{
CPU::CPU(int speed, int cores, int energyConsumption, int failureModelId) : speed(speed), cores(cores), energyConsumption(energyConsumption), failureModelId(failureModelId) {}
- int CPU::getCores()
+ int CPU::getCores() const
{
return this->cores;
}
- int CPU::getEnergyConsumption()
+ int CPU::getEnergyConsumption() const
{
return this->energyConsumption;
}
- int CPU::getFailureModelId()
+ int CPU::getFailureModelId() const
{
return this->failureModelId;
}
- int CPU::getSpeed()
+ int CPU::getSpeed() const
{
return this->speed;
}