Class DemandBasedWaitingTimeCalculator
java.lang.Object
org.palladiosimulator.metricspec.metricentity.MetricEntity
org.palladiosimulator.measurementframework.listener.MeasurementSource
org.palladiosimulator.probeframework.calculator.Calculator
org.palladiosimulator.probeframework.calculator.internal.TimeSpanCalculator
org.palladiosimulator.probeframework.calculator.internal.WaitingTimeCalculator
org.palladiosimulator.probeframework.calculator.internal.DemandBasedWaitingTimeCalculator
- All Implemented Interfaces:
org.palladiosimulator.commons.designpatterns.IAbstractObservable<org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener>
,org.palladiosimulator.metricspec.metricentity.IMetricEntity
,IProbeListener
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"-eventstop
- "end of processing"-event (Notice: This is different from the waiting period stop)demand
- the demanded time
(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
ConstructorsConstructorDescriptionDemandBasedWaitingTimeCalculator
(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, List<Probe> probes) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
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
-
calculate
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. The calculation functions as described in the header of this class.- Overrides:
calculate
in classTimeSpanCalculator
- Parameters:
probeMeasurements
- The probe measurements used for the calculation.- Returns:
- The calculated waiting time measurement.
- See Also:
-