Class MeasurementSource

  • All Implemented Interfaces:
    org.palladiosimulator.commons.designpatterns.IAbstractObservable<IMeasurementSourceListener>, org.palladiosimulator.metricspec.metricentity.IMetricEntity

    public abstract class MeasurementSource
    extends org.palladiosimulator.metricspec.metricentity.MetricEntity
    implements org.palladiosimulator.commons.designpatterns.IAbstractObservable<IMeasurementSourceListener>
    AbstractMeasureProvider sources provide measurements from analyzers, e.g., by providing the measurements from probes. To provide such measurements, they implement the observer pattern. Observers have to implement the IMeasurementSourceListener interface to get informed about new measurements.
    • Constructor Detail

      • MeasurementSource

        public MeasurementSource​(org.palladiosimulator.metricspec.MetricDescription metricDesciption)
        Default constructor. Nothing special.
        Parameters:
        metricDesciption - Metric description as needed by the superclass.
    • Method Detail

      • getMeasurementSourceListeners

        protected final Collection<IMeasurementSourceListener> getMeasurementSourceListeners()
        Getter for the list of registered observers (aka. measurement source listeners).
        Returns:
        The list of observers.
      • notifyMeasurementSourceListener

        protected final void notifyMeasurementSourceListener​(MeasuringValue newMeasurement)
        Triggers the call-back method for observers with the given, new measurement.
        Parameters:
        newMeasurement - The new measurement observers are informed about.