Class SupplementaryMeasurementAttachingProbe
- java.lang.Object
-
- org.palladiosimulator.probeframework.probes.Probe
-
- org.palladiosimulator.probeframework.probes.SupplementaryMeasurementAttachingProbe
-
- All Implemented Interfaces:
org.palladiosimulator.commons.designpatterns.IAbstractObservable<IProbeListener>
,org.palladiosimulator.metricspec.metricentity.IMetricEntity
,IProbeListener
public class SupplementaryMeasurementAttachingProbe extends Probe implements IProbeListener
This probe allows to attach supplementary measurements to a basic probe. Whenever the primary probe produces a measurement all of the supplementary probes are triggered. The probe consequently requires a MetricSetDescription which composes all of the subsumed metrics, especially the measurement of the primary probe. This probe is build to facilitate the attachment of PointInTime measurements to any other kind of probe.
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.probeframework.probes.Probe
metricEntityDelegate
-
-
Constructor Summary
Constructors Constructor Description SupplementaryMeasurementAttachingProbe(org.palladiosimulator.metricspec.MetricSetDescription metricDesciption, Probe primaryProbe, List<TriggeredProbe> supplementaryProbes)
Constructs a new probe.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
newProbeMeasurementAvailable(ProbeMeasurement probeMeasurement)
This method should not be called directly, as it is used by the primary probe to notify us of new primary measurements.-
Methods inherited from class org.palladiosimulator.probeframework.probes.Probe
addObserver, getMetricDesciption, isCompatibleWith, notifyMeasurementSourceListener, removeObserver
-
-
-
-
Constructor Detail
-
SupplementaryMeasurementAttachingProbe
public SupplementaryMeasurementAttachingProbe(org.palladiosimulator.metricspec.MetricSetDescription metricDesciption, Probe primaryProbe, List<TriggeredProbe> supplementaryProbes)
Constructs a new probe.- Parameters:
metricDesciption
- the composite metric comprising the metric of all probes, primary and supplementary.primaryProbe
- the primary probe, which triggers measurementssupplementaryProbes
- the probes which are triggered whenever the primary probe produces a measurement.
-
-
Method Detail
-
newProbeMeasurementAvailable
public void newProbeMeasurementAvailable(ProbeMeasurement probeMeasurement)
This method should not be called directly, as it is used by the primary probe to notify us of new primary measurements. Please use your primary probe to trigger measurements.- Specified by:
newProbeMeasurementAvailable
in interfaceIProbeListener
- Parameters:
probeMeasurement
- The newly available probe measurements.
-
-