public class PowerModelSquare extends Object implements PowerModel
Constructor and Description |
---|
PowerModelSquare(double maxPower,
double staticPowerPercent)
Instantiates a new power model square.
|
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 PowerModelSquare(double maxPower, double staticPowerPercent)
maxPower
- the max powerstaticPowerPercent
- the static power percentpublic double getPower(double utilization) throws IllegalArgumentException
PowerModel
getPower
in interface PowerModel
utilization
- the utilizationIllegalArgumentException
- 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 powerCopyright © 2012 The Cloud Computing and Distributed Systems (CLOUDS) Laboratory, The University of Melbourne. All Rights Reserved.