Class ExpressionOasisResourcePowerModelCalculator
- java.lang.Object
-
- de.fzi.power.interpreter.calculators.AbstractResourcePowerModelCalculator
-
- de.fzi.power.interpreter.calculator.expressionoasis.ExpressionOasisResourcePowerModelCalculator
-
- All Implemented Interfaces:
IResourcePowerModelCalculator
public class ExpressionOasisResourcePowerModelCalculator extends AbstractResourcePowerModelCalculator
This class is anAbstractResourcePowerModelCalculatorthat makes use of the ExpressionOasis library to calculate the power consumption ofPowerConsumingResources whose behavior is specified byDeclarativePowerModelSpecifications.- See Also:
CalculatorFactoryImpl
-
-
Field Summary
-
Fields inherited from class de.fzi.power.interpreter.calculators.AbstractResourcePowerModelCalculator
binding
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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.
-
-
-
Method Detail
-
getInputMetrics
public Set<org.palladiosimulator.metricspec.MetricDescription> getInputMetrics()
Description copied from interface:IResourcePowerModelCalculatorReturns the set of metrics for which this calculator needs measurements to be able to calculate the power consumption.- Specified by:
getInputMetricsin interfaceIResourcePowerModelCalculator- Specified by:
getInputMetricsin classAbstractResourcePowerModelCalculator- Returns:
- The set of required metric descriptions.
-
calculate
public org.jscience.physics.amount.Amount<javax.measure.quantity.Power> calculate(Collection<org.palladiosimulator.measurementframework.MeasuringValue> list)
Description copied from interface:IResourcePowerModelCalculatorEvaluates the power consumption of a resource using a set of measurements collected for the resource.- Specified by:
calculatein interfaceIResourcePowerModelCalculator- Specified by:
calculatein classAbstractResourcePowerModelCalculator- Parameters:
list- The list of collected measurements.- Returns:
- The power consumption.
-
-