A power model where the power consumption is defined by a
UnaryOperatorfunction given as parameter to the constructor. This way, the user can define how the power consumption increases along the time without requiring to create a new class for it.
Author: Manoel Campos da Silva Filho
PowerModelSimple(double maxPower, double staticPowerPercent, UnaryOperator<Double> powerIncrementFunction)¶
Instantiates a PowerModelSimple.
- maxPower – the max power that can be consumed in Watt-Second (Ws).
- staticPowerPercent – the static power usage percentage between 0 and 1.
- powerIncrementFunction – a function that defines how the power consumption increases along the time. This function receives the utilization percentage in scale from 0 to 100 and returns a factor representing how the power consumption will increase for the given utilization percentage. The function return is again a percentage value between [0 and 1].
Gets the constant which represents the power consumption for each fraction of resource used in Watt-Second (Ws).
Returns: the power consumption constant in Watt-Second (Ws)