Class SimulationTimeEnergyCalculator
- java.lang.Object
-
- org.palladiosimulator.metricspec.metricentity.MetricEntity
-
- org.palladiosimulator.measurementframework.listener.MeasurementSource
-
- org.palladiosimulator.simulizar.power.calculators.SimulationTimeEnergyCalculator
-
- All Implemented Interfaces:
org.palladiosimulator.commons.designpatterns.IAbstractObservable<org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener>
,org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener
,org.palladiosimulator.metricspec.metricentity.IMetricEntity
public class SimulationTimeEnergyCalculator extends org.palladiosimulator.measurementframework.listener.MeasurementSource implements org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener
Implementation of aMeasurementSource
which uses power measurements provided by anotherMeasurementSource
(e.g., aSimulationTimePowerCalculator
) to compute energy consumptions at simulation-time.
-
-
Constructor Summary
Constructors Constructor Description SimulationTimeEnergyCalculator(de.fzi.power.interpreter.calculators.energy.AbstractCumulativeEnergyCalculator energyCalculator)
Initializes a new instance of theSimulationTimeEnergyCalculator
class with the given argument.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
newMeasurementAvailable(org.palladiosimulator.measurementframework.MeasuringValue newInputMeasurement)
void
preUnregister()
-
Methods inherited from class org.palladiosimulator.measurementframework.listener.MeasurementSource
addObserver, getMeasurementSourceListeners, notifyMeasurementSourceListener, removeObserver
-
-
-
-
Constructor Detail
-
SimulationTimeEnergyCalculator
public SimulationTimeEnergyCalculator(de.fzi.power.interpreter.calculators.energy.AbstractCumulativeEnergyCalculator energyCalculator)
Initializes a new instance of theSimulationTimeEnergyCalculator
class with the given argument.- Parameters:
energyCalculator
- AnAbstractCumulativeEnergyCalculator
denoting the algorithm to use power the computation.
-
-
Method Detail
-
newMeasurementAvailable
public void newMeasurementAvailable(org.palladiosimulator.measurementframework.MeasuringValue newInputMeasurement)
- Specified by:
newMeasurementAvailable
in interfaceorg.palladiosimulator.measurementframework.listener.IMeasurementSourceListener
-
preUnregister
public void preUnregister()
- Specified by:
preUnregister
in interfaceorg.palladiosimulator.measurementframework.listener.IMeasurementSourceListener
-
-