public class PowerModelLinear extends java.lang.Object implements PowerModel
| Constructor and Description |
|---|
PowerModelLinear(double maxPower,
double staticPowerPercent)
Instantiates a new linear power model.
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
getConstant()
Gets the constant.
|
protected double |
getMaxPower()
Gets the max power.
|
double |
getPower(double utilization)
Get power consumption by the utilization percentage according to the power model.
|
protected double |
getStaticPower()
Gets the static power.
|
protected void |
setConstant(double constant)
Sets the constant.
|
protected void |
setMaxPower(double maxPower)
Sets the max power.
|
protected void |
setStaticPower(double staticPower)
Sets the static power.
|
public PowerModelLinear(double maxPower,
double staticPowerPercent)
maxPower - the max powerstaticPowerPercent - the static power percentpublic double getPower(double utilization)
throws java.lang.IllegalArgumentException
PowerModelgetPower in interface PowerModelutilization - the utilizationjava.lang.IllegalArgumentException - the illegal argument exceptionprotected double getMaxPower()
protected void setMaxPower(double maxPower)
maxPower - the new max powerprotected double getConstant()
protected void setConstant(double constant)
constant - the new constantprotected double getStaticPower()
protected void setStaticPower(double staticPower)
staticPower - the new static power