hu.mta.sztaki.lpds.cloud.simulator.energy.powermodelling
Class ConstantConsumptionModel

java.lang.Object
  extended by hu.mta.sztaki.lpds.cloud.simulator.energy.powermodelling.PowerState.ConsumptionModel
      extended by hu.mta.sztaki.lpds.cloud.simulator.energy.powermodelling.ConstantConsumptionModel

public class ConstantConsumptionModel
extends PowerState.ConsumptionModel

Defines a power draw model that always returns an instantaneous power draw value equivalent to the minimum consumption set for the current power state.

Author:
"Gabor Kecskemeti, Laboratory of Parallel and Distributed Systems, MTA SZTAKI (c) 2014"

Field Summary
 
Fields inherited from class hu.mta.sztaki.lpds.cloud.simulator.energy.powermodelling.PowerState.ConsumptionModel
myPowerState
 
Constructor Summary
ConstantConsumptionModel()
           
 
Method Summary
protected  double evaluateConsumption(double load)
          calculates the instantaneous power draw of a resource spreader under a particular load.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantConsumptionModel

public ConstantConsumptionModel()
Method Detail

evaluateConsumption

protected double evaluateConsumption(double load)
Description copied from class: PowerState.ConsumptionModel
calculates the instantaneous power draw of a resource spreader under a particular load.

Specified by:
evaluateConsumption in class PowerState.ConsumptionModel
Parameters:
load - the load in the range of [0..1] of the resource spreader
Returns:
the estimated instantaneous power draw of the spreader in W.


Copyright © 2012–2015 University of Innsbruck & MTA SZTAKI. All rights reserved.