public interface PowerModel
Host.setPowerModel(PowerModel)
.
The interface implements the Null Object
Design Pattern in order to start avoiding NullPointerException
when
using the NULL
object instead of attributing null
to
PowerModel
variables.
If you are using any algorithms, policies or workload included in the power package please cite the following paper:
Modifier and Type | Field and Description |
---|---|
static PowerModel |
NULL
A property that implements the Null Object Design Pattern for
Host
objects. |
Modifier and Type | Method and Description |
---|---|
double |
getEnergyLinearInterpolation(double fromUtilization,
double toUtilization,
double time)
Gets an estimation of energy consumption using linear interpolation of the utilization
change.
|
Host |
getHost() |
double |
getMaxPower()
Gets the max power that can be consumed by the host (in Watts/Second).
|
double |
getPower()
Gets the current power consumption of the host (in Watts/Second).
|
double |
getPower(double utilization)
Gets power consumption (in Watts/Second) of the Power Model, according to the utilization
percentage of a critical resource, such as CPU.
|
void |
setHost(Host host) |
static final PowerModel NULL
Host
objects.Host getHost()
void setHost(Host host)
double getMaxPower()
double getPower()
Pe
s.double getPower(double utilization) throws IllegalArgumentException
utilization
- the utilization percentage (between [0 and 1]) of a
resource that is critical for power consumption.IllegalArgumentException
- when the utilization percentage is not
between [0 and 1]double getEnergyLinearInterpolation(double fromUtilization, double toUtilization, double time)
PowerModel
in order to get power usage data.fromUtilization
- the initial utilization percentagetoUtilization
- the final utilization percentagetime
- the timeCopyright © 2015–2018 Systems, Security and Image Communication Lab - Instituto de Telecomunicações (IT) - Universidade da Beira Interior (UBI) - Instituto Federal de Educação Ciência e Tecnologia do Tocantins (IFTO). All rights reserved.