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
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
ConstructorDescriptionSupplementaryMeasurementAttachingProbe
(org.palladiosimulator.metricspec.MetricSetDescription metricDesciption, Probe primaryProbe, List<TriggeredProbe> supplementaryProbes) Constructs a new probe. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
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 Details
-
newProbeMeasurementAvailable
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.
-