public class LinearPowerModelCalculator extends AbstractResourcePowerModelCalculator
P of a
PowerConsumingResource by interpolating between the resource's minimum P_min
and maximum power consumption P_min using the utilization Util of the
specific resource:P = P_min + Util * (P_max - P_min)| Constructor and Description |
|---|
LinearPowerModelCalculator(ResourcePowerBinding binding)
Create a calculator for a linear power model.
|
| Modifier and Type | Method and Description |
|---|---|
org.jscience.physics.amount.Amount<javax.measure.quantity.Power> |
calculate(Collection<org.palladiosimulator.measurementframework.MeasuringValue> measurements)
Calculate the power consumption using a linear power model.
|
Set<org.palladiosimulator.metricspec.MetricDescription> |
getInputMetrics()
Returns the set of metrics for which this calculator needs measurements to be able to
calculate the power consumption.
|
public LinearPowerModelCalculator(ResourcePowerBinding binding)
powerConsumingResource - The resource for which the calculator is created.public org.jscience.physics.amount.Amount<javax.measure.quantity.Power> calculate(Collection<org.palladiosimulator.measurementframework.MeasuringValue> measurements)
calculate in interface IResourcePowerModelCalculatorcalculate in class AbstractResourcePowerModelCalculatormeasurements - The MeasuringValues used for evaluation. More precisely, this calculator
type requires that the collection contain at least one element of that represents
a utilization measurement.AbstractResourcePowerModelCalculator.calculate(Collection)public Set<org.palladiosimulator.metricspec.MetricDescription> getInputMetrics()
IResourcePowerModelCalculatorgetInputMetrics in interface IResourcePowerModelCalculatorgetInputMetrics in class AbstractResourcePowerModelCalculator