Class TimeSpanCalculator

  • All Implemented Interfaces:
    org.palladiosimulator.commons.designpatterns.IAbstractObservable<org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener>, org.palladiosimulator.metricspec.metricentity.IMetricEntity, IProbeListener
    Direct Known Subclasses:
    HoldingTimeCalculator, ResponseTimeCalculator, WaitingTimeCalculator

    public class TimeSpanCalculator
    extends Calculator
    Time span calculators calculate a time span. These calculators expect two probes, each providing at least a POINT_IN_TIME_METRIC measurement. Subsequently, they calculate the time span by subtracting the point in time of the first probe from the point in time of the second probe. The final result is a (start point in time, time span)-tuple.
    • Field Summary

      • Fields inherited from class org.palladiosimulator.probeframework.calculator.Calculator

        probes
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeSpanCalculator​(org.palladiosimulator.metricspec.MetricDescription metricDescription, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, List<Probe> probes)
      Default constructor.
    • Constructor Detail

      • TimeSpanCalculator

        public TimeSpanCalculator​(org.palladiosimulator.metricspec.MetricDescription metricDescription,
                                  org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint,
                                  List<Probe> probes)
        Default constructor.
        Parameters:
        metricDescription - MetricDescription as needed by the superclass.
        measuringPoint - MeasuringPoint as needed by the superclass.
        probes - Probes as needed by the superclass.