Class AbstractResourcePowerModelCalculator
- java.lang.Object
-
- de.fzi.power.interpreter.calculators.AbstractResourcePowerModelCalculator
-
- All Implemented Interfaces:
IResourcePowerModelCalculator
- Direct Known Subclasses:
ExpressionOasisResourcePowerModelCalculator
,InterpolationModelCalculator
,LinearPowerModelCalculator
,NonlinearRegressionCalculator
public abstract class AbstractResourcePowerModelCalculator extends Object implements IResourcePowerModelCalculator
Calculator responsible for evaluating the power consumption of aResourcePowerBinding
.
-
-
Field Summary
Fields Modifier and Type Field Description protected ResourcePowerBinding
binding
-
Constructor Summary
Constructors Constructor Description AbstractResourcePowerModelCalculator(ResourcePowerBinding binding)
Create the power model calculator for a passed power-consuming resource.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract org.jscience.physics.amount.Amount<javax.measure.quantity.Power>
calculate(Collection<org.palladiosimulator.measurementframework.MeasuringValue> list)
Evaluates the power consumption of a resource using a set of measurements collected for the resource.abstract 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.
-
-
-
Field Detail
-
binding
protected ResourcePowerBinding binding
-
-
Constructor Detail
-
AbstractResourcePowerModelCalculator
public AbstractResourcePowerModelCalculator(ResourcePowerBinding binding)
Create the power model calculator for a passed power-consuming resource.- Parameters:
powerConsumingResource
- The resource for which the calculator is created.
-
-
Method Detail
-
calculate
public abstract org.jscience.physics.amount.Amount<javax.measure.quantity.Power> calculate(Collection<org.palladiosimulator.measurementframework.MeasuringValue> list)
Description copied from interface:IResourcePowerModelCalculator
Evaluates the power consumption of a resource using a set of measurements collected for the resource.- Specified by:
calculate
in interfaceIResourcePowerModelCalculator
- Parameters:
list
- The list of collected measurements.- Returns:
- The power consumption.
-
getInputMetrics
public abstract Set<org.palladiosimulator.metricspec.MetricDescription> getInputMetrics()
Description copied from interface:IResourcePowerModelCalculator
Returns the set of metrics for which this calculator needs measurements to be able to calculate the power consumption.- Specified by:
getInputMetrics
in interfaceIResourcePowerModelCalculator
- Returns:
- The set of required metric descriptions.
-
-