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.
  • 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 measurements
      supplementaryProbes - the probes which are triggered whenever the primary probe produces a measurement.
  • Method Details

    • 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 interface IProbeListener
      Parameters:
      probeMeasurement - The newly available probe measurements.