Scheduler
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
rlScheduler
maxTempEstimator
exponentialMaxTempEstimator.cpp
Go to the documentation of this file.
1
10
#include "
exponentialMaxTempEstimator.h
"
11
12
#include <cmath>
13
14
#include <
scheduler/system.h
>
15
#include <
scheduler/processor.h
>
16
17
using namespace
RlScheduler
;
18
19
ExponentialMaxTempEstimator::ExponentialMaxTempEstimator
(
double
sc,
double
off) :
20
proc(
Scheduler
::System::getInstance()->getProc()), scaling(sc), offset(off)
21
{
22
}
23
24
double
ExponentialMaxTempEstimator::getMaximumTemperature
()
25
{
26
return
exp((proc->
getTemperature
() + offset)*scaling);
27
}
28
exponentialMaxTempEstimator.h
RlScheduler::ExponentialMaxTempEstimator::getMaximumTemperature
double getMaximumTemperature() override
Definition:
exponentialMaxTempEstimator.cpp:24
Scheduler::Processor::getTemperature
double getTemperature() const
Definition:
processor.cpp:185
processor.h
Scheduler
Definition:
schedulerActions.h:21
system.h
RlScheduler::ExponentialMaxTempEstimator::ExponentialMaxTempEstimator
ExponentialMaxTempEstimator(double scaling, double offset)
Definition:
exponentialMaxTempEstimator.cpp:19
RlScheduler
Definition:
actions.h:24
Generated on Sun Nov 26 2017 17:01:36 for Scheduler by
1.8.11