Class TransitionStatePowerModelCalculator
- java.lang.Object
-
- de.fzi.power.interpreter.calculators.TransitionStatePowerModelCalculator
-
- All Implemented Interfaces:
IResourcePowerModelCalculator
public class TransitionStatePowerModelCalculator extends Object implements IResourcePowerModelCalculator
-
-
Constructor Summary
Constructors Constructor Description TransitionStatePowerModelCalculator(StatefulPowerConsumingResourceSet resource, TransitionStateBinding stateBinding, ITimeProvider provider)
-
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.
-
-
-
Constructor Detail
-
TransitionStatePowerModelCalculator
public TransitionStatePowerModelCalculator(StatefulPowerConsumingResourceSet resource, TransitionStateBinding stateBinding, ITimeProvider provider)
-
-
Method Detail
-
calculate
public 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 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.
-
-