Class 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 a MeasurementSource which uses power measurements provided by another MeasurementSource (e.g., a SimulationTimePowerCalculator) to compute energy consumptions at simulation-time.
    • Constructor Detail

      • SimulationTimeEnergyCalculator

        public SimulationTimeEnergyCalculator​(de.fzi.power.interpreter.calculators.energy.AbstractCumulativeEnergyCalculator energyCalculator)
        Initializes a new instance of the SimulationTimeEnergyCalculator class with the given argument.
        Parameters:
        energyCalculator - An AbstractCumulativeEnergyCalculator denoting the algorithm to use power the computation.
    • Method Detail

      • newMeasurementAvailable

        public void newMeasurementAvailable​(org.palladiosimulator.measurementframework.MeasuringValue newInputMeasurement)
        Specified by:
        newMeasurementAvailable in interface org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener
      • preUnregister

        public void preUnregister()
        Specified by:
        preUnregister in interface org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener