Class FloatAdder

java.lang.Object
eu.bandm.sig.adlib.FloatAdder
All Implemented Interfaces:
CompilableDataFlow, FloatSignalSource, FloatSupplier, SignalSource<Float>, Supplier<Float>
Direct Known Subclasses:
BoundedFloatAdder

public class FloatAdder extends Object implements FloatSignalSource
  • Field Details

  • Constructor Details

    • FloatAdder

      public FloatAdder()
  • Method Details

    • addSource

      public void addSource(FloatSignalSource source)
    • removeSource

      public void removeSource(FloatSignalSource source)
    • makeSnapshot

      protected void makeSnapshot()
    • getAsFloat

      public float getAsFloat()
      Description copied from interface: FloatSignalSource
      Returns the current value of the signal.

      Any implementation of this method should be stateless; its invocation should not have any side effect on the emitter or the observer, except for real time passing until its completion.

      Specified by:
      getAsFloat in interface FloatSignalSource
      Specified by:
      getAsFloat in interface FloatSupplier
      Returns:
      the current value of the signal.