Interface IMeasurementSourceListener


  • public interface IMeasurementSourceListener
    Once measurement sources have new measurements at hand, they have to inform registered observers about these new measurements. To do so, measurement sources provide this dedicated interfaces with call-back methods that observers have to implement. AbstractMeasureProvider sources bind this interface to the generic type parameter T of AbstractObservable to implement this observer pattern.
    • Method Detail

      • newMeasurementAvailable

        void newMeasurementAvailable​(MeasuringValue newMeasurement)
        Call-back method for observers, informing these about a new measurement.
        Parameters:
        newMeasurement - The newly available AbstractMeasureProvider.
      • preUnregister

        void preUnregister()
        After having registered, e.g., at a Calculator, this method gets invoked to inform the listener about being unregistered.