Class DemandBasedWaitingTimeCalculator

java.lang.Object
org.palladiosimulator.metricspec.metricentity.MetricEntity
org.palladiosimulator.measurementframework.listener.MeasurementSource
All Implemented Interfaces:
org.palladiosimulator.commons.designpatterns.IAbstractObservable<org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener>, org.palladiosimulator.metricspec.metricentity.IMetricEntity, IProbeListener

public class DemandBasedWaitingTimeCalculator extends WaitingTimeCalculator
Calculates the waiting time for resources in environments where the stop of the waiting period cannot be observed directly. Rather the following values (respectively events) should be observable.
  • start - "request for processing"-event
  • stop - "end of processing"-event (Notice: This is different from the waiting period stop)
  • demand - the demanded time
The waiting time results from calculating (stop - start) - demand . The final result is still a (start point in time, waiting time)-tuple, i.e., a measurement typed with a metric set.
  • Field Summary

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

    probes
  • Constructor Summary

    Constructors
    Constructor
    Description
    DemandBasedWaitingTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, List<Probe> probes)
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.palladiosimulator.measurementframework.MeasuringValue
    calculate(List<ProbeMeasurement> probeMeasurements)
    Overrides the inherited calculate method because the latter assumed that the stop of the waiting period can directly be obtained.

    Methods inherited from class org.palladiosimulator.probeframework.calculator.Calculator

    equals, getMeasuringPoint, hashCode, newProbeMeasurementAvailable, preUnregister

    Methods inherited from class org.palladiosimulator.measurementframework.listener.MeasurementSource

    addObserver, getMeasurementSourceListeners, notifyMeasurementSourceListener, removeObserver

    Methods inherited from class org.palladiosimulator.metricspec.metricentity.MetricEntity

    getMetricDesciption, isCompatibleWith, setMetricDescription

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DemandBasedWaitingTimeCalculator

      public DemandBasedWaitingTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, List<Probe> probes)
      Default constructor.
      Parameters:
      measuringPoint - MeasuringPoint as needed by the superclass.
      probes - Probes as needed by the superclass.
  • Method Details